4d2fce3de3df19f83460ee0679d4dd3e103d9209
[gnulib.git] / ChangeLog
1 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2
3         regex: no 'static inline'
4         * lib/regex_internal.c (calc_state_hash):
5         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
6         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
7         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
8         Now static, not static inline.
9         (inline) [__GNUC__ < 3 && _LIBC]:
10         Remove macro; no longer needed.
11
12         xvasprintf: no 'static inline'
13         * lib/xvasprintf.c (xstrcat):
14         Now static, not static inline.
15         * m4/xvasprintf.m4 (gl_XVASPRINTF):
16         Do not require AC_C_INLINE.
17
18         parse-datetime, parse-duration: no 'static inline'
19         * lib/parse-datetime.y (to_uchar):
20         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
21         (scale_n_add):
22         Now static, not static inline.
23         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
24         * modules/parse-duration (configure.ac):
25         Do not require AC_C_INLINE.
26
27         getaddrinfo: no 'static inline'
28         * lib/getaddrinfo.c (validate_family):
29         Now static, not static inline.
30         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
31         Do not require AC_C_INLINE.
32
33         ftruncate, fts, lstat, openat, raise: no 'static inline'
34         * lib/ftruncate.c (chsize_nothrow):
35         * lib/fts.c (opendirat, diropen):
36         * lib/lstat.c (orig_lstat):
37         * lib/openat.c (orig_openat):
38         * lib/raise.c (raise_nothrow):
39         Now static, not static inline.
40         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
41         * m4/fts.m4 (gl_FUNC_FTS_CORE):
42         * m4/lstat.m4 (gl_PREREQ_LSTAT):
43         * m4/openat.m4 (gl_PREREQ_OPENAT):
44         * m4/raise.m4 (gl_PREREQ_RAISE):
45         Do not require AC_C_INLINE.
46
47         fflush, stat: no 'static inline'
48         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
49         (clear_ungetc_buffer, disable_seek_optimization)
50         (restore_seek_optimization, update_fpos_cache):
51         * lib/stat.c (orig_stat):
52         Now static, not static inline.
53         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
54         (update_fpos_cache):
55         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
56         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
57         * m4/stat.m4 (gl_PREREQ_STAT):
58         Do not require AC_C_INLINE.
59
60         error, filevercmp: no 'static inline'
61         * lib/error.c (is_open, flush_stdout):
62         * lib/filevercmp.c (order):
63         Now static, not static inline.
64         * m4/error.m4 (gl_PREREQ_ERROR):
65         * modules/filevercmp (configure.ac):
66         Do not require AC_C_INLINE.
67
68         dup, execute, fatal-signal, etc.: no 'static inline'
69         * lib/dup.c (dup_nothrow):
70         * lib/execute.c (nonintr_close, nonintr_open):
71         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
72         * lib/fopen.c (orig_fopen):
73         * lib/freadseek.c (freadptrinc):
74         * lib/freopen.c (orig_freopen):
75         * lib/fstat.c (orig_fstat, fstat_nothrow):
76         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
77         (get_rusage_as_via_iterator):
78         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
79         * lib/getdtablesize.c (_setmaxstdio_nothrow):
80         * lib/isatty.c (_isatty_nothrow):
81         * lib/open.c (orig_open):
82         * lib/read.c (read_nothrow):
83         * lib/sigprocmask.c (signal_nothrow):
84         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
85         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
86         * lib/wait-process.c (unregister_slave_subprocess):
87         * lib/write.c (write_nothrow):
88         Now static, not static inline.
89         * lib/spawn-pipe.c (nonintr_open): Define only if
90         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
91         * m4/dup.m4 (gl_PREREQ_DUP):
92         * m4/execute.m4 (gl_EXECUTE):
93         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
94         * m4/fopen.m4 (gl_PREREQ_FOPEN):
95         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
96         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
97         * m4/fstat.m4 (gl_PREREQ_FSTAT):
98         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
99         * m4/isatty.m4 (gl_PREREQ_ISATTY):
100         * m4/open.m4 (gl_PREREQ_OPEN):
101         * m4/read.m4 (gl_PREREQ_READ):
102         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
103         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
104         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
105         * m4/wait-process.m4 (gl_WAIT_PROCESS):
106         * m4/write.m4 (gl_PREREQ_WRITE):
107         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
108         Do not require AC_C_INLINE.
109
110         c-strtod, memcoll, readutmp: no 'static inline'
111         * lib/c-strtod.c (c_locale):
112         * lib/memcoll.c (strcoll_loop):
113         * lib/readutmp.c (desirable_utmp_entry):
114         Now static, not static inline.
115         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
116         * m4/memcoll.m4 (gl_MEMCOLL):
117         * m4/readutmp.m4 (gl_READUTMP):
118         Do not require AC_C_INLINE.
119
120         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
121         * lib/arctwo.c (to_uchar):
122         * lib/md4.c (set_uint32):
123         * lib/md5.c (set_uint32):
124         * lib/sha1.c (set_uint32):
125         * lib/sha256.c (set_uint32):
126         * lib/sha512.c (set_uint64):
127         Now static, not static inline.  This is a bit simpler, and doesn't
128         affect performance with GCC and default optimization.
129         * m4/arctwo.m4 (gl_ARCTWO):
130         * m4/md4.m4 (gl_MD4):
131         * m4/md5.m4 (gl_MD5):
132         * m4/sha1.m4 (gl_SHA1):
133         * m4/sha256.m4 (gl_SHA256):
134         * m4/sha512.m4 (gl_SHA512):
135         Do not require AC_C_INLINE.
136
137         cond, lock, thread: better 'inline'
138         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
139         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
140         New macros.  Use them instead of static inline, for header functions.
141         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
142         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
143         * lib/glthread/lock.c (gl_waitqueue_init)
144         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
145         * lib/glthread/thread.c (get_current_thread_handle):
146         Change 'static inline' to 'inline'.
147         * lib/glthread/cond.h, lib/glthread/thread.h:
148         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
149         * m4/cond.m4 (gl_COND):
150         * m4/lock.m4 (gl_PREREQ_LOCK):
151         * m4/thread.m4 (gl_THREAD):
152         Do not require AC_C_INLINE.
153         * modules/cond, modules/thread (Depends-on): Add extern-inline.
154
155         chdir-long, cycle-check, savewd: better 'inline'
156         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
157         (find_non_slash):
158         * lib/cycle-check.c (is_zero_or_power_of_two):
159         * lib/savewd.c (savewd_delegating):
160         Change 'static inline' to 'inline'.
161         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
162         Replace all remaining uses of 'static inline' with it.
163         * lib/savewd.h:
164         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
165         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
166         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
167         * m4/savewd.m4 (gl_SAVEWD):
168         Do not require AC_C_INLINE.
169         * modules/savewd (Depends-on): Add extern-inline.
170
171         base32, base64: no need for 'inline'
172         * lib/base32.c (to_uchar, get_8, decode_8):
173         * lib/base64.c (to_uchar, get_4, decode_4):
174         Change 'static inline' to 'inline'.
175         * m4/base32.m4 (gl_PREREQ_BASE32):
176         * m4/base64.m4 (gl_PREREQ_BASE64):
177         Do not require AC_C_INLINE.
178
179         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
180         * lib/gl_array_oset.c (gl_array_nx_add_at):
181         (gl_array_remove_at):
182         * lib/gl_linkedhash_list.c (hash_resize_after_add)
183         (add_to_bucket, remove_from_bucket):
184         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
185         Change 'static inline' to 'static', as it's simpler to omit
186         'inline' unless there's a significant performance advantage.
187
188         list, oset, xlist, xoset, xsublist: simplify via extern inline
189         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
190         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
191         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
192         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
193         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
194         New macro.  Replace all uses of 'static inline' with it.
195         [HAVE_INLINE]: Implement functions as *_INLINE functions,
196         instead of as macros FOO that are defined to static inline
197         functions FOO_inline.
198         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
199         * lib/gl_xsublist.c:
200         Reimplement from scratch, by defining the corresponding *_INLINE
201         macro and including the corresponding .h file.  This is simpler.
202         * modules/list, modules/oset, modules/xlist, modules/xoset:
203         (Files): Remove m4/gl_list.m4.
204         (configure.ac): Remove gl_LIST.
205         * m4/gl_list.m4: Remove.
206         * modules/list, modules/oset, modules/xlist, modules/xoset:
207         * modules/xsublist:
208         (Depends-on): Depend on extern-inline, not inline.
209
210         xalloc: better 'inline'
211         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
212         New macro.  Replace all uses of 'static inline' with it.
213         (static_inline): Remove.
214         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
215         Let 'extern inline' do the work automatically, instead of doing
216         it by hand.
217         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
218         Remove.  All uses removed.
219         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
220
221         gethrxtime: better 'inline'
222         * lib/xtime.c: New file.
223         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
224         * lib/xtime.h (XTIME_INCLUDE):
225         New macros.  Replace all uses of 'static inline' with them.
226         * lib/gethrxtime.c (gethrxtime): Define only if
227         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
228         this source file is now always compiled, because of the extern inline.
229         * lib/gethrxtime.h, lib/xtime.h:
230         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
231         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
232         if gethrtime works, as they're not needed in that case.
233         (gl_XTIME): Do not require AC_C_INLINE.
234         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
235         compiled now.  Move the check into gl_GETHRXTIME.
236         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
237         (Depends-on): Add extern-inline.
238         (configure.ac): gethrxtime is always compiled now.
239         (lib_SOURCES): Add gethrxtime.c.
240
241         wctype-h: better 'inline'
242         * lib/wctype-h.c: New file.
243         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
244         New macro.  Replace all uses of 'static inline' with it.
245         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
246         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
247         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
248         (Depends-on): Add extern-inline.
249
250         unistd: better 'inline'
251         * lib/unistd.c: New file.
252         * lib/unistd.in.h (_GL_UNISTD_INLINE):
253         New macro.  Replace all uses of 'static inline' with it.
254         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
255         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
256         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
257         (Depends-on): Add extern-inline.
258
259         sys_socket: better 'inline'
260         * lib/sys_socket.c: New file.
261         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
262         New macro.  Replace all uses of 'static inline' with it.
263         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
264         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
265         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
266         (Depends-on): Add extern-inline.
267
268         stdio: better 'inline'
269         * lib/stdio.c: New file.
270         * lib/stdio.in.h (_GL_STDIO_INLINE):
271         New macro.  Replace all uses of 'static inline' with it.
272         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
273         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
274         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
275         (Depends-on): Add extern-inline.
276
277         sigaction: better 'inline'
278         * lib/sig-handler.c: New file.
279         * lib/sig-handler.h (SIG_HANDLER_INLINE):
280         New macro.  Replace all uses of 'static inline' with it.
281         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
282         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
283         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
284         (Depends-on): Add extern-inline.
285
286         selinux-h: better 'inline'
287         * lib/se-context.c, lib/se-selinux.c: New files.
288         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
289         * lib/se-context.in.h (SE_CONTEXT_INLINE):
290         New macro.  Replace all uses of 'static inline' with it.
291         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
292         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
293         New macro.  Replace all uses of 'static inline' with it.
294         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
295         * modules/selinux-h (Files, lib_SOURCES):
296         Add lib/se-context.c, lib/se-selinux.c.
297         (Depends-on): Add extern-inline.
298         (configure.ac): Do not require AC_C_INLINE.
299
300         pthread: better 'inline'
301         * lib/pthread.c: New file.
302         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
303         New macro.  Replace all uses of 'static inline' with it.
304         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
305         * m4/pthread.m4 (gl_PTHREAD_CHECK):
306         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
307         * modules/pthread (Files): Add lib/pthread.c.
308         (Depends-on): Add extern-inline.
309
310         math: better 'inline'
311         * lib/math.c: New file.
312         * lib/math.in.h (_GL_MATH_INLINE):
313         New macro.  Replace all uses of 'static inline' with it.
314         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
315         * m4/math_h.m4 (gl_MATH_H):
316         Do not require AC_C_INLINE.
317         * modules/math (Files, lib_SOURCES):
318         Add lib/math.c.
319         (Depends-on): Add extern-inline.
320
321         count-one-bits: better 'inline'
322         * lib/count-one-bits.c: New file.
323         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
324         New macro.  Replace all uses of 'static inline' with it.
325         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
326         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
327         Do not require AC_C_INLINE.
328         * modules/count-one-bits (Files, lib_SOURCES):
329         Add lib/count-one-bits.c.
330         (Depends-on): Add extern-inline.
331
332         count-leading-zeros: better 'inline'
333         * lib/count-leading-zeros.c: New file.
334         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
335         New macro.  Replace all uses of 'static inline' with it.
336         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
337         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
338         Do not require AC_C_INLINE.
339         * modules/count-leading-zeros (Files, lib_SOURCES):
340         Add lib/count-leading-zeros.c.
341         (Depends-on): Add extern-inline.
342
343         bitrotate: better 'inline'
344         * lib/bitrotate.c: New file.
345         * lib/bitrotate.h (BITROTATE_INLINE):
346         New macros.
347         Replace all uses of 'static inline' with them.
348         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
349         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
350         (Depends-on): Add extern-inline.
351         (configure.ac): Do not require AC_C_INLINE.
352
353 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
354
355         maint.mk: avoid gratuitous failure
356         Reported by Stefano Lattarini in
357         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
358         * top/maint.mk (public-submodule-commit): Quote more safely.
359
360 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
361
362         canonicalize, canonicalize-lgpl: support MS-Windows file names
363         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
364         for test cases, which it'd be nice to add at some point.
365         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
366         * lib/canonicalize.c (canonicalize_filename_mode):
367         * lib/canonicalize-lgpl.c (__realpath):
368         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
369         slash is at the beginning of the file name.  Use ISSLASH, instead
370         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
371         the first character with '/'.  Test for
372         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
373         with a drive letter.
374         * lib/canonicalize.c (SLASHES): New macro.
375         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
376
377 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
378
379         fts: introduce FTS_VERBATIM
380         * lib/fts_.h (FTS_VERBATIM): New bit flag.
381         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
382         * lib/fts.c (fts_open): Honor it.
383
384 2012-11-09  Pádraig Brady  <P@draigBrady.com>
385
386         getlogin-tests: allow errno == ENXIO
387         * tests/test-getlogin.c (main): Skip tests if getlogin fails
388         with errno == ENXIO (No controlling tty).
389         getlogin_r-tests: Likewise. Also allow errno == ENOENT
390         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
391         with errno == ENOENT.  This was reported to happen in various
392         situations on GNU/Linux.
393
394 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
395
396         getlogin-tests: allow errno == ENOENT
397         * tests/test-getlogin.c (main): Skip tests if getlogin fails
398         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
399         when running a test in an Emacs shell buffer.
400
401 2012-11-08  Jim Meyering  <jim@meyering.net>
402
403         tests/nap.h: avoid warning about unused variable
404         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
405
406         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
407         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
408         white space before each of the special-cased file names, to avoid
409         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
410         in http://bugs.gnu.org/12830.
411
412 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
413
414         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
415         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
416         fails with errno == EBADF when fd is opened with O_PATH.
417         Reported by Jim Meyering in
418         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
419         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
420         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
421
422 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
423
424         test-utimens: speed up by taking shorter naps
425         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
426         New functions.
427         (nap): Use them, to do a better job of guessing the delay.
428         On Fedora 17 with ext4 atop md atop hard disks, this made
429         test-utimens run 10x faster, because the test napped for
430         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
431         <http://bugs.gnu.org/12820#11>.
432
433 2012-11-07  Jim Meyering  <jim@meyering.net>
434
435         mountlist.c: fix a compilation failure
436         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
437         I introduced while transforming commit v0.0-7683-g613bcb6
438
439 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
440
441         errno: port to LynxOS 178 2.2.2
442         Problem reported by Joel Brobecker in
443         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
444         * doc/posix-headers/errno.texi (errno.h): Document this.
445         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
446         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
447         Supply a string for EILSEQ.
448         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
449
450 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
451
452         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
453         Linux kernel 2.6.39 introduced O_PATH (see
454         <http://lwn.net/Articles/433854/>) and this is a better fallback
455         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
456         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
457         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
458         * lib/fcntl.in.h (O_ACCMODE):
459         * tests/test-fcntl-h.c (main):
460         Do not reject O_ACCMODE merely because it has more than the
461         minimal number of bits, as POSIX allows extensions here.
462
463 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
464
465         mountlist: do not classify a bind-mounted dir entry as "dummy"
466         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
467         the "none"-testing clause.
468         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
469         exception for bind-mounted directories.
470
471 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
472
473         quote: provide a means to escape strings with nul characters
474         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
475         (quote, quote_n): Rename formal arguments for consistency with
476         quotearg.
477
478 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
479
480         test-raise: don't assume 199 is an invalid signal
481         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
482
483         sh-quote-tests: port to Solaris 9
484         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
485         Problem reported by Dagobert Michelsen in
486         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
487
488 2012-10-28  Jim Meyering  <jim@meyering.net>
489
490         maint.mk: rename a new configurable variable
491         * top/maint.mk (_gl_translatable_string_re): Rename from
492         translation-markers: _gl_ prefix to insulate from user Makefile code,
493         and the _re suffix to inform that it's a regular expression.
494
495 2012-10-26  Eric Blake  <eblake@redhat.com>
496
497         maint.mk: let packages tweak sc_po_check pattern
498         * top/maint.mk (sc_po_check): Add translation-markers, to allow
499         finding files with other translation markers.
500
501 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
502
503         euidaccess: speed up 'configure' on GNU hosts
504         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
505         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
506         it's needed only in this case.  Use AC_CHECK_DECLS, not
507         AC_CHECK_DECLS_ONCE.
508         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
509         or AC_REQUIRE for AC_FUNC_GETGROUPS.
510
511         * lib/regexec.c (re_search_internal): Fix grammar in comment.
512
513 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
514
515         fchmodat, fchownat, fstatat: port to non-inlining compilers
516         Problem reported for FreeBSD 9 by Jim Meyering in
517         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
518         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
519         New files, which define FCHMODAT_INLINE etc.
520         * lib/fchmodat.c (FCHMODAT_INLINE):
521         * lib/fchownat.c (FCHOWNAT_INLINE):
522         * lib/fstatat.c (FSTATAT_INLINE):
523         Remove, as chmodat.c etc. now do this.
524         * modules/fchmodat (Files): Add lib/chmodat.c.
525         * modules/fchownat (Files): Add lib/chownat.c.
526         * modules/fstatat (Files): Add lib/statat.c.
527
528 2012-10-15  Jim Meyering  <jim@meyering.net>
529
530         fchmodat.c, fchownat.c: compile-impeding typos
531         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
532         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
533         Introduced in commit v0.0-7636-gd202279.
534
535 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
536
537         fcntl-h: support GNU flags like O_IGNORE_CTTY
538         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
539         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
540         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
541         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
542         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
543         Define to 0 if not already defined.
544         * tests/test-fcntl-h.c: Test these new flags.
545
546 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
547
548         faccessat, etc.: support AT_FDCWD-only use
549         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
550         this function only if its first argument is AT_FDCWD.
551         Emacs wants faccessat for AT_EACCESS but not for any first-arg
552         values other than AT_FDCWD, so it doesn't want all the openat
553         machinery with fchdir etc.
554         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
555         * modules/fstatat, modules/mkdirat, modules/openat (Files):
556         * modules/unlinkat (Files):
557         Remove lib/openat-priv.h, as at-internal supplies this file.
558         Removing this file here allows us to support programs like Emacs
559         that avoid at-internal.
560
561         faccessat: speed up 'configure' on mainstream hosts
562         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
563         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
564         since it's only on unusual platforms that we need to check for
565         'access', and it's better not to slow 'configure' down on all
566         platforms.
567
568         faccessat: port to Solaris 10
569         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
570         Needed on Solaris 10, which doesn't have AT_EACCESS,
571         so we need the Gnulib fcntl.h, which defines it.
572
573 2012-10-14  Pádraig Brady  <P@draigBrady.com>
574         canonicalize: fix C89 compilation
575         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
576         declarations so C89 is supported.  Also remove the comment
577         referencing memorty allocation as the suggested feature could
578         not be implemented as suggested.
579         Reported by Michael Goffioul.
580
581 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
582
583         group-member: omit unnecessary dependencies
584         This is for Emacs, which has its own allocator and where we
585         don't want to use xalloc.
586         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
587         since we no longer use xmalloc.  Do not include stdbool.h, since
588         the changes below happen to remove the only use of bool.
589         (GROUPBUF_SIZE): New constant.
590         (struct group_info): Remove n_groups member.  Add groupbuf member.
591         This lets us get the groups without using malloc, usually.
592         (free_group_info, get_group_info): Adjust to this.
593         (get_group_info): Return the number of groups found, or -1 on error.
594         Use plain malloc not xmalloc, and treat its failure as if there
595         are no groups, as the user already loses in case of error.
596         (group_member): Simplify, based on changes to get_group_info.
597         * modules/group-member (Depends-on): Remove dependencies on
598         xalloc and stdbool.  Add dependency on xalloc-oversized.
599
600 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
601
602         gethrxtime: port to C++
603         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
604
605 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
606
607         ptsname: fix macro-name typo
608         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
609
610 2012-10-03  Simon Josefsson  <simon@josefsson.org>
611
612         inttostr: Relax license.
613         * modules/inttostr (License): Change from LGPL to LGPLv2+.
614
615 2012-10-03  Eric Blake  <eblake@redhat.com>
616
617         ptsname_r: support ptys returned by FreeBSD posix_openpt
618         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
619         lives in /dev/pts/.
620
621 2012-10-02  Eric Blake  <eblake@redhat.com>
622
623         pselect: reject invalid file descriptors
624         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
625         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
626         * modules/pselect (Depends-on): Add dup2.
627         * doc/posix-functions/pselect.texi (pselect): Document this.
628
629         select: reject invalid file descriptors
630         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
631         * lib/select.c (rpl_select) [!win32]: Work around it.
632         * modules/select (Depends-on): Add dup2.
633         * doc/posix-functions/select.texi (select): Document this.
634
635         select: enhance test
636         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
637         New functions.
638         (test_function): Enhance test.
639         (do_select_bad_fd): Avoid any stale errno values.
640
641         ptsname: reject invalid file descriptors
642         http://www.austingroupbugs.net/view.php?id=503
643         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
644         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
645         * modules/stdlib (Makefile.am): Replace witness.
646         * lib/stdlib.in.h (ptsname): Allow for replacement.
647         * modules/ptsname (configure.ac): Trigger replacement.
648         * doc/posix-functions/ptsname.texi (ptsname): Document this.
649
650 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
651
652         hash-pjw-bare: new module
653         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
654         * lib/hash-pjw-bare.h: Likewise.
655         * modules/hash-pjw-bare: New file.
656         * MODULES.html.sh (Misc): Add it.
657
658 2012-10-02  Eric Blake  <eblake@redhat.com>
659
660         manywarnings: cater to more gcc infelicities
661         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
662         -Wuninitialized without -O.
663
664 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
665
666         select, poll tests: Make setsockopt invocation effective.
667         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
668         the bind() call.
669         * tests/test-select.h (open_server_socket): Likewise.
670
671 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
672
673         sockets, sys_stat: restore AC_C_INLINE
674         This undoes the 2012-09-22 patch.
675         * m4/sockets.m4 (gl_SOCKETS):
676         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
677         Restore AC_C_INLINE, since MSVC requires __inline or _inline
678         and does not support plain 'inline'.  Reported by Bruno Haible in
679         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
680
681 2012-09-30  Bruno Haible  <bruno@clisp.org>
682
683         localeconv tests: Avoid test failure on OpenIndiana.
684         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
685         skip the 'grouping' and 'mon_grouping' tests.
686         Reported by Jim Meyering.
687
688 2012-09-30  Bruno Haible  <bruno@clisp.org>
689
690         havelib: Follow libtool developments.
691         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
692         Suggested by Simon Josefsson.
693
694 2012-09-29  Jim Meyering  <meyering@redhat.com>
695
696         fstatat.c: fix a compile-impeding typo
697         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
698         Introduced in commit v0.0-7636-gd202279.
699         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
700
701 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
702
703         extern-inline: provide a -Wundef safe config.h
704         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
705         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
706         to produce a -Wundef warning free config.h.
707
708 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
709
710         hash-pjw: relax license to LGPLv2+
711         * modules/hash-pjw (License): Relax, with consent of author.
712
713 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
714
715         maint.mk: fix strict vs. lazy variable issues with RELEASE
716         * top/maint.mk (_equal): New function.
717         (member_check): Strip the result to avoid spurious spaces.
718         (url_dir_list): Do not use ifeq, which is strict, as it will
719         require RELEASE_TYPE to be defined.
720         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
721         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
722         (announcement_Cc_alpha,announcement_mail_headers_alpha)
723         (announcement_Cc_beta,announcement_mail_headers_beta)
724         (announcement_Cc_stable,announcement_mail_headers_stable): these.
725         (release): Do not depend on $(release-type), as it forces its
726         evaluation.  Bounce to it.
727
728 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
729
730         maint.mk: formatting changes
731         * top/maint.mk: Indent bodies of if's.
732
733 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
734
735         maint.mk: factor the validation of RELEASE_TYPE
736         With help from Jim Meyering.
737         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
738         * top/maint.mk (_empty, _sp): Move their definition earlier.
739         (member-check, release-type): New.
740         Use the latter instead of $(RELEASE_TYPE).
741         Remove now useless local checks.
742
743 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
744
745         maint.mk: provide "make upload" to ease uploading
746         See
747         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
748         Do not depend simply on the current $(VERSION), as there may have been
749         new commits since the tarball generation.  Rather, rely on $(RELEASE),
750         as "make release-commit" already does.
751
752         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
753         "make TYPE".
754
755         * top/maint.mk (upload_command, upload, release): New.
756         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
757         (VERSION): first word of $(RELEASE) is always right.
758         (emit_upload_commands): Adjust.
759         * top/README-release: Update.
760
761 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
762
763         maint.mk: silent rules
764         With help from Stefano Lattarini.
765         * top/maint.mk (writable-files): Use $(AM_V_GEN).
766         (announcement): Use $(AM_V_at).
767
768 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
769
770         localename: port gl_locale_name_thread_unsafe to FreeBSD
771         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
772         and use the simpler FreeBSD implementation on Mac OS X as well.
773         Original idea suggested by Ed Maste in
774         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
775
776 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
777
778         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
779         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
780         * lib/mbuiter.c, lib/xsize.c: New files.
781         * lib/binary-io.h (BINARY_IO_INLINE):
782         * lib/eealloc.h (EEALLOC_INLINE):
783         * lib/mbfile.h (MBFILE_INLINE):
784         * lib/mbiter.h (MBITER_INLINE):
785         * lib/mbuiter.h (MBUITER_INLINE):
786         * lib/xsize.h (XSIZE_INLINE):
787         New macros.
788         Replace all uses of 'static inline' with them.
789         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
790         * m4/eealloc.m4 (gl_EEALLOC):
791         * m4/mbfile.m4 (gl_MBFILE):
792         * m4/mbiter.m4 (gl_MBITER):
793         * m4/xsize.m4 (gl_XSIZE):
794         Do not require AC_C_INLINE.
795         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
796         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
797         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
798         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
799         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
800         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
801         * modules/binary-io, modules/eealloc, modules/mbfile:
802         * modules/mbiter, modules/mbuiter:
803         (Depends-on): Add extern-inline.
804
805         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
806         * lib/pipe-filter-aux.c: New file.
807         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
808         Replace all uses of 'static inline' with it.
809         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
810         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
811         (filter_retcode): No real need for inline here.
812         * modules/pipe-filter-gi, modules/pipe-filter-ii:
813         (Files): Add lib/pipe-filter-aux.c.
814         (Depends-on): Add extern-inline.
815         (configure.ac): Do not require AC_C_INLINE.
816         (lib_SOURCES): Add pipe-filter-aux.c.
817
818         fdutimensat: omit unnecessary AC_C_INLINE
819         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
820
821         fchmodat, fchownat, fstatat: use extern-inline
822         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
823         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
824         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
825         New macros.
826         * lib/openat.h:
827         Replace all uses of 'static inline' with them.
828         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
829         * modules/fchmodat, modules/fchownat, modules/fstatat:
830         * modules/openat-h:
831         (Depends-on):
832         Add extern-inline.
833         (configure.ac): Remove AC_C_INLINE.
834
835         acl, mbchar, priv-set: use extern-inline
836         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
837         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
838         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
839         New macros.
840         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
841         Replace all uses of 'static inline' with it.
842         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
843         * m4/acl.m4 (gl_FUNC_ACL):
844         * m4/mbchar.m4 (gl_MBCHAR):
845         * m4/priv-set.m4 (gl_PRIV_SET):
846         Remove AC_C_INLINE, since 'inline' is no longer used directly.
847         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
848         Add extern-inline.
849
850         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
851         * m4/sockets.m4 (gl_SOCKETS):
852         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
853         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
854         environments where it's already guaranteed to work, so we needn't
855         check for it at 'configure'-time.
856
857         tls-tests: omit unnecessary 'inline'
858         * tests/test-tls.c (perhaps_yield): No longer inline.
859         Simplicity and portability trump efficiency in test cases.
860
861         utimens-tests: avoid unnecessary 'inline'
862         * modules/fdutimensat-tests (configure.ac):
863         * modules/futimens-tests (configure.ac):
864         * modules/utimens-tests (configure.ac):
865         * modules/utimensat-tests (configure.ac):
866         Remove AC_C_INLINE.
867         * tests/test-utimens-common.h (ctime_compare):
868         No longer inline.  Simplicity and portability trump efficiency here.
869
870         misc: don't limit commentary to inline functions
871         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
872         * lib/xalloc-oversized.h, lib/xsize.h:
873         Contrast macros to functions in general, not just to inline functions,
874         when the commentary does not apply only to inline functions.
875
876 2012-09-20  Jim Meyering  <meyering@redhat.com>
877
878         non-recursive-gnulib-prefix-hack: new module
879         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
880         the file that originated in Bison.
881         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
882         largely copied from a snippet that resided in bison's configure.ac.
883         * modules/non-recursive-gnulib-prefix-hack: New file.
884         * MODULES.html.sh (Support for maintaining and releasing projects):
885         Add it.
886
887 2012-09-18  Jim Meyering  <meyering@redhat.com>
888
889         maint.mk: generalize _gl_tight_scope for non-recursive make
890         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
891         that *.h would describe additional .h files in the directory
892         specified by $(_gl_TS_dir).  I.e., add this...
893         (_gl_TS_other_headers): New variable.
894
895         maint.mk: exempt trailing blanks found in "binary" files
896         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
897         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
898         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
899
900 2012-09-17  Jim Meyering  <meyering@redhat.com>
901
902         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
903         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
904         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
905         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
906
907 2012-09-17  Jim Meyering  <meyering@redhat.com>
908
909         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
910         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
911         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
912         It is not in the same category as "exit (0)" or "exit (1)", and
913         besides, I know of no symbolic name for that 77.  Reported by
914         Richard W.M. Jones in
915         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
916
917 2012-09-17  Jim Meyering  <meyering@redhat.com>
918
919         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
920         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
921         all uses of #define, not just those that start in column 1.
922         Richard W.M. Jones reported a false positive in
923         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
924
925 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
926
927         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
928         * lib/localcharset.c (locale_charset) [DARWIN7]:
929         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
930         as these two values are incompatible.  Problem reported by Max Horn.
931         For more discussion, please see
932         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
933
934         doc: document sticky-EOF issue
935         * doc/posix-functions/fgetc.texi (fgetc):
936         * doc/posix-functions/fgets.texi (fgets):
937         * doc/posix-functions/fread.texi (fread):
938         * doc/posix-functions/fscanf.texi (fscanf):
939         * doc/posix-functions/getc.texi (getc):
940         * doc/posix-functions/getchar.texi (getchar):
941         * doc/posix-functions/scanf.texi (scanf):
942         Mention that glibc and default Solaris do not conform to
943         C99 and POSIX-2001 or later, with respect to how getchar
944         etc. behave when feof reports nonzero.
945
946 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
947
948         poll: fix poll(0, NULL, msec)
949         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
950         but nfd is 0.  In that case poll should behave like select.
951
952 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
953             Paolo Bonzini <bonzini@gnu.org>
954
955         poll: fix for systems that can't recv() on a non-socket
956         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
957         is readable.  In this case POLLHUP will not be supported.
958         * doc/posix-functions/poll.texi: Document this.
959
960 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
961
962         poll/select: document portability problems not fixed by Gnulib.
963         * doc/posix-functions/poll.texi: poll does not work well on
964         pipes under Windows.  It has the same limitations as select on
965         BeOS.
966         * doc/posix-functions/select.texi: select does not work well
967         on pipes under Windows.
968
969 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
970
971         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
972         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
973         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
974         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
975
976 2012-09-06  Eric Blake  <eblake@redhat.com>
977
978         net_if: give more details about the bug being fixed
979         * doc/posix-headers/net_if.texi: Add clarification.
980
981 2012-09-05  Eric Blake  <eblake@redhat.com>
982
983         net_if: new module
984         * modules/net_if: New module, borrowing ideas from netinet_in.
985         * m4/net_if_h.m4: New file.
986         * lib/net_if.in.h: Likewise.
987         * doc/posix-headers/net_if.texi (net/if.h): Document it.
988         * MODULES.html.sh (lacking POSIX:2008): Likewise.
989         * tests/test-net_if.c: Make function checks conditional.
990         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
991
992 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
993
994         readutmp: fix non-portable UT_PID use
995         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
996         Use `UT_PID (u) > 0' as absolute condition.
997
998 2012-09-04  Jim Meyering  <meyering@redhat.com>
999
1000         fts: reduce two or more trailing spaces to just one, usually
1001         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1002         or more slashes, trim all but the final one.  But if a name consists
1003         solely of two slashes, don't modify it.  If it consists solely of
1004         three or more slashes, strip all but one.
1005
1006         This is part of the solution to a minor problem with rm:
1007         it would print a bogus ELOOP diagnostic when failing to remove
1008         the slash-decorated name of a symlink-to-directory:
1009
1010             $ mkdir d && ln -s d s && env rm -r s/
1011             rm: cannot remove 's': Too many levels of symbolic links
1012
1013         With the change below and a trivial don't-trim-trailing-slashes
1014         adjustment to remove.c, it does this:
1015
1016             $ env rm -r s/
1017             rm: cannot remove 's/': Not a directory
1018
1019         Improved by: Eric Blake
1020
1021         fts: when there is no risk of overlap, use memcpy, not memmove
1022         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1023
1024 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1025
1026         stdbool: be more compatible with mixed C/C++ compiles
1027         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1028         Define to bool, true, false, respectively, as GCC's builtin
1029         stdbool.h does.  Problem reported by Michael Goffioul in
1030         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1031
1032 2012-08-28  Jim Meyering  <meyering@redhat.com>
1033
1034         revert last change: it was not needed
1035         * tests/test-vc-list-files-git.sh: There's already a test for
1036         a working git, just below.
1037
1038 2012-08-28  Jim Meyering  <meyering@redhat.com>
1039
1040         tests: test-vc-list-files-git.sh: skip if git is not available
1041         * tests/test-vc-list-files-git.sh: Skip this test when git is
1042         not available.
1043
1044 2012-08-26  Bruno Haible  <bruno@clisp.org>
1045
1046         gnulib-tool: Remove no-op option --no-changelog.
1047         * gnulib-tool (func_usage): Don't mention --no-changelog.
1048         (do_changelog): Remove variable.
1049         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1050
1051 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1052
1053         doc: remove fdl-1.2.texi
1054         It is no longer used or maintained, and its use of @acronym
1055         is problematic.  See the thread containing
1056         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1057         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1058         * doc/old-licenses/fdl-1.2.texi: Remove.
1059
1060         execinfo: port to FreeBSD
1061         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1062         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1063         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1064         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1065
1066 2012-08-23  Jim Meyering  <meyering@redhat.com>
1067
1068         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1069         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1070         to placate gcc's -Wold-style-declaration.
1071
1072 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1073
1074         doc: do not use @acronym
1075         * doc/inet_ntoa.texi (inet_ntoa):
1076         * doc/parse-datetime.texi (Seconds since the Epoch)
1077         (Specifying time zone rules):
1078         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1079         Don't use @acronym.  Problem reported by John Darlington in
1080         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1081
1082 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1083
1084         stdnoreturn: port to newer GCCs
1085         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1086         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1087         Problem reported by Jim Meyering in
1088         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1089         Also, rename the 'test' function to a void a clash with the
1090         already-supplied 'main' function; this fixes a bug that incorrectly
1091         rejected GCC 4.7.1's <stdnoreturn.h>.
1092         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1093         Document GCC problem.
1094
1095 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1096
1097         pipe-filter: fix comment typo
1098         * lib/pipe-filter.h: Mention correct function.
1099
1100 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1101
1102         execinfo: new module
1103         This is for Emacs.  Currently, it provides a no-effect stub
1104         on all platforms where it does not already work.
1105         It already works on glibc-based systems, and on Solaris 11.
1106         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1107         New files.
1108         * doc/glibc-headers/execinfo.texi (execinfo.h):
1109         * MODULES.html.sh (Misc): Document it.
1110
1111 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1112
1113         extern-inline: support old GCC 'inline'
1114         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1115         if available.  This applies to GCC versions 2.7 through 4.2, or
1116         when newer GCC is using -fgnu89-inline.  The goal is to address
1117         some of the performance issues mentioned by Bruno Haible in
1118         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1119
1120 2012-08-20  Eric Blake  <eblake@redhat.com>
1121
1122         maint.mk: avoid redundant file name in message
1123         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1124         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1125         (sc_makefile_path_separator_check): Remove bogus $(ME).
1126
1127 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1128
1129         timer-time: fix link order when static linking on glibc
1130         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1131         _after_ -lrt so that it's significant.
1132
1133 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1134
1135         timespec: omit unnecessary AC_C_INLINE
1136         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1137
1138         stat-time: omit unnecessary AC_C_INLINE
1139         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1140         Do not require AC_C_INLINE.
1141
1142         ignore-value: omit unnecessary AC_C_INLINE
1143         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1144
1145         sys_select: avoid 'static inline'
1146         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1147
1148         mktime: avoid 'static inline'
1149         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1150         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1151
1152 2012-08-19  Bruno Haible  <bruno@clisp.org>
1153
1154         gnulib-tool: Improve coding style.
1155         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1156         func_emit_lib_Makefile_am.
1157         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1158
1159 2012-08-19  Bruno Haible  <bruno@clisp.org>
1160
1161         gnulib-tool: Fix indentation.
1162         * gnulib-tool (func_import): Fix indentation.
1163
1164 2012-08-19  Bruno Haible  <bruno@clisp.org>
1165
1166         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1167         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1168         on the list of removed files.
1169
1170 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1171
1172         test-parse-datetime: avoid glibc leap-second glitch
1173         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1174         with the 2012 rules.  Problem reported by Bruce Dubbs in
1175         <http://bugs.gnu.org/12206>.
1176
1177 2012-08-14  Bruno Haible  <bruno@clisp.org>
1178
1179         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1180         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1181         from argument.
1182         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1183
1184 2012-08-14  Eric Blake  <eblake@redhat.com>
1185
1186         ldexp: relax license
1187         * modules/ldexp (License): Trivial relax, since the module only
1188         provides a permissively licensed m4 file.
1189
1190 2012-08-13  Bruno Haible  <bruno@clisp.org>
1191
1192         gnulib-tool: Fix persistence of --witness-c-macro option.
1193         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1194         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1195
1196 2012-08-11  Eric Blake  <eblake@redhat.com>
1197
1198         count-leading-zeros: use a lookup table on non-gcc compilers
1199         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1200         alternate implementation, suggested by Jim Meyering.
1201
1202 2012-08-10  Eric Blake  <eblake@redhat.com>
1203
1204         count-leading-zeros: new module
1205         * modules/count-leading-zeros: New module.
1206         * m4/count-leading-zeros.m4: New file.
1207         * lib/count-leading-zeros.h: Likewise.
1208         * modules/count-leading-zeros-tests: New test.
1209         * tests/test-count-leading-zeros.c: New file.
1210         * MODULES.html.sh (Integer arithmetic functions): Document it.
1211
1212 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1213             Jim Meyering  <meyering@redhat.com>
1214
1215         maintainer-makefile: Fix syntax error with dash.
1216         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1217         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1218
1219 2012-08-05  Jim Meyering  <meyering@redhat.com>
1220
1221         extern-inline: also ignore -Wmissing-declarations
1222         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1223         required with gcc-4.8.0-to-be.
1224
1225         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1226         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1227         for /error ?([^,]*)/.  This avoids false-positives for strings like
1228         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1229
1230 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1231
1232         gnumakefile: better interaction with Automake-NG
1233         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1234         Automake-NG always contain a definition of VPATH, even in non-VPATH
1235         builds (its value being simply '.' in that case).  So, in the
1236         'clean-GNUmakefile' rule, to determine whether running under a
1237         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1238         '$(VPATH)' expands to the empty string.
1239
1240 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1241
1242         base64: Use extern C scope in header file, for C++.
1243         * lib/base64.h: Add C++ namespace protection.
1244
1245 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1246
1247         stat-time, timespec, u64: support naive out-of-dir builds
1248         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1249         Use '#include "foo.h"', not '#include <foo.h>', when including
1250         one's own interface.  This works better when configuring with
1251         out-of-directory builds, since packages need not add an
1252         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1253
1254 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1255
1256         utimens: use extern-inline
1257         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1258         * lib/utimens.h: Add copyright notice, since this is now large enough
1259         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1260         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1261         * modules/utimens (Depends-on): Add extern-inline.
1262
1263         u64: use extern-inline
1264         * lib/u64.c: New file.
1265         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1266         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1267         * modules/u64 (Files): Add lib/u64.c.
1268         (Depends-on): Add extern-inline.
1269         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1270         does that now.
1271         (lib_SOURCES): Add u64.c.
1272
1273         timespec: use extern-inline
1274         * lib/timespec.c: New file.
1275         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1276         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1277         * modules/timespec (Files): Add lib/timespec.c.
1278         (Depends-on): Add extern-inline.
1279         (lib_SOURCES): Add timespec.c.
1280
1281         stat-time: use extern-inline
1282         * lib/stat-time.c: New file.
1283         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1284         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1285         * modules/stat-time (Files): Add lib/stat-time.c.
1286         (Depends-on): Add extern-inline.
1287         (lib_SOURCES): Add stat-time.c.
1288
1289         extern-inline: new module
1290         * modules/extern-inline, m4/extern-inline.m4: New files.
1291         This is for better support of 'extern inline' a la ISO C99,
1292         with a portable alternative on compilers that do not support
1293         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1294         of the Emacs executable, when compiled with debugging disabled,
1295         which is a typical way that Emacs is built while developing.
1296
1297 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1298
1299         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1300         * build-aux/do-release-commit-and-tag: Move variable definitions
1301         together.
1302         ($branch): Instead of defaulting to "master", default to the current
1303         branch (as gnu-web-doc-update does).
1304         (help): Display the current values of the option arguments.
1305         * top/maint.mk (release-commit): New.
1306         * top/README-release: Simplify the corresponding step.
1307
1308 2012-07-30  Eric Blake  <eblake@redhat.com>
1309
1310         passfd: fix comment on recvfd
1311         * lib/passfd.c (recvfd): Fix comment.
1312         Reported by Jann Horn <jannhorn@googlemail.com>.
1313
1314 2012-07-30  Jim Meyering  <meyering@redhat.com>
1315
1316         maint.mk: avoid a sub-shell
1317         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1318
1319 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1320
1321         maint.mk: use silent-rules support from Automake
1322         * top/maint.mk (news-check, vc-diff-check, announcement)
1323         (no-submodule-changes, alpha beta stable, release-prep)
1324         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1325
1326 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1327
1328         maint.mk: provide a web-manual-update target
1329         * top/maint.mk: here.
1330         * top/README-release: Use it to simplify the web manual update step.
1331
1332 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1333
1334         README-release: shorten the circuit to post a news
1335         * top/README-release: Point directly to the news submission form.
1336
1337 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1338
1339         gnu-web-doc-update: fix --help
1340         * build-aux/gnu-web-doc-update: The information "top level" was written
1341         twice.
1342
1343 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1344
1345         maint.mk: absolute VPATH issue
1346         * top/maint.mk (release-prep): Help Git find .git/.
1347         From Jim Meyering.
1348
1349 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1350
1351         gitlog-to-changelog: fix previous change
1352         * build-aux/gitlog-to-changelog: Fix condition.
1353         Add missing ";".
1354
1355 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1356
1357         gitlog-to-changelog: don't expect .git to be in $srcdir
1358         Reported by Bruno Haible.
1359         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1360         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1361         Use it.
1362
1363 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1364
1365         maint.mk: absolute VPATH build fix
1366         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1367         $(srcdir) is not a parent of $(builddir).
1368
1369 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1370
1371         clean-temp: Fix memory leak.
1372         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1373         'files' members of tmpdir.
1374
1375 2012-07-27  Jim Meyering  <meyering@redhat.com>
1376
1377         maint.mk: new rule: refresh-gnulib-patches
1378         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1379         Use this rule to refresh them.
1380         * top/maint.mk (refresh-gnulib-patches): New rule.
1381
1382 2012-07-24  Bruno Haible  <bruno@clisp.org>
1383
1384         gnulib-tool: Fix handling of inctests variable.
1385         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1386         Reported by Nick Bowler <nbowler@elliptictech.com>.
1387
1388 2012-07-22  Bruno Haible  <bruno@clisp.org>
1389
1390         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1391         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1392         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1393         Remove exemption for getpass.h.
1394         Suggested by Eric Blake.
1395
1396 2012-07-20  Eric Blake  <eblake@redhat.com>
1397
1398         verify: document conflict with -Wnested-externs
1399         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1400
1401         maint.mk: forbid exit(-1)
1402         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1403
1404 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1405
1406         fsusage: port back to Solaris
1407         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1408         error (fsd not declared) on Solaris 10.  Reported privately by
1409         Andrew Borodin.
1410
1411 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1412
1413         gnu-web-doc-update: fix error messages
1414         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1415
1416         gnu-web-doc-update: check the requirements.
1417         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1418         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1419         * build-aux/bootstrap (find_tool): Comment change.
1420
1421 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1422
1423         maint.mk: minor simplication.
1424         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1425         for default values.
1426
1427 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1428
1429         gitlog-to-changelog: VPATH build issues
1430         If builddir is not a subdirectory of srcdir, running git from it will
1431         fail.
1432         * build-aux/gitlog-to-changelog (--srcdir): New option.
1433
1434 2012-07-15  Bruno Haible  <bruno@clisp.org>
1435
1436         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1437         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1438         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1439         Remove exemption for fpending.h.
1440         Suggested by Eric Blake.
1441
1442 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1443
1444         pthread_sigmask: fix bug on FreeBSD 9
1445         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1446         Include string.h.
1447         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1448         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1449         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1450         but pthread_sigmask (1729, NULL, NULL) returns zero.
1451         See <http://bugs.gnu.org/11884>.
1452         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1453         by inspecting whether the main call changed the old mask.
1454
1455 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1456
1457         README-release: make it more legible
1458         * top/README-release: Improve typography slightly.
1459
1460 2012-07-15  Jim Meyering  <meyering@redhat.com>
1461
1462         maint: require that each sc_... command start with "@"
1463         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1464         "make sc_maint" helps us avoid this nit.
1465
1466 2012-07-15  Jim Meyering  <meyering@redhat.com>
1467
1468         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1469         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1470
1471 2012-07-13  Eric Blake  <eblake@redhat.com>
1472
1473         maint.mk: new syntax check for HAVE_DECL checks
1474         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1475         * cfg.mk
1476         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1477         Exempt some false positives.
1478         Based on a report by Karel Zak.
1479
1480         argp: make HAVE_DECL usage consistent
1481         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1482         macros, not whether they are defined.
1483         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1484         convention with other declaration checks.
1485         Reported by Karel Zak, with suggestions from Paul Eggert.
1486
1487         stat-time: relax license to LGPLv2+
1488         * modules/stat-time (License): Relax, with consent of all authors.
1489
1490         strndup: fix m4 usage error
1491         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1492         defined, to either 0 or 1.
1493         Reported by Karel Zak.
1494
1495 2012-07-11  Jim Meyering  <meyering@redhat.com>
1496
1497         maint: enable the sc_avoid_if_before_free syntax-check rule
1498         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1499         (if_before_free_offenders_): Define.
1500         (if_before_free_basename_re_): Define.
1501         Exempt current files with useless if-before-free.
1502
1503 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1504
1505         gettext: do not assume '#define ... defined ...' behavior
1506         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1507         Do not use '#define FOO ... defined BAR ...', as the C standard says
1508         it's not portable to expect that this works after macro expansion.
1509         Problem reported for gzip by Steven M. Schweda in
1510         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1511
1512 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1513
1514         getloadavg: clean out old Emacs and Autoconf cruft
1515         See Glenn Morris in <http://bugs.gnu.org/11905>.
1516         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1517         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1518         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1519         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1520
1521 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1522
1523         bootstrap: let warn be like tests/init.sh's warn_
1524         Reported by Jim Meyering.
1525         * build-aux/bootstrap (warn): Remove, replaced by...
1526         (warnf_, warn_): these.
1527         Adjust callers.
1528         Shorten messages that no longer fit in 80 columns.
1529
1530 2012-07-09  Bruno Haible  <bruno@clisp.org>
1531
1532         getopt: Simplify after Emacs changed.
1533         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1534         (gl_GETOPT_IFELSE): Remove macro.
1535
1536 2012-07-09  Jim Meyering  <meyering@redhat.com>
1537
1538         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1539         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1540
1541         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1542         Bugs in both of those conspired to make the
1543         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1544         _sc_search_regexp's handling of non-empty $in_files would filter
1545         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1546         choice of in_files value meant there would be no match in most
1547         projects, due to the presence of two or more Makefile.in files.
1548         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1549         Fix a bug in how a non-empty $$in_files was processed:
1550         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1551         in spite of the name, it's a regexp, not a list of file names.
1552
1553 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1554
1555         getloadavg, getopt: fix commentary re configure.in
1556         Autoconf is deprecating the name 'configure.in', so change it to
1557         to the new name 'configure.ac' in a couple of places.
1558         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1559         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1560         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1561         Emacs has renamed it to configure.ac, and it no longer refers
1562         to these macros anyway.
1563
1564         timespec: mark functions with const attributes
1565         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1566         Mark with _GL_ATTRIBUTE_CONST.
1567
1568 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1569
1570         canonicalize[-lgpl]: handle "guessing" values when cross-building
1571         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1572         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1573         matches "*yes" instead of just "yes".  Regression introduced in commit
1574         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1575
1576 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1577             Bruno Haible  <bruno@clisp.org>
1578
1579         canonicalize: make the right guess when cross-compiling to GNU
1580         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1581         determine whether cross-compiling to glibc systems, so as to
1582         include GNU/Hurd.
1583
1584 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1585
1586         timespec-sub: avoid duplicate include
1587         * lib/timespec-sub.c: Do not include <config.h> twice.
1588         Reported by Juanma Barranquero.
1589
1590 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1591
1592         bootstrap: use a more consistent error reporting scheme
1593         * build-aux/bootstrap (warn, die): New.
1594         Use them.
1595
1596 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1597
1598         sys_time: allow too-wide tv_sec
1599         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1600         timeval even if tv_sec is wider than time_t.  This allows
1601         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1602         as without this patch gnulib replaces struct timeval
1603         and OpenBSD futimes therefore has a type mismatch.
1604         * doc/posix-headers/sys_time.texi: Mention this.
1605
1606         pthread: check for both pthread_create and pthread_join
1607         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
1608         alter the check so that it tests for both pthread_create and
1609         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
1610         Suggested by Bruno Haible and Richard Yao in
1611         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
1612
1613         parse-datetime: doc tuneup
1614         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
1615         spacing issues.
1616
1617 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
1618
1619         do-release-commit-and-tag: fix the previous commit
1620         * build-aux/do-release-commit-and-tag: Actually the test was right,
1621         but the comment and the error message were misleading.
1622         Fix comment, and improve error message.
1623         Perform check first, so that NEWS is not modified uselessly.
1624
1625         do-release-commit-and-tag: fix typo
1626         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
1627         _not_ start with a stub.
1628
1629 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1630
1631         pthread: check for pthread_create, not pthread_join
1632         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
1633         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
1634         pthread_join in libc.  I hope this removes the need for all the
1635         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
1636         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
1637
1638 2012-07-04  Jim Meyering  <meyering@redhat.com>
1639
1640         parse-datetime: fix failure to diagnose invalid input
1641         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
1642         rather than diagnosing the invalid input.  Now it reports this:
1643         date: invalid date '\260'
1644         * lib/parse-datetime.y (to_uchar): Define.
1645         (yylex): Don't sign-extend "other" bytes.
1646         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
1647         Thanks to Bruno Haible for the patch to this file.
1648         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
1649         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
1650
1651 2012-07-03  Jim Meyering  <meyering@redhat.com>
1652
1653         bootstrap: do not require now-removed build-aux/missing
1654         Now that build-aux/missing is, er, missing, bootstrap would
1655         silently fail.
1656         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
1657         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
1658         no longer part of gnulib.
1659         Diagnose the failure.
1660
1661 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1662
1663         alloca: add support for HP NonStop TNS/E native
1664         * lib/alloca.in.h (alloca): Support the new host.
1665         From a suggestion by Joachim Schmitz in
1666         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
1667
1668 2012-07-02  Pádraig Brady  <P@draigBrady.com>
1669
1670         fsusage: remove code not needed on non GNU/Linux systems.
1671
1672         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1673         Don't include headers no longer needed in this case.
1674         * lib/fsusage.c [STAT_STATVFS &&
1675         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
1676         STAT_STATFS2_FRSIZE to exclude code not used in this case.
1677
1678 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1679
1680         fsusage: include files needed for glibc 2.6 fallback
1681         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1682         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
1683         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
1684         Problem reported by Ludovic Courtès in
1685         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
1686
1687         fsusage: avoid needless check on GNU/Linux
1688         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
1689         on GNU/Linux systems, since it can't possibly work.
1690
1691 2012-07-01  Bruno Haible  <bruno@clisp.org>
1692
1693         log: Fix an autoconf >= 2.64 warning.
1694         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
1695         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1696
1697 2012-06-28  Bruno Haible  <bruno@clisp.org>
1698
1699         log10f: Fix possible configuration problem.
1700         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
1701         $LOGF_LIBM.
1702         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1703
1704 2012-06-28  Bruno Haible  <bruno@clisp.org>
1705
1706         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
1707         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
1708         not gl_cv_func_unlink_works.
1709         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1710
1711 2012-06-27  Eric Blake  <eblake@redhat.com>
1712
1713         config: drop scripts that automake says are not independent
1714         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
1715         * build-aux/elisp-comp: Delete.
1716         * build-aux/missing: Likewise.
1717         * build-aux/ylwrap: Likewise.
1718         * modules/elisp-comp: Likewise.
1719         * MODULES.html.sh: Drop mention of elisp-comp.
1720         * NEWS: Mention this.
1721
1722 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
1723
1724         root-uid: new module
1725         This is for portability to Tandem's NonStop Kernel.
1726         * lib/root-uid.h, modules/root-uid: New files.
1727         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
1728         * lib/write-any-file.c, tests/test-sethostname2.c:
1729         Include "root-uid.h".
1730         * lib/euidaccess.c (euidaccess):
1731         * lib/pt_chown.c (main):
1732         * lib/unlinkdir.c (cannot_unlink_dir):
1733         * lib/write-any-file.c (can_write_any_file):
1734         * m4/mknod.m4 (gl_FUNC_MKNOD):
1735         * tests/test-sethostname2.c (geteuid, main):
1736         Don't assume ROOT_UID == 0.
1737         * modules/euidaccess (Depends-on):
1738         * modules/pt_chown (Depends-on):
1739         * modules/sethostname-tests (Depends-on):
1740         * modules/unlinkdir (Depends-on):
1741         * modules/write-any-file (Depends-on):
1742         Add root-uid.
1743
1744         regex: use locale-independent comparison for codeset name
1745         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
1746         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
1747         for codeset name.
1748         * lib/regex_internal.h: Do not include <strings.h>, since we
1749         no longer use strcasecmp.
1750         * modules/regex (Depends-on): Remove strcase.
1751
1752 2012-06-23  Bruno Haible  <bruno@clisp.org>
1753
1754         getopt-posix: No longer guarantee that option processing is resettable.
1755         * doc/posix-functions/getopt.texi: Drop description of problem with
1756         internal state. Fix info about mingw and msvc9.
1757         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
1758         option processing by getopt(). Run three test programs instead of one.
1759         Simplify cross-compilation guess.
1760         * NEWS: Mention the change.
1761         Reported by Rich Felker <dalias@aerifal.cx>.
1762
1763 2012-06-26  Bruno Haible  <bruno@clisp.org>
1764
1765         argp, regex: Ensure strcasecmp gets declared.
1766         * lib/argp-help.c: Include <strings.h>.
1767         * lib/regex_internal.h: Likewise.
1768         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
1769
1770 2012-06-24  Bruno Haible  <bruno@clisp.org>
1771
1772         ptsname_r: Make it consistent with ptsname on AIX.
1773         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
1774         implementation as for OSF/1.
1775         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
1776         a pty master.
1777
1778         ptsname_r: Make it consistent with ptsname on OSF/1.
1779         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1780         OSF/1.
1781
1782 2012-06-24  Bruno Haible  <bruno@clisp.org>
1783
1784         ttyname_r: Fix result on OSF/1, Solaris.
1785         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
1786
1787 2012-06-24  Bruno Haible  <bruno@clisp.org>
1788
1789         ptsname_r: Add support for Solaris.
1790         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1791         Solaris.
1792
1793         ptsname_r: Fix test failure on native Windows.
1794         * modules/ptsname_r (Depends-on): Add isatty.
1795
1796         ptsname_r: Fix test failures on IRIX, Solaris.
1797         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
1798         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
1799         accordingly.
1800         * lib/ptsname_r.c: Include <fcntl.h>.
1801         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
1802         set errno if fd is invalid.
1803         * tests/test-isatty.c (main): Update comments.
1804
1805 2012-06-24  Bruno Haible  <bruno@clisp.org>
1806
1807         ptsname test: Extend test.
1808         * tests/test-ptsname.c: Include <errno.h>.
1809         (main): Test behaviour with invalid file descriptor.
1810
1811 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1812
1813         time: fix obsolete comment
1814         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
1815         reference to HAVE_STRUCT_TIMESPEC in comment.
1816
1817 2012-06-23  Bruno Haible  <bruno@clisp.org>
1818
1819         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
1820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
1821         does not handle abbreviated long options with equivalent
1822         disambiguations, set gl_replace_getopt to yes.
1823         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
1824
1825 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
1826
1827         time_r: fix typo that always overrode localtime_r decl
1828         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
1829         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
1830         not in a standard include.
1831
1832 2012-06-22  Bruno Haible  <bruno@clisp.org>
1833
1834         Write "Mac OS X" instead of "MacOS X".
1835         * README: Write "Mac OS X" instead of "MacOS X".
1836         * build-aux/bootstrap: Likewise.
1837         * build-aux/install-reloc: Likewise.
1838         * lib/acl-internal.h: Likewise.
1839         * lib/acl_entries.c: Likewise.
1840         * lib/argp-ba.c: Likewise.
1841         * lib/argp-pv.c: Likewise.
1842         * lib/config.charset: Likewise.
1843         * lib/copy-acl.c: Likewise.
1844         * lib/csharpexec.c: Likewise.
1845         * lib/euidaccess.c: Likewise.
1846         * lib/fbufmode.c: Likewise.
1847         * lib/fflush.c: Likewise.
1848         * lib/file-has-acl.c: Likewise.
1849         * lib/filemode.h: Likewise.
1850         * lib/fpurge.c: Likewise.
1851         * lib/freadable.c: Likewise.
1852         * lib/freadahead.c: Likewise.
1853         * lib/freading.c: Likewise.
1854         * lib/freadptr.c: Likewise.
1855         * lib/freadseek.c: Likewise.
1856         * lib/fseeko.c: Likewise.
1857         * lib/fseterr.c: Likewise.
1858         * lib/fsusage.c: Likewise.
1859         * lib/fwritable.c: Likewise.
1860         * lib/fwriting.c: Likewise.
1861         * lib/get-rusage-as.c: Likewise.
1862         * lib/get-rusage-data.c: Likewise.
1863         * lib/getdomainname.c: Likewise.
1864         * lib/idpriv-drop.c: Likewise.
1865         * lib/idpriv-droptemp.c: Likewise.
1866         * lib/localcharset.c: Likewise.
1867         * lib/locale.in.h: Likewise.
1868         * lib/localename.c: Likewise.
1869         * lib/mbsrtowcs-state.c: Likewise.
1870         * lib/nproc.c: Likewise.
1871         * lib/passfd.c: Likewise.
1872         * lib/posix_openpt.c: Likewise.
1873         * lib/printf-parse.c: Likewise.
1874         * lib/progreloc.c: Likewise.
1875         * lib/safe-read.h: Likewise.
1876         * lib/safe-write.h: Likewise.
1877         * lib/sched.in.h: Likewise.
1878         * lib/set-mode-acl.c: Likewise.
1879         * lib/signal.in.h: Likewise.
1880         * lib/stdint.in.h: Likewise.
1881         * lib/stdio-impl.h: Likewise.
1882         * lib/stdlib.in.h: Likewise.
1883         * lib/strtod.c: Likewise.
1884         * lib/sys_select.in.h: Likewise.
1885         * lib/tcgetsid.c: Likewise.
1886         * lib/unistd.in.h: Likewise.
1887         * lib/unlockpt.c: Likewise.
1888         * lib/vasnprintf.c: Likewise.
1889         * lib/vma-iter.c: Likewise.
1890         * lib/wcsrtombs-state.c: Likewise.
1891         * m4/acl.m4: Likewise.
1892         * m4/acosl.m4: Likewise.
1893         * m4/asinl.m4: Likewise.
1894         * m4/atanl.m4: Likewise.
1895         * m4/c-stack.m4: Likewise.
1896         * m4/cosl.m4: Likewise.
1897         * m4/expl.m4: Likewise.
1898         * m4/extensions.m4: Likewise.
1899         * m4/fdatasync.m4: Likewise.
1900         * m4/fmal.m4: Likewise.
1901         * m4/frexp.m4: Likewise.
1902         * m4/frexpf.m4: Likewise.
1903         * m4/frexpl.m4: Likewise.
1904         * m4/fsusage.m4: Likewise.
1905         * m4/getdomainname.m4: Likewise.
1906         * m4/getloadavg.m4: Likewise.
1907         * m4/getopt.m4: Likewise.
1908         * m4/gettext.m4: Likewise.
1909         * m4/gnulib-common.m4: Likewise.
1910         * m4/intdiv0.m4: Likewise.
1911         * m4/intlmacosx.m4: Likewise.
1912         * m4/largefile.m4: Likewise.
1913         * m4/ldexpl.m4: Likewise.
1914         * m4/link-follow.m4: Likewise.
1915         * m4/locale-ar.m4: Likewise.
1916         * m4/locale-fr.m4: Likewise.
1917         * m4/locale-ja.m4: Likewise.
1918         * m4/locale-tr.m4: Likewise.
1919         * m4/locale-zh.m4: Likewise.
1920         * m4/locale_h.m4: Likewise.
1921         * m4/lock.m4: Likewise.
1922         * m4/logl.m4: Likewise.
1923         * m4/mathfunc.m4: Likewise.
1924         * m4/minus-zero.m4: Likewise.
1925         * m4/mktime.m4: Likewise.
1926         * m4/mmap-anon.m4: Likewise.
1927         * m4/multiarch.m4: Likewise.
1928         * m4/nanosleep.m4: Likewise.
1929         * m4/nocrash.m4: Likewise.
1930         * m4/poll.m4: Likewise.
1931         * m4/printf-frexpl.m4: Likewise.
1932         * m4/printf.m4: Likewise.
1933         * m4/signbit.m4: Likewise.
1934         * m4/sinl.m4: Likewise.
1935         * m4/sqrtl.m4: Likewise.
1936         * m4/strerror_r.m4: Likewise.
1937         * m4/tanl.m4: Likewise.
1938         * m4/threadlib.m4: Likewise.
1939         * m4/ttyname_r.m4: Likewise.
1940         * m4/unlink.m4: Likewise.
1941         * m4/visibility.m4: Likewise.
1942         * m4/wcwidth.m4: Likewise.
1943         * tests/minus-zero.h: Likewise.
1944         * tests/test-alloca-opt.c: Likewise.
1945         * tests/test-copy-acl.sh: Likewise.
1946         * tests/test-copy-file.sh: Likewise.
1947         * tests/test-fdatasync.c: Likewise.
1948         * tests/test-file-has-acl.sh: Likewise.
1949         * tests/test-flock.c: Likewise.
1950         * tests/test-fsync.c: Likewise.
1951         * tests/test-localename.c: Likewise.
1952         * tests/test-malloca.c: Likewise.
1953         * tests/test-nonblocking-pipe.h: Likewise.
1954         * tests/test-nonblocking-socket.h: Likewise.
1955         * tests/test-openpty.c: Likewise.
1956         * tests/test-posix_openpt.c: Likewise.
1957         * tests/test-ptsname.c: Likewise.
1958         * tests/test-ptsname_r.c: Likewise.
1959         * tests/test-sameacls.c: Likewise.
1960         * tests/test-select.h: Likewise.
1961         * tests/test-set-mode-acl.sh: Likewise.
1962         * tests/test-snprintf-posix.h: Likewise.
1963         * tests/test-sprintf-posix.h: Likewise.
1964         * tests/test-strtod.c: Likewise.
1965         * tests/test-time.c: Likewise.
1966         * tests/test-vasnprintf-posix.c: Likewise.
1967         * tests/test-vasprintf-posix.c: Likewise.
1968         * doc/acl-resources.txt: Likewise.
1969         * doc/**/*.texi: Likewise.
1970         Reported by Max Horn <max@quendi.de>.
1971
1972 2012-06-22  Bruno Haible  <bruno@clisp.org>
1973
1974         grantpt: Relax requirement regarding invalid file descriptors.
1975         * lib/grantpt.c: Don't include <fcntl.h>.
1976         (grantpt): Don't verify the validity of the file descriptor.
1977         * modules/grantpt (Depends-on): Remove fcntl-h.
1978         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
1979         file descriptors.
1980         * doc/posix-functions/grantpt.texi: Document more platforms on which
1981         grantpt succeeds for invalid file descriptors.
1982         Reported by Rich Felker <dalias@aerifal.cx>.
1983
1984 2012-06-22  Bruno Haible  <bruno@clisp.org>
1985
1986         fbufmode test: Don't test unportable behaviour.
1987         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
1988         (main): Invoke it three times.
1989         Reported by Szabolcs Nagy <nsz@port70.net>
1990         and Rich Felker <dalias@aerifal.cx>.
1991
1992 2012-06-21  Bruno Haible  <bruno@clisp.org>
1993
1994         gnulib-tool: Refactor inctests variable.
1995         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
1996         (func_modules_transitive_closure,
1997         func_modules_transitive_closure_separately,
1998         func_import, func_create_testdir): Update.
1999
2000         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2001         * gnulib-tool: Accept option --without-tests.
2002         (func_usage): Document --without-tests option. Rearrange.
2003         (inctests): Normalize according to the mode.
2004         * NEWS: Mention the change.
2005         Suggested by Simon Josefsson.
2006
2007 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2008
2009         parse-duration test: Avoid spurious output.
2010         * tests/test-parse-duration.sh: Reindent with leading tabs.
2011
2012 2012-06-21  Jim Meyering  <meyering@redhat.com>
2013
2014         maint: disable the strncpy prohibition
2015         * cfg.mk: Do not prohibit strncpy here.
2016
2017 2012-06-21  Bruno Haible  <bruno@clisp.org>
2018
2019         nonblocking: Avoid compilation error on mingw64.
2020         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2021         fscanf.
2022         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2023         * modules/vfscanf (configure.ac): Likewise.
2024         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2025         definition only if stdio.h has prepared it.
2026         Reported by Daniel P. Berrange <berrange@redhat.com>.
2027
2028 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2029
2030         gnulib-tool: Use readlink if it is available.
2031         * gnulib-tool (func_readlink): Choose function more appropriately.
2032
2033 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2034
2035         posixtm-tests: port to buggy compiler
2036         Problem reported by Simon Josefsson in
2037         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2038         * modules/posixtm-tests (Depends-on): Add stdint.
2039         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2040         Now of type int_least64_t, not int64_t, both because that's
2041         what INT64_C returns and because int_least64_t works even
2042         on 72-bit hosts.
2043         (T): Use INT64_C on constants outside the traditional int range,
2044         to work around compiler bug noted by Simon.
2045
2046         mktime: fix integer overflow in 'configure'-time test
2047         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2048         after integer overflow.  Problem reported by Rich Felker in
2049         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2050         Also, don't look for further instances of a bug if we've already
2051         found one instance; this helps 'configure' run faster.
2052
2053 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2054
2055         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2056         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2057         GetVersionEx correctly.
2058         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2059
2060 2012-06-20  Bruno Haible  <bruno@clisp.org>
2061
2062         fdopen: Allow implementations that don't reject invalid fd arguments.
2063         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2064         succeeds.
2065         Reported by Rich Felker <dalias@aerifal.cx>.
2066
2067 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2068
2069         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2070         bring in LIBINTL.
2071
2072 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2073
2074         init.sh: do not rely on autoupated PWD
2075         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2076         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2077         Although Nelson's bug was not necessarily fixed by this patch,
2078         it seems wise to make the change for safety.
2079         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2080         automagically after 'cd'; this is not reliable on older shells.
2081         (setup_): Fail if we cannot cd to temporary directory.
2082
2083 2012-06-19  Bruno Haible  <bruno@clisp.org>
2084
2085         stat, fstat: Avoid warnings on mingw64.
2086         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2087         redefining.
2088         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2089         Reported by Daniel P. Berrange <berrange@redhat.com>.
2090
2091 2012-06-19  Bruno Haible  <bruno@clisp.org>
2092
2093         stdioext: Add support for musl libc.
2094
2095         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2096         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2097
2098         * m4/fseterr.m4: New file.
2099         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2100         function exists.
2101         * modules/fseterr (Files): Add m4/fseterr.m4.
2102         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2103         __fseterr does not exist.
2104         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2105
2106         * lib/freadable.h: Update comment.
2107
2108         * lib/fwritable.h: Update comment.
2109
2110         * lib/freading.h: Update comment.
2111
2112         * lib/fwriting.h: Update comment.
2113
2114         * m4/freadahead.m4: New file.
2115         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2116         that function exists.
2117         * modules/freadahead (Files): Add m4/freadahead.m4.
2118         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2119         __freadahead does not exist.
2120         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2121
2122         * m4/freadptr.m4: New file.
2123         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2124         function exists.
2125         * modules/freadptr (Files): Add m4/freadptr.m4.
2126         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2127         __freadptr does not exist.
2128         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2129
2130         * m4/freadseek.m4: New file.
2131         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2132         exists.
2133         * modules/freadseek (Files): Add m4/freadseek.m4.
2134         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2135
2136         * lib/fpurge.c (fpurge): Update comment.
2137
2138         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2139
2140 2012-06-19  Bruno Haible  <bruno@clisp.org>
2141
2142         *printf-posix: Put more info into config.log.
2143         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2144         exit code into config.log.
2145
2146 2012-06-19  Bruno Haible  <bruno@clisp.org>
2147
2148         getopt-gnu: Fix exit code overflow in autoconf test.
2149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2150         to keep them below < 128.
2151
2152 2012-06-17  Jim Meyering  <meyering@redhat.com>
2153
2154         maint.mk: fix typo in code to derive GPG key at release time
2155         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2156
2157 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2158
2159         regex: avoid warning when pointers are not long
2160         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2161         and uintptr_t, not long, for portability to hosts where pointers and
2162         long have different sizes.  Issue noted by Daniel P. Berrange in
2163         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2164         and fix suggested by Bruno Haible in
2165         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2166
2167 2012-06-17  Bruno Haible  <bruno@clisp.org>
2168
2169         dummy: Relicense into the public domain.
2170         * modules/dummy (License): Set to "public domain".
2171         Suggested by Reuben Thomas.
2172
2173 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2174
2175         announce-gen: VPATH issues
2176         * build-aux/announce-gen (--srcdir): New option, used to trim the
2177         $srcdir part of the path from $builddir to NEWS.
2178         * top/maint.mk (announcement): Adjust.
2179
2180 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2181
2182         gnu-web-doc-update: VPATH builds
2183         * build-aux/gnu-web-doc-update (--builddir): New option.
2184         Revamp the handling of options.
2185         Prefer $(...) to `...`.
2186         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2187         the template, and it is GNU mktemp specific.
2188         Prefer set -e to long series of &&.
2189         Restore the initial git branch, not "master".
2190         Properly initialize submodules (don't rely only on bootstrap).
2191         Do not reconfigure blindly, use config.status.
2192         * top/README-release: Update instructions for gnu-web-doc-update.
2193
2194 2012-06-11  Jim Meyering  <meyering@redhat.com>
2195
2196         maint.mk: revert most of the previous change re "all these"
2197         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2198         For rationale, see the discussion at
2199         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2200
2201 2012-06-10  Karl Berry  <karl@gnu.org>
2202
2203         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2204
2205         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2206
2207 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2208
2209         parse-duration: Relicense under LGPLv2+.
2210         * modules/parse-duration (License): Change to LGPLv2+.
2211
2212 2012-06-10  Jim Meyering  <meyering@redhat.com>
2213
2214         maint.mk: prohibit common grammar error: "all these"
2215         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2216         the list of prohibited word sequences.  It should be "all of these".
2217         * lib/tempname.c (__gen_tempname): Fix one of them.
2218
2219 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2220
2221         do-release-commit-and-tag: support VPATH builds
2222         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2223         (noteworthy): Defined earlier to factor its value.
2224         (noteworthy_stub): New.
2225         Use it to factor.
2226         (help_version): Split into...
2227         (help, version): these.
2228         Adjust the option processing part.
2229         Support "--option=value" in addition to "--option value".
2230         (builddir): New.
2231         (--builddir): New option.
2232         * top/README-release: Document this.
2233         Reword slightly so that the reader cannot understand that he
2234         has to do these steps before calling do-release-commit-and-tag.
2235
2236 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2237
2238         readme-release: also require announce-gen and maintainer-makefile
2239         * modules/readme-release (Depends-on): here.
2240         * modules/announce-gen, modules/do-release-commit-and-tag,
2241         modules/gnu-web-doc-update, modules/maintainer-makefile
2242         (Description): Point to readme-release.
2243
2244 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2245
2246         maint.mk: fix VPATH issues.
2247         * top/maint.mk (news-check): GNU Make understand $< very well.
2248         (release-prep): NEWS is in $(srcdir).
2249
2250 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2251
2252         readme-release: require the promoted modules.
2253         * modules/readme-release (Depends-on): Add
2254         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2255         in this text.
2256
2257 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2258             Bruno Haible  <bruno@clisp.org>
2259
2260         error, strerror-override: Support mingw64 from Fedora 17.
2261         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2262         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2263         EINPROGRESS.
2264         * lib/strerror-override.h (strerror_override): Test it.
2265         * lib/strerror-override.c (strerror_override): Likewise.
2266         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2267
2268 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2269             Bruno Haible  <bruno@clisp.org>
2270
2271         error, strerror-override: Support mingw64 from Fedora 17.
2272         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2273         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2274         * lib/strerror-override.h (strerror_override): Test it.
2275         * lib/strerror-override.c (strerror_override): Likewise.
2276
2277 2012-06-03  Bruno Haible  <bruno@clisp.org>
2278
2279         error, strerror-override: Support new errno values from POSIX:2008.
2280         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2281         ENOTRECOVERABLE.
2282         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2283         platforms.
2284         * lib/strerror-override.c (strerror_override): Conditionalize the
2285         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2286         * lib/strerror-override.h (strerror_override): Declare also if
2287         GNULIB_defined_EOWNERDEAD is defined.
2288         * tests/test-errno.c (e130, e131): New variables.
2289         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2290         ENOTRECOVERABLE.
2291         Reported by Paolo Bonzini.
2292
2293 2012-05-31  Jim Meyering  <meyering@redhat.com>
2294
2295         savewd: add missing dependency on sys_wait module
2296         * modules/savewd (Depends-on): Add sys_wait, needed at least
2297         for MSVC.  Report and suggested change by Michael Goffioul.
2298
2299 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2300
2301         system-quote-tests: port to CentOS 5
2302         Problem reported by Tom G. Christensen in
2303         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2304         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2305
2306 2012-05-29  Jim Meyering  <meyering@redhat.com>
2307
2308         maint: fix typos in comments and ChangeLog
2309         Culprits identified and fixed mostly automatically using these commands:
2310         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2311         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2312         using http://github.com/lyda/misspell-check
2313         * ChangeLog: Fix typos.
2314         * doc/solaris-versions: Likewise.
2315         * lib/regexec.c (re_search_stub): Likewise.
2316         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2317
2318 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2319
2320         manywarnings: remove duplicate -Wmultichar entry
2321         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2322         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2323         so keep the entry marked as documented.
2324
2325 2012-05-27  Karl Berry  <karl@gnu.org>
2326
2327         * config/srclist.txt (mktime.c): remove last libc sync,
2328         perhaps just temporarily.
2329
2330 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2331
2332         regex: don't assume uint64_t or uint32_t
2333         * lib/regcomp.c (init_word_char): Don't assume that the types
2334         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2335         them, and on some 32-bit compilers there is no uint64_t.
2336         Problem reported by Gianluigi Tiesi in
2337         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2338
2339 2012-05-25  Jim Meyering  <meyering@redhat.com>
2340
2341         maint.mk: add strncpy-prohibiting syntax-check rule
2342         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2343
2344 2012-05-24  Jim Meyering  <meyering@redhat.com>
2345
2346         maint.mk: compute $(gpg_key_ID) more portably
2347         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2348         That use of sed is not portable to some fringe systems.
2349         Reported by Paul Eggert in
2350         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2351
2352 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2353
2354         mktime: sync from glibc
2355         * config/srclist.txt: Uncomment mktime.c.
2356         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2357         First, indent with tabs, since glibc uses tabs and doesn't want to
2358         change and we'd rather be identical to glibc.  Also, two small
2359         coding changes:
2360         (isdst_differ): Use &&, not &, as && is the usual style.
2361         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2362         for clarity.
2363
2364 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2365
2366         announce-gen: du -h is more portable than du --human
2367         * build-aux/announce-gen (sizes): Invoke du with -h instead
2368         of --human.  Accept leading white space in its output.
2369
2370 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2371
2372         announce-gen: Improve diagnostics.
2373         * build-aux/announce-gen: When parsing command line options,
2374         prefer "announce-gen: option --release-type requires an argument"
2375         to "Option release-type requires an argument".
2376
2377 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2378
2379         maint.mk: gpg_key_ID: use sed more portably
2380         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2381         the closing brace.
2382         (refresh-po): Fuse two sed invocations into one.
2383
2384 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2385
2386         gitlog-to-changelog: support the log message format used in Bison.
2387         * build-aux/gitlog-to-changelog: Support --strip-tab and
2388         --strip-cherry-picked.
2389
2390 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2391
2392         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2393         the rest of the current time slice to another thread in the current
2394         process. So if the thread that feeds the file decscriptor we're
2395         polling is not in the current process, we get busy-waiting.
2396         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2397         Patch from Theodore Leblond.
2398         * lib/select.c: Split polling out of the loop that sets the output
2399         fd_sets.  Check for zero result and loop if the wait timeout is
2400         infinite.
2401
2402 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2403
2404         select: Fix build error on IRIX 6.5.
2405         * lib/select.c: Include stddef.h for NULL.
2406
2407 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2408
2409         gc: fix libgcrypt detection on older machines.
2410         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2411         copyright years because the file has been distributed every year
2412         since it was created.
2413
2414 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2415
2416         crypto: fix bug in large buffer handling
2417         Problem reported by Serge Belyshev for glibc in
2418         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2419         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2420         * lib/md4.c (md4_process_block):
2421         * lib/md5.c (md5_process_block):
2422         * lib/sha1.c (sha1_process_block):
2423         * lib/sha256.c (sha256_process_block):
2424         Don't assume the buffer length is less than 2**32.
2425         * lib/sha512.c (sha512_process_block): Likewise.
2426         Here, the bug is present only in the rare case where the host does
2427         not support uint64_t or where size_t is wider than 64 bits.
2428         Use u64size to work around the problems.
2429         * lib/u64.h (u64size): New macro.
2430
2431 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2432
2433         fsusage: fix block size returned on older Linux 2.6
2434
2435         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2436         which is available since Linux 2.6.
2437         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2438         when the member is available so it can be used as a fallback.
2439         * doc/posix-functions/statvfs.texi: Mention the hang issue
2440         on Linux < 2.6.36.
2441
2442 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2443
2444         bootstrap: suppress stderr chatter
2445         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2446         Omit unnecessary chatter to stderr.  The main program chatter
2447         was there only inadvertantly.
2448
2449         bootstrap: .gitignore files created by autopoint, libtool
2450         I ran into this problem when bootstrapping the latest diffutils.
2451         After './bootstrap', 'git status' reported lots of untracked files
2452         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2453         autopoint and do not need to be version-controlled.
2454         * build-aux/bootstrap: Put into .gitignore the files that
2455         autopoint and libtool create, by keeping track of files that exist
2456         after but not before these programs are run.
2457         (version_controlled_file): Move up.  2nd arg is now full file
2458         name, not base name; this is more convenient.  Put CVS at the end,
2459         as it's now somewhat deprecated.
2460
2461 2012-05-14  Jim Meyering  <meyering@redhat.com>
2462
2463         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2464         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2465         definition.  Reported by Bruno Haible.
2466
2467 2012-05-13  Bruno Haible  <bruno@clisp.org>
2468             Paul Eggert  <eggert@cs.ucla.edu>
2469
2470         binary-io: Define set_binary_mode function.
2471         * lib/binary-io.h (set_binary_mode): New function.
2472         (SET_BINARY): Define in terms of set_binary_mode.
2473         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2474         * tests/test-binary-io.c (main): Accept an argument, and test either
2475         set_binary_mode or SET_BINARY depending on the argument.
2476         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2477         argument. Clean up also t-bin-out0.tmp.
2478
2479 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2480
2481         bootstrap: take advantage of POSIX shell features
2482
2483         The 'bootstrap' script offered by Gnulib script already uses POSIX
2484         shell features (like $((...)) arithmetic expansions) that are not
2485         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2486         means that bootstrap must already be run using a proper POSIX shell,
2487         which will thus provide more features, like ${var#pattern} parameter
2488         expansion or inversion of a command exit status with '!'.  We can
2489         thus use these features to improve the clarity and the performances
2490         of the bootstrap script.
2491
2492         Suggested by Eric Blake.
2493
2494         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2495         of sed/expr plus command substitutions, to save some forks.  While
2496         we are at it, prefer the POSIX $(...) form of command substitution,
2497         rather than the legacy form `...` (since the former is visually
2498         clearer and interacts better with quoting), and prefer the idiom:
2499           "if ! CMD; then ACTION ..."
2500         over the idiom:
2501           "if CMD; then :; else ACTION ..."
2502         which was required by legacy Bourne shells not supporting '!'.
2503
2504 2012-05-12  Bruno Haible  <bruno@clisp.org>
2505
2506         system-quote: Add more comments.
2507         * lib/system-quote.h: Add more comments about wilcards and limitations.
2508         Suggested by Eli Zaretskii <eliz@gnu.org>.
2509
2510         sh-quote, system-quote: Add comments about wildcards.
2511         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2512         * lib/system-quote.h: Likewise.
2513         Reported by Eli Zaretskii <eliz@gnu.org>.
2514
2515 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2516
2517         fsusage: check for GNU/Linux statvfs problem dynamically
2518         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2519         Define STAT_STATFS2_BSIZE too, since in this case the code now
2520         checks dynamically whether statvfs is reliable, falling back on
2521         Linux-style statfs otherwise.
2522         (statvfs_works): New function, for dynamically testing statvfs.
2523         (get_fs_usage) [STAT_STATVFS]: Use it.
2524         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2525         statvfs on GNU/Linux hosts, since it's now done dynamically.
2526
2527 2012-05-10  Bruno Haible  <bruno@clisp.org>
2528
2529         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2530         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2531         '?' character.
2532         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2533         * tests/test-system-quote-main.c (check_all): Check also strings like
2534         "??????????".
2535         Reported by Eli Zaretskii <eliz@gnu.org>.
2536
2537 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2538
2539         _Noreturn: port config.h to gcc -Wundef
2540         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2541         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2542         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2543
2544 2012-05-10  Bruno Haible  <bruno@clisp.org>
2545
2546         system-quote: Refactor.
2547         * lib/system-quote.h (system_quote_copy): Fix comment.
2548         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2549         New functions, extracted from system_quote_copy.
2550         (system_quote_length, system_quote_copy): Use these functions.
2551         Reported by Paul Eggert.
2552
2553 2012-05-08  Bruno Haible  <bruno@clisp.org>
2554
2555         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2556         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2557
2558 2012-05-08  Bruno Haible  <bruno@clisp.org>
2559
2560         Tests for module 'system-quote'.
2561         * modules/system-quote-tests: New file.
2562         * tests/test-system-quote.sh: New file.
2563         * tests/test-system-quote-main.c: New file.
2564         * tests/test-system-quote-child.c: New file.
2565
2566         New module 'system-quote'.
2567         * lib/system-quote.h: New file.
2568         * lib/system-quote.c: New file.
2569         * modules/system-quote: New file.
2570
2571 2012-05-08  Bruno Haible  <bruno@clisp.org>
2572
2573         sh-quote: Make C++ safe and allow multiple inclusion.
2574         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2575         declarations in extern "C".
2576
2577 2012-05-08  Bruno Haible  <bruno@clisp.org>
2578
2579         sh-quote tests: Make tests stricter.
2580         * tests/test-sh-quote.c (check_one): Check the return value of
2581         shell_quote_copy.
2582         (main): Check a string with a CR character. Check a string that
2583         contains UCHAR_MAX.
2584
2585 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2586
2587         warnings.m4: provide a means to specify the program to compile.
2588         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2589         (gl_WARN_ADD): here.
2590         Use gl_AS_VAR_APPEND.
2591         Support an argument to specify the program to compile.
2592         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2593         AC_SUBST the WARN_CFLAGS when they are used.
2594         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2595         leave this to gl_WARN_ADD.
2596
2597 2012-05-08  Eric Blake  <eblake@redhat.com>
2598
2599         doc: recommendations on gettext version
2600         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2601         choice between versions.
2602         * DEPENDENCIES (gettext): Cover both approaches.
2603
2604 2012-05-08  Jim Meyering  <meyering@redhat.com>
2605
2606         init.sh: explain why EXEEXT support uses aliases rather than functions
2607         * tests/init.sh: Add a comment.
2608
2609         init.sh: don't let bash aliases interfere with tests
2610         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
2611         is bash.  This avoids problems for those who alias standard commands to
2612         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
2613         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
2614
2615 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2616
2617         stdint: be more consistent with glibc, SunOS libc
2618         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
2619         (gl_int_fast16_t, gl_uint_fast16_t)
2620         (gl_int_fast32_t, gl_uint_fast32_t)
2621         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
2622         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
2623         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
2624         Be consistent with glibc by default, and with SunOS 5.10 and later
2625         if __sun is defined.  This lessens the likelihood of clashes if
2626         code compiled for older hosts is combined with code compiled for
2627         newer ones.  Problem reported by Niels Möller in
2628         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
2629
2630 2012-05-07  Eric Blake  <eblake@redhat.com>
2631
2632         isatty: relax license to LGPLv2+
2633         * modules/isatty (License): Relax license.
2634
2635 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2636
2637         stat-size: comment fix
2638         * lib/stat-size.h: Remove obsolete comment about indenting.
2639
2640 2012-05-06  Bruno Haible  <bruno@clisp.org>
2641
2642         Tests for module 'sh-quote'.
2643         * modules/sh-quote-tests: New file.
2644         * tests/test-sh-quote.c: New file.
2645
2646 2012-05-06  Bruno Haible  <bruno@clisp.org>
2647
2648         sh-quote: Improve shell_quote_argv's signature.
2649         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
2650         * lib/sh-quote.c (shell_quote_argv): Likewise.
2651
2652 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2653
2654         stdint: document issues with int_fast8_t etc.
2655         * doc/posix-headers/stdint.texi (stdint.h): Say that other
2656         stdint.h substitutes may define these types differently.  See
2657         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
2658
2659 2012-05-05  Bruno Haible  <bruno@clisp.org>
2660
2661         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
2662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
2663         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
2664         or 'guessing no (mishandles large arguments)'.
2665
2666 2012-05-05  Bruno Haible  <bruno@clisp.org>
2667
2668         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
2669         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
2670         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2671         set gl_cv_func_link_follows_symlink to "guessing no".
2672
2673 2012-05-05  Bruno Haible  <bruno@clisp.org>
2674
2675         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
2676         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
2677         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
2678         "guessing no".
2679         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
2680
2681 2012-05-05  Bruno Haible  <bruno@clisp.org>
2682
2683         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
2684         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
2685         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2686         set gl_cv_struct_dirent_d_ino to "guessing yes".
2687
2688 2012-05-05  Bruno Haible  <bruno@clisp.org>
2689
2690         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
2691         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
2692         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
2693         "guessing yes".
2694
2695 2012-05-05  Bruno Haible  <bruno@clisp.org>
2696
2697         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
2698         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
2699         compiling to a glibc system, set gl_cv_func_signbit and
2700         gl_cv_func_signbit_gcc to "guessing yes".
2701
2702 2012-05-05  Bruno Haible  <bruno@clisp.org>
2703
2704         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
2705         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
2706         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
2707         to "guessing yes".
2708         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
2709         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
2710
2711 2012-05-05  Bruno Haible  <bruno@clisp.org>
2712
2713         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
2714         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
2715         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
2716         gl_cv_func_realpath_works to "guessing yes".
2717
2718 2012-05-05  Bruno Haible  <bruno@clisp.org>
2719
2720         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
2721         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
2722         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
2723
2724 2012-05-04  Bruno Haible  <bruno@clisp.org>
2725
2726         Tweak last commit.
2727         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
2728         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2729
2730 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2731
2732         unistd_h: make it easier to avoid sys_types_h
2733         This is useful for Emacs, which has its own method of porting to
2734         Windows, and which therefore does not need the sys_types_h module.
2735         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
2736         code moved here from gl_SYS_TYPES_H.
2737         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
2738         using the code directly.
2739         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
2740         gl_SYS_TYPES_H.
2741         * modules/sys_types (Files):
2742         * modules/unistd (Files): Add m4/off_t.m4.
2743
2744 2012-05-03  Bruno Haible  <bruno@clisp.org>
2745
2746         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
2747         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
2748         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
2749         "guessing yes" or "guessing no".
2750         (gl_FUNC_LSTAT): Update.
2751         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
2752         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2753         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
2754
2755 2012-05-03  Bruno Haible  <bruno@clisp.org>
2756
2757         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
2758         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
2759         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
2760         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
2761         cross-compiling, choose the first alternative on glibc systems.
2762         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
2763
2764 2012-05-03  Bruno Haible  <bruno@clisp.org>
2765
2766         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
2767         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
2768         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
2769
2770 2012-05-03  Bruno Haible  <bruno@clisp.org>
2771
2772         chown: Avoid "guessing no" when cross-compiling to glibc systems.
2773         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
2774
2775 2012-05-03  Bruno Haible  <bruno@clisp.org>
2776
2777         Avoid "guessing no" guesses when cross-compiling to glibc systems.
2778         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
2779         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
2780         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
2781         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
2782         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
2783         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
2784         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
2785         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
2786         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
2787         compiling to glibc systems, set gl_cv_func_chown_slash_works,
2788         gl_cv_func_chown_ctime_works to "guessing yes".
2789         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
2790         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
2791         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
2792         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
2793         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
2794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
2795         compiling to glibc systems, set gl_cv_func_open_directory_works to
2796         "guessing yes".
2797         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
2798         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
2799         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
2800         "guessing yes".
2801         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
2802         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
2803         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
2804         compiling to glibc systems, set gl_cv_func_floorf_ieee to
2805         "guessing yes".
2806         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
2807         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
2808         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
2809         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
2810         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
2811         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
2812         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
2813         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
2814         "guessing yes".
2815         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
2816         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
2817         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
2818         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
2819         "guessing yes".
2820         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
2821         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
2822         "guessing yes".
2823         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
2824         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
2825         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
2826         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
2827         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
2828         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
2829         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
2830         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
2831         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
2832         compiling to glibc systems, set gl_cv_func_log10f_ieee to
2833         "guessing yes".
2834         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
2835         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
2836         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
2837         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
2838         "guessing yes".
2839         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
2840         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
2841         "guessing yes".
2842         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
2843         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
2844         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
2845         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
2846         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
2847         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
2848         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
2849         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
2850         compiling to glibc systems, set gl_cv_func_mkfifo_works to
2851         "guessing yes".
2852         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
2853         compiling to glibc systems, set gl_cv_func_mknod_works to
2854         "guessing yes".
2855         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
2856         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
2857         "guessing yes".
2858         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
2859         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
2860         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
2861         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
2862         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
2863         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
2864         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
2865         compiling to glibc systems, set gl_cv_func_svid_putenv to
2866         "guessing yes".
2867         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
2868         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
2869         "guessing yes".
2870         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
2871         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
2872         "guessing yes".
2873         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
2874         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
2875         to "guessing yes".
2876         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
2877         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
2878         to "guessing yes".
2879         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
2880         compiling to glibc systems, set gl_cv_func_rmdir_works to
2881         "guessing yes".
2882         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
2883         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
2884         gl_cv_func_unlink_parent_fails to "guessing yes".
2885         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
2886         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
2887         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
2888         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
2889         gl_cv_func_rename_dest_works to "guessing yes".
2890         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
2891         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
2892         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
2893         compiling to glibc systems, set gl_cv_func_roundf_ieee to
2894         "guessing yes".
2895         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
2896         compiling to glibc systems, set gl_cv_func_roundl_ieee to
2897         "guessing yes".
2898         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
2899         compiling to glibc systems, set gl_cv_func_setenv_works to
2900         "guessing yes".
2901         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
2902         compiling to glibc systems, set gl_cv_func_unsetenv_works to
2903         "guessing yes".
2904         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
2905         compiling to glibc systems, set gl_cv_func_sleep_works to
2906         "guessing yes".
2907         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
2908         compiling to glibc systems, set gl_cv_func_stat_file_slash to
2909         "guessing yes".
2910         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
2911         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
2912         "guessing yes".
2913         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
2914         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
2915         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
2916         compiling to glibc systems, set gl_cv_func_truncf_ieee to
2917         "guessing yes".
2918         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
2919         compiling to glibc systems, set gl_cv_func_truncl_ieee to
2920         "guessing yes".
2921         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
2922         compiling to glibc systems, set gl_cv_func_usleep_works to
2923         "guessing yes".
2924         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
2925         compiling to glibc systems, set gl_cv_func_futimesat_works to
2926         "guessing yes".
2927
2928 2012-05-03  Bruno Haible  <bruno@clisp.org>
2929
2930         Say "guessing yes" or "guessing no" when cross-compiling.
2931         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
2932         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
2933         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
2934         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
2935         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
2936         am_cv_func_working_getline to "guessing yes" or "guessing no".
2937         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
2938         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
2939         (gl_FUNC_MEMMEM): When cross-compiling, set
2940         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
2941         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
2942         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
2943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
2944         set gl_cv_func_strcasestr_works_always to "guessing yes" or
2945         "guessing no".
2946         (gl_FUNC_STRCASESTR): When cross-compiling, set
2947         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
2948         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
2949         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
2950         (gl_FUNC_STRSTR): When cross-compiling, set
2951         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
2952         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
2953         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
2954         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
2955         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
2956
2957 2012-05-01  Bruno Haible  <bruno@clisp.org>
2958
2959         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
2960         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
2961         * build-aux/reloc-ldflags: Likewise.
2962         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
2963
2964 2012-05-01  Bruno Haible  <bruno@clisp.org>
2965
2966         gnulib-tool: Remove transitional code.
2967         * gnulib-tool: Don't warn about --import with 0 arguments any more.
2968         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2969
2970 2012-05-01  Bruno Haible  <bruno@clisp.org>
2971
2972         getcwd: Fix misindentation.
2973         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
2974
2975 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2976
2977         exclude: process exclude and include directives in order
2978         This restores the pre-2009 behavior, and is part of a fix of a
2979         grep bug reported by Quentin Arce in
2980         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
2981         * lib/exclude.c (struct exclude): Remove 'tail' member.
2982         (new_exclude_segment): Prepend the new segment instead of appending.
2983         Return void, since that's now more convenient.
2984         (file_pattern_matches): Renamed from excluded_file_pattern_p.
2985         (file_name_matches): Renamed from excluded_file_name_p.
2986         (file_pattern_matches, file_name_matches):
2987         Return true if the pattern matches, not if it excludes.
2988         All callers changed.
2989         (excluded_file_name): Process the list in reverse order;
2990         since the list is now reversed this restores the pre-2009 behavior.
2991         (add_exclude): Adjust to new reversed-order list.  Use local var
2992         rather than macro, for clarity.
2993         * tests/test-exclude7.sh: Adjust to corrected behavior.
2994
2995         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
2996         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
2997         it's not possible here.  Handle the case of \ at end of pattern
2998         without dumping core.
2999         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3000
3001         _Noreturn: future-proof non-GNU and non-MSVC compilers
3002         * build-aux/snippet/_Noreturn.h (_Noreturn):
3003         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3004         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3005         C11 or later.  This is more likely to work with random future C
3006         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3007         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3008
3009         exclude: handle wildcards with FNM_EXTMATCH
3010         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3011         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3012         comment that "has wildcards" really means "has or may have
3013         wildcards".  Simplify by avoiding the need to call strcspn.
3014
3015 2012-04-29  Bruno Haible  <bruno@clisp.org>
3016
3017         gnulib-tool: Fix list of authors.
3018         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3019
3020 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3021
3022         bootstrap: support Automake-NG in $buildreq
3023         * bootstrap (check_versions): Handle automake and aclocal from
3024         Automake-NG specially.  They can be specified as respectively
3025         the "automake-ng" and "aclocal-ng" requirements.
3026
3027 2012-04-25  Eric Blake  <eblake@redhat.com>
3028
3029         bootstrap: only force latest Makefile.in.in for gettext module
3030         * build-aux/bootstrap (with_gettext): Only install latest
3031         Makefile.in.in for projects requesting bleeding edge gettext.
3032
3033 2012-04-22  Bruno Haible  <bruno@clisp.org>
3034
3035         doc: Mention reason for replacement on glibc/Linux systems.
3036         * doc/posix-functions/dprintf.texi: Mention the problem with special
3037         'long double' values.
3038         * doc/posix-functions/fprintf.texi: Likewise.
3039         * doc/posix-functions/printf.texi: Likewise.
3040         * doc/posix-functions/snprintf.texi: Likewise.
3041         * doc/posix-functions/sprintf.texi: Likewise.
3042         * doc/posix-functions/vdprintf.texi: Likewise.
3043         * doc/posix-functions/vfprintf.texi: Likewise.
3044         * doc/posix-functions/vprintf.texi: Likewise.
3045         * doc/posix-functions/vsnprintf.texi: Likewise.
3046         * doc/posix-functions/vsprintf.texi: Likewise.
3047         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3048         platforms with F_DUPFD_CLOEXEC problems.
3049         * doc/posix-functions/glob.texi: Mention which platforms are affected
3050         by the problem with symbolic links.
3051         * doc/posix-functions/linkat.texi: Mention the problem with
3052         AT_SYMLINK_FOLLOW on Linux.
3053
3054 2012-04-22  Bruno Haible  <bruno@clisp.org>
3055
3056         pwrite: Don't replace on all platforms.
3057         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3058
3059 2012-04-22  Bruno Haible  <bruno@clisp.org>
3060
3061         rint* tests: Avoid gcc warnings.
3062         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3063         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3064         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3065
3066 2012-04-21  Bruno Haible  <bruno@clisp.org>
3067
3068         users.txt: Update.
3069         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3070         switched from CVS to git, bzr, or svn.
3071
3072 2012-04-21  Bruno Haible  <bruno@clisp.org>
3073
3074         Large File Support for native Windows platforms.
3075
3076         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3077         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3078
3079         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3080         type.
3081         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3082         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3083         * doc/posix-headers/sys_types.texi: Mention the effect of the
3084         'largefile' module.
3085
3086         * lib/fcntl.in.h: Add comments about off_t.
3087         * modules/fcntl-h (Depends-on): Add sys_types.
3088
3089         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3090         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3091         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3092         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3093         * modules/unistd (Depends-on): Add sys_types.
3094         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3095
3096         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3097         instead of lseek.
3098         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3099         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3100         * modules/lseek (Depends-on): Add sys_types.
3101
3102         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3103         msvc-nothrow.h.
3104         (SetFileSize): New function.
3105         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3106         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3107         if Large File Support is requested.
3108         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3109         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3110
3111         * lib/stdio.in.h: Add comments about off_t.
3112         * modules/stdio (Depends-on): Add sys_types.
3113
3114         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3115         instead of ftello.
3116         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3117         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3118         (gl_PREREQ_FTELLO): New macro.
3119         * modules/ftello (Depends-on): Add sys_types.
3120         (configure.ac): Incoke gl_PREREQ_FTELLO.
3121
3122         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3123         instead of fseeko.
3124         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3125         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3126         (gl_PREREQ_FSEEKO): New macro.
3127         * modules/fseeko (Depends-on): Add sys_types.
3128         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3129
3130         * lib/sys_stat.in.h: Add comments about off_t.
3131         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3132         64-bit integer for st_size in 'struct stat'.
3133         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3134         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3135         * modules/sys_stat (Depends-on): Add sys_types.
3136         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3137
3138         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3139         instead of stat or _stat.
3140
3141         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3142         'struct _stati64' instead of fstat and 'struct stat'.
3143         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3144         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3145
3146         Reported by Ray Satiro <raysatiro@yahoo.com>.
3147
3148 2012-04-19  Eric Blake  <eblake@redhat.com>
3149
3150         bootstrap: accommodate older libtool
3151         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3152         Reported by Daniel P. Berrange.
3153
3154 2012-04-19  Jim Meyering  <meyering@redhat.com>
3155
3156         announce-gen: avoid failure due to lack of Digest::SHA1
3157         Even with the preferred Digest::SHA available, this script
3158         would fail when the backup module, Digest::SHA1, was not installed.
3159         * build-aux/announce-gen: Quote the conditional use of "use".
3160         Reported by Reuben Thomas in:
3161         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3162
3163         bootstrap: don't let a user's CDPATH setting affect this script
3164         When CDPATH is set, cd will sometimes generate output.
3165         When "cd" is run in a subshell whose output matters, that
3166         surprising-to-some output can cause malfunction.
3167         Unsetting CDPATH turns off this shell "feature."
3168         * build-aux/bootstrap (CDPATH): Unset.
3169         Reported by Reuben Thomas in:
3170         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3171         and inspired by his patch here:
3172         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3173
3174 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3175         and Jim Meyering  <meyering@redhat.com>
3176
3177         maint.mk: catch "see @xref{}" and similar
3178         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3179         prohibit "See also @xref{", "Also see @pxref{", and similar.
3180
3181 2012-04-16  Jim Meyering  <meyering@redhat.com>
3182
3183         bootstrap: really use gnulib's po/Makefile.in.in
3184         * build-aux/bootstrap: Correct the source file name in previous change.
3185         Reported by Akim Demaille.
3186
3187         configmake: correct minor inconsistency in Makefile rule
3188         * modules/configmake (Makefile.am): All other rules like this one
3189         run the final "mv -f ..." in the same backslash-continued command
3190         as the one that does everything else.  This one put the mv -f ...
3191         command on a separate, non-backslash-continued line.
3192         Make it like the others.
3193
3194         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3195         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3196         the one from gettext.  Reported by Akim Demaille.
3197
3198 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3199
3200         Fix recursion of install-* into po directories.
3201         Bison's install-pdf bug reported by Hans Aberg at
3202         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3203         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3204         (install-info, install-pdf, install-ps): New targets.
3205
3206 2012-04-16  Jim Meyering  <meyering@redhat.com>
3207
3208         maint: avoid spurious "make sc_maint" failure
3209         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3210         exempt all *.class file names, for lib/javaversion.class.
3211
3212 2012-04-15  Bruno Haible  <bruno@clisp.org>
3213
3214         lseek: Make configure test independent of environment.
3215         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3216         Windows, we know that lseek() on pipes is broken; skip the runtime
3217         test.
3218
3219 2012-04-14  Bruno Haible  <bruno@clisp.org>
3220
3221         stat: Bypass buggy override in mingw64.
3222         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3223         * lib/stat.c (stat) [mingw64]: Define to _stat.
3224         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3225
3226 2012-04-14  Bruno Haible  <bruno@clisp.org>
3227
3228         pathmax: Fix compilation error on MSVC 9.
3229         * modules/pathmax (Depends-on): Add unistd.
3230
3231 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3232
3233         README: document pointer comparison assumption
3234         * README (Portability guidelines): Document assumption about
3235         pointer comparisons, in response to a recent bug-gnulib comment by
3236         Jeffrey Kegler.
3237
3238 2012-04-12  Bruno Haible  <bruno@clisp.org>
3239
3240         Tests for module 'getrusage'.
3241         * modules/getrusage-tests: New file.
3242         * tests/test-getrusage.c: New file.
3243
3244         New module 'getrusage'.
3245         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3246         warn-on-use.h.
3247         (getrusage): New declaration.
3248         * lib/getrusage.c: New file.
3249         * m4/getrusage.m4: New file.
3250         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3251         is declared.
3252         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3253         HAVE_GETRUSAGE.
3254         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3255         snippet/c++defs, snippet/warn-on-use.
3256         (Makefile.am): Update generation of sys/resource.h. Substitute
3257         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3258         * modules/getrusage: New file.
3259         * doc/posix-functions/getrusage.texi: Mention the new module.
3260
3261 2012-04-12  Bruno Haible  <bruno@clisp.org>
3262
3263         Tests for module 'sys_resource'.
3264         * modules/sys_resource-tests: New file.
3265         * tests/test-sys_resource.c: New file.
3266
3267         New module 'sys_resource'.
3268         * lib/sys_resource.in.h: New file.
3269         * m4/sys_resource_h.m4: New file.
3270         * modules/sys_resource: New file.
3271         * doc/posix-headers/sys_resource.texi: Mention the new module.
3272
3273 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3274
3275         ioctl: Fix compilation error on mingw.
3276         * lib/ioctl.c: Include <windows.h>.
3277         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3278
3279 2012-04-04  Jim Meyering  <meyering@redhat.com>
3280
3281         regex: correct #pragma guard expression
3282         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3283         not 4.3.  Correct its cpp guard expression.
3284
3285 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3286
3287         regex: remove unnecessary type punning
3288         Problem reported by Vladimir Serbinenko in
3289         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3290         * lib/regex.h (struct re_pattern_buffer): Change the type of
3291         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3292         Fix comment to match code.
3293         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3294         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3295         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3296         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3297         (set_regs):
3298         Omit no-longer-necessary casts.
3299
3300 2012-04-03  Bruno Haible  <bruno@clisp.org>
3301
3302         Tests for module 'ilogbl'.
3303         * modules/ilogbl-tests: New file.
3304         * tests/test-ilogbl.c: New file.
3305
3306         New module 'ilogbl'.
3307         * lib/math.in.h (ilogbl): New declaration.
3308         * lib/ilogbl.c: New file.
3309         * m4/ilogbl.m4: New file.
3310         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3312         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3313         Split sed invocation, to avoid the limit of 100 substitutions of
3314         HP-UX 'sed'.
3315         * modules/ilogbl: New file.
3316         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3317         * doc/posix-functions/ilogbl.texi: Mention the new module.
3318
3319 2012-04-03  Bruno Haible  <bruno@clisp.org>
3320
3321         Tests for module 'ilogbf'.
3322         * modules/ilogbf-tests: New file.
3323         * tests/test-ilogbf.c: New file.
3324
3325         New module 'ilogbf'.
3326         * lib/math.in.h (ilogbf): New declaration.
3327         * lib/ilogbf.c: New file.
3328         * m4/ilogbf.m4: New file.
3329         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3331         REPLACE_ILOGBF.
3332         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3333         REPLACE_ILOGBF.
3334         * modules/ilogbf: New file.
3335         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3336         * doc/posix-functions/ilogbf.texi: Mention the new module.
3337
3338 2012-04-03  Bruno Haible  <bruno@clisp.org>
3339
3340         Tests for module 'ilogb'.
3341         * modules/ilogb-tests: New file.
3342         * tests/test-ilogb.c: New file.
3343         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3344         tests/test-logb-ieee.h.
3345
3346         New module 'ilogb'.
3347         * lib/math.in.h (ilogb): New declaration.
3348         * lib/ilogb.c: New file.
3349         * m4/ilogb.m4: New file.
3350         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3352         REPLACE_ILOGB.
3353         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3354         REPLACE_ILOGB.
3355         * modules/ilogb: New file.
3356         * tests/test-math-c++.cc: Check the declaration of ilogb.
3357         * doc/posix-functions/ilogb.texi: Mention the new module.
3358
3359 2012-04-03  Bruno Haible  <bruno@clisp.org>
3360
3361         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3362         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3363         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3364         (main): Check their values.
3365         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3366         problem.
3367
3368 2012-04-03  Bruno Haible  <bruno@clisp.org>
3369
3370         Tests for module 'logbl-ieee'.
3371         * modules/logbl-ieee-tests: New file.
3372         * tests/test-logbl-ieee.c: New file.
3373
3374         New module 'logbl-ieee'.
3375         * modules/logbl-ieee: New file.
3376
3377         Tests for module 'logb-ieee'.
3378         * modules/logb-ieee-tests: New file.
3379         * tests/test-logb-ieee.c: New file.
3380
3381         New module 'logb-ieee'.
3382         * modules/logb-ieee: New file.
3383
3384         Tests for module 'logbf-ieee'.
3385         * modules/logbf-ieee-tests: New file.
3386         * tests/test-logbf-ieee.c: New file.
3387         * tests/test-logb-ieee.h: New file.
3388
3389         New module 'logbf-ieee'.
3390         * modules/logbf-ieee: New file.
3391
3392 2012-04-03  Bruno Haible  <bruno@clisp.org>
3393
3394         Tests for module 'logbl'.
3395         * modules/logbl-tests: New file.
3396         * tests/test-logbl.c: New file.
3397
3398         New module 'logbl'.
3399         * lib/math.in.h (logbl): New declaration.
3400         * lib/logbl.c: New file.
3401         * m4/logbl.m4: New file.
3402         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3404         REPLACE_LOGBL.
3405         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3406         REPLACE_LOGBL.
3407         * modules/logbl: New file.
3408         * tests/test-math-c++.cc: Check the declaration of logbl.
3409         * doc/posix-functions/logbl.texi: Mention the new module.
3410
3411 2012-04-02  Bruno Haible  <bruno@clisp.org>
3412
3413         Tests for module 'logbf'.
3414         * modules/logbf-tests: New file.
3415         * tests/test-logbf.c: New file.
3416
3417         New module 'logbf'.
3418         * lib/math.in.h (logbf): New declaration.
3419         * lib/logbf.c: New file.
3420         * m4/logbf.m4: New file.
3421         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3422         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3423         REPLACE_LOGBF.
3424         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3425         REPLACE_LOGBF.
3426         * modules/logbf: New file.
3427         * tests/test-math-c++.cc: Check the declaration of logbf.
3428         * doc/posix-functions/logbf.texi: Mention the new module.
3429
3430 2012-04-02  Bruno Haible  <bruno@clisp.org>
3431
3432         logb tests: More tests.
3433         * tests/test-logb.h: New file, based on tests/test-logb.c and
3434         tests/test-frexp.h.
3435         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3436         (main): Just invoke test_function.
3437         * modules/logb-tests (Files): Add tests/test-logb.h,
3438         tests/minus-zero.h, tests/randomd.c.
3439         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3440
3441         logb: Provide replacement and workarounds.
3442         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3443         is 1.
3444         * lib/logb.c: New file.
3445         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3446         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3448         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3449         * modules/logb (Files): Add lib/logb.c.
3450         (Depends-on): Add isfinite, frexp, isnand.
3451         (configure.ac): Compile the replacement code logb.c if needed.
3452         * tests/test-math-c++.cc: Check the declaration of logb.
3453         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3454         with subnormal numbers.
3455
3456 2012-04-02  Bruno Haible  <bruno@clisp.org>
3457
3458         log10* tests: Speed up.
3459         * tests/test-log10.h (test_function): Reduce amount of random numbers
3460         to test.
3461
3462 2012-04-01  Bruno Haible  <bruno@clisp.org>
3463
3464         logf-ieee: Fix test whether logf works.
3465         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3466
3467 2012-04-01  Bruno Haible  <bruno@clisp.org>
3468
3469         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3470         * lib/log10l.c: Include <float.h>
3471         (log10l): On IRIX, normalize the +Infinity value.
3472         * modules/log10l (Depends-on): Add 'float'.
3473         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3474         +Infinity.
3475
3476         log10f-ieee: Work around test failure on NetBSD 5.1.
3477         * m4/log10f-ieee.m4: New file.
3478         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3479         test whether log10f works with a negative argument. Replace it if not.
3480         * lib/log10f.c (log10f): For negative arguments, return NaN.
3481         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3482         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3483         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3484
3485         log10f-ieee: Work around test failure on Solaris 9.
3486         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3487         (configure.ac): Require gl_FUNC_LOG10F.
3488
3489         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3490         * m4/log10-ieee.m4: New file.
3491         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3492         whether log10 works with a negative argument. Replace it if not.
3493         * lib/log10.c (log10): For negative arguments, return NaN.
3494         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3495         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3496         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3497
3498         Tests for module 'log10l-ieee'.
3499         * modules/log10l-ieee-tests: New file.
3500         * tests/test-log10l-ieee.c: New file.
3501
3502         New module 'log10l-ieee'.
3503         * modules/log10l-ieee: New file.
3504
3505         Tests for module 'log10-ieee'.
3506         * modules/log10-ieee-tests: New file.
3507         * tests/test-log10-ieee.c: New file.
3508
3509         New module 'log10-ieee'.
3510         * modules/log10-ieee: New file.
3511
3512         Tests for module 'log10f-ieee'.
3513         * modules/log10f-ieee-tests: New file.
3514         * tests/test-log10f-ieee.c: New file.
3515         * tests/test-log10-ieee.h: New file.
3516
3517         New module 'log10f-ieee'.
3518         * modules/log10f-ieee: New file.
3519
3520 2012-04-01  Bruno Haible  <bruno@clisp.org>
3521
3522         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3523         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3524         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3525         workaround.
3526         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3527         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3529         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3530         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3531         (Depends-on): Update conditions.
3532         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3533         IRIX 6.5, OSF/1 5.1 problems.
3534
3535 2012-04-01  Bruno Haible  <bruno@clisp.org>
3536
3537         log10f: Work around OSF/1 5.1 bug.
3538         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3539         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3540         workaround.
3541         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3542         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3544         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3545         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3546         (Depends-on): Update conditions.
3547         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3548
3549 2012-04-01  Bruno Haible  <bruno@clisp.org>
3550
3551         log10: Work around OSF/1 5.1 bug.
3552         * lib/math.in.h (log10): New declaration.
3553         * lib/log10.c: New file.
3554         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3555         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3556         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3558         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3559         * modules/log10 (Files): Add lib/log10.c.
3560         (Depends-on): Add math.
3561         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3562         * tests/test-math-c++.cc: Check the declaration of log10.
3563         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3564
3565 2012-03-31  Bruno Haible  <bruno@clisp.org>
3566
3567         log10l tests: More tests.
3568         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3569         tests/minus-zero.h, tests/randoml.c.
3570         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3571         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3572         (main): Invoke test_function.
3573
3574         log10f tests: More tests.
3575         * modules/log10f-tests (Files): Add tests/test-log10.h,
3576         tests/minus-zero.h, tests/randomf.c.
3577         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3578         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3579         (main): Invoke test_function.
3580
3581         log10 tests: More tests.
3582         * tests/test-log10.h: New file.
3583         * modules/log10-tests (Files): Add tests/test-log10.h,
3584         tests/minus-zero.h, tests/randomd.c.
3585         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3586         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3587         (main): Invoke test_function.
3588
3589 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3590
3591         fflush: Fix syntax error.
3592         * lib/fflush.c: Include unused-parameter.h, needed for
3593         _GL_UNUSED_PARAMETER.
3594         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3595
3596 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3597
3598         regex: pacify GCC when compiling GRUB
3599         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3600         a diagnostic.  Reported by Vladimir Serbinenko in
3601         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3602
3603 2012-03-29  Eric Blake  <eblake@redhat.com>
3604
3605         stdio: don't assume gets any more
3606         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
3607         support.
3608         * modules/stdio (Makefile.am): Likewise.
3609         * lib/stdio-read.c (gets): Likewise.
3610         * tests/test-stdio-c++.cc: Likewise.
3611         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
3612         * lib/stdio.in.h (gets): Make warning occur in more places.
3613         * doc/posix-functions/gets.texi (gets): Update documentation.
3614         Reported by Christer Solskogen.
3615
3616         maint.mk: fix syntax checks without exclusions
3617         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
3618         Reported by Daniel P. Berrange.
3619
3620         strerror_r: avoid compiler warning
3621         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
3622         level.
3623
3624         fflush: avoid compiler warning
3625         * lib/fflush.c (update_fpos_cache): Mark variables that are
3626         potentially unused.
3627
3628 2012-03-25  Bruno Haible  <bruno@clisp.org>
3629
3630         Tests for module 'localeconv'.
3631         * modules/localeconv-tests: New file.
3632         * tests/test-localeconv.c: New file.
3633
3634         New module 'localeconv'.
3635         * lib/locale.in.h (localeconv): New declaration.
3636         * lib/localeconv.c: New file.
3637         * m4/localeconv.m4: New file.
3638         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
3639         REPLACE_LOCALECONV.
3640         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
3641         REPLACE_LOCALECONV.
3642         * modules/localeconv: New file.
3643         * modules/nl_langinfo (Depends-on): Add localeconv.
3644         * modules/human (Depends-on): Likewise.
3645         * doc/posix-functions/localeconv.texi: Mention the new module.
3646
3647 2012-03-25  Bruno Haible  <bruno@clisp.org>
3648
3649         locale: Provide a complete 'struct lconv'.
3650         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3651         'struct lconv' does not contain int_p_cs_precedes.
3652         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3653         * doc/posix-headers/locale.texi: Update.
3654
3655         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
3656         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
3657         * doc/posix-headers/locale.texi: Update.
3658
3659         locale: Provide a working 'struct lconv'.
3660         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
3661         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3662         'struct lconv' does not even contain decimal_point.
3663         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
3664         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
3665         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3666         * doc/posix-headers/locale.texi: Mention the problems with
3667         'struct lconv'.
3668         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3669
3670 2012-03-24  Bruno Haible  <bruno@clisp.org>
3671
3672         Enable common subexpression optimization in GCC.
3673         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
3674         macros.
3675         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
3676         GCC attribute 'const'.
3677         (uc_locale_language): Declare with GCC attribute 'pure'.
3678         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
3679         with GCC attribute 'const'.
3680         * lib/unictype.in.h (uc_is_general_category_withtable,
3681         uc_combining_class, uc_combining_class_name,
3682         uc_combining_class_long_name, uc_bidi_class_name,
3683         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
3684         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
3685         uc_decimal_value, uc_digit_value, uc_numeric_value,
3686         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
3687         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
3688         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
3689         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
3690         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
3691         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
3692         Declare with GCC attribute 'const'.
3693         (uc_general_category_name, uc_general_category_long_name,
3694         uc_general_category_byname, uc_general_category,
3695         uc_is_general_category, uc_combining_class_byname,
3696         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
3697         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
3698         Declare with GCC attribute 'pure'.
3699         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
3700         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
3701         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
3702         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
3703         with GCC attribute 'pure'.
3704         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
3705         'const'.
3706         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
3707         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
3708         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
3709         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
3710         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
3711         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
3712         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
3713         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
3714         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
3715         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
3716         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
3717         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
3718         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
3719         GCC attribute 'pure'.
3720         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
3721         'const'.
3722         * lib/uniwidth.in.h (uc_width): Simplify declaration.
3723         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
3724         u32_strwidth): Declare with GCC attribute 'pure'.
3725
3726         Enable common subexpression optimization in GCC.
3727         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3728         (alphasort): Declare with GCC attribute 'pure'.
3729         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3730         (atoll): Declare with GCC attribute 'pure'.
3731         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3732         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3733         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
3734         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3735         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
3736         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
3737         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
3738
3739 2012-03-24  Bruno Haible  <bruno@clisp.org>
3740
3741         gnulib-tool: Avoid unintended error output from 'cmp'.
3742         * gnulib-tool (func_add_file, func_update_file, func_import): Use
3743         "cmp -s", not "cmp > /dev/null".
3744
3745 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3746
3747         gnulib-tool: fix imprecise comments w.r.t. an automake bug
3748
3749         It's not just Automake versions < 1.9b that creates an empty
3750         pkgdatadir at installation time if pkgdata_DATA is specified
3751         to empty; modern automake versions do this as well, at least
3752         until automake 1.11.4 (not yet released at the moment of writing,
3753         but soon to appear).  That behaviour was generally considered a
3754         feature rather than a bug, at least until this discussion:
3755         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
3756
3757         See also automake bugs #10997 and #11030.
3758
3759         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
3760         reference to relevant automake bug numbers.
3761         (func_emit_tests_Makefile_am): Likewise.
3762
3763 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3764
3765         announce-gen: use Digest::SHA when possible
3766         * build-aux/announce-gen: Use Digest::SHA when possible, falling
3767         back to Digest::SHA1 if necessary.
3768
3769 2012-03-20  Jim Meyering  <meyering@redhat.com>
3770
3771         tests: avoid gcc warnings about argv vs. const initializers
3772         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
3773         warnings about discarding 'const' qualifier from pointer target type.
3774         * tests/test-posix_spawn2.c (main): Likewise.
3775
3776 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3777
3778         README-release: simplify slightly
3779         * top/README-release: Run "git checkout master" only once.
3780
3781 2012-03-15  Mark Wielaard  <mark@klomp.org>
3782
3783         git-merge-changelog: add specific example on how to use with hg.
3784         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
3785
3786 2012-03-18  Mark Wielaard  <mark@klomp.org>
3787
3788         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
3789
3790 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
3791
3792         git-version-gen: don't let "prefix" envvar cause trouble
3793         * build-aux/git-version-gen (prefix): Initialize properly,
3794         so as not to use a value specified via the environment.
3795         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
3796
3797 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3798
3799         regex: diagnose too-large repeat counts in EREs
3800         Previously, the code did not diagnose the too-large repeat count
3801         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
3802         as if it were 'b\{1000000000}', which is unexpected.
3803         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
3804         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
3805         is a reasonable one for this problem.  Another option would be to
3806         create a new REG_OVERFLOW error for repeat counts that are too large.
3807         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
3808         count is too large, so that the caller can distinguish the two cases.
3809         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
3810         "Too large" return code, and that repeat counts are one example of this.
3811
3812 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3813
3814         doc: some glibc x32 integer width issues
3815         * doc/posix-headers/sys_types.texi (sys/types.h):
3816         * doc/posix-headers/time.texi (time.h):
3817         Mention that glibc x32 does not conform to POSIX in a couple of
3818         areas related to integer widths.
3819
3820 2012-03-15  Bruno Haible  <bruno@clisp.org>
3821
3822         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
3823         * lib/fma.c (VOLATILE): New macro.
3824         (FUNC): Use it to work around a GCC compiler bug.
3825
3826 2012-03-13  Bruno Haible  <bruno@clisp.org>
3827
3828         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3829         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
3830         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
3831         REPLACE_HYPOTL to 1.
3832         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
3833
3834 2012-03-13  Bruno Haible  <bruno@clisp.org>
3835
3836         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3837         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
3838         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
3839         REPLACE_REMAINDERL to 1.
3840         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
3841         bug.
3842
3843 2012-03-13  Bruno Haible  <bruno@clisp.org>
3844
3845         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3846         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
3847         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
3848         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
3849         too big rounding errors.
3850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
3851         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
3852         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
3853         (Depends-on): Update conditions.
3854         * tests/test-sqrtl.c (my_ldexpl): New function.
3855         (main): Add test of a particular value.
3856         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3857
3858 2012-03-13  Pádraig Brady  <P@draigBrady.com>
3859
3860         doc: Update timer_* platform portability notes.
3861         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
3862         that always return ENOSYS.
3863         * doc/posix-functions/timer_delete.texi: Likewise.
3864         * doc/posix-functions/timer_gettime.texi: Likewise.
3865         * doc/posix-functions/timer_settime.texi: Likewise.
3866
3867 2012-03-13  Bruno Haible  <bruno@clisp.org>
3868
3869         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3870         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
3871         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
3872         REPLACE_CBRTL to 1.
3873         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3874
3875 2012-03-13  Bruno Haible  <bruno@clisp.org>
3876
3877         remainderl: Avoid compilation error on AIX >= 5.2.
3878         * lib/math.in.h (remainderl): Undefine macro from the system header.
3879
3880 2012-03-13  Bruno Haible  <bruno@clisp.org>
3881
3882         Avoid compilation errors with MSVC option -fp:strict.
3883         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
3884         * lib/cbrtf.c: Likewise.
3885         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3886
3887 2012-03-12  Bruno Haible  <bruno@clisp.org>
3888
3889         uninorm: Don't crash in out-of-memory conditions.
3890         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
3891         gracefully.
3892         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
3893         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
3894
3895 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
3896
3897         quote: fix syntax-check
3898         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
3899         also exports quote_quoting_options.
3900
3901 2012-03-12  Simon Josefsson  <simon@josefsson.org>
3902
3903         Collapse list of copyright years to ranges.  See
3904         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
3905         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
3906         build-aux/csharpexec.sh.in, build-aux/gnupload,
3907         build-aux/install-reloc, build-aux/javacomp.sh.in,
3908         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
3909         build-aux/move-if-change, build-aux/reloc-ldflags,
3910         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
3911
3912 2012-03-11  Bruno Haible  <bruno@clisp.org>
3913
3914         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3915         * m4/log2f-ieee.m4: New file.
3916         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
3917         whether log2f works with a minus zero argument. Replace it if not.
3918         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
3919         (Depends-on): Add log2-ieee.
3920         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
3921         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
3922
3923         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3924         * m4/log2-ieee.m4: New file.
3925         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
3926         whether log2 works with a minus zero argument. Replace it if not.
3927         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
3928         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
3929         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
3930
3931         Tests for module 'log2l-ieee'.
3932         * modules/log2l-ieee-tests: New file.
3933         * tests/test-log2l-ieee.c: New file.
3934
3935         New module 'log2l-ieee'.
3936         * modules/log2l-ieee: New file.
3937
3938         Tests for module 'log2-ieee'.
3939         * modules/log2-ieee-tests: New file.
3940         * tests/test-log2-ieee.c: New file.
3941
3942         New module 'log2-ieee'.
3943         * modules/log2-ieee: New file.
3944
3945         Tests for module 'log2f-ieee'.
3946         * modules/log2f-ieee-tests: New file.
3947         * tests/test-log2f-ieee.c: New file.
3948         * tests/test-log2-ieee.h: New file.
3949
3950         New module 'log2f-ieee'.
3951         * modules/log2f-ieee: New file.
3952
3953 2012-03-11  Bruno Haible  <bruno@clisp.org>
3954
3955         Tests for module 'log2l'.
3956         * modules/log2l-tests: New file.
3957         * tests/test-log2l.c: New file.
3958
3959         New module 'log2l'.
3960         * lib/math.in.h (log2l): New declaration.
3961         * lib/log2l.c: New file.
3962         * m4/log2l.m4: New file.
3963         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
3964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
3965         REPLACE_LOG2L.
3966         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
3967         REPLACE_LOG2L.
3968         * modules/log2l: New file.
3969         * tests/test-math-c++.cc: Check the declaration of log2l.
3970         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
3971         and OSF/1 problems.
3972
3973 2012-03-11  Bruno Haible  <bruno@clisp.org>
3974
3975         Tests for module 'log2f'.
3976         * modules/log2f-tests: New file.
3977         * tests/test-log2f.c: New file.
3978
3979         New module 'log2f'.
3980         * lib/math.in.h (log2f): New declaration.
3981         * lib/log2f.c: New file.
3982         * m4/log2f.m4: New file.
3983         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
3984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
3985         REPLACE_LOG2F.
3986         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
3987         REPLACE_LOG2F.
3988         * modules/log2f: New file.
3989         * tests/test-math-c++.cc: Check the declaration of log2f.
3990         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
3991         and OSF/1 and Cygwin problems.
3992
3993 2012-03-11  Bruno Haible  <bruno@clisp.org>
3994
3995         Tests for module 'log2'.
3996         * modules/log2-tests: New file.
3997         * tests/test-log2.c: New file.
3998         * tests/test-log2.h: New file.
3999
4000         New module 'log2'.
4001         * lib/math.in.h (log2): New declaration.
4002         * lib/log2.c: New file.
4003         * m4/log2.m4: New file.
4004         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4006         REPLACE_LOG2.
4007         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4008         REPLACE_LOG2.
4009         * modules/log2: New file.
4010         * tests/test-math-c++.cc: Check the declaration of log2.
4011         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4012         and OSF/1 and Cygwin problems.
4013
4014 2012-03-11  Bruno Haible  <bruno@clisp.org>
4015
4016         exp2* tests: More tests.
4017         * tests/test-exp2.h (test_function): Test all integral arguments that
4018         don't need to overflow or denormalized numbers.
4019         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4020         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4021         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4022
4023 2012-03-10  Bruno Haible  <bruno@clisp.org>
4024
4025         log1pl-ieee: Work around test failure on AIX 7.1.
4026         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4027
4028         log1pl-ieee: Work around test failure on IRIX 6.5.
4029         * m4/log1pl-ieee.m4: New file.
4030         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4031         test whether log1pl works with a minus zero argument. Replace it if
4032         not.
4033         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4035         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4036         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4037         (Depends-on): Update conditions.
4038         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4039         m4/signbit.m4.
4040         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4041         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4042
4043         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4044         * m4/log1pf-ieee.m4: New file.
4045         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4046         test whether log1pf works with a minus zero argument. Replace it if
4047         not.
4048         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4049         m4/signbit.m4.
4050         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4051         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4052
4053         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4054         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4055         (configure.ac): Require gl_FUNC_LOG1PF.
4056
4057         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4058         * m4/log1p-ieee.m4: New file.
4059         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4060         whether log1p works with a minus zero argument. Replace it if not.
4061         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4063         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4064         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4065         (Depends-on): Update conditions.
4066         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4067         m4/signbit.m4.
4068         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4069         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4070
4071         Tests for module 'log1pl-ieee'.
4072         * modules/log1pl-ieee-tests: New file.
4073         * tests/test-log1pl-ieee.c: New file.
4074
4075         New module 'log1pl-ieee'.
4076         * modules/log1pl-ieee: New file.
4077
4078         Tests for module 'log1p-ieee'.
4079         * modules/log1p-ieee-tests: New file.
4080         * tests/test-log1p-ieee.c: New file.
4081
4082         New module 'log1p-ieee'.
4083         * modules/log1p-ieee: New file.
4084
4085         Tests for module 'log1pf-ieee'.
4086         * modules/log1pf-ieee-tests: New file.
4087         * tests/test-log1pf-ieee.c: New file.
4088         * tests/test-log1p-ieee.h: New file.
4089
4090         New module 'log1pf-ieee'.
4091         * modules/log1pf-ieee: New file.
4092
4093 2012-03-10  Bruno Haible  <bruno@clisp.org>
4094
4095         Tests for module 'log1pl'.
4096         * modules/log1pl-tests: New file.
4097         * tests/test-log1pl.c: New file.
4098
4099         New module 'log1pl'.
4100         * lib/math.in.h (log1pl): New declaration.
4101         * lib/log1pl.c: New file.
4102         * m4/log1pl.m4: New file.
4103         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4105         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4106         * modules/log1pl: New file.
4107         * tests/test-math-c++.cc: Check the declaration of log1pl.
4108         * doc/posix-functions/log1pl.texi: Mention the new module.
4109
4110 2012-03-10  Bruno Haible  <bruno@clisp.org>
4111
4112         Tests for module 'log1pf'.
4113         * modules/log1pf-tests: New file.
4114         * tests/test-log1pf.c: New file.
4115
4116         New module 'log1pf'.
4117         * lib/math.in.h (log1pf): New declaration.
4118         * lib/log1pf.c: New file.
4119         * m4/log1pf.m4: New file.
4120         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4121         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4122         REPLACE_LOG1PF.
4123         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4124         REPLACE_LOG1PF.
4125         * modules/log1pf: New file.
4126         * tests/test-math-c++.cc: Check the declaration of log1pf.
4127         * doc/posix-functions/log1pf.texi: Mention the new module.
4128
4129 2012-03-10  Bruno Haible  <bruno@clisp.org>
4130
4131         log1p tests: More tests.
4132         * tests/test-log1p.h: New file.
4133         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4134         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4135         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4136         (main): Invoke test_function.
4137
4138         log1p: Provide replacement for Minix and MSVC.
4139         * lib/math.in.h (log1p): New declaration.
4140         * lib/log1p.c: New file.
4141         * m4/log1p.m4: New file.
4142         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4144         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4145         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4146         (Depends-on): Add math, isnand, log, round.
4147         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4148         HAVE_LOG1P is 0.
4149         * tests/test-math-c++.cc: Check the declaration of log1p.
4150         * doc/posix-functions/log1p.texi: Mention the replacement.
4151
4152 2012-03-10  Bruno Haible  <bruno@clisp.org>
4153
4154         math tests: Small simplification.
4155         * tests/test-exp.h (test_function): Use the same err_bound for
4156         'double' on platforms with sizeof (long double) == sizeof (double)
4157         than on platforms with sizeof (long double) > sizeof (double).
4158         * tests/test-exp2.h (test_function): Likewise.
4159         * tests/test-expm1.h (test_function): Likewise.
4160         * tests/test-log.h (test_function): Likewise.
4161
4162 2012-03-10  Bruno Haible  <bruno@clisp.org>
4163
4164         Fix some comments.
4165         * lib/expl.c: Fix an ambiguous comment.
4166         * lib/expm1.c: Likewise.
4167         * lib/expm1l.c: Likewise.
4168         * lib/exp2.c: Likewise.
4169         * lib/exp2l.c: Likewise.
4170
4171 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4172
4173         regex: allow inclusion of <regex.h> before <limits.h>
4174         Without this patch, portable programs had to include <limits.h> before
4175         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4176         I ran into this problem with a test version of GNU grep on Solaris 8.
4177         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4178         This is done conditionally so that this change can be merged
4179         back to glibc.
4180         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4181         using the included regex.
4182
4183         fts: depend on fdopendir
4184         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4185         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4186         problem was introduced when fdopendir was split out.
4187
4188 2012-03-10  Bruno Haible  <bruno@clisp.org>
4189
4190         Remove unused variables.
4191         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4192         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4193
4194 2012-03-10  Bruno Haible  <bruno@clisp.org>
4195
4196         isnanf-nolibm: Fix last commit.
4197         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4198
4199         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4200         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4201
4202 2012-03-10  Bruno Haible  <bruno@clisp.org>
4203
4204         logf-ieee: Work around test failure on NetBSD 5.1.
4205         * m4/logf-ieee.m4: New file.
4206         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4207         whether logf works with a negative argument. Replace it if not.
4208         * lib/logf.c (logf): For negative arguments, return NaN.
4209         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4210         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4211         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4212
4213         logf-ieee: Work around test failure on Solaris 9.
4214         * modules/logf-ieee (Depends-on): Add log-ieee.
4215         (configure.ac): Require gl_FUNC_LOGF.
4216
4217         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4218         * m4/log-ieee.m4: New file.
4219         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4220         log works with a negative argument. Replace it if not.
4221         * lib/log.c (log): For negative arguments, return NaN.
4222         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4223         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4224         * doc/posix-functions/log.texi: Mention the log-ieee module.
4225
4226         Tests for module 'logl-ieee'.
4227         * modules/logl-ieee-tests: New file.
4228         * tests/test-logl-ieee.c: New file.
4229
4230         New module 'logl-ieee'.
4231         * modules/logl-ieee: New file.
4232
4233         Tests for module 'log-ieee'.
4234         * modules/log-ieee-tests: New file.
4235         * tests/test-log-ieee.c: New file.
4236
4237         New module 'log-ieee'.
4238         * modules/log-ieee: New file.
4239
4240         Tests for module 'logf-ieee'.
4241         * modules/logf-ieee-tests: New file.
4242         * tests/test-logf-ieee.c: New file.
4243         * tests/test-log-ieee.h: New file.
4244
4245         New module 'logf-ieee'.
4246         * modules/logf-ieee: New file.
4247
4248 2012-03-10  Bruno Haible  <bruno@clisp.org>
4249
4250         log: Fix bug introduced on 2012-03-09.
4251         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4252
4253 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4254
4255         timer-time: link explicitly with pthreads on glibc
4256         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4257         to support static linking, when newer glibc is
4258         detected, as that contains pthread emulation of
4259         POSIX timer functions where required.
4260         * modules/timer-time: Depend on threadlib to
4261         pull in the appropriate library to link.
4262
4263 2012-03-10  Bruno Haible  <bruno@clisp.org>
4264
4265         log* tests: More tests.
4266         * tests/test-log.h: New file.
4267         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4268         (main): Invoke test_function.
4269         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4270         (main): Invoke test_function.
4271         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4272         (main): Invoke test_function.
4273         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4274         tests/randomd.c.
4275         (Makefile.am): Add randomd.c to test_log_SOURCES.
4276         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4277         tests/randomf.c.
4278         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4279         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4280         tests/randoml.c.
4281         (Depends-on): Add 'float'.
4282         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4283
4284 2012-03-09  Bruno Haible  <bruno@clisp.org>
4285
4286         logl: Work around OSF/1 5.1 bug.
4287         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4288         * lib/logl.c (logl): If logl exists, use it and provide just the
4289         workaround.
4290         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4291         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4293         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4294         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4295         (Depends-on): Update conditions.
4296         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4297
4298 2012-03-09  Bruno Haible  <bruno@clisp.org>
4299
4300         logf: Work around OSF/1 5.1 bug.
4301         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4302         * lib/logf.c (logf): If logf exists, use it and provide just the
4303         workaround.
4304         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4305         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4307         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4308         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4309         (Depends-on): Update conditions.
4310         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4311
4312 2012-03-09  Bruno Haible  <bruno@clisp.org>
4313
4314         log: Work around OSF/1 5.1 bug.
4315         * lib/math.in.h (log): New declaration.
4316         * lib/log.c: New file.
4317         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4318         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4319         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4321         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4322         * modules/log (Files): Add lib/log.c.
4323         (Depends-on): Add math.
4324         (configure.ac): If REPLACE_LOG is 1, compile an override.
4325         * tests/test-math-c++.cc: Check the declaration of log.
4326         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4327
4328 2012-03-09  Jim Meyering  <meyering@redhat.com>
4329
4330         readtokens.c: adjust wording in a comment
4331         * lib/readtokens.c: Insert omitted "that" in a comment.
4332
4333 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4334
4335         modechange: add notations +40, 00440, etc.
4336         * lib/modechange.c (mode_compile): Support new notations
4337         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4338
4339 2012-03-08  Bruno Haible  <bruno@clisp.org>
4340
4341         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4342         * m4/exp2l-ieee.m4: New file.
4343         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4344         test whether exp2l works with a NaN argument and with a negative
4345         infinity argument. Replace it if not.
4346         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4348         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4349         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4350         (Depends-on): Update conditions.
4351         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4352         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4353         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4354
4355         Tests for module 'exp2l-ieee'.
4356         * modules/exp2l-ieee-tests: New file.
4357         * tests/test-exp2l-ieee.c: New file.
4358
4359         New module 'exp2l-ieee'.
4360         * modules/exp2l-ieee: New file.
4361
4362         Tests for module 'exp2-ieee'.
4363         * modules/exp2-ieee-tests: New file.
4364         * tests/test-exp2-ieee.c: New file.
4365
4366         New module 'exp2-ieee'.
4367         * modules/exp2-ieee: New file.
4368
4369         Tests for module 'exp2f-ieee'.
4370         * modules/exp2f-ieee-tests: New file.
4371         * tests/test-exp2f-ieee.c: New file.
4372         * tests/test-exp2-ieee.h: New file.
4373
4374         New module 'exp2f-ieee'.
4375         * modules/exp2f-ieee: New file.
4376
4377 2012-03-08  Bruno Haible  <bruno@clisp.org>
4378
4379         Tests for module 'exp2l'.
4380         * modules/exp2l-tests: New file.
4381         * tests/test-exp2l.c: New file.
4382
4383         New module 'exp2l'.
4384         * lib/math.in.h (exp2l): New declaration.
4385         * lib/exp2l.c: New file.
4386         * lib/expl-table.c: New file, extracted from lib/expl.c.
4387         * lib/expl.c (gl_expl_table): New declaration.
4388         (expl): Remove expl_table. Update reference.
4389         * m4/exp2l.m4: New file.
4390         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4391         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4392         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4393         * modules/exp2l: New file.
4394         * modules/expl (Files): Add lib/expl-table.c.
4395         (configure.ac): Compile also expl-table.c.
4396         * tests/test-math-c++.cc: Check the declaration of exp2l.
4397         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4398         problem.
4399
4400 2012-03-08  Bruno Haible  <bruno@clisp.org>
4401
4402         Tests for module 'exp2f'.
4403         * modules/exp2f-tests: New file.
4404         * tests/test-exp2f.c: New file.
4405
4406         New module 'exp2f'.
4407         * lib/math.in.h (exp2f): New declaration.
4408         * lib/exp2f.c: New file.
4409         * m4/exp2f.m4: New file.
4410         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4412         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4413         * modules/exp2f: New file.
4414         * tests/test-math-c++.cc: Check the declaration of exp2f.
4415         * doc/posix-functions/exp2f.texi: Mention the new module and the
4416         IRIX problem.
4417
4418 2012-03-08  Bruno Haible  <bruno@clisp.org>
4419
4420         Tests for module 'exp2'.
4421         * modules/exp2-tests: New file.
4422         * tests/test-exp2.c: New file.
4423         * tests/test-exp2.h: New file.
4424
4425         New module 'exp2'.
4426         * lib/math.in.h (exp2): New declaration.
4427         * lib/exp2.c: New file.
4428         * m4/exp2.m4: New file.
4429         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4431         REPLACE_EXP2.
4432         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4433         REPLACE_EXP2.
4434         * modules/exp2: New file.
4435         * tests/test-math-c++.cc: Check the declaration of exp2.
4436         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4437         and OpenBSD problems.
4438
4439 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4440
4441         savedir: fix comment typo
4442         * lib/savedir.c (savedirstream): Fix typo in comment.
4443
4444 2012-03-08  Bruno Haible  <bruno@clisp.org>
4445
4446         test-readtokens.c: use const; remove unwarranted cast
4447         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4448
4449 2012-03-08  Bruno Haible  <bruno@clisp.org>
4450
4451         fmal: Avoid compilation error on AIX.
4452         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4453         AIX 5.2..7.1.
4454
4455 2012-03-08  Bruno Haible  <bruno@clisp.org>
4456
4457         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4458         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4459         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4460         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4461         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4462         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4463         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4464
4465 2012-03-08  Bruno Haible  <bruno@clisp.org>
4466
4467         remainderf: Override buggy system function on IRIX 6.5.
4468         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4469         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4470         when it exists.
4471         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4472
4473 2012-03-08  Jim Meyering  <meyering@redhat.com>
4474
4475         test-readtokens.c: avoid const-related compilation warnings
4476         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4477
4478 2012-03-07  Jim Meyering  <meyering@redhat.com>
4479             Bruno Haible  <bruno@clisp.org>
4480
4481         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4482         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4483         tests/randomd.c.
4484         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4485         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4486         tests/randoml.c.
4487         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4488
4489 2012-03-07  Bruno Haible  <bruno@clisp.org>
4490
4491         expm1l: Avoid compilation error on AIX.
4492         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4493         AIX 5.2..7.1.
4494
4495 2012-03-07  Bruno Haible  <bruno@clisp.org>
4496
4497         expm1l: Don't override undeclared system function on IRIX 6.5.
4498         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4499         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4500         it exists. Set HAVE_DECL_EXPM1L.
4501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4502         HAVE_EXPM1L.
4503         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4504         HAVE_EXPM1L.
4505         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4506
4507 2012-03-07  Bruno Haible  <bruno@clisp.org>
4508
4509         remainderl: Don't override undeclared system function on IRIX 6.5.
4510         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4511         HAVE_REMAINDERL.
4512         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4513         declared when it exists. Set HAVE_DECL_REMAINDERL.
4514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4515         not HAVE_REMAINDERL.
4516         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4517         HAVE_REMAINDERL.
4518         * doc/posix-functions/remainderl.texi: Mention missing declaration
4519         problem.
4520
4521 2012-03-07  Bruno Haible  <bruno@clisp.org>
4522
4523         rintf: Don't override undeclared system function on IRIX 6.5.
4524         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4525         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4526         exists. Set HAVE_DECL_RINTF.
4527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4528         HAVE_RINTF.
4529         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4530         HAVE_RINTF.
4531         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4532
4533 2012-03-07  Bruno Haible  <bruno@clisp.org>
4534
4535         roundl: Avoid compilation error on AIX.
4536         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4537         AIX 5.2..7.1.
4538
4539 2012-03-07  Bruno Haible  <bruno@clisp.org>
4540
4541         roundl: Don't override undeclared system function on IRIX 6.5.
4542         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4543         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4544         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4545         * modules/roundl (configure.ac): For replacement code, test
4546         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4547         (Depends-on): Update conditions.
4548         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4549
4550 2012-03-07  Bruno Haible  <bruno@clisp.org>
4551
4552         roundf: Don't override undeclared system function on IRIX 6.5.
4553         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4554         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4555         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4556         * modules/roundf (configure.ac): For replacement code, test
4557         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4558         (Depends-on): Update conditions.
4559         * modules/roundf-ieee (Depends-on): Update conditions.
4560         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4561
4562 2012-03-07  Bruno Haible  <bruno@clisp.org>
4563
4564         round: Don't override undeclared system function on IRIX 6.5.
4565         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4566         argument.
4567         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4568         also when it is not declared. Set HAVE_ROUND. For replacement code,
4569         test HAVE_ROUND, not HAVE_DECL_ROUND.
4570         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4571         not HAVE_DECL_ROUND.
4572         (Depends-on): Update conditions.
4573         * modules/round-ieee (Depends-on): Update conditions.
4574         * doc/posix-functions/round.texi: Mention the IRIX problem.
4575
4576 2012-03-07  Bruno Haible  <bruno@clisp.org>
4577
4578         copysignf: Don't override undeclared system function on IRIX 6.5.
4579         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4580         HAVE_COPYSIGNF.
4581         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4582         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4584         not HAVE_COPYSIGNF.
4585         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4586         HAVE_COPYSIGNF.
4587         * doc/posix-functions/copysignf.texi: Mention missing declaration
4588         problem.
4589
4590 2012-03-07  Jim Meyering  <meyering@redhat.com>
4591
4592         readtokens: add tests
4593         * modules/readtokens-tests: New file.
4594         * tests/test-readtokens.c: New file.
4595
4596 2012-03-07  Jim Meyering  <meyering@redhat.com>
4597
4598         quotearg: the module must now include quote.h
4599         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4600         So must the module.
4601         * modules/quotearg (Files): Add quote.h.
4602
4603 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
4604
4605         readtokens: avoid core dumps with unusual calling patterns
4606         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
4607         * lib/readtokens.c: Include limits.h.
4608         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
4609         (readtoken): Don't cache the delimiters; the cache code was buggy
4610         if !delim && saved_delim, or if the new n_delim differs from the old.
4611         Also, it wasn't thread-safe.
4612
4613 2012-03-07  Bruno Haible  <bruno@clisp.org>
4614
4615         quote: Adhere to common module description layout.
4616         * modules/quote (Makefile.am): Add back empty section.
4617
4618 2012-03-06  Akim Demaille  <demaille@gostai.com>
4619
4620         quote: fuse into quotearg
4621         This patch is made for the benefit of Bison.
4622         quote does not leave the choice of the quoting style to the user.
4623         quoting_style provides poor customizability, yet quoting_options,
4624         which is very rich, is hidden inside quotearg.c.  So in order to
4625         allow quote customization, move its implementation to quotearg.c.
4626         * lib/quote.c: Remove.
4627         * modules/quote: Adjust.
4628         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
4629         warning: provide all the members of literal structs.
4630         (quote_quoting_options): New.
4631         (quote, quote_n): Import implementation from quote.c.
4632         * lib/quote.h: Import the comments from quote.c.
4633         (quote_quoting_options): New.
4634
4635 2012-03-06  Bruno Haible  <bruno@clisp.org>
4636
4637         Tests for module 'expm1l-ieee'.
4638         * modules/expm1l-ieee-tests: New file.
4639         * tests/test-expm1l-ieee.c: New file.
4640
4641         New module 'expm1l-ieee'.
4642         * modules/expm1l-ieee: New file.
4643
4644         Tests for module 'expm1f-ieee'.
4645         * modules/expm1f-ieee-tests: New file.
4646         * tests/test-expm1f-ieee.c: New file.
4647
4648         New module 'expm1f-ieee'.
4649         * modules/expm1f-ieee: New file.
4650
4651         Tests for module 'expm1-ieee'.
4652         * modules/expm1-ieee-tests: New file.
4653         * tests/test-expm1-ieee.c: New file.
4654         * tests/test-expm1-ieee.h: New file.
4655
4656         New module 'expm1-ieee'.
4657         * modules/expm1-ieee: New file.
4658         * m4/expm1-ieee.m4: New file.
4659         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
4660         whether expm1 works with a minus zero argument. Replace it if not.
4661         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
4662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
4663         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
4664         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
4665         (Depends-on): Update conditions.
4666         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
4667         AIX problem.
4668
4669 2012-03-06  Bruno Haible  <bruno@clisp.org>
4670
4671         Work around expm1f bug on IRIX 6.5.
4672         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
4673         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
4674         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
4675         not work.
4676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
4677         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
4678         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
4679         (Depends-on): Update conditions.
4680         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
4681
4682 2012-03-06  Bruno Haible  <bruno@clisp.org>
4683
4684         Tests for module 'expm1l'.
4685         * modules/expm1l-tests: New file.
4686         * tests/test-expm1l.c: New file.
4687
4688         New module 'expm1l'.
4689         * lib/math.in.h (expm1l): New declaration.
4690         * lib/expm1l.c: New file.
4691         * m4/expm1l.m4: New file.
4692         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
4693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
4694         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
4695         * modules/expm1l: New file.
4696         * tests/test-math-c++.cc: Check the declaration of expm1l.
4697         * doc/posix-functions/expm1l.texi: Mention the new module.
4698
4699 2012-03-06  Bruno Haible  <bruno@clisp.org>
4700
4701         Tests for module 'expm1f'.
4702         * modules/expm1f-tests: New file.
4703         * tests/test-expm1f.c: New file.
4704
4705         New module 'expm1f'.
4706         * lib/math.in.h (expm1f): New declaration.
4707         * lib/expm1f.c: New file.
4708         * m4/expm1f.m4: New file.
4709         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
4710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
4711         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
4712         * modules/expm1f: New file.
4713         * tests/test-math-c++.cc: Check the declaration of expm1f.
4714         * doc/posix-functions/expm1f.texi: Mention the new module.
4715
4716 2012-03-06  Bruno Haible  <bruno@clisp.org>
4717
4718         Tests for module 'expm1'.
4719         * modules/expm1-tests: New file.
4720         * tests/test-expm1.c: New file.
4721         * tests/test-expm1.h: New file.
4722
4723         New module 'expm1'.
4724         * lib/math.in.h (expm1): New declaration.
4725         * lib/expm1.c: New file.
4726         * m4/expm1.m4: New file.
4727         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
4728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
4729         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
4730         * modules/expm1: New file.
4731         * tests/test-math-c++.cc: Check the declaration of expm1.
4732         * doc/posix-functions/expm1.texi: Mention the new module.
4733
4734 2012-03-06  Bruno Haible  <bruno@clisp.org>
4735
4736         math: Ensure declarations of math functions.
4737         * modules/acosf (Depends-on): Add 'extensions'.
4738         * modules/asinf (Depends-on): Likewise.
4739         * modules/atan2f (Depends-on): Likewise.
4740         * modules/atanf (Depends-on): Likewise.
4741         * modules/cbrt (Depends-on): Likewise.
4742         * modules/cbrtf (Depends-on): Likewise.
4743         * modules/cbrtl (Depends-on): Likewise.
4744         * modules/copysignf (Depends-on): Likewise.
4745         * modules/copysignl (Depends-on): Likewise.
4746         * modules/cosf (Depends-on): Likewise.
4747         * modules/coshf (Depends-on): Likewise.
4748         * modules/expf (Depends-on): Likewise.
4749         * modules/fabsf (Depends-on): Likewise.
4750         * modules/fabsl (Depends-on): Likewise.
4751         * modules/fmaf (Depends-on): Likewise.
4752         * modules/fmal (Depends-on): Likewise.
4753         * modules/fmodf (Depends-on): Likewise.
4754         * modules/fmodl (Depends-on): Likewise.
4755         * modules/frexpf (Depends-on): Likewise.
4756         * modules/frexpl (Depends-on): Likewise.
4757         * modules/hypot (Depends-on): Likewise.
4758         * modules/hypotf (Depends-on): Likewise.
4759         * modules/hypotl (Depends-on): Likewise.
4760         * modules/ldexpf (Depends-on): Likewise.
4761         * modules/ldexpl (Depends-on): Likewise.
4762         * modules/log10f (Depends-on): Likewise.
4763         * modules/log10l (Depends-on): Likewise.
4764         * modules/log1p (Depends-on): Likewise.
4765         * modules/logb (Depends-on): Likewise.
4766         * modules/logf (Depends-on): Likewise.
4767         * modules/modff (Depends-on): Likewise.
4768         * modules/modfl (Depends-on): Likewise.
4769         * modules/powf (Depends-on): Likewise.
4770         * modules/remainderf (Depends-on): Likewise.
4771         * modules/remainderl (Depends-on): Likewise.
4772         * modules/rintf (Depends-on): Likewise.
4773         * modules/rintl (Depends-on): Likewise.
4774         * modules/sinf (Depends-on): Likewise.
4775         * modules/sinhf (Depends-on): Likewise.
4776         * modules/sqrtf (Depends-on): Likewise.
4777         * modules/tanf (Depends-on): Likewise.
4778         * modules/tanhf (Depends-on): Likewise.
4779         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
4780         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
4781         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
4782         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
4783         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
4784         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
4785         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4786         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
4787         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
4788         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
4789         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
4790         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
4791         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
4792         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
4793         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
4794         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
4795         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4796         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4797         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
4798         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
4799         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4800         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4801         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4802         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
4803         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4804         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4805         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
4806         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4807         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4808         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4809         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4810         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
4811         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4812         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4813         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4814         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4815         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
4816         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
4817         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
4818         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
4819         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
4820
4821 2012-03-06  Bruno Haible  <bruno@clisp.org>
4822
4823         math: Update module names in warnings.
4824         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4825         tanl): Use specific module name in warn-on-use warning.
4826
4827 2012-03-06  Bruno Haible  <bruno@clisp.org>
4828
4829         expl: Simplify computation.
4830         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
4831
4832 2012-03-05  Bruno Haible  <bruno@clisp.org>
4833
4834         exp* tests: More tests.
4835         * tests/test-exp.h: New file.
4836         * tests/test-exp.c: Include <float.h> and test-exp.h.
4837         (main): Invoke test_function.
4838         * tests/test-expf.c: Include <float.h> and test-exp.h.
4839         (main): Invoke test_function.
4840         * tests/test-expl.c: Include <float.h> and test-exp.h.
4841         (main): Invoke test_function.
4842         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
4843         (Makefile.am): Add randomd.c to test_exp_SOURCES.
4844         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
4845         (Makefile.am): Add randomf.c to test_expf_SOURCES.
4846         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
4847         (Depends-on): Add 'float'.
4848         (Makefile.am): Add randoml.c to test_expl_SOURCES.
4849
4850         expl: Fix precision of computed result.
4851         * lib/expl.c: Completely rewritten.
4852         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
4853         (Maintainer): Add me.
4854         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
4855
4856 2012-03-05  Bruno Haible  <bruno@clisp.org>
4857
4858         cbrt* tests: More tests.
4859         * tests/test-cbrt.h: New file.
4860         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
4861         (main): Invoke test_function.
4862         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
4863         (main): Invoke test_function.
4864         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
4865         (main): Invoke test_function.
4866         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
4867         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
4868         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
4869         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
4870         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
4871         (Depends-on): Add 'float'.
4872         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
4873
4874 2012-03-05  Bruno Haible  <bruno@clisp.org>
4875
4876         hypot* tests: More tests.
4877         * tests/test-hypot.h: New file, partially extracted from
4878         tests/test-hypotl.c.
4879         * tests/test-hypot.c: Include test-hypot.h.
4880         (main): Invoke test_function.
4881         * tests/test-hypotf.c: Include test-hypot.h.
4882         (main): Invoke test_function.
4883         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
4884         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
4885         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
4886         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
4887         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
4888         tests/randomf.c.
4889         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
4890         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
4891         tests/randoml.c.
4892         (Depends-on): Add 'fpucw', 'float'.
4893         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
4894
4895 2012-03-05  Bruno Haible  <bruno@clisp.org>
4896
4897         fpucw: Doc about FreeBSD.
4898         * lib/fpucw.h: Mention FreeBSD in comments.
4899
4900 2012-03-04  Bruno Haible  <bruno@clisp.org>
4901
4902         sqrt* tests: More tests.
4903         * tests/test-sqrt.h: New file.
4904         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
4905         (main): Invoke test_function.
4906         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
4907         (main): Invoke test_function.
4908         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
4909         (main): Invoke test_function.
4910         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
4911         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
4912         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
4913         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
4914         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
4915         (Depends-on): Add 'float'.
4916         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
4917
4918 2012-03-04  Bruno Haible  <bruno@clisp.org>
4919
4920         remainder* tests: More tests.
4921         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
4922         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
4923         (main): Invoke test_function.
4924         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
4925         (main): Invoke test_function.
4926         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
4927         (main): Invoke test_function.
4928         * modules/remainder-tests (Files): Add tests/test-remainder.h,
4929         tests/randomd.c.
4930         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
4931         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
4932         tests/randomf.c.
4933         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
4934         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
4935         tests/randoml.c.
4936         (Depends-on): Add 'float'.
4937         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
4938
4939 2012-03-04  Bruno Haible  <bruno@clisp.org>
4940
4941         remainder, remainderf, remainderl: Fix computation for large quotients.
4942         * lib/remainder.c: Completely rewritten.
4943         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
4944         USE_FLOAT.
4945         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
4946         USE_LONG_DOUBLE.
4947         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
4948         isnand, isinf. Remove round, fma.
4949         * modules/remainderf (Files): Add lib/remainder.c.
4950         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
4951         Remove roundf, fmaf.
4952         * modules/remainderl (Files): Add lib/remainder.c.
4953         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
4954         isinf. Remove roundl, fmal.
4955         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
4956         REMAINDER_LIBM.
4957         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
4958         REMAINDERF_LIBM.
4959         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
4960         REMAINDERL_LIBM.
4961
4962 2012-03-04  Bruno Haible  <bruno@clisp.org>
4963
4964         fmod* tests: More tests.
4965         * tests/test-fmod.h (my_ldexp): New function.
4966         (test_function): Reduce amount of random numbers to test. Add tests
4967         of very large quotients x / y.
4968         * tests/test-fmod.c (MAX_EXP): New macro.
4969         * tests/test-fmodf.c (MAX_EXP): Likewise.
4970         * tests/test-fmodl.c (MAX_EXP): Likewise.
4971
4972 2012-03-04  Bruno Haible  <bruno@clisp.org>
4973
4974         fmod, fmodl: Fix computation for large quotients x / y.
4975         * lib/fmod.c: Completely rewritten.
4976         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
4977         USE_LONG_DOUBLE.
4978         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
4979         isnand. Remove fma.
4980         * modules/fmodl (Files): Add lib/fmod.c.
4981         (Depends-on): Add float, isfinite, signbit, fabsl,
4982         frexpl, ldexpl, isnanl. Remove fma.
4983         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
4984         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
4985
4986 2012-03-03  Bruno Haible  <bruno@clisp.org>
4987
4988         fmod* tests: More tests.
4989         * tests/test-fmod.h: New file.
4990         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
4991         (main): Invoke test_function.
4992         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
4993         (main): Invoke test_function.
4994         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
4995         (main): Invoke test_function.
4996         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
4997         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
4998         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
4999         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5000         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5001         (Depends-on): Add 'float'.
5002         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5003
5004 2012-03-03  Bruno Haible  <bruno@clisp.org>
5005
5006         rint* tests: More tests.
5007         * tests/test-rint.h: New file, partially extracted from
5008         tests/test-rintl.c.
5009         * tests/test-rint.c: Include test-rint.h.
5010         (main): Invoke test_function.
5011         * tests/test-rintf.c: Include test-rint.h.
5012         (main): Invoke test_function.
5013         * tests/test-rintl.c: Include test-rint.h.
5014         (main): Invoke test_function.
5015         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5016         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5017         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5018         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5019         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5020         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5021
5022 2012-03-03  Bruno Haible  <bruno@clisp.org>
5023
5024         modf* tests: More tests.
5025         * tests/test-modf.h: New file.
5026         * tests/test-modf.c: Include <float.h> and test-modf.h.
5027         (main): Invoke test_function.
5028         * tests/test-modff.c: Include <float.h> and test-modf.h.
5029         (main): Invoke test_function.
5030         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5031         (main): Invoke test_function.
5032         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5033         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5034         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5035         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5036         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5037         (Depends-on): Add 'float'.
5038         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5039
5040 2012-03-03  Bruno Haible  <bruno@clisp.org>
5041
5042         fabs* tests: More tests.
5043         * tests/test-fabs.h: New file, partially extracted from
5044         tests/test-fabsl.c.
5045         * tests/test-fabs.c (RANDOM): New macro.
5046         * tests/test-fabsf.c (RANDOM): New macro.
5047         * tests/test-fabsl.c (RANDOM): New macro.
5048         * modules/fabs-tests (Files): Add tests/randomd.c.
5049         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5050         * modules/fabsf-tests (Files): Add tests/randomf.c.
5051         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5052         * modules/fabsl-tests (Files): Add tests/randoml.c.
5053         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5054
5055 2012-03-03  Bruno Haible  <bruno@clisp.org>
5056
5057         ldexp* tests: More tests.
5058         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5059         * tests/test-ldexp.c (RANDOM): New macro.
5060         * tests/test-ldexpf.c (RANDOM): New macro.
5061         * tests/test-ldexpl.c (RANDOM): New macro.
5062         * modules/ldexp-tests (Files): Add tests/randomd.c.
5063         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5064         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5065         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5066         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5067         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5068
5069 2012-03-03  Bruno Haible  <bruno@clisp.org>
5070
5071         frexp* tests: More tests.
5072         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5073         * tests/test-frexp.c (RANDOM): New macro.
5074         * tests/test-frexpf.c (RANDOM): New macro.
5075         * tests/test-frexpl.c (RANDOM): New macro.
5076         * modules/frexp-tests (Files): Add tests/randomd.c.
5077         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5078         * modules/frexpf-tests (Files): Add tests/randomf.c.
5079         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5080         * modules/frexpl-tests (Files): Add tests/randoml.c.
5081         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5082
5083 2012-03-03  Bruno Haible  <bruno@clisp.org>
5084
5085         Support for pseudo-random numbers in tests.
5086         * tests/randomf.c: New file.
5087         * tests/randomd.c: New file.
5088         * tests/randoml.c: New file.
5089         * tests/macros.h (randomf, randomd, randoml): New declarations.
5090
5091 2012-03-03  Bruno Haible  <bruno@clisp.org>
5092
5093         frexp* tests: Refactor.
5094         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5095         * tests/test-frexp.c: Include and use it.
5096         * tests/test-frexpf.c: Likewise.
5097         * tests/test-frexpl.c: Likewise.
5098         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5099         * modules/frexpf-tests (Files): Likewise.
5100         * modules/frexpl-tests (Files): Likewise.
5101
5102 2012-03-02  Jim Meyering  <meyering@redhat.com>
5103
5104         maint: don't specify XZ_OPT=-9ev in dist-related rule
5105         Using xz's -9 option is warranted only if you have a very large
5106         tarball (see xz's documentation for the sizes vs. presets), and
5107         requires 64MiB of memory at decompression time.
5108         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5109         Automake's default of just "-e" is fine.  Override on a
5110         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5111
5112 2012-03-01  Eric Blake  <eblake@redhat.com>
5113
5114         maint.mk: allow announcement for non-gnulib project
5115         * maint.mk (announcement): Skip gnulib version if not used.
5116
5117 2012-03-01  Jim Meyering  <meyering@redhat.com>
5118
5119         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5120         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5121         envvar settings cannot interfere.  Otherwise, setting envvars like
5122         prohibit=foo require=bar, etc. would cause spurious test failures.
5123
5124 2012-03-01  Eric Blake  <eblake@redhat.com>
5125
5126         maint.mk: add per-line exclusions to prohibitions
5127         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5128         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5129         (sc_const_long_option): Use it.
5130
5131 2012-03-01  Bruno Haible  <bruno@clisp.org>
5132
5133         Tests for module 'expl-ieee'.
5134         * modules/expl-ieee-tests: New file.
5135         * tests/test-expl-ieee.c: New file.
5136
5137         New module 'expl-ieee'.
5138         * modules/expl-ieee: New file.
5139
5140         Tests for module 'exp-ieee'.
5141         * modules/exp-ieee-tests: New file.
5142         * tests/test-exp-ieee.c: New file.
5143
5144         New module 'exp-ieee'.
5145         * modules/exp-ieee: New file.
5146
5147         Tests for module 'expf-ieee'.
5148         * modules/expf-ieee-tests: New file.
5149         * tests/test-expf-ieee.c: New file.
5150         * tests/test-exp-ieee.h: New file.
5151
5152         New module 'expf-ieee'.
5153         * modules/expf-ieee: New file.
5154
5155 2012-02-29  Bruno Haible  <bruno@clisp.org>
5156
5157         cbrtl-ieee: Work around test failure on IRIX 6.5.
5158         * m4/cbrtl-ieee.m4: New file.
5159         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5160         test whether cbrtl works with a minus zero argument. Replace it if not.
5161         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5163         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5164         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5165         (Depends-on): Update conditions.
5166         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5167         m4/signbit.m4.
5168         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5169         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5170         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5171
5172         Tests for module 'cbrtl-ieee'.
5173         * modules/cbrtl-ieee-tests: New file.
5174         * tests/test-cbrtl-ieee.c: New file.
5175
5176         New module 'cbrtl-ieee'.
5177         * modules/cbrtl-ieee: New file.
5178
5179         Tests for module 'cbrt-ieee'.
5180         * modules/cbrt-ieee-tests: New file.
5181         * tests/test-cbrt-ieee.c: New file.
5182
5183         New module 'cbrt-ieee'.
5184         * modules/cbrt-ieee: New file.
5185
5186         Tests for module 'cbrtf-ieee'.
5187         * modules/cbrtf-ieee-tests: New file.
5188         * tests/test-cbrtf-ieee.c: New file.
5189         * tests/test-cbrt-ieee.h: New file.
5190
5191         New module 'cbrtf-ieee'.
5192         * modules/cbrtf-ieee: New file.
5193
5194 2012-02-29  Bruno Haible  <bruno@clisp.org>
5195
5196         cbrtf: Work around bug in IRIX 6.5 system function.
5197         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5198         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5199         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5200         work.
5201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5202         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5203         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5204         (Depends-on): Update conditions.
5205         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5206
5207 2012-02-29  Bruno Haible  <bruno@clisp.org>
5208
5209         Tests for module 'cbrtl'.
5210         * modules/cbrtl-tests: New file.
5211         * tests/test-cbrtl.c: New file.
5212
5213         New module 'cbrtl'.
5214         * lib/math.in.h (cbrtl): New declaration.
5215         * lib/cbrtl.c: New file.
5216         * m4/cbrtl.m4: New file.
5217         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5218         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5219         HAVE_DECL_CBRTL.
5220         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5221         HAVE_DECL_CBRTL.
5222         * modules/cbrtl: New file.
5223         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5224         * doc/posix-functions/cbrtl.texi: Mention the new module.
5225
5226 2012-02-29  Bruno Haible  <bruno@clisp.org>
5227
5228         Tests for module 'cbrtf'.
5229         * modules/cbrtf-tests: New file.
5230         * tests/test-cbrtf.c: New file.
5231
5232         New module 'cbrtf'.
5233         * lib/math.in.h (cbrtf): New declaration.
5234         * lib/cbrtf.c: New file.
5235         * m4/cbrtf.m4: New file.
5236         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5238         HAVE_DECL_CBRTF.
5239         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5240         HAVE_DECL_CBRTF.
5241         * modules/cbrtf: New file.
5242         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5243         * doc/posix-functions/cbrtf.texi: Mention the new module.
5244
5245 2012-02-29  Bruno Haible  <bruno@clisp.org>
5246
5247         cbrt: Provide replacement on MSVC and Minix.
5248         * lib/math.in.h (cbrt): New declaration.
5249         * lib/cbrt.c: New file.
5250         * m4/cbrt.m4: New file.
5251         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5253         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5254         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5255         (Depends-on): Add dependencies.
5256         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5257         * tests/test-math-c++.cc: Check the declaration of cbrt.
5258         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5259         replacement.
5260
5261 2012-02-29  Bruno Haible  <bruno@clisp.org>
5262
5263         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5264         * m4/hypotl-ieee.m4: New file.
5265         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5266         test whether hypotl works with mixed NaN and Infinity arguments.
5267         Replace it if not.
5268         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5270         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5271         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5272         (Depends-on): Update conditions.
5273         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5274         (Depends-on): Add hypot-ieee.
5275         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5276         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5277
5278         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5279         * m4/hypotf-ieee.m4: New file.
5280         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5281         test whether hypotf works with mixed NaN and Infinity arguments.
5282         Replace it if not.
5283         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5284         (Depends-on): Add hypot-ieee.
5285         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5286         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5287
5288         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5289         * lib/math.in.h (hypot): New declaration.
5290         * lib/hypot.c: New file.
5291         * m4/hypot-ieee.m4: New file.
5292         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5293         whether hypot works with mixed NaN and Infinity arguments. Replace it
5294         if not.
5295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5296         REPLACE_HYPOT.
5297         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5298         * modules/hypot (Files): Add lib/hypot.c.
5299         (Depends-on): Add dependencies.
5300         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5301         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5302         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5303         * tests/test-math-c++.cc: Check the declaration of hypot.
5304         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5305
5306         Tests for module 'hypotl-ieee'.
5307         * modules/hypotl-ieee-tests: New file.
5308         * tests/test-hypotl-ieee.c: New file.
5309
5310         New module 'hypotl-ieee'.
5311         * modules/hypotl-ieee: New file.
5312
5313         Tests for module 'hypot-ieee'.
5314         * modules/hypot-ieee-tests: New file.
5315         * tests/test-hypot-ieee.c: New file.
5316
5317         New module 'hypot-ieee'.
5318         * modules/hypot-ieee: New file.
5319
5320         Tests for module 'hypotf-ieee'.
5321         * modules/hypotf-ieee-tests: New file.
5322         * tests/test-hypotf-ieee.c: New file.
5323         * tests/test-hypot-ieee.h: New file.
5324
5325         New module 'hypotf-ieee'.
5326         * modules/hypotf-ieee: New file.
5327
5328 2012-02-29  Bruno Haible  <bruno@clisp.org>
5329
5330         Remove unused variables.
5331         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5332         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5333         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5334         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5335
5336 2012-02-29  Eric Blake  <eblake@redhat.com>
5337
5338         termios: fix pid_t always, not just for tcgetsid
5339         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5340         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5341         just when building tcgetsid.
5342
5343 2012-02-29  Bruno Haible  <bruno@clisp.org>
5344
5345         Tests for module 'hypotl'.
5346         * modules/hypotl-tests: New file.
5347         * tests/test-hypotl.c: New file.
5348
5349         New module 'hypotl'.
5350         * lib/math.in.h (hypotl): New declaration.
5351         * lib/hypotl.c: New file.
5352         * m4/hypotl.m4: New file.
5353         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5354         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5355         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5356         * modules/hypotl: New file.
5357         * tests/test-math-c++.cc: Check the hypotl declaration.
5358         * doc/posix-functions/hypotl.texi: Mention the new module.
5359
5360 2012-02-29  Eric Blake  <eblake@redhat.com>
5361
5362         tcgetsid: fix cygwin header bug
5363         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5364
5365         docs: update cygwin progress
5366         * doc/posix-functions/llround.texi (llround): Added in cygwin
5367         1.7.8.
5368         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5369         * doc/glibc-functions/program_invocation_name.texi
5370         (program_invocation_name): Likewise.
5371         * doc/glibc-functions/program_invocation_short_name.texi
5372         (program_invocation_short_name): Likewise.
5373         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5374         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5375         Likewise.
5376         * doc/posix-functions/pthread_spin_destroy.texi
5377         (pthread_spin_destroy): Added in cygwin 1.7.10.
5378         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5379         Likewise.
5380         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5381         Likewise.
5382         * doc/posix-functions/pthread_spin_trylock.texi
5383         (pthread_spin_trylock): Likewise.
5384         * doc/posix-functions/pthread_spin_unlock.texi
5385         (pthread_spin_unlock): Likewise.
5386         * doc/posix-functions/pthread_setschedprio.texi
5387         (pthread_setschedprio): Likewise.
5388         * doc/posix-functions/pthread_attr_getstack.texi
5389         (pthread_attr_getstack): Likewise.
5390         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5391         (pthread_attr_getstackaddr): Likewise.
5392         * doc/glibc-functions/pthread_getattr_np.texi
5393         (pthread_getattr_np): Likewise.
5394         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5395         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5396         * doc/posix-functions/clock_settime.texi (clock_settime):
5397         Likewise.
5398         * doc/posix-functions/pthread_attr_getguardsize.texi
5399         (pthread_attr_getguardsize): Likewise.
5400         * doc/posix-functions/pthread_attr_setguardsize.texi
5401         (pthread_attr_setguardsize): Likewise.
5402         * doc/posix-functions/pthread_attr_setstack.texi
5403         (pthread_attr_setstack): Likewise.
5404         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5405         (pthread_attr_setstackaddr): Likewise.
5406         * doc/posix-functions/clock_getcpuclockid.texi
5407         (clock_getcpuclockid): Likewise.
5408         * doc/posix-functions/pthread_getcpuclockid.texi
5409         (pthread_getcpuclockid): Likewise.
5410         * doc/glibc-functions/error.texi (error): Likewise.
5411         * doc/glibc-functions/error_at_line.texi (error_at_line):
5412         Likewise.
5413         * doc/glibc-functions/error_message_count.texi
5414         (error_message_count): Likewise.
5415         * doc/glibc-functions/error_one_per_line.texi
5416         (error_one_per_line): Likewise.
5417         * doc/glibc-functions/error_print_progname.texi
5418         (error_print_progname): Likewise.
5419         * doc/posix-functions/pthread_condattr_getclock.texi
5420         (pthread_condattr_getclock): Likewise.
5421         * doc/posix-functions/pthread_condattr_setclock.texi
5422         (pthread_condattr_setclock): Likewise.
5423         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5424         Likewise.
5425         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5426         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5427         * doc/glibc-functions/get_current_dir_name.texi
5428         (get_current_dir_name): Likewise.
5429         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5430         Likewise.
5431         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5432         wrong return type.
5433         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5434         1.7.11.
5435
5436 2012-02-29  Bruno Haible  <bruno@clisp.org>
5437
5438         Tests for module 'hypotf'.
5439         * modules/hypotf-tests: New file.
5440         * tests/test-hypotf.c: New file.
5441
5442         New module 'hypotf'.
5443         * lib/math.in.h (hypotf): New declaration.
5444         * lib/hypotf.c: New file.
5445         * m4/hypotf.m4: New file.
5446         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5447         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5448         REPLACE_HYPOTF.
5449         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5450         REPLACE_HYPOTF.
5451         * modules/hypotf: New file.
5452         * tests/test-math-c++.cc: Check the hypotf declaration.
5453         * doc/posix-functions/hypotf.texi: Mention the new module.
5454
5455         hypot: Prepare for hypotf module.
5456         * m4/hypot.m4: New file.
5457         * modules/hypot (Files): Add m4/hypot.m4.
5458         (configure.ac): Invoke gl_FUNC_HYPOT.
5459
5460 2012-02-29  Bruno Haible  <bruno@clisp.org>
5461
5462         hypot tests: More tests.
5463         * tests/test-hypot.c: Include <float.h>.
5464         (main): Add tests about overflow and underflow.
5465
5466 2012-02-29  Bruno Haible  <bruno@clisp.org>
5467
5468         math code: Add comments.
5469         * lib/acosl.c: Add comment about related glibc source files.
5470         * lib/asinl.c: Likewise.
5471         * lib/atanl.c: Likewise.
5472         * lib/expl.c: Likewise.
5473         * lib/logl.c: Likewise.
5474         * lib/sincosl.c: Likewise.
5475         * lib/sinl.c: Likewise.
5476         * lib/tanl.c: Likewise.
5477         * lib/trigl.c: Likewise.
5478         * lib/cosl.c: Likewise. Fix comments.
5479
5480 2012-02-28  Bruno Haible  <bruno@clisp.org>
5481
5482         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5483         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5484         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5485         HUGE_VALL are defined.
5486         (numeric_equald): Renamed from numeric_equal.
5487         (numeric_equalf, numeric_equall): New functions.
5488         (main): Check also HUGE_VALF, HUGE_VALL.
5489         * modules/math-tests (Files): Add tests/macros.h.
5490         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5491         HUGE_VALL.
5492
5493 2012-02-28  Bruno Haible  <bruno@clisp.org>
5494
5495         doc: Move ISO C11 feature notes into POSIX chapters.
5496         * doc/posix-functions/aligned_alloc.texi: Renamed from
5497         doc/glibc-functions/aligned_alloc.texi.
5498         * doc/posix-functions/quick_exit.texi: Renamed from
5499         doc/glibc-functions/quick_exit.texi.
5500         * doc/posix-headers/uchar.texi: Renamed from
5501         doc/glibc-headers/uchar.texi.
5502         * doc/posix-functions/c16rtomb.texi: Renamed from
5503         doc/glibc-functions/c16rtomb.texi.
5504         * doc/posix-functions/c32rtomb.texi: Renamed from
5505         doc/glibc-functions/c32rtomb.texi.
5506         * doc/posix-functions/mbrtoc16.texi: Renamed from
5507         doc/glibc-functions/mbrtoc16.texi.
5508         * doc/posix-functions/mbrtoc32.texi: Renamed from
5509         doc/glibc-functions/mbrtoc32.texi.
5510         * doc/gnulib.texi: Update.
5511         (Glibc uchar.h): Remove section.
5512         Suggested by Eric Blake.
5513
5514 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5515
5516         stdnoreturn: port to MSVC better
5517         MSVC standard headers use __declspec(noreturn), so #define noreturn
5518         to empty on that platform.  Reported by Bruno Haible in
5519         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5520         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5521         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5522
5523 2012-02-28  Bruno Haible  <bruno@clisp.org>
5524
5525         doc: Mention new glibc headers and functions.
5526         * doc/glibc-headers/uchar.texi: New file.
5527         * doc/glibc-functions/aligned_alloc.texi: New file.
5528         * doc/glibc-functions/c16rtomb.texi: New file.
5529         * doc/glibc-functions/c32rtomb.texi: New file.
5530         * doc/glibc-functions/clock_adjtime.texi: New file.
5531         * doc/glibc-functions/fanotify_init.texi: New file.
5532         * doc/glibc-functions/fanotify_mark.texi: New file.
5533         * doc/glibc-functions/inet6_opt_append.texi: New file.
5534         * doc/glibc-functions/inet6_opt_find.texi: New file.
5535         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5536         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5537         * doc/glibc-functions/inet6_opt_init.texi: New file.
5538         * doc/glibc-functions/inet6_opt_next.texi: New file.
5539         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5540         * doc/glibc-functions/inet6_rth_add.texi: New file.
5541         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5542         * doc/glibc-functions/inet6_rth_init.texi: New file.
5543         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5544         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5545         * doc/glibc-functions/inet6_rth_space.texi: New file.
5546         * doc/glibc-functions/login.texi: New file.
5547         * doc/glibc-functions/mbrtoc16.texi: New file.
5548         * doc/glibc-functions/mbrtoc32.texi: New file.
5549         * doc/glibc-functions/name_to_handle_at.texi: New file.
5550         * doc/glibc-functions/ntp_gettimex.texi: New file.
5551         * doc/glibc-functions/open_by_handle_at.texi: New file.
5552         * doc/glibc-functions/prlimit.texi: New file.
5553         * doc/glibc-functions/process_vm_readv.texi: New file.
5554         * doc/glibc-functions/process_vm_writev.texi: New file.
5555         * doc/glibc-functions/recvmmsg.texi: New file.
5556         * doc/glibc-functions/scandirat.texi: New file.
5557         * doc/glibc-functions/sendmmsg.texi: New file.
5558         * doc/glibc-functions/setns.texi: New file.
5559         * doc/glibc-functions/timespec_get.texi: New file.
5560         * doc/gnulib.texi: Include them.
5561         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5562         sections.
5563         Reported by Eric Blake.
5564
5565 2012-02-28  Bruno Haible  <bruno@clisp.org>
5566
5567         Avoid compilation errors with MSVC option -fp:strict.
5568         * lib/floor.c: Use MSVC specific pragma fenv_access.
5569         * lib/ceil.c: Likewise.
5570         * lib/trunc.c: Likewise.
5571         * lib/round.c: Likewise.
5572         * lib/rint.c: Likewise.
5573         * lib/fma.c: Likewise.
5574         * lib/integer_length.c: Likewise.
5575         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5576         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5577         * tests/test-floor2.c: Likewise.
5578         * tests/test-floorf2.c: Likewise.
5579         * tests/test-ceil2.c: Likewise.
5580         * tests/test-ceilf2.c: Likewise.
5581         * tests/test-trunc2.c: Likewise.
5582         * tests/test-truncf2.c: Likewise.
5583         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5584
5585 2012-02-27  Bruno Haible  <bruno@clisp.org>
5586
5587         Tests for module 'sqrtl-ieee'.
5588         * modules/sqrtl-ieee-tests: New file.
5589         * tests/test-sqrtl-ieee.c: New file.
5590
5591         New module 'sqrtl-ieee'.
5592         * modules/sqrtl-ieee: New file.
5593
5594         Tests for module 'sqrt-ieee'.
5595         * modules/sqrt-ieee-tests: New file.
5596         * tests/test-sqrt-ieee.c: New file.
5597
5598         New module 'sqrt-ieee'.
5599         * modules/sqrt-ieee: New file.
5600
5601         Tests for module 'sqrtf-ieee'.
5602         * modules/sqrtf-ieee-tests: New file.
5603         * tests/test-sqrtf-ieee.c: New file.
5604         * tests/test-sqrt-ieee.h: New file.
5605
5606         New module 'sqrtf-ieee'.
5607         * modules/sqrtf-ieee: New file.
5608
5609 2012-02-27  Bruno Haible  <bruno@clisp.org>
5610
5611         remainderl-ieee: Work around test failure on OSF/1.
5612         * m4/remainderl-ieee.m4: New file.
5613         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
5614         present, test whether remainderl works with a zero second argument.
5615         Replace it if not.
5616         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
5617         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
5618         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
5619         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
5620         (Depends-on): Update conditions.
5621         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
5622         (Depends-on): Add remainder-ieee.
5623         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
5624         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
5625         module.
5626
5627         remainderf-ieee: Work around test failure on OSF/1.
5628         * m4/remainderf-ieee.m4: New file.
5629         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
5630         present, test whether remainderf works with a zero second argument.
5631         Replace it if not.
5632         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
5633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
5634         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
5635         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
5636         (Depends-on): Update conditions.
5637         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
5638         (Depends-on): Add remainder-ieee.
5639         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
5640         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
5641         module.
5642
5643         remainder-ieee: Work around test failure on OSF/1.
5644         * m4/remainder-ieee.m4: New file.
5645         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
5646         present, test whether remainder works with a zero second argument.
5647         Replace it if not.
5648         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
5649         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
5650         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
5651         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
5652         (Depends-on): Update dependencies.
5653         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
5654         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
5655         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
5656
5657         Tests for module 'remainderl-ieee'.
5658         * modules/remainderl-ieee-tests: New file.
5659         * tests/test-remainderl-ieee.c: New file.
5660
5661         New module 'remainderl-ieee'.
5662         * modules/remainderl-ieee: New file.
5663
5664         Tests for module 'remainder-ieee'.
5665         * modules/remainder-ieee-tests: New file.
5666         * tests/test-remainder-ieee.c: New file.
5667
5668         New module 'remainder-ieee'.
5669         * modules/remainder-ieee: New file.
5670
5671         Tests for module 'remainderf-ieee'.
5672         * modules/remainderf-ieee-tests: New file.
5673         * tests/test-remainderf-ieee.c: New file.
5674         * tests/test-remainder-ieee.h: New file.
5675
5676         New module 'remainderf-ieee'.
5677         * modules/remainderf-ieee: New file.
5678
5679 2012-02-27  Bruno Haible  <bruno@clisp.org>
5680
5681         modff, modfl: Fix configure syntax error.
5682         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
5683         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5684
5685 2012-02-27  Bruno Haible  <bruno@clisp.org>
5686
5687         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
5688         * m4/fmodl-ieee.m4: New file.
5689         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
5690         whether fmodl works with zero arguments. Replace it if not.
5691         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
5692         (Depends-on): Add fmod-ieee.
5693         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
5694         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
5695
5696         fmodf-ieee: Work around test failure on OSF/1.
5697         * m4/fmodf-ieee.m4: New file.
5698         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
5699         whether fmodf works with zero arguments. Replace it if not.
5700         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
5701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
5702         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
5703         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
5704         (Depends-on): Update dependencies.
5705         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
5706         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
5707         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
5708
5709         fmodf-ieee: Work around test failure on MSVC 9.
5710         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
5711         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
5712
5713         fmod-ieee: Work around test failures on OSF/1, mingw.
5714         * m4/fmod-ieee.m4: New file.
5715         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
5716         whether fmod works with zero arguments. Replace it if not.
5717         * lib/math.in.h (fmod): New declaration.
5718         * lib/fmod.c: New file.
5719         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
5720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
5721         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
5722         * modules/fmod (Files): Add lib/fmod.c.
5723         (Depends-on): Add math, isinf, trunc, fma.
5724         (configure.ac): Arrange to compile lib/fmod.c if needed.
5725         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
5726         m4/signbit.m4.
5727         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
5728         * tests/test-math-c++.cc: Check the declaration of fmod.
5729         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
5730
5731         fmodl-ieee: Fix test failures.
5732         * lib/fmodl.c (fmodl): Treat Inf specially.
5733         * modules/fmodl (Depends-on): Add isinf.
5734
5735         Tests for module 'fmodl-ieee'.
5736         * modules/fmodl-ieee-tests: New file.
5737         * tests/test-fmodl-ieee.c: New file.
5738
5739         New module 'fmodl-ieee'.
5740         * modules/fmodl-ieee: New file.
5741
5742         Tests for module 'fmod-ieee'.
5743         * modules/fmod-ieee-tests: New file.
5744         * tests/test-fmod-ieee.c: New file.
5745
5746         New module 'fmod-ieee'.
5747         * modules/fmod-ieee: New file.
5748
5749         Tests for module 'fmodf-ieee'.
5750         * modules/fmodf-ieee-tests: New file.
5751         * tests/test-fmodf-ieee.c: New file.
5752         * tests/test-fmod-ieee.h: New file.
5753
5754         New module 'fmodf-ieee'.
5755         * modules/fmodf-ieee: New file.
5756
5757 2012-02-27  Bruno Haible  <bruno@clisp.org>
5758
5759         Tests for module 'rintl-ieee'.
5760         * modules/rintl-ieee-tests: New file.
5761         * tests/test-rintl-ieee.c: New file.
5762
5763         New module 'rintl-ieee'.
5764         * modules/rintl-ieee: New file.
5765
5766         Tests for module 'rint-ieee'.
5767         * modules/rint-ieee-tests: New file.
5768         * tests/test-rint-ieee.c: New file.
5769
5770         New module 'rint-ieee'.
5771         * modules/rint-ieee: New file.
5772
5773         Tests for module 'rintf-ieee'.
5774         * modules/rintf-ieee-tests: New file.
5775         * tests/test-rintf-ieee.c: New file.
5776         * tests/test-rint-ieee.h: New file.
5777
5778         New module 'rintf-ieee'.
5779         * modules/rintf-ieee: New file.
5780
5781 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
5782
5783         regex: re_search etc. should return -2 when memory exhausted
5784         This bug was uncovered when testing 'grep'.  Without the fix,
5785         re_search and friends return -1 when memory is exhausted, but -1
5786         means no match, and this causes grep to falsely report no-match
5787         instead of memory-exhaustion.  See
5788         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
5789         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
5790         trouble; this can occur if re_search_internal ran out of memory.
5791
5792 2012-02-26  Bruno Haible  <bruno@clisp.org>
5793
5794         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
5795         * m4/modfl-ieee.m4: New file.
5796         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
5797         whether modfl works with Inf. Replace it if not.
5798         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
5799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
5800         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
5801         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
5802         (Depends-on): Update dependencies.
5803         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
5804         m4/signbit.m4.
5805         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
5806         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
5807
5808         modfl-ieee: Fix dependencies.
5809         * modules/modfl-ieee (Depends-on): Add modf-ieee.
5810
5811         modfl-ieee: Fix test failures.
5812         * lib/modfl.c (modfl): Treat NaN and Inf specially.
5813         * modules/modfl (Depends-on): Add isfinite, isinf.
5814
5815         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
5816         * m4/modff-ieee.m4: New file.
5817         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
5818         whether modff works with NaN and Inf. Replace it if not.
5819         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
5820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
5821         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
5822         * modules/modff (configure.ac): Consider REPLACE_MODFF.
5823         (Depends-on): Update dependencies.
5824         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
5825         m4/signbit.m4.
5826         (Depends-on): Add modf-ieee.
5827         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
5828         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
5829
5830         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
5831         * m4/modf-ieee.m4: New file.
5832         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
5833         whether modf works with NaN and Inf. Replace it if not.
5834         * lib/math.in.h (modf): New declaration.
5835         * lib/modf.c: New file.
5836         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
5837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
5838         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
5839         * modules/modf (Files): Add lib/modf.c.
5840         (Depends-on): Add math, isfinite, trunc, isinf.
5841         (configure.ac): Addrange to compile lib/modf.c if needed.
5842         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
5843         m4/signbit.m4.
5844         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
5845         * tests/test-math-c++.cc: Check the declaration of modf.
5846         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
5847
5848         Tests for module 'modfl-ieee'.
5849         * modules/modfl-ieee-tests: New file.
5850         * tests/test-modfl-ieee.c: New file.
5851
5852         New module 'modfl-ieee'.
5853         * modules/modfl-ieee: New file.
5854
5855         Tests for module 'modf-ieee'.
5856         * modules/modf-ieee-tests: New file.
5857         * tests/test-modf-ieee.c: New file.
5858
5859         New module 'modf-ieee'.
5860         * modules/modf-ieee: New file.
5861
5862         Tests for module 'modff-ieee'.
5863         * modules/modff-ieee-tests: New file.
5864         * tests/test-modff-ieee.c: New file.
5865         * tests/test-modf-ieee.h: New file.
5866
5867         New module 'modff-ieee'.
5868         * modules/modff-ieee: New file.
5869
5870 2012-02-26  Bruno Haible  <bruno@clisp.org>
5871
5872         Tests for module 'fabsl-ieee'.
5873         * modules/fabsl-ieee-tests: New file.
5874         * tests/test-fabsl-ieee.c: New file.
5875
5876         New module 'fabsl-ieee'.
5877         * modules/fabsl-ieee: New file.
5878
5879         Tests for module 'fabs-ieee'.
5880         * modules/fabs-ieee-tests: New file.
5881         * tests/test-fabs-ieee.c: New file.
5882
5883         New module 'fabs-ieee'.
5884         * modules/fabs-ieee: New file.
5885
5886         Tests for module 'fabsf-ieee'.
5887         * modules/fabsf-ieee-tests: New file.
5888         * tests/test-fabsf-ieee.c: New file.
5889         * tests/test-fabs-ieee.h: New file.
5890
5891         New module 'fabsf-ieee'.
5892         * modules/fabsf-ieee: New file.
5893
5894 2012-02-26  Bruno Haible  <bruno@clisp.org>
5895
5896         Tests for module 'fmal-ieee'.
5897         * modules/fmal-ieee-tests: New file.
5898         * tests/test-fmal-ieee.c: New file.
5899
5900         New module 'fmal-ieee'.
5901         * modules/fmal-ieee: New file.
5902
5903         Tests for module 'fma-ieee'.
5904         * modules/fma-ieee-tests: New file.
5905         * tests/test-fma-ieee.c: New file.
5906
5907         New module 'fma-ieee'.
5908         * modules/fma-ieee: New file.
5909
5910         Tests for module 'fmaf-ieee'.
5911         * modules/fmaf-ieee-tests: New file.
5912         * tests/test-fmaf-ieee.c: New file.
5913         * tests/test-fma-ieee.h: New file.
5914
5915         New module 'fmaf-ieee'.
5916         * modules/fmaf-ieee: New file.
5917
5918 2012-02-26  Bruno Haible  <bruno@clisp.org>
5919
5920         Tests for module 'ldexpl-ieee'.
5921         * modules/ldexpl-ieee-tests: New file.
5922         * tests/test-ldexpl-ieee.c: New file.
5923
5924         New module 'ldexpl-ieee'.
5925         * modules/ldexpl-ieee: New file.
5926
5927         Tests for module 'ldexp-ieee'.
5928         * modules/ldexp-ieee-tests: New file.
5929         * tests/test-ldexp-ieee.c: New file.
5930
5931         New module 'ldexp-ieee'.
5932         * modules/ldexp-ieee: New file.
5933
5934         Tests for module 'ldexpf-ieee'.
5935         * modules/ldexpf-ieee-tests: New file.
5936         * tests/test-ldexpf-ieee.c: New file.
5937         * tests/test-ldexp-ieee.h: New file.
5938
5939         New module 'ldexpf-ieee'.
5940         * modules/ldexpf-ieee: New file.
5941
5942 2012-02-26  Bruno Haible  <bruno@clisp.org>
5943
5944         Refactor frexp*-ieee tests.
5945         * tests/test-frexp-ieee.h: New file.
5946         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
5947         (main): Just call test_function.
5948         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
5949         (main): Just call test_function.
5950         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
5951         (main): Just call test_function.
5952         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
5953         * modules/frexp-ieee-tests (Files): Likewise.
5954         * modules/frexpl-ieee-tests (Files): Likewise.
5955
5956         Tests for module 'frexpl-ieee'.
5957         * modules/frexpl-ieee-tests: New file.
5958         * tests/test-frexpl-ieee.c: New file.
5959
5960         New module 'frexpl-ieee'.
5961         * modules/frexpl-ieee: New file.
5962
5963         Tests for module 'frexp-ieee'.
5964         * modules/frexp-ieee-tests: New file.
5965         * tests/test-frexp-ieee.c: New file.
5966
5967         New module 'frexp-ieee'.
5968         * modules/frexp-ieee: New file.
5969
5970         Tests for module 'frexpf-ieee'.
5971         * modules/frexpf-ieee-tests: New file.
5972         * tests/test-frexpf-ieee.c: New file.
5973
5974         New module 'frexpf-ieee'.
5975         * modules/frexpf-ieee: New file.
5976
5977 2012-02-26  Bruno Haible  <bruno@clisp.org>
5978
5979         roundl-ieee tests: More tests.
5980         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5981         (main): Add tests for [MX] shaded specification in POSIX.
5982         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5983         (Depends-on): Add isnanl-nolibm.
5984
5985         round-ieee tests: More tests.
5986         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5987         (main): Add tests for [MX] shaded specification in POSIX.
5988         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5989         (Depends-on): Add isnand-nolibm.
5990
5991         roundf-ieee tests: More tests.
5992         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5993         (main): Add tests for [MX] shaded specification in POSIX.
5994         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5995         (Depends-on): Add isnanf-nolibm.
5996
5997         truncl-ieee tests: More tests.
5998         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5999         (main): Add tests for [MX] shaded specification in POSIX.
6000         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6001         (Depends-on): Add isnanl-nolibm.
6002
6003         trunc-ieee tests: More tests.
6004         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6005         (main): Add tests for [MX] shaded specification in POSIX.
6006         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6007         (Depends-on): Add isnand-nolibm.
6008
6009         truncf-ieee tests: More tests.
6010         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6011         (main): Add tests for [MX] shaded specification in POSIX.
6012         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6013         (Depends-on): Add isnanf-nolibm.
6014
6015         ceill-ieee tests: More tests.
6016         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6017         (main): Add tests for [MX] shaded specification in POSIX.
6018         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6019         (Depends-on): Add isnanl-nolibm.
6020
6021         ceil-ieee tests: More tests.
6022         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6023         (main): Add tests for [MX] shaded specification in POSIX.
6024         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6025         (Depends-on): Add isnand-nolibm.
6026
6027         ceilf-ieee tests: More tests.
6028         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6029         (main): Add tests for [MX] shaded specification in POSIX.
6030         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6031         (Depends-on): Add isnanf-nolibm.
6032
6033         floorl-ieee tests: More tests.
6034         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6035         (main): Add tests for [MX] shaded specification in POSIX.
6036         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6037         (Depends-on): Add isnanl-nolibm.
6038
6039         floor-ieee tests: More tests.
6040         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6041         (main): Add tests for [MX] shaded specification in POSIX.
6042         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6043         (Depends-on): Add isnand-nolibm.
6044
6045         floorf-ieee tests: More tests.
6046         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6047         (main): Add tests for [MX] shaded specification in POSIX.
6048         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6049         (Depends-on): Add isnanf-nolibm.
6050
6051 2012-02-26  Bruno Haible  <bruno@clisp.org>
6052
6053         fpieee: More comments.
6054         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6055
6056 2012-02-25  Bruno Haible  <bruno@clisp.org>
6057
6058         Tests for module 'log10l'.
6059         * modules/log10l-tests: New file.
6060         * tests/test-log10l.c: New file.
6061         * tests/test-math-c++.cc: Check the declaration of log10l.
6062
6063         New module 'log10l'.
6064         * lib/math.in.h (log10l): New declaration.
6065         * lib/log10l.c: New file.
6066         * m4/log10l.m4: New file.
6067         * modules/log10l: New file.
6068         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6069         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6070         HAVE_DECL_LOG10L.
6071         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6072         HAVE_DECL_LOG10L.
6073         * doc/posix-functions/log10l.texi: Mention the new module.
6074
6075 2012-02-25  Bruno Haible  <bruno@clisp.org>
6076
6077         fmodl, remainder*: Avoid wrong results due to rounding errors.
6078         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6079         expected bounds.
6080         * lib/remainderf.c (remainderf): Likewise.
6081         * lib/remainder.c (remainder): Likewise.
6082         * lib/remainderl.c (remainderl): Likewise.
6083
6084 2012-02-25  Bruno Haible  <bruno@clisp.org>
6085
6086         Tests for module 'remainderl'.
6087         * modules/remainderl-tests: New file.
6088         * tests/test-remainderl.c: New file.
6089         * tests/test-math-c++.cc: Check the declaration of remainderl.
6090
6091         New module 'remainderl'.
6092         * lib/math.in.h (remainderl): New declaration.
6093         * lib/remainderl.c: New file.
6094         * m4/remainderl.m4: New file.
6095         * modules/remainderl: New file.
6096         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6097         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6098         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6099         HAVE_REMAINDERL.
6100         * doc/posix-functions/remainderl.texi: Mention the new module.
6101
6102 2012-02-25  Bruno Haible  <bruno@clisp.org>
6103
6104         Tests for module 'remainderf'.
6105         * modules/remainderf-tests: New file.
6106         * tests/test-remainderf.c: New file.
6107         * tests/test-math-c++.cc: Check the declaration of remainderf.
6108
6109         New module 'remainderf'.
6110         * lib/math.in.h (remainderf): New declaration.
6111         * lib/remainderf.c: New file.
6112         * m4/remainderf.m4: New file.
6113         * modules/remainderf: New file.
6114         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6116         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6117         HAVE_REMAINDERF.
6118         * doc/posix-functions/remainderf.texi: Mention the new module.
6119
6120 2012-02-25  Bruno Haible  <bruno@clisp.org>
6121
6122         remainder: Support for MSVC.
6123         * lib/math.in.h (remainder): New declaration.
6124         * lib/remainder.c: New file.
6125         * m4/remainder.m4: New file.
6126         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6127         (Depends-on): Add math, round, fma.
6128         (configure.ac): Use results of gl_FUNC_REMAINDER.
6129         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6130         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6131         HAVE_DECL_REMAINDER.
6132         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6133         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6134         * tests/test-math-c++.cc: Check the declaration of remainder.
6135         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6136         problems are fixed.
6137
6138 2012-02-25  Bruno Haible  <bruno@clisp.org>
6139
6140         Tests for module 'fmodl'.
6141         * modules/fmodl-tests: New file.
6142         * tests/test-fmodl.c: New file.
6143         * tests/test-math-c++.cc: Check the declaration of fmodl.
6144
6145         New module 'fmodl'.
6146         * lib/math.in.h (fmodl): New declaration.
6147         * lib/fmodl.c: New file.
6148         * m4/fmodl.m4: New file.
6149         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6151         REPLACE_FMODL.
6152         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6153         REPLACE_FMODL.
6154         * modules/fmodl: New file.
6155         * doc/posix-functions/fmodl.texi: Mention the new module.
6156
6157 2012-02-25  Bruno Haible  <bruno@clisp.org>
6158
6159         Tests for module 'modfl'.
6160         * modules/modfl-tests: New file.
6161         * tests/test-modfl.c: New file.
6162         * tests/test-math-c++.cc: Check the declaration of modfl.
6163
6164         New module 'modfl'.
6165         * lib/math.in.h (modfl): New declaration.
6166         * lib/modfl.c: New file.
6167         * m4/modfl.m4: New file.
6168         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6170         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6171         * modules/modfl: New file.
6172         * doc/posix-functions/modfl.texi: Mention the new module.
6173
6174 2012-02-25  Bruno Haible  <bruno@clisp.org>
6175
6176         Tests for module 'fabsl'.
6177         * modules/fabsl-tests: New file.
6178         * tests/test-fabsl.c: New file.
6179         * tests/test-math-c++.cc: Check the declaration of fabsl.
6180
6181         New module 'fabsl'.
6182         * lib/math.in.h (fabsl): New declaration.
6183         * lib/fabsl.c: New file.
6184         * m4/fabsl.m4: New file.
6185         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6187         REPLACE_FABSL.
6188         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6189         REPLACE_FABSL.
6190         * modules/fabsl: New file.
6191         * doc/posix-functions/fabsl.texi: Mention the new module.
6192
6193 2012-02-25  Bruno Haible  <bruno@clisp.org>
6194
6195         fabs tests: More tests.
6196         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6197         (zero): New variable.
6198         (main): Add tests for signed zero.
6199         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6200
6201         fabsf tests: More tests.
6202         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6203         (zero): New variable.
6204         (main): Add tests for signed zero.
6205         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6206
6207 2012-02-24  Bruno Haible  <bruno@clisp.org>
6208
6209         atanl: Provide function definition on MSVC.
6210         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6211         function pointer.
6212         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6213
6214 2012-02-24  Bruno Haible  <bruno@clisp.org>
6215
6216         acosl: Provide function definition on MSVC.
6217         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6218         function pointer.
6219         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6220
6221 2012-02-24  Bruno Haible  <bruno@clisp.org>
6222
6223         asinl: Provide function definition on MSVC.
6224         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6225         function pointer.
6226         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6227
6228 2012-02-24  Bruno Haible  <bruno@clisp.org>
6229
6230         tanl: Provide function definition on MSVC.
6231         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6232         function pointer.
6233         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6234
6235 2012-02-24  Bruno Haible  <bruno@clisp.org>
6236
6237         cosl: Provide function definition on MSVC.
6238         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6239         function pointer.
6240         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6241
6242 2012-02-24  Bruno Haible  <bruno@clisp.org>
6243
6244         sinl: Provide function definition on MSVC.
6245         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6246         function pointer.
6247         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6248
6249 2012-02-24  Bruno Haible  <bruno@clisp.org>
6250
6251         logl: Provide function definition on MSVC.
6252         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6253         function pointer.
6254         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6255
6256 2012-02-24  Bruno Haible  <bruno@clisp.org>
6257
6258         expl: Provide function definition on MSVC.
6259         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6260         function pointer.
6261         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6262
6263 2012-02-24  Bruno Haible  <bruno@clisp.org>
6264
6265         sqrtl: Provide function definition on MSVC.
6266         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6267         a function pointer.
6268         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6269
6270 2012-02-24  Bruno Haible  <bruno@clisp.org>
6271
6272         ceill: Provide function definition on MSVC.
6273         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6274         used as a function pointer.
6275         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6276
6277 2012-02-24  Bruno Haible  <bruno@clisp.org>
6278
6279         floorl: Provide function definition on MSVC.
6280         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6281         used as a function pointer.
6282         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6283
6284 2012-02-24  Bruno Haible  <bruno@clisp.org>
6285
6286         ceilf: Provide function definition on MSVC.
6287         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6288         used as a function pointer.
6289         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6290
6291 2012-02-24  Bruno Haible  <bruno@clisp.org>
6292
6293         floorf: Provide function definition on MSVC.
6294         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6295         used as a function pointer.
6296         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6297
6298 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6299
6300         stdnoreturn: new module
6301         This implements a replacement for C11's <stdnoreturn.h>.
6302         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6303         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6304         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6305         * tests/test-stdnoreturn.c: New files.
6306
6307 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6308
6309         regex: fix false multibyte matches in some regular expressions
6310         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6311         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6312         * lib/regex_internal.c (re_string_skip_chars):
6313         Fix miscomputation of remain_len that may cause incomplete
6314         multi-byte character and false match.
6315
6316 2012-02-24  Jim Meyering  <meyering@redhat.com>
6317
6318         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6319         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6320         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6321         Remove now-unnecessary str''cmp obfuscation.
6322         Suggested by Akim Demaille.
6323
6324 2012-02-24  Bruno Haible  <bruno@clisp.org>
6325
6326         streq: Rename macro.
6327         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6328         * NEWS: Mention the change.
6329         * lib/mbrtowc.c (mbrtowc): Update.
6330         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6331         * lib/wcwidth.c (wcwidth): Update.
6332         Suggested by Akim Demaille and Jim Meyering.
6333
6334 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6335
6336         regex: fix typo in definition of MIN
6337         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6338         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6339
6340 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6341             Bruno Haible  <bruno@clisp.org>
6342
6343         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6344         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6345         entries into a stack-allocated buffer directly.
6346         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6347
6348 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6349             Bruno Haible  <bruno@clisp.org>
6350
6351         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6352
6353          - There were several instances of this pattern:
6354
6355              for (;;) {
6356                n = acl (f, GETACLCNT, 0, NULL);
6357                [ allocate an array A of size N ]
6358                if (acl (f, GETACL, n, a) == n)
6359                  break;
6360              }
6361
6362            This loop might never terminate if some other process is constantly
6363            manipulating the file's ACL.  The loop should be rewritten to
6364            terminate.
6365
6366          - The acl (... GETACLNT ...) call is merely an optimization; its value
6367            is merely a hint as to how big to make the array.  A better
6368            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6369            and just guess a reasonably-big size, growing the size and trying
6370            again if it's not large enough.  This guarantees termination, and
6371            saves a system call.
6372
6373         * lib/acl-internal.h: Include <limits.h>.
6374         (MIN, SIZE_MAX): New macros.
6375         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6376         a stack-allocated buffer, and use malloc if it does not fit. Don't
6377         use GETACLCNT.
6378         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6379
6380 2012-02-19  Bruno Haible  <bruno@clisp.org>
6381
6382         acl: Fix endless loop on Solaris with vxfs.
6383         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6384         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6385         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6386         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6387         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6388         Reported by Bill Jones in
6389         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6390
6391 2012-02-19  Bruno Haible  <bruno@clisp.org>
6392
6393         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6394         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6395         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6396         that this function returns 0 in some more cases.
6397
6398 2012-02-19  Bruno Haible  <bruno@clisp.org>
6399
6400         acl: Update doc references.
6401         * doc/acl-resources.txt: Update links to Solaris documentation.
6402
6403 2012-02-19  Bruno Haible  <bruno@clisp.org>
6404
6405         Fix test failure in many locales on Solaris 11.
6406         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6407         'tr' arguments.
6408         * tests/test-pipe-filter-ii1.c (main): Likewise.
6409         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6410         expressions in the C locale.
6411         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6412         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6413
6414 2012-02-19  Bruno Haible  <bruno@clisp.org>
6415
6416         gnulib-tool: Improve usage message.
6417         * gnulib-tool (func_usage): Move doc of --help and --version to the
6418         section "Operation modes".
6419
6420 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6421
6422         README-release: make it easier to execute commands
6423         * top/README-release: break commands out on to separate lines.
6424
6425 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6426
6427         GNUmakefile: simplify detection of unconfigured trees
6428         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6429         whether the tree make is being run from is already configured or
6430         not.  Related simplifications.
6431
6432 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6433
6434         * gnulib-tool (func_usage): Document --help and --version.
6435
6436 2012-02-11  Jim Meyering  <meyering@redhat.com>
6437
6438         bootstrap: don't exit 0 upon gnulib-tool failure
6439         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6440         its exit status, not 0.
6441
6442 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6443
6444         README-release: various improvements
6445         * top/README-release: Give a command to push changes for the
6446         release.  Add "distcheck" to list of other pre-release checks.
6447         Fix instance of "make stable" which should be "make TYPE".
6448
6449 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6450
6451         maint: replace FSF snail-mail addresses with URLs
6452         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6453         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6454         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6455         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6456         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6457         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6458         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6459         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6460         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6461         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6462         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6463         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6464         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6465         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6466         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6467         * lib/glthread/thread.c, lib/glthread/thread.h:
6468         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6469         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6470         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6471         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6472         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6473         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6474         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6475         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6476         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6477         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6478         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6479         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6480         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6481         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6482         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6483         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6484         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6485         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6486         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6487         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6488         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6489         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6490         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6491         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6492         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6493         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6494         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6495         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6496         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6497         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6498         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6499         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6500         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6501         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6502         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6503         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6504         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6505         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6506         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6507         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6508         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6509         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6510         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6511         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6512         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6513         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6514         * tests/test-poll.c, tests/test-quotearg-simple.c:
6515         * tests/test-quotearg.c, tests/test-quotearg.h:
6516         * tests/test-round-ieee.c, tests/test-round1.c:
6517         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6518         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6519         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6520         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6521         * tests/test-strerror.c, tests/test-strerror_r.c:
6522         * tests/test-strsignal.c, tests/test-strverscmp.c:
6523         * tests/test-xmemdup0.c:
6524         Replace FSF snail mail addresses with URLs, as per GNU coding
6525         standards.  See glibc bug
6526         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6527
6528 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6529
6530         README-release: capitalize a word and split a line
6531         * top/README-release: Fix punctuation and spacing.
6532
6533 2012-02-08  Akim Demaille  <demaille@gostai.com>
6534
6535         fatal-signal: use C prototypes (with explicit void).
6536         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6537         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6538
6539 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6540
6541         regex: spelling fix
6542         * lib/regexec.c: spelling fix
6543
6544         regex: rely on stdint.h for SIZE_MAX
6545         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6546
6547 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6548
6549         regex: merge glibc changes
6550
6551         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6552         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6553         (init_word_char): Work even if bitset words are not exactly 32 or
6554         64 bits wide.  Don't assume there are no padding bits.
6555         * lib/regex.c [_LIBC]: Do not include <config.h>.
6556         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6557         and -Wtype-limits.
6558         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6559         needless disagreement with glibc.  All uses changed.  Define it to
6560         1 only if _GNU_SOURCE, to match glibc.
6561         (_REG_RM_NAME): Remove; no longer needed, since the names in
6562         question are now all protected by __USE_GNU.
6563         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6564         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6565         * lib/regex_internal.h (MIN): New macro.
6566
6567         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6568         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6569
6570         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6571         * lib/regex_internal.c (re_string_fetch_byte_case):
6572         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6573         is miscompiled, and it turns out it is because of an incorrect
6574         attribute on re_string_fetch_byte_case.  Unlike
6575         re_string_peek_byte_case, this one is really not pure, it modifies
6576         memory (increments pstr->cur_idx), and with the pure attribute GCC
6577         assumed it doesn't and it cached the presumed value of
6578         regexp->cur_idx in a variable across the
6579          for (;; ++i)
6580            {
6581              if (i >= BRACKET_NAME_BUF_SIZE)
6582                return REG_EBRACK;
6583              if (token->type == OP_OPEN_CHAR_CLASS)
6584                ch = re_string_fetch_byte_case (regexp);
6585              else
6586                ch = re_string_fetch_byte (regexp);
6587              if (re_string_eoi(regexp))
6588                return REG_EBRACK;
6589              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6590                break;
6591              elem->opr.name[i] = ch;
6592            }
6593
6594         2011-11-29 Andreas Schwab <schwab@redhat.com>
6595         * lib/regcomp.c (build_equiv_class):
6596         Fix access after end of search string in regex matcher.
6597
6598         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6599         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6600
6601         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6602         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
6603
6604         2011-10-11 Ulrich Drepper <drepper@redhat.com>
6605         * lib/regcomp.c (parse_branch, parse_sub_exp):
6606         More regex memory leak fixes and tests.
6607         (parse_sub_exp, parse_bracket_exp):
6608         Fix memory leak for some invalid regular expressions.
6609
6610         2011-05-28 Ulrich Drepper <drepper@gmail.com>
6611         * lib/regex_internal.c, lib/regexec.c:
6612         Fix unnecessary overallocation due to incomplete character.  When
6613         incomplete characters are found at the end of a string the code
6614         ran amok and allocated lots of memory.  Stricter limits are now in
6615         place.
6616
6617         2011-05-20 Reuben Thomas <rrt@sc3d.org>
6618         * lib/regex.h: Update documentation.
6619
6620         2011-05-16 Aharon Robbins <arnold@skeeve.com>
6621         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
6622
6623         2010-05-05 Andreas Schwab <schwab@redhat.com>
6624         * lib/regexec.c (find_collation_sequence_value):
6625         Fix lookup of collation sequence value during regexp matching.
6626
6627         2010-01-22 Ulrich Drepper <drepper@redhat.com>
6628         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
6629
6630         2008-01-16 Ulrich Drepper <drepper@redhat.com>
6631         * lib/regex.h: Cleanup namespace.
6632
6633         2007-11-26 Ulrich Drepper <drepper@redhat.com>
6634         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
6635
6636         2007-08-26 Ulrich Drepper <drepper@redhat.com>
6637         * lib/regex_internal.h: Prevent some declarations and definitions
6638         to be seen when used in tests.
6639
6640         2005-05-06 Ulrich Drepper <drepper@redhat.com>
6641         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
6642         __libc_lock_* macros if not _LIBC.
6643         (struct re_dfa_t): Add lock.
6644
6645 2012-02-07  Eric Blake  <eblake@redhat.com>
6646
6647         maint.mk: also prohibit lower-case @var@
6648         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
6649         lower case, like @top_srcdir@.
6650
6651 2012-02-04  Eric Blake  <eblake@redhat.com>
6652
6653         canonicalize: avoid uninitialized memory use
6654         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
6655         random '/' left in dest.
6656         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
6657
6658 2012-02-04  Bruno Haible  <bruno@clisp.org>
6659
6660         isatty: Fix test failure of ptsname_r on native Windows.
6661         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
6662         and don't set errno.
6663         (isatty): Test first whether fd is valid. Set errno when returning 0.
6664
6665 2012-02-04  Bruno Haible  <bruno@clisp.org>
6666
6667         spawn-pipe tests: Fix a NULL program name in a diagnostic.
6668         * tests/test-spawn-pipe-main.c: Include progname.h.
6669         (main): Invoke set_program_name.
6670         * modules/spawn-pipe-tests (Depends-on): Add progname.
6671
6672         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
6673         * tests/test-nonblocking-socket-main.c: Include progname.h.
6674         (main): Invoke set_program_name.
6675         * modules/nonblocking-socket-tests (Depends-on): Add progname.
6676
6677         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
6678         * tests/test-nonblocking-pipe-main.c: Include progname.h.
6679         (main): Invoke set_program_name.
6680         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
6681
6682 2012-02-04  Eric Blake  <eblake@redhat.com>
6683
6684         canonicalize-lgpl: fix // handling
6685         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
6686
6687         canonicalize: fix // handling
6688         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
6689         /// to //, since only // is special.
6690
6691 2012-02-04  Bruno Haible  <bruno@clisp.org>
6692
6693         ioctl: Fix test failure on native Windows.
6694         * lib/ioctl.c: Include msvc-nothrow.h.
6695         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
6696
6697 2012-02-04  Bruno Haible  <bruno@clisp.org>
6698
6699         fsync: Avoid test failure on native Windows.
6700         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
6701         read-only.
6702
6703 2012-02-04  Bruno Haible  <bruno@clisp.org>
6704
6705         sys_select: Avoid syntax error on OpenBSD 5.0.
6706         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
6707         currently being included, just include the system's <sys/select.h>.
6708
6709 2012-02-04  Bruno Haible  <bruno@clisp.org>
6710
6711         sys_select: Avoid syntax error on OpenBSD 5.0.
6712         * lib/sys_select.in.h: Include <signal.h> only after the include_next
6713         <sys/select.h>, not before.
6714         Reported by Jiri B <jirib@devio.us>.
6715
6716 2012-02-04  Bruno Haible  <bruno@clisp.org>
6717
6718         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
6719         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
6720         global variables.
6721         * tests/test-get-rusage-data.c (main): Likewise.
6722         Reported by Jim Meyering.
6723
6724 2012-02-04  Bruno Haible  <bruno@clisp.org>
6725
6726         stdioext: Fix last commit.
6727         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
6728
6729 2012-02-03  Bruno Haible  <bruno@clisp.org>
6730
6731         stdioext: Add tentative support for Plan9.
6732         * lib/stdio-impl.h: Include <errno.h>.
6733         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6734         * lib/freadable.c (freadable): Likewise.
6735         * lib/fwritable.c (fwritable): Likewise.
6736         * lib/fbufmode.c (fbufmode): Likewise.
6737         * lib/freading.c (freading): Likewise.
6738         * lib/fwriting.c (fwriting): Likewise.
6739         * lib/freadptr.c (freadptr): Likewise.
6740         * lib/freadseek.c (freadptrinc): Likewise.
6741         * lib/freadahead.c (freadahead): Likewise.
6742         * lib/fpurge.c (fpurge): Likewise.
6743         * lib/fseeko.c (rpl_fseeko): Likewise.
6744         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
6745         Reported by Jens Staal <staal1978@gmail.com>.
6746
6747 2012-02-02  Jim Meyering  <meyering@redhat.com>
6748
6749         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
6750         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
6751         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
6752         not even to try to add the attribute.  Instead, add a pragma to suppress
6753         the suggestion/warning.
6754
6755 2012-01-31  Karl Berry  <karl@gnu.org>
6756
6757         setstate doc: typo.
6758         * doc/posix-functions/setstate.texi (setstate): { not (.
6759
6760 2012-01-31  Bruno Haible  <bruno@clisp.org>
6761
6762         popen: Make more robust on Windows.
6763         * lib/popen.c: On native Windows, use the _popen based code even if
6764         HAVE_POPEN is set.
6765         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
6766         environment variable on native Windows.
6767
6768 2012-01-30  Bruno Haible  <bruno@clisp.org>
6769
6770         pclose: Fix typo.
6771         * lib/stdio.in.h (pclose): Fix typo in warning message.
6772
6773 2012-01-30  Bruno Haible  <bruno@clisp.org>
6774
6775         doc about getlogin_r, setstate.
6776         * doc/posix-functions/getlogin_r.texi: List the incompatible
6777         declaration problem under "not fixed by gnulib".
6778         * doc/posix-functions/setstate.texi: Mention incompatible declaration
6779         problem on Solaris 11 and other platforms.
6780
6781 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
6782             Bruno Haible  <bruno@clisp.org>
6783
6784         poll tests: Make test more robust.
6785         * tests/test-poll.c: Include macros.h.
6786         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
6787         return value of various I/O operations.
6788         * modules/poll-tests (Files): Add tests/macros.h.
6789
6790 2012-01-30  Bruno Haible  <bruno@clisp.org>
6791
6792         sys_stat: Fix support for mingw64 and MSVC.
6793         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
6794         header files already do it.
6795         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
6796         stat itself.
6797         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6798
6799 2012-01-30  Bruno Haible  <bruno@clisp.org>
6800
6801         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
6802         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
6803         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
6804
6805 2012-01-29  Bruno Haible  <bruno@clisp.org>
6806
6807         quotearg: Fix test failure on MacOS X 10.5.
6808         * tests/test-quotearg-simple.c: Include localcharset.h.
6809         (main): If the locale encoding is not ASCII, bypass the tests of
6810         locale_quoting_style and clocale_quoting_style.
6811         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
6812
6813 2012-01-29  Jim Meyering  <meyering@redhat.com>
6814
6815         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
6816         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
6817         detect uses of canonicalize_file_name.
6818
6819 2012-01-28  Bruno Haible  <bruno@clisp.org>
6820
6821         test-framework-sh: Fix test failure with AIX 7.1 diff.
6822         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
6823         in column 1, like 'diff -c' does.
6824         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
6825         whether 'diff -u' is used. Instead, test whether the output contains
6826         some '@' character.
6827
6828 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6829
6830         strtoimax: eliminate need for stdint.h, inttypes.h checks
6831         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
6832         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
6833         the prerequisites for a recently-introduced strtoimax test.
6834         I guess this might cause strtoimax to be replaced when not
6835         strictly necessary on older hosts, but this shouldn't introduce
6836         any bugs and it should make Emacs 'configure' faster on typical
6837         modern hosts.  Problem discovered when importing the latest gnulib
6838         to an Emacs test version.
6839         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
6840
6841 2012-01-28  Bruno Haible  <bruno@clisp.org>
6842
6843         sys_time: Override 'struct timeval' on some native Windows platforms.
6844         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
6845         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
6846         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
6847         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
6848         needs to be overridden.
6849         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
6850         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
6851         * tests/test-sys_select.c: Check that the tv_sec member has the same
6852         size as a 'time_t'.
6853         * tests/test-sys_time.c: Likewise.
6854         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
6855         is set, set also REPLACE_GETTIMEOFDAY.
6856         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
6857         convert the resulting 'struct timeval' before returning.
6858         * lib/select.c: Include <sys/time.h>.
6859         (select, timeval): Undefine at the right place.
6860         * modules/select (Depends-on): Add sys_time.
6861         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
6862         some Windows platforms.
6863         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6864
6865 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6866
6867         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
6868         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
6869         an integer.
6870         * lib/fcntl.c (dupfd): Likewise.
6871         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
6872
6873 2012-01-28  Bruno Haible  <bruno@clisp.org>
6874
6875         fcntl: Avoid compilation error on native Windows.
6876         * modules/fcntl (Depends-on): Add 'close'.
6877
6878 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6879
6880         select, poll, isatty: Avoid warnings on x86_64 mingw64.
6881         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
6882         pointer to an integer.
6883         * lib/poll.c (IsConsoleHandle): Likewise.
6884         * lib/isatty.c (IsConsoleHandle): Likewise.
6885
6886 2012-01-28  Jim Meyering  <meyering@redhat.com>
6887
6888         doc: clarify README-release
6889         * top/README-release: Clarify: you should make a point to have
6890         the latest stable versions of build tools in your PATH, and the
6891         reference to buildreq is solely for its list of tool names, not
6892         for its minimal-functional version numbers.
6893         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
6894
6895         maint.mk: use more readable (yet functionally equivalent) quoting
6896         It is common to quote a single quote in a single quoted string like
6897         this:  '...'\''...'.  Unless you know the idiom, that looks like
6898         gibberish, so prefer to double-quote the string when possible.
6899         Then you can use a more readable, lone single quote: "...'..."
6900         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
6901         "don't" is more readable than the equivalent 'don'\''t'.
6902         (sc_cast_of_x_alloc_return_value): Likewise.
6903         (sc_cast_of_alloca_return_value): Likewise.
6904         (sc_makefile_path_separator_check): Similar: use ":" in '...',
6905         rather than '\'':'\''.
6906
6907 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6908
6909         stdalign: relax _Alignof and tighten _Alignas test
6910         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
6911         as it was too strict: alignof must divide offsetof, but it need
6912         not equal offsetof.  Inspired by Joseph S. Myers's comment
6913         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
6914         Conversely, tighten the _Alignas test a bit, as the resulting
6915         alignment must be exactly 8.
6916
6917 2012-01-27  Bruno Haible  <bruno@clisp.org>
6918
6919         stdalign: Document the last change.
6920         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
6921
6922 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6923
6924         stdalign: check that alignof and offsetof are consistent
6925         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
6926         Problem reported for gnulib by Richard W.M. Jones in
6927         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
6928
6929 2012-01-27  Jim Meyering  <meyering@redhat.com>
6930
6931         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
6932         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
6933         convert a sequence with gaps to the minimal containing range.
6934         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
6935         * tests/test-update-copyright.sh: Test for this.
6936         The FSF confirmed it is ok to do this, assuming there is at
6937         least one significant change per year in the affected range:
6938         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
6939
6940 2012-01-26  Bruno Haible  <bruno@clisp.org>
6941
6942         pipe2: refine doc about thread-safety
6943         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
6944         multithread-safety problem.
6945         * doc/glibc-functions/accept4.texi: Likewise.
6946
6947 2012-01-26  Bruno Haible  <bruno@clisp.org>
6948
6949         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
6950         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
6951         In the test program, include <fcntl.h>, for O_RDONLY.
6952
6953 2012-01-26  Eric Blake  <eblake@redhat.com>
6954
6955         pipe2: document lack of thread-safety in replacement
6956         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
6957         issue in replacement.
6958         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6959         Based on a report by Eric Wong.
6960
6961 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6962             Bruno Haible  <bruno@clisp.org>
6963
6964         malloca: Avoid warnings on x86_64 mingw64.
6965         * lib/malloca.c: Include <stdint.h>.
6966         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
6967         * modules/malloca (Depends-on): Add stdint.
6968         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
6969
6970 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6971
6972         obstack: remove __STDC__ conditionals
6973         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
6974         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
6975         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
6976         m4/include_next.m4 as the only gnulib-maintained places that still
6977         refer to __STDC__.
6978
6979 2012-01-24  Bruno Haible  <bruno@clisp.org>
6980
6981         havelib: Modern quoting.
6982         * build-aux/config.rpath: Quote 'like this', not `like this', as per
6983         the recent change to the GNU coding standards.
6984
6985 2012-01-24  Bruno Haible  <bruno@clisp.org>
6986
6987         stdint: Improve support for Android.
6988         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
6989         Reported by Simon Josefsson <simon@josefsson.org>.
6990
6991 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6992
6993         doc: omit trailing empty lines from INSTALL etc.
6994         * doc/Makefile (INSTALL): Omit trailing empty lines.
6995         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
6996         omit trailing empty lines.  This simplifies the build procedure.
6997
6998 2012-01-23  Jim Meyering  <meyering@redhat.com>
6999
7000         tests: avoid spurious warnings about gl_sockets_startup
7001         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7002         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7003         reporting a "statement with no effect".
7004         * tests/test-accept.c (main): Mark as "(void)".
7005         * tests/test-accept4.c (main): Likewise.
7006         * tests/test-bind.c (main): Likewise.
7007         * tests/test-connect.c (main): Likewise.
7008         * tests/test-getpeername.c (main): Likewise.
7009         * tests/test-getsockname.c (main): Likewise.
7010         * tests/test-getsockopt.c (main): Likewise.
7011         * tests/test-listen.c (main): Likewise.
7012         * tests/test-recv.c (main): Likewise.
7013         * tests/test-recvfrom.c (main): Likewise.
7014         * tests/test-send.c (main): Likewise.
7015         * tests/test-sendto.c (main): Likewise.
7016         * tests/test-setsockopt.c (main): Likewise.
7017         * tests/test-shutdown.c (main): Likewise.
7018
7019 2012-01-21  Bruno Haible  <bruno@clisp.org>
7020
7021         locale-fr.m4: Fix for Android.
7022         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7023         failure of the test program on Bionic libc.
7024
7025 2012-01-21  Jim Meyering  <meyering@redhat.com>
7026
7027         bootstrap: fail when bootstrap_post_import_hook fails
7028         Otherwise, it's far too easy to miss diagnostics emitted
7029         between gnulib-tool's output and that of running configure.
7030         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7031
7032 2012-01-17  Jim Meyering  <meyering@redhat.com>
7033
7034         maint: enable sc_trailing_blank
7035         * build-aux/pmccabe.css: Remove trailing blanks.
7036         * doc/acl-cygwin.txt: Likewise.
7037         * doc/gnu-oids.texi: Likewise
7038         * cfg.mk: Enable sc_trailing_blank.
7039         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7040
7041 2012-01-17  Jim Meyering  <meyering@redhat.com>
7042
7043         maint: enable sc_prohibit_openat_without_use
7044         * cfg.mk: Enable sc_prohibit_openat_without_use.
7045         Exempt lib/selinux-at.c.
7046
7047 2012-01-17  Jim Meyering  <meyering@redhat.com>
7048
7049         maint: enable sc_prohibit_cloexec_without_use
7050         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7051         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7052
7053 2012-01-17  Jim Meyering  <meyering@redhat.com>
7054
7055         maint: enable sc_prohibit_intprops_without_use
7056         * cfg.mk: Enable sc_prohibit_intprops_without_use
7057         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7058
7059 2012-01-17  Jim Meyering  <meyering@redhat.com>
7060
7061         maint: enable sc_prohibit_hash_pjw_without_use
7062         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7063         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7064         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7065         following " (".
7066
7067 2012-01-17  Jim Meyering  <meyering@redhat.com>
7068
7069         maint: enable double-word-prohibiting rule
7070         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7071         Exempt three files.
7072
7073 2012-01-17  Jim Meyering  <meyering@redhat.com>
7074
7075         maint: remove empty lines at EOF, but excluding modules/*
7076         Apply syntax rules at home as well as abroad.  Most changes
7077         were induced by running this:
7078           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7079             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7080             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7081         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7082         Exempt modules/* and two binary files.
7083         Also exempt doc/INSTALL*, per request from Bruno Haible.
7084         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7085         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7086         * doc/Copyright/request-assign.future: Likewise.
7087         * doc/Copyright/request-disclaim.changes: Likewise.
7088         * doc/INSTALL: Likewise.
7089         * doc/INSTALL.ISO: Likewise.
7090         * doc/INSTALL.UTF-8: Likewise.
7091         * doc/acl-cygwin.txt: Likewise.
7092         * doc/acl-resources.txt: Likewise.
7093         * doc/fdl-1.2.texi: Likewise.
7094         * doc/fdl-1.3.texi: Likewise.
7095         * doc/fdl.texi: Likewise.
7096         * lib/argp-pin.c: Likewise.
7097         * lib/round.c: Likewise.
7098         * lib/unicase/u16-totitle.c: Likewise.
7099         * lib/unictype/block_test.c: Likewise.
7100         * lib/uninorm/canonical-decomposition.c: Likewise.
7101         * m4/README: Likewise.
7102         * m4/relocatable-lib.m4: Likewise.
7103         * tests/test-isnand-nolibm.c: Likewise.
7104         * tests/test-isnand.c: Likewise.
7105         * tests/uninorm/NormalizationTest.txt: Likewise.
7106
7107 2012-01-17  Jim Meyering  <meyering@redhat.com>
7108
7109         maint: add framework to run syntax-check rules against gnulib sources
7110         * cfg.mk: New file, to disable all currently-failing tests.
7111         We'll enable them one by one, as they are made to pass.
7112         * Makefile (sc_maint): New rule.
7113
7114 2012-01-21  Bruno Haible  <bruno@clisp.org>
7115
7116         stdint: Add support for Android.
7117         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7118         include the system's <stdint.h>.
7119         Reported by Simon Josefsson <simon@josefsson.org>.
7120
7121 2012-01-19  Jim Meyering  <meyering@redhat.com>
7122
7123         bootstrap: add bootstrap_post_import_hook
7124         Bison does still need something like the gnulib_mk_hook whose
7125         invocation I had to remove along with slurp in commit 767ccd40.
7126         Technically, we could get along without it, but doing so would
7127         have required living with a warning and a mandatory post-bootstrap
7128         automake rerun.
7129         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7130         (bootstrap_post_import_hook): New function.
7131         Invoke it after gnulib-tool --import and before autoreconf.
7132
7133 2012-01-18  Jim Meyering  <meyering@redhat.com>
7134
7135         gitlog-to-changelog: don't use "no_"-prefixed variable name
7136         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7137         to enable both --cluster and --no-cluster.  Change variable name,
7138         s/\$no_cluster/$cluster/, and reverse usage to match.
7139
7140         gitlog-to-changelog: use "||", not "or" in expressions
7141         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7142         expressions.
7143
7144 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7145
7146         gitlog-to-changelog: new option --no-cluster
7147         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7148         clustering of adjacent commit messages.
7149
7150 2012-01-17  Jim Meyering  <meyering@redhat.com>
7151
7152         maint: spell file systems with two words, not one
7153         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7154         two words, not one.
7155
7156 2012-01-16  Jim Meyering  <meyering@redhat.com>
7157
7158         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7159         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7160
7161 2012-01-16  Eric Blake  <eblake@redhat.com>
7162
7163         bootstrap: cater to autoconf 2.59
7164         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7165         is not available.
7166
7167         bootstrap: properly check for libtool
7168         * build-aux/bootstrap (libtoolize): Also run libtool when older
7169         usage is detected.
7170
7171 2012-01-15  Bruno Haible  <bruno@clisp.org>
7172
7173         Improve support for MSVC 9.
7174         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7175         clashes on MSVC.
7176         * lib/fcntl.in.h: Likewise.
7177         * lib/stdlib.in.h: Likewise.
7178         * lib/sys_stat.in.h: Likewise.
7179
7180 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7181
7182         gnupload: we hold the master copy of this script now
7183         For motivation and more information, see:
7184         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7185         * build-aux/gnupload: Make it clear in the heading comments that the
7186         master copy of this file is maintained by gnulib.  Since we are at
7187         it, bump its copyright year and ...
7188         ($scriptversion): ... the date in its version.
7189         ($usage): Patches and bug reports should be sent to the gnulib list,
7190         not the automake one.
7191         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7192         anymore.
7193
7194 2012-01-15  Bruno Haible  <bruno@clisp.org>
7195
7196         Fix module 'random'.
7197         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7198         initstate, setstate are declared.
7199
7200 2012-01-14  Bruno Haible  <bruno@clisp.org>
7201
7202         Tests for module 'random'.
7203         * modules/random-tests: New file.
7204         * tests/test-random.c: New file, based on tests/test-random_r.c.
7205
7206         New module 'random'.
7207         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7208         declarations.
7209         * lib/random.c: New file, based on glibc/stdlib/random.c.
7210         * m4/random.m4: New file.
7211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7212         HAVE_RANDOM.
7213         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7214         * modules/random: New file.
7215         * config/srclist.txt: Add an entry for random.c.
7216         * doc/posix-functions/random.texi: Mention the 'random' module.
7217         * doc/posix-functions/initstate.texi: Likewise.
7218         * doc/posix-functions/setstate.texi: Likewise.
7219         * doc/posix-functions/srandom.texi: Likewise.
7220
7221 2012-01-12  Bruno Haible  <bruno@clisp.org>
7222
7223         random_r: Use common idioms.
7224         * lib/random_r.c: Include <stdlib.h> first.
7225
7226         random_r: Override incompatible API on AIX, OSF/1.
7227         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7228         Override the system function if REPLACE_RANDOM_R is 1.
7229         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7230         and OSF/1, set REPLACE_RANDOM_R.
7231         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7232         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7233         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7234         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7235         * doc/glibc-functions/random_r.texi: Likewise.
7236         * doc/glibc-functions/setstate_r.texi: Likewise.
7237
7238         random_r: Support for MSVC 9.
7239         * lib/random_r.c: Include stdint.h, not inttypes.h.
7240
7241 2012-01-12  Eric Blake  <eblake@redhat.com>
7242
7243         inet_ntop: guard extra work by IF_LINT
7244         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7245         better code generation when not checking for warnings.
7246         Suggested by Paul Eggert and Jim Meyering.
7247
7248         strptime: fix regression on mingw
7249         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7250         Fix regression.  Reported by Bruno Haible.
7251
7252 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7253             Bruno Haible  <bruno@clisp.org>
7254
7255         copy-file: add error-code-returning variant.
7256         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7257         (qcopy_file_preserving): New declaration.
7258         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7259         copy_file_preserving. Change return type to 'int'. Don't emit an error
7260         message here.
7261         (copy_file_preserving): New function.
7262         * tests/test-copy-file.c: Include <stdlib.h>.
7263         (main): Test qcopy_file_preserving if the environment variable
7264         NO_STDERR_OUTPUT is set.
7265         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7266         with NO_STDERR_OUTPUT
7267         * tests/test-copy-file-2.sh: Likewise.
7268
7269 2012-01-10  Bruno Haible  <bruno@clisp.org>
7270
7271         copy-file: Use 'quote' module consistently.
7272         * lib/copy-file.c (copy_file_preserving): Use quote().
7273
7274         copy-file: Refactor.
7275         * lib/copy-file.c: Include quote.h.
7276         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7277         message here.
7278         * modules/copy-file (Depends-on): Add quote.
7279
7280         acl: Export qcopy_acl.
7281         * lib/acl.h (qcopy_acl): New declaration.
7282         * lib/copy-acl.c (qcopy_acl): Make non-static.
7283
7284         acl: Rename a local variable.
7285         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7286
7287         acl: Align return values of copy_acl and qcopy_acl.
7288         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7289         maybe < -1.
7290
7291 2012-01-11  Eric Blake  <eblake@redhat.com>
7292
7293         strptime: silence gcc warnings
7294         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7295         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7296         Reported by Daniel P. Berrange.
7297
7298         inet_ntop: silence gcc warning
7299         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7300         Reported by Daniel P. Berrange.
7301
7302 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7303
7304         getloadavg test: skip the test on GNU/Linux without /proc mounted
7305         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7306         file.  When /proc is not mounted, it always fails with ENOENT.
7307         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7308         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7309
7310 2012-01-10  Bruno Haible  <bruno@clisp.org>
7311
7312         regex: Avoid link error on MSVC 9.
7313         * modules/regex (Depends-on): Add wctype.
7314
7315 2012-01-10  Bruno Haible  <bruno@clisp.org>
7316
7317         doc: Mention --with-tests option.
7318         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7319         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7320         --with-tests.
7321         Reported by Reuben Thomas.
7322
7323 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7324
7325         users.txt: order package names lexicographically.
7326         * users.txt: Order package names lexicographically.
7327
7328 2012-01-10  Jim Meyering  <meyering@redhat.com>
7329
7330         maint.mk: fix description in comment
7331         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7332
7333         ignore-value: remove deprecated ignore_ptr function
7334         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7335         * NEWS: Note this.
7336
7337 2012-01-09  Jim Meyering  <meyering@redhat.com>
7338
7339         test-init.sh: avoid a subshell
7340         * tests/test-init.sh: Remove protective subshell.
7341         Suggested by Bernhard Voelker.  While a subshell is normally
7342         required to protect against older shells (Solaris, FreeBSD) that
7343         warn about a missing program before performing redirection, the
7344         shell-selection tests performed by init.sh probably exclude any
7345         offending shell.
7346
7347 2012-01-08  Bruno Haible  <bruno@clisp.org>
7348
7349         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7350         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7351         variable.
7352
7353 2012-01-08  Bruno Haible  <bruno@clisp.org>
7354
7355         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7356         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7357         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7358         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7359         macro.
7360         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7361         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7362         * lib/spawn_faction_addopen.c: Add workaround implementation if
7363         HAVE_WORKING_POSIX_SPAWN.
7364         * modules/spawn (Makefile): Substitute
7365         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7366         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7367         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7368         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7369         (Depends-on): Update conditions.
7370         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7371         the Solaris 11 bug.
7372
7373 2012-01-08  Bruno Haible  <bruno@clisp.org>
7374
7375         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7376         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7377         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7378         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7379         macro.
7380         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7381         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7382         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7383         HAVE_WORKING_POSIX_SPAWN.
7384         * modules/spawn (Makefile): Substitute
7385         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7386         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7387         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7388         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7389         (Depends-on): Update conditions.
7390         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7391         the Solaris 11 bug.
7392
7393 2012-01-08  Bruno Haible  <bruno@clisp.org>
7394
7395         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7396         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7397         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7398         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7399         HAVE_WORKING_POSIX_SPAWN.
7400         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7401         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7402         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7403         * lib/spawn_faction_addclose.c: Add workaround implementation if
7404         HAVE_WORKING_POSIX_SPAWN.
7405         * modules/spawn (Makefile): Substitute
7406         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7407         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7408         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7409         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7410         (Depends-on): Update conditions.
7411         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7412         the Solaris 11 bug.
7413
7414 2012-01-08  Bruno Haible  <bruno@clisp.org>
7415
7416         doc: Update for Solaris 11 2011-11.
7417         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7418         * m4/printf.m4: Update comments.
7419
7420 2012-01-08  Bruno Haible  <bruno@clisp.org>
7421
7422         mktime: Avoid compilation error on Solaris 11.
7423         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7424
7425 2012-01-08  Bruno Haible  <bruno@clisp.org>
7426
7427         doc: Small fix.
7428         * doc/posix-headers/nl_types.texi: Correct platforms list.
7429
7430 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7431
7432         Add lgpl-3.0 module.
7433         * MODULES.html.sh (Support for building documentation): Add
7434         lgpl-3.0.
7435         * modules/lgpl-3.0: New file.
7436
7437 2012-01-08  Jim Meyering  <meyering@redhat.com>
7438
7439         select.c: indent with spaces, not TABs
7440         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7441
7442 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7443
7444         quotearg: do not use grave accent for left quote
7445         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7446         locale_quoting_style.
7447         (quotearg_buffer_restyled): Fix example.
7448         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7449
7450 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7451
7452         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7453         Most programs do not have translation catalogs for English and much
7454         less separate catalogs for British and American English.  Drop the
7455         suggestion to translators about these two, and provide it
7456         automatically for Unicode locales.  Like most programs, even those
7457         using American English, we use single quotation marks.  This conflicts
7458         with the American typographic convention, but works better when you
7459         cite the entire error message within double quotes.  It also tries not
7460         to clash with established practice and with what non-gnulib programs
7461         will usually do.
7462         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7463         using an UTF-8 or GB-18030 locale.  The list of other locales with
7464         quotes was provided by Bruno Haible.
7465         (quotearg_buffer_restyled): Adjust instructions to translators.
7466         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7467         text, since this would be wrong when using Unicode.
7468         * modules/quotearg: Depend on c-strcaseeq.
7469
7470 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7471
7472         quotearg: fix Wikipedia link
7473         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7474
7475 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7476
7477         Fix for mingw with MSVC9.
7478         * m4/ld-version-script.m4: Check that compiler rejects version
7479         scripts with syntax errors.  Reported by Bruno Haible
7480         <bruno@clisp.org>.
7481
7482 2012-01-06  Bruno Haible  <bruno@clisp.org>
7483
7484         Talk about "native Windows API", not "Woe32".
7485         * lib/accept4.c: Update comments to mention native Windows.
7486         * lib/execute.c: Likewise.
7487         * lib/fatal-signal.c: Likewise.
7488         * lib/localcharset.c: Likewise.
7489         * lib/nanosleep.c: Likewise.
7490         * lib/nl_langinfo.c: Likewise.
7491         * lib/pclose.c: Likewise.
7492         * lib/pipe-filter-gi.c: Likewise.
7493         * lib/pipe-filter-ii.c: Likewise.
7494         * lib/pipe.c: Likewise.
7495         * lib/pipe2.c: Likewise.
7496         * lib/popen.c: Likewise.
7497         * lib/progreloc.c: Likewise.
7498         * lib/relocatable.c: Likewise.
7499         * lib/sigaction.c: Likewise.
7500         * lib/sigprocmask.c: Likewise.
7501         * lib/spawn-pipe.h: Likewise.
7502         * lib/spawn-pipe.c: Likewise.
7503         * lib/spawni.c: Likewise.
7504         * lib/stat-time.h: Likewise.
7505         * lib/w32spawn.h: Likewise.
7506         * tests/test-isatty.c: Likewise.
7507         * lib/config.charset: More comments.
7508         * doc/gnulib-intro.texi: Mention native Windows.
7509         * doc/posix-functions/_Exit_C99.texi: Likewise.
7510         * doc/posix-headers/fcntl.texi: Likewise.
7511
7512 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7513
7514         argp: Avoid crash if translator uses % characters in a translation.
7515         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7516         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7517
7518 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7519
7520         doc: C11 and C++11 are now official
7521         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7522         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7523         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7524         * modules/stdalign:
7525         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7526
7527 2012-01-06  Bruno Haible  <bruno@clisp.org>
7528
7529         uc-is-grapheme-break tests: Tweak.
7530         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7531         message.
7532
7533 2012-01-06  Bruno Haible  <bruno@clisp.org>
7534
7535         test-init.sh: correct the test for diff -u
7536         * tests/test-init.sh: Also redirect stdout to /dev/null.
7537
7538 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7539
7540         Use ', not `, for quoting output.
7541         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7542         (print_changelog_deltas, get_tool_versions, main program):
7543         * build-aux/git-version-gen:
7544         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7545         * build-aux/move-if-change (help):
7546         * build-aux/useless-if-before-free (usage, main program):
7547         * check-module (parse_module_file, usage)
7548         (find_included_lib_files, check_module):
7549         * lib/argmatch.c (main) [TEST]:
7550         * lib/argp-help.c (_help):
7551         * lib/getopt1.c (main) [TEST]:
7552         * lib/git-merge-changelog.c (usage):
7553         * lib/xstrtol-error.c (xstrtol_error):
7554         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7555         * m4/argz.m4 (gl_FUNC_ARGZ):
7556         * m4/bison.m4 (gl_BISON):
7557         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7558         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7559         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7560         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7561         * m4/gc-random.m4 (gl_GC_RANDOM):
7562         * m4/intl.m4 (gt_CHECK_DECL):
7563         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7564         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7565         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7566         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7567         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7568         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7569         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7570         * tests/test-dirname.c (main):
7571         * tests/test-getpass.c (main):
7572         * tests/test-iconvme.c (main):
7573         * tests/test-parse-datetime.c (LOG):
7574         * tests/test-xstrtoimax.sh:
7575         * tests/test-xstrtol.sh:
7576         * tests/test-xstrtoll.sh:
7577         * tests/test-xstrtoumax.sh:
7578         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7579         * top/GNUmakefile (abort-due-to-no-makefile):
7580         Quote 'like this', not `like this', as per the recent change to
7581         the GNU coding standards.
7582
7583 2012-01-05  Bruno Haible  <bruno@clisp.org>
7584
7585         strtoimax: Don't force a replacement on systems where intmax_t is int.
7586         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7587         'intmax_t' is not larger than 'int'.
7588         Reported by Pádraig Brady <P@draigBrady.com>.
7589
7590 2012-01-05  Bruno Haible  <bruno@clisp.org>
7591
7592         doc: Mention NetBSD bugs.
7593         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7594         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7595
7596 2012-01-05  Bruno Haible  <bruno@clisp.org>
7597
7598         strtoumax tests: Enhance tests.
7599         * tests/test-strtoumax.c (main): Add tests for large values.
7600
7601 2012-01-05  Bruno Haible  <bruno@clisp.org>
7602
7603         strtoimax: Work around AIX 5.1 bug.
7604         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
7605         definition.
7606         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
7607         Set HAVE_STRTOIMAX.
7608         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
7609         REPLACE_STRTOIMAX.
7610         * modules/inttypes-incomplete (Makefile.am): Substitute
7611         REPLACE_STRTOIMAX.
7612         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
7613         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
7614         (Depends-on): Update conditions.
7615         * tests/test-strtoimax.c (main): Add tests for large values.
7616         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
7617
7618 2012-01-05  Bruno Haible  <bruno@clisp.org>
7619
7620         inttypes: Modernize.
7621         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
7622         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
7623         (Makefile.am): Update inttypes.h rule.
7624
7625 2012-01-05  Jim Meyering  <meyering@redhat.com>
7626
7627         init.sh: don't waste a subshell just to redirect stderr
7628         * tests/init.sh: In testing for diff -u and diff -c, use a
7629         stderr-redirecting exec inside `...` rather than a subshell.
7630
7631         test-init.sh: avoid failure on HP-UX 11.00
7632         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
7633         resolves to diff -c or cmp.  Reported by Bruno Haible.
7634
7635 2012-01-05  Bruno Haible  <bruno@clisp.org>
7636
7637         Tests for module 'strtoull'.
7638         * modules/strtoull-tests: New file.
7639         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
7640
7641 2012-01-05  Bruno Haible  <bruno@clisp.org>
7642
7643         Tests for module 'strtoll'.
7644         * modules/strtoll-tests: New file.
7645         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
7646
7647 2012-01-05  Bruno Haible  <bruno@clisp.org>
7648
7649         Tests for module 'strtoul'.
7650         * modules/strtoul-tests: New file.
7651         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
7652
7653 2012-01-05  Bruno Haible  <bruno@clisp.org>
7654
7655         Tests for module 'strtol'.
7656         * modules/strtol-tests: New file.
7657         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
7658
7659 2012-01-04  Jim Meyering  <meyering@redhat.com>
7660
7661         test-init.sh: accommodate Solaris 5.10's different diff -u output
7662         * tests/test-init.sh: Also exempt @@ lines from the comparison
7663         of diff output, since Solaris 5.10 and GNU diff formats differ.
7664         Reported by Stefano Lattarini.
7665
7666 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7667
7668         test-posixtm: don't assume signed integer wraparound
7669         * tests/test-posixtm.c (main): Don't assume wraparound semantics
7670         after signed integer overflow.  Inspired by (though it may not
7671         fix) Bruno Haible's bug report in
7672         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
7673
7674         Spell out "Windows 9x" and "Windows XP".
7675         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
7676         "Windows 9x" and "WinXP" with "Windows XP".
7677
7678 2012-01-04  Jim Meyering  <meyering@redhat.com>
7679
7680         test-vc-list-files-cvs.sh: remove obsolete comment
7681         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
7682         double exit.  Now that's all encapsulated via skip_ and Exit.
7683
7684 2012-01-04  Bruno Haible  <bruno@clisp.org>
7685
7686         Talk about "native Windows API", not "Win32".
7687         * lib/classpath.c: Update comments to mention native Windows.
7688         * lib/csharpexec.c: Likewise.
7689         * lib/dup2.c: Likewise.
7690         * lib/error.c: Likewise.
7691         * lib/fcntl.c: Likewise.
7692         * lib/filename.h: Likewise.
7693         * lib/findprog.c: Likewise.
7694         * lib/get-rusage-as.c: Likewise.
7695         * lib/get-rusage-data.c: Likewise.
7696         * lib/getpagesize.c: Likewise.
7697         * lib/javaexec.c: Likewise.
7698         * lib/msvc-inval.c: Likewise.
7699         * lib/msvc-nothrow.c: Likewise.
7700         * lib/nanosleep.c: Likewise.
7701         * lib/nonblocking.c: Likewise.
7702         * lib/printf-parse.c: Likewise.
7703         * lib/setlocale.c: Likewise.
7704         * lib/sigaction.c: Likewise.
7705         * lib/strerror_r.c: Likewise.
7706         * lib/tmpdir.c: Likewise.
7707         * lib/vasnprintf.c: Likewise.
7708         * lib/w32spawn.h: Likewise.
7709         * lib/waitpid.c: Likewise.
7710         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
7711         * m4/locale-ar.m4: Likewise.
7712         * m4/locale-fr.m4: Likewise.
7713         * m4/locale-ja.m4: Likewise.
7714         * m4/locale-tr.m4: Likewise.
7715         * m4/locale-zh.m4: Likewise.
7716         * m4/printf.m4: Likewise.
7717         * tests/test-cloexec.c: Likewise.
7718         * tests/test-copy-acl.sh: Likewise.
7719         * tests/test-copy-file.sh: Likewise.
7720         * tests/test-file-has-acl.sh: Likewise.
7721         * tests/test-set-mode-acl.sh: Likewise.
7722         * tests/test-dup-safer.c: Likewise.
7723         * tests/test-dup2.c: Likewise.
7724         * tests/test-dup3.c: Likewise.
7725         * tests/test-fcntl.c: Likewise.
7726         * tests/test-nonblocking-pipe.h: Likewise.
7727         * tests/test-nonblocking-socket.h: Likewise.
7728         * tests/test-pipe.c: Likewise.
7729         * tests/test-pipe2.c: Likewise.
7730         * tests/test-spawn-pipe-child.c: Likewise.
7731         * doc/acl-resources.txt: Likewise.
7732         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7733         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
7734         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
7735         * lib/localcharset.c: Update comments to mention native Windows.
7736         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7737         * lib/localename.c: Likewise.
7738         * lib/progreloc.c: Likewise.
7739         * lib/relocatable.c: Likewise.
7740         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7741         (windows_compute_revents): Renamed from win32_compute_revents.
7742         (windows_compute_revents_socket): Renamed from
7743         win32_compute_revents_socket.
7744         * lib/select.c: Update comments to mention native Windows.
7745         (windows_poll_handle): Renamed from win32_poll_handle.
7746         * m4/threadlib.m4: Update comments to mention native Windows.
7747         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
7748         --enable-threads=windows instead of --enable-threads=win32. Set
7749         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
7750         * lib/glthread/lock.h: Update comments to mention native Windows.
7751         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
7752         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
7753         USE_WIN32_THREADS.
7754         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
7755         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
7756         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
7757         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
7758         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
7759         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
7760         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
7761         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
7762         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
7763         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
7764         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
7765         * tests/test-tls.c: Likewise.
7766         Rationale:
7767         Microsoft renamed the "Win32 API" to "Windows API", as it is available
7768         on both 32-bit and 64-bit Windows systems.
7769         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
7770         line of distinction is between "native Windows" on one side and Unix/
7771         POSIX systems on the other side. More details in
7772         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
7773         Suggested by Paul Eggert.
7774
7775 2012-01-03  Bruno Haible  <bruno@clisp.org>
7776
7777         isatty: Support for MSVC 9.
7778         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
7779         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
7780         (_isatty_nothrow): New function.
7781         (isatty): Use it instead of _isatty.
7782         (IsConsoleHandle): Add comment, from Paolo Bonzini.
7783         * lib/poll.c (IsConsoleHandle): Likewise.
7784         * lib/select.c (IsConsoleHandle): Likewise.
7785         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
7786         (gl_PREREQ_ISATTY): New macro.
7787         * modules/isatty (Depends-on): Add msvc-inval.
7788         (configure.ac): Invoke gl_PREREQ_ISATTY.
7789
7790 2012-01-03  Jim Meyering  <meyering@redhat.com>
7791
7792         maint.mk: remove temporary transition aid from over 1.5 years ago
7793         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
7794         purpose was to aid in the transition (avoiding silent malfunction)
7795         from that old name to the new _sc_search_regexp.  This shim was
7796         added by commit 219c504b.
7797
7798         init.sh: do not try to accommodate compare arguments starting with "-"
7799         * tests/init.sh (compare_dev_null_): Do not try to accommodate
7800         compare arguments that start with "-".  Besides, we do not worry
7801         about this when invoking diff or cmp; why start now with sed?
7802         Using "--" to separate options from argument would trigger sed
7803         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
7804         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
7805
7806 2012-01-02  Bruno Haible  <bruno@clisp.org>
7807
7808         Enhance tests for module 'isatty'.
7809         * modules/isatty-tests (Depends-on): Add pipe-posix.
7810         * tests/test-isatty.c: Include <fcntl.h>.
7811         (DEV_NULL): New macro.
7812         (main): Test the resut of isatty() also on regular files, pipes, and
7813         /dev/null.
7814
7815         New module 'isatty'.
7816         * lib/unistd.in.h (isatty): New declaration.
7817         * lib/isatty.c: New file, based on an idea of
7818         Bastien Roucariès <roucaries.bastien@gmail.com>.
7819         * m4/isatty.m4: New file.
7820         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
7821         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
7822         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
7823         REPLACE_ISATTY.
7824         * modules/isatty: New file.
7825         * doc/posix-functions/isatty.texi: Mention the new module.
7826         Suggested by Paolo Bonzini.
7827
7828 2012-01-02  Bruno Haible  <bruno@clisp.org>
7829
7830         canonicalize: Tweak 2011-12-29 commit.
7831         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
7832         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
7833
7834 2012-01-02  Jim Meyering  <meyering@redhat.com>
7835
7836         gitlog-to-changelog: describe input syntax in --help output
7837         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
7838
7839         gitlog-to-changelog: fix typo in --help: show backslash before email @
7840         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
7841         in sources, but not in actual output.
7842
7843 2011-12-30  Jim Meyering  <meyering@redhat.com>
7844
7845         gitlog-to-changelog: don't malfunction when name contains %-directive
7846         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
7847         in a name string cause trouble.  E.g., with a user name of "%s",
7848         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
7849
7850 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
7851
7852         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
7853         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
7854         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
7855         the "  (tiny change)" notation that is appended to the standard
7856         ChangeLog "date  name  email" header line.
7857
7858 2012-01-01  Jim Meyering  <meyering@redhat.com>
7859
7860         test-framework-sh: init.sh: fix "make dist" failure
7861         When using gnulib-tool's --with-tests option and any module that
7862         depends on test-framework-sh, "make dist" would fail due to the
7863         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
7864         in the gltests directory, and not in the gllib/ directory.
7865         One way to work around that is to move the EXTRA_DIST += init.sh
7866         from the primary module to the -tests one:
7867         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
7868         * modules/test-framework-sh (Makefile.am): ...not here.
7869         Reported by Tom G. Christensen in
7870         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
7871
7872         version-etc: update copyright year reported by --version
7873         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
7874
7875 2011-12-31  Pádraig Brady  <P@draigBrady.com>
7876
7877         canonicalize: only stat() if required
7878         * lib/canonicalize.c (canonicalize_filename_mode):
7879         Avoid calling l?stat() when both CAN_MISSING,
7880         and CAN_NOLINKS are set, as we neither need
7881         to resolve symlinks or test component existence.
7882
7883 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7884
7885         doc: cover st_ino issues once; add OpenVMS etc.
7886         * doc/posix-functions/stat.texi (stat):
7887         * doc/posix-functions/lstat.texi (lstat):
7888         * doc/posix-functions/fstatat.texi (fstatat):
7889         * doc/posix-functions/fstat.texi (fstat):
7890         Move general 'struct stat' stuff to sys_stat.texi,
7891         leaving behind a pointer.
7892         * doc/posix-headers/sys_stat.texi (sys/stat.h):
7893         Merge duplicate info about 'struct stat' problems into here.
7894         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
7895         and suggest partial workarounds.
7896
7897         same-inode: port to OpenVMS
7898         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
7899         three st_ino values.
7900
7901 2011-12-30  Pádraig Brady  <P@draigBrady.com>
7902
7903         canonicalize: fix references to stat() and lstat()
7904         * lib/canonicalize.c (canonicalize_filename_mode):
7905         Ensure references always resolve to a replacement
7906         function if required (even via a macro).
7907
7908 2011-12-30  Jim Meyering  <meyering@redhat.com>
7909
7910         gitlog-to-changelog: remove a little duplication
7911         * build-aux/gitlog-to-changelog (main): Grep @lines once,
7912         rather than twice.
7913
7914 2011-12-29  Pádraig Brady  <P@draigBrady.com>
7915
7916         canonicalize: add support for not resolving symlinks
7917         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
7918         indicate we don't want to follow symlinks.  Also
7919         provide CAN_MODE_MASK to aid setting these existing
7920         mutually exclusive values.
7921         * lib/canonicalize.c (canonicalize_filename_mode):
7922         Extract the flags from can_mode parameter, which
7923         are currently just used to select between stat()
7924         and lstat().  Also ensure that mutually exclusive
7925         values are flagged immediately as invalid.
7926         * tests/test-canonicalize.c: Verify symlinks are
7927         not followed, and that invalid flag combinations
7928         are diagnosed.
7929
7930 2011-12-25  Jim Meyering  <meyering@redhat.com>
7931
7932         gitlog-to-changelog: do not clump multi-paragraph entries
7933         Identical header lines (date,name,email+coauthors) are suppressed,
7934         thus putting all entries with those same characteristics under
7935         a single header.  However, when a log entry consists of two or
7936         more paragraphs, it may not be clear where it starts and ends.
7937         This change makes it so that such an entry is always separated
7938         from others by a header line, even when that header would
7939         otherwise be suppressed.
7940         * build-aux/gitlog-to-changelog: Implement the above.
7941         Inspired by a related request from Stefano Lattarini in
7942         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
7943
7944 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7945
7946         announce-gen: fix `cmd' typo in diagnostic
7947         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
7948         diagnostic: a missing '$' meant that the command was not output.
7949
7950 2011-12-23  Jim Meyering  <meyering@redhat.com>
7951
7952         test-framework-sh: distribute init.sh
7953         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
7954         Otherwise, "make -C gnulib-tests check" (at least in grep) would
7955         fail due to the lack of init.sh.
7956
7957         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
7958         * modules/atexit-tests: Rather than listing tests/init.sh,
7959         now that there's a module for it, simply depend on that new module.
7960         * modules/closein-tests: Likewise.
7961         * modules/exclude-tests: Likewise.
7962         * modules/getcwd-tests: Likewise.
7963         * modules/perror-tests: Likewise.
7964         * modules/pread-tests: Likewise.
7965         * modules/pwrite-tests: Likewise.
7966         * modules/vc-list-files-tests: Likewise.
7967         * modules/verify-tests: Likewise.
7968         * modules/xalloc-die-tests: Likewise.
7969         * modules/xstrtoimax-tests: Likewise.
7970         * modules/xstrtol-tests: Likewise.
7971         * modules/xstrtoll-tests: Likewise.
7972         * modules/xstrtoumax-tests: Likewise.
7973         * modules/yesno-tests: Likewise.
7974
7975 2011-12-22  Jim Meyering  <meyering@redhat.com>
7976
7977         test-framework-sh: add minimal tests of init.sh's compare function
7978         * modules/test-framework-sh-tests: New file.
7979         * tests/test-init.sh: New file.
7980
7981         test-framework-sh: new module
7982         * modules/test-framework-sh: New file.
7983         * MODULES.html.sh (Support for maintaining and releasing projects):
7984         List it.
7985
7986         init.sh: do not emit simulated diff output to stderr
7987         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
7988
7989 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7990
7991         .gitignore: ignore gnulib.dvi and regex.info
7992         * doc/.gitignore:add gnulib.dvi and regex.info
7993
7994 2011-12-22  Jim Meyering  <meyering@redhat.com>
7995
7996         init.sh: correct previous change
7997         * tests/init.sh (compare): My previous change was wrong.
7998         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
7999
8000         init.sh: avoid unwarranted test failure when using "set -e"
8001         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8002         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8003         a use like "compare exp out" would get evoke an unconditional failure.
8004
8005 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8006
8007         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8008         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8009         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8010         autoreconf that did not.
8011         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8012         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8013
8014 2011-12-17  Jim Meyering  <meyering@redhat.com>
8015
8016         bootstrap: remove some now-unneeded code
8017         This script arose back when gnulib-tool was young.
8018         Since then, it has seen improvements that render much of this
8019         script unnecessary.  In particular, it can now make symlinks
8020         to the files it uses.  Also, I no longer see as much value in
8021         marking files as read-only via comments.
8022         If you relied on the symlink-creation feature of the preceding
8023         version of this script, you can get most of that functionality
8024         by adding the --symlink option to the definition of
8025         gnulib_tool_option_extras in your bootstrap.conf file.
8026         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8027         Run autopoint and libtoolize *before* gnulib-tool.
8028         After it, run an abbreviated autoreconf, rather than a loop around
8029         all tools.
8030         (slirp, bt_mark_as_generated): Remove functions.
8031
8032 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8033
8034         ftoastr: fix typo
8035         * lib/ftoastr.h: Fix misspelling in comment.
8036
8037 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8038
8039         * top/README-release: fix punctuation.
8040
8041 2011-12-17  Jim Meyering  <meyering@redhat.com>
8042
8043         bootstrap: correct the recent buildreq change
8044         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8045         had no effect.
8046         * build-aux/bootstrap (buildreq): Bracket each search term with
8047         "*...*", so that the shell "case" statement works as intended.
8048         Add comments.
8049
8050 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8051
8052         build: let bootstrap resort to wget when downloading .po files
8053         * build-aux/bootstrap (download_po_files): Fallback to wget when
8054         downloading the .po files via rsync fails.  This is necessary to
8055         bootstrap from behind a strict firewall.
8056
8057 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8058
8059         stdint: don't assume C++11 when compiling with g++
8060         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8061         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8062         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8063         work also in C++ before C++11, as that improperly inhibits
8064         generating a substitute stdint.h for that case.
8065
8066 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8067
8068         alloca: protect comment from gnulib-tool
8069         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8070         that gnulib-tool doesn't think it's a license, and munge it to
8071         say "GCC version 3".
8072
8073 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8074
8075         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8076         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8077         $(abs_top_builddir) instead of $(top_builddir).
8078
8079 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8080
8081         strftime-tests: also test nanoseconds
8082         * tests/test-strftime.c (T): Add a test of %N.
8083
8084 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8085
8086         inttypes, stdint: add C++11 support
8087         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8088         when including inttypes.h and stdint.h.  Support this change to
8089         the standard.
8090         * doc/posix-headers/inttypes.texi (inttypes.h):
8091         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8092         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8093         Define if not defined already, for the benefit of pre-C++11 hosts.
8094         Define the standard format macros (e.g., PRId8) always.
8095         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8096         Likewise, if __cpluspus.  Define the standard constant and limit
8097         macros (e.g., INT8_C, INT8_MAX) always.
8098         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8099         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8100         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8101         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8102         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8103         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8104         Likewise.
8105
8106 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8107
8108         nonblocking tests: Fix test failure on Linux/PPC.
8109         Suggested by Prerna Saxena in
8110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8111         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8112         Set to 1100000.
8113
8114 2011-12-12  Jim Meyering  <meyering@redhat.com>
8115
8116         argmatch: don't hard-code `' when listing valid option arguments
8117         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8118         use the quote function to add quotes.  Use fputs rather than
8119         fprintf for the format string with no format directive.
8120
8121 2011-12-07  Eric Blake  <eblake@redhat.com>
8122
8123         bootstrap: detect tools required by gnulib-tool
8124         * build-aux/bootstrap (buildreq): Provide minimum implicit
8125         dependencies.
8126         * DEPENDENCIES: Mention patch as a prereq.
8127
8128 2011-12-04  Bruno Haible  <bruno@clisp.org>
8129
8130         sethostname: Port to Windows platforms.
8131         * lib/sethostname.c: Provide an alternate implementation for Windows
8132         platforms.
8133         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8134         (main): Skip the test if sethostname() fails with EPERM. On Windows
8135         platforms, don't check the result of gethostname().
8136
8137 2011-12-04  Bruno Haible  <bruno@clisp.org>
8138             Jim Meyering  <meyering@redhat.com>
8139
8140         tests: Avoid spurious error message on platforms without mktemp program.
8141         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8142
8143 2011-12-04  Bruno Haible  <bruno@clisp.org>
8144
8145         sethostname: Fix documentation.
8146         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8147         "not fixed" section.
8148
8149 2011-12-03  Bruno Haible  <bruno@clisp.org>
8150
8151         gnulib-tool: Verify that the License field is present and non-empty.
8152         * gnulib-tool (func_get_license_raw): New function, extracted from
8153         func_get_license.
8154         (func_get_license): Use it. Warn if the module is not a test module and
8155         has no license.
8156         Suggested by Jim Meyering.
8157
8158 2011-12-03  Bruno Haible  <bruno@clisp.org>
8159
8160         sethostname tests: Fix link error on mingw.
8161         * tests/test-sethostname1.c: New file, extracted from
8162         tests/test-sethostname.c.
8163         * tests/test-sethostname2.c: New file, extracted from
8164         tests/test-sethostname.c.
8165         * tests/test-sethostname.c: Remove file.
8166         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8167         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8168         (Depends-on): Add gethostname.
8169         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8170         Link the latter with $(GETHOSTNAME_LIB).
8171
8172         sethostname tests: Fix compilation error on mingw.
8173         * tests/test-sethostname.c: Don't include <sys/types.h>.
8174         (geteuid): Use a dummy value without uid_t.
8175         * modules/sethostname-tests (Depends-on): Remove sys_types.
8176
8177         sethostname tests: Avoid a gcc warning.
8178         * tests/test-sethostname.c (main): Remove an unused variable.
8179
8180         Tweak last commit.
8181         * modules/sethostname-tests (Files): Sort by decreasing importance.
8182         (configure.ac): Check for geteuid.
8183         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8184         the test when there's nothing to test. Drop an unnecessary cast.
8185         Improve an error message. Verify that the final sethostname() call
8186         succeeds.
8187
8188 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8189
8190         Add a test suite for the sethostname module.
8191         * modules/sethostname-tests: New file.  A test program
8192         for the sethostname module.
8193         * tests/test-sethostname.c: Likewise.
8194
8195 2011-12-03  Bruno Haible  <bruno@clisp.org>
8196
8197         Tweak last commit.
8198         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8199         Fix preprocessor directives indentation. Fix typos.
8200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8201         * modules/unistd (Makefile): Likewise.
8202
8203 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8204
8205         Integrate the sethostname module into unistd.
8206         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8207         into the unistd.h header.
8208         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8209         preprocessor directives.
8210         * modules/unistd: Setup the Makefile substitutions of the
8211         SETHOSTNAME preprocessor directives.
8212
8213 2011-12-03  Bruno Haible  <bruno@clisp.org>
8214
8215         Tweak last commit.
8216         * lib/sethostname.c: Don't include <string.h>.
8217         (sethostname): No need to copy the argument string to the stack. Don't
8218         call clearerr. Preserve errno when fprintf failed.
8219         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8220         Don't invoke AC_REPLACE_FUNCS.
8221         * modules/sethostname (Link): Remove empty section.
8222         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8223         failure problem.
8224
8225 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8226
8227         New module 'sethostname'.
8228         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8229         for systems that lack it.
8230         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8231         sethostname declaration and function.
8232         * modules/sethostname: New file.  Define the sethostname module.
8233
8234 2011-12-03  Bruno Haible  <bruno@clisp.org>
8235
8236         Tweak last commit.
8237         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8238
8239 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8240
8241         Split the HOST_NAME_MAX detection into a separate m4 macro.
8242         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8243         macro so it can be used by the pending sethostname module.
8244
8245 2011-12-03  Bruno Haible  <bruno@clisp.org>
8246
8247         Fix module descriptions syntax.
8248         * modules/argv-iter (License): Fix syntax.
8249         * modules/di-set (License): Likewise.
8250         * modules/ino-map (License): Likewise.
8251         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8252
8253 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8254
8255         stdalign: port to Clang 3.0
8256         Problem reported by Simon Josefsson in
8257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8258         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8259         which has <stdalign.h> but which does not define alignof.
8260         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8261
8262 2011-12-01  Eric Blake  <eblake@redhat.com>
8263
8264         mktempd: silence dd usage
8265         * build-aux/mktempd (rand_bytes): Silence dd.
8266
8267 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8268
8269         manywarnings: Don't mention gcc version in docstring.
8270         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8271         Jim Meyering <meyering@redhat.com>.
8272
8273 2011-11-30  Jim Meyering  <meyering@redhat.com>
8274
8275         hash: mark a few floating point constants with "f" suffix
8276         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8277         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8278         floating point constants with "f", since they're destined to be
8279         saved/used as "float"s.
8280
8281 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8282
8283         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8284         * tests/test-float.c (test_long_double): Correct and re-enable the
8285         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8286
8287 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8288
8289         Avoid subtracting two pointers that don't point into the same block.
8290         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8291         only pointers into the same memory block are subtracted. We cannot
8292         assume that sizeof (ptrdiff_t) == sizeof (void *).
8293
8294 2011-11-29  Eric Blake  <eblake@redhat.com>
8295
8296         maint.mk: add syntax check for use of compare from init.sh
8297         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8298         moved here from coreutils.
8299
8300         manywarnings: drop -Wunsuffixed-float-constants
8301         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8302         '1.0D', which is the only way to silence this warning for 'double'.
8303
8304 2011-11-29  Jim Meyering  <meyering@redhat.com>
8305
8306         hash: mark compute_bucket_size with the pure attribute
8307         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8308
8309         quotearg, propername: correct pragma guard expression
8310         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8311         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8312
8313 2011-11-28  Jim Meyering  <meyering@redhat.com>
8314
8315         propername: do not mark proper_name with the const attribute
8316         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8317         since it examines data pointed to by its parameter.
8318         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8319         the suggestion from -Wsuggest-attribute=const.
8320
8321         propername: mark one more function as const
8322         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8323
8324 2011-11-27  Jim Meyering  <meyering@redhat.com>
8325
8326         mark functions with const and pure attributes
8327
8328         Mark functions per suggestions from gcc-4.6 when using these options:
8329         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8330         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8331         Follow these guidelines: when possible, apply the attribute to
8332         an extern declaration, not to its definition.  Apply it to the
8333         definition only when the definition is static.
8334         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8335         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8336         * lib/base64.h (isbase64): Likewise.
8337         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8338         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8339         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8340         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8341         (c_tolower, c_toupper): Likewise.
8342         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8343         * lib/chdir-long.c (find_non_slash): Likewise.
8344         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8345         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8346         * lib/file-type.h (file_type): Likewise.
8347         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8348         * lib/filevercmp.c (verrevcmp): Likewise.
8349         * lib/freadahead.h (freadahead): Likewise.
8350         * lib/fts.c (fts_maxarglen): Likewise.
8351         * lib/hash-pjw.h (hash_pjw): Likewise.
8352         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8353         * lib/hash.c (is_prime, next_prime): Likewise.
8354         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8355         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8356         (hash_table_ok, hash_get_first, hash_string): Likewise.
8357         (compute_bucket_size): Likewise.
8358         * lib/i-ring.h (i_ring_empty): Likewise.
8359         * lib/isnan.c (isnanl): Likewise.
8360         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8361         * lib/memcasecmp.h (memcasecmp): Likewise.
8362         * lib/memchr2.h (memchr2): Likewise.
8363         * lib/memcmp2.h (memcmp2): Likewise.
8364         * lib/parse-datetime.y (lookup_zone): Likewise.
8365         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8366         [!WINDOWS_SOCKETS]: Likewise.
8367         * lib/strnlen1.h (strnlen1): Likewise.
8368         * lib/uniwidth.in.h (uc_width): Likewise.
8369         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8370         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8371         (quoting_options_from_style): Add a comment.
8372         * lib/propername.h (proper_name): Add a comment.
8373
8374 2011-11-27  Bruno Haible  <bruno@clisp.org>
8375
8376         Remove unused macros from !_LIBC code in glibc-borrowed files.
8377         * lib/fnmatch.c (STRCOLL): Remove macro.
8378         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8379         * lib/glob.c (__stat, __readdir64): Remove macros.
8380         * lib/tempname.c (__open64, __xstat64): Remove macros.
8381         Suggested by Paul Eggert.
8382
8383 2011-11-27  Bruno Haible  <bruno@clisp.org>
8384
8385         getcwd: Fix link error on MSVC 9.
8386         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8387
8388 2011-11-27  Bruno Haible  <bruno@clisp.org>
8389
8390         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8391         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8392         HAVE_OPENDIR is 0.
8393         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8394         HAVE_CLOSEDIR is 0.
8395         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8396         is 0.
8397         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8398
8399 2011-11-27  Bruno Haible  <bruno@clisp.org>
8400
8401         getcwd: Fix bug from 2011-08-17.
8402         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8403         platforms that need it.
8404         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8405         code of 4 to be a failure, not a success. This ensures that
8406         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8407
8408 2011-11-27  Bruno Haible  <bruno@clisp.org>
8409
8410         binary-io tests: Avoid test failure on mingw when libtool is used.
8411         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8412         Don't verify the size of t-bin-out1.tmp here.
8413         * tests/test-binary-io.sh: Verify it here.
8414         Reported by Simon Josefsson.
8415
8416 2011-11-26  Bruno Haible  <bruno@clisp.org>
8417
8418         Fix conflict between two instantiations of module 'unistd'.
8419         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8420         ${include_guard_prefix} also in the autoconf snippet.
8421         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8423         GNULIB_UNISTD_H_GETOPT.
8424         * modules/getopt-posix (configure.ac): Set the
8425         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8426         * modules/getopt-gnu (configure.ac): Likewise.
8427         * modules/unistd (Makefile.am): Change the substitution value of
8428         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8429         Reported by Simon Josefsson.
8430
8431 2011-11-25  Bruno Haible  <bruno@clisp.org>
8432
8433         pagealign_alloc: Doc and comments.
8434         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8435         module.
8436         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8437
8438 2011-11-25  Jim Meyering  <meyering@redhat.com>
8439
8440         test-update-copyright.sh: avoid false-positive failure
8441         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8442         around false positive failure on Cygwin/Windows.  The latter was
8443         matching erroneously-created files with names like
8444         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8445
8446 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8447
8448         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8449         * m4/valgrind-tests.m4: Check that the parameters that will be
8450         used works, not just a subset of them.  Reported by Bruno Haible
8451         <bruno@clisp.org>.
8452
8453 2011-11-24  Jim Meyering  <meyering@redhat.com>
8454
8455         test-stdalign.c: comment out long double tests
8456         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8457         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8458         error: '_Alignas' specifiers cannot reduce alignment of \
8459         'static_longdouble_alignas'.
8460
8461 2011-11-22  Jim Meyering  <meyering@redhat.com>
8462
8463         init.sh: make "compare /dev/null FILE" output more readable
8464         * tests/init.sh (compare_): Document the preferred order of arguments.
8465         (emit_diff_u_header_): New function.
8466         (compare_dev_null_): Emit a simulated diff, rather than just the
8467         contents of the unexpected file.  Suggestion from Bruno Haible.
8468
8469 2011-11-21  Jim Meyering  <meyering@redhat.com>
8470             Eric Blake  <eblake@redhat.com>
8471
8472         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8473         * tests/init.sh: Make our compare function slightly more portable.
8474         Reported by Bruno Haible in
8475         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8476
8477 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8478
8479         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8480         before using it, in code that ends up in config.h.
8481
8482 2011-11-20  Bruno Haible  <bruno@clisp.org>
8483
8484         getcwd: Work around getcwd bug on AIX 5..7.
8485         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8486         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8487         Use a different value for gl_cv_func_getcwd_path_max. Move the
8488         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8489         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8490         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8491         Define HAVE_MINIMALLY_WORKING_GETCWD.
8492         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8493         where it is not even minimally working, that is, on AIX.
8494         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8495         m4/getcwd-path-max.m4.
8496         (main): Update exit code computation.
8497         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8498         getcwd does not handle long file names.
8499
8500 2011-11-20  Bruno Haible  <bruno@clisp.org>
8501
8502         getcwd: Fix bug from 2009-09-10.
8503         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8504         like "no".
8505
8506 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8507
8508         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8509
8510 2011-11-20  Bruno Haible  <bruno@clisp.org>
8511
8512         fma tests: Avoid shadowing local variables.
8513         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8514         expected.
8515
8516 2011-11-20  Bruno Haible  <bruno@clisp.org>
8517
8518         copysignf tests: Fix.
8519         * tests/test-copysignf.c: Fix signature check.
8520
8521 2011-11-20  Bruno Haible  <bruno@clisp.org>
8522
8523         fma: Remove unused code.
8524         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8525         unused macros.
8526
8527 2011-11-20  Bruno Haible  <bruno@clisp.org>
8528
8529         sethostname: Fix doc about AIX.
8530         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8531         sethostname; it has it.
8532
8533         sethostname: Mention more portability problems.
8534         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8535         problem.
8536         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8537
8538 2011-11-19  Bruno Haible  <bruno@clisp.org>
8539
8540         Depend on module fcntl-h when AT_FDCWD is used.
8541         * modules/utimens (Depends-on): Add fcntl-h.
8542         * modules/areadlinkat (Depends-on): Likewise.
8543         * modules/areadlinkat-with-size (Depends-on): Likewise.
8544         * modules/faccessat (Depends-on): Likewise.
8545         * modules/fchmodat (Depends-on): Likewise.
8546         * modules/fchownat (Depends-on): Likewise.
8547         * modules/getcwd (Depends-on): Likewise.
8548         * modules/mkdirat (Depends-on): Likewise.
8549         * modules/mkfifoat (Depends-on): Likewise.
8550         * modules/readlinkat (Depends-on): Likewise.
8551         * modules/symlinkat (Depends-on): Likewise.
8552         * modules/dup2-tests (Depends-on): Likewise.
8553         * modules/fdutimensat-tests (Depends-on): Likewise.
8554         * modules/futimens-tests (Depends-on): Likewise.
8555
8556 2011-11-19  Bruno Haible  <bruno@clisp.org>
8557
8558         euidaccess: Update a comment.
8559         * lib/euidaccess.c: Update comment about platforms with faccessat.
8560
8561 2011-11-19  Bruno Haible  <bruno@clisp.org>
8562
8563         openat: Fix file list.
8564         * modules/openat (Files): Remove lib/at-func.c.
8565
8566 2011-11-19  Bruno Haible  <bruno@clisp.org>
8567
8568         fstatat: Simplify.
8569         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8570         gnulib should define rpl_fstatat, there is a
8571         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8572
8573 2011-11-19  Bruno Haible  <bruno@clisp.org>
8574
8575         Ensure 'inline' can be used in tests/test-utimens-common.h.
8576         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8577         * modules/futimens-tests (configure.ac): Likewise.
8578         * modules/utimens-tests (configure.ac): Likewise.
8579         * modules/utimensat-tests (configure.ac): Likewise.
8580
8581 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8582
8583         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8584         not hash_insert0.
8585         (hash_insert_if_absent): Doc fix.
8586
8587 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8588
8589         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8590
8591 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8592
8593         test-getcwd: disambiguate exit status
8594         * tests/test-getcwd.c (test_long_name): Return 0..7.
8595         (main): Exit with an unambiguous exit status.  The old
8596         code yielded a mysterious mixture of two failure codes.
8597
8598         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8599         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8600         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8601         rpl_fstatat or fstatat.  This should fix the other problem
8602         reported by Kai Habel in
8603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8604         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
8605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
8606         and I reproduced it on a Solaris 8 host we still have in production.
8607
8608 2011-11-18  Jim Meyering  <meyering@redhat.com>
8609
8610         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
8611         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
8612         Add a sentence to the comment.
8613         (hash_insert0): New function that simply calls hash_insert_if_absent.
8614         * lib/hash.h (hash_insert_if_absent): Declare it.
8615         (hash_insert0): Add deprecation attribute.
8616         (_GL_ATTRIBUTE_DEPRECATED): Define.
8617         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
8618         not hash_insert0.
8619         * NEWS: Mention it, even though it's not really an incompatible change.
8620
8621 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
8622
8623         openat: avoid compilation failure due to lack of <errno.h> inclusion
8624         * lib/openat.c: Include <errno.h>.
8625
8626 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8627
8628         * modules/getcwd (Depends-on): Add fdopendir.
8629         This fixes one of the two problems reported by Kai Habel in
8630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8631
8632         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
8633         stdalign problem reported by Ian Beckwith in
8634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
8635         * modules/crypto/gc-arcfour (Depends-on):
8636         Depend conditionally on crypto/arcfour.
8637         * modules/crypto/gc-arctwo (Depends-on):
8638         Depend conditionally on crypto/arctwo.
8639         * modules/crypto/gc-des (Depends-on):
8640         Depend conditionally on crypto/des.
8641         * modules/crypto/gc-hmac-md5 (Depends-on):
8642         Depend conditionally on crypto/hmac-md5.
8643         * modules/crypto/gc-hmac-sha1 (Depends-on):
8644         Depend conditionally on crypto/hmac-sha1.
8645         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
8646         * modules/crypto/gc-md4 (Depends-on):
8647         Depend conditionally on crypto/md4.
8648         * modules/crypto/gc-md5 (Depends-on):
8649         Depend conditionally on crypto/md5.
8650         * modules/crypto/gc-rijndael (Depends-on):
8651         Depend conditionally on crypto/rijndael.
8652         * modules/crypto/gc-sha1 (Depends-on):
8653         Depend conditionally on crypto/sha1.
8654         * modules/crypto/gc-arcfour:
8655         * modules/crypto/gc-arctwo:
8656         * modules/crypto/gc-des:
8657         * modules/crypto/gc-hmac-md5:
8658         * modules/crypto/gc-hmac-sha1:
8659         * modules/crypto/gc-md2:
8660         * modules/crypto/gc-md4:
8661         * modules/crypto/gc-md5:
8662         * modules/crypto/gc-rijndael:
8663         * modules/crypto/gc-sha1:
8664         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
8665         now that the conditional dependencies do the work for us.
8666
8667 2011-11-17  Jim Meyering  <meyering@redhat.com>
8668
8669         tests: factor st_ctime-comparison out of two headers
8670         * tests/test-utimens-common.h (ctime_compare): Define.
8671         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
8672         * tests/test-lutimens.h (test_lutimens): Likewise.
8673         * tests/test-utimens.h (test_utimens): Likewise.
8674
8675         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
8676         Invoke the test program via an init.sh-using wrapper.
8677         * tests/test-getcwd.sh: New file.
8678         * modules/getcwd-tests (Files): Add it.
8679         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
8680
8681 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
8682
8683         gitlog-to-changelog: support multi-author commits.
8684         The FSF cares about keeping track of all authors of patches to its
8685         projects, but Git doesn't provide obvious support for multi-author
8686         changesets. Consensus seems to be forming around the use of extra
8687         Signed-off-by inspired lines in the log message formatted as
8688         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
8689         multi-author commits between version control systems.
8690         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
8691         log message and output in standard ChangeLog multi-author format.
8692         Reported by Peter Rosin <peda@lysator.liu.se>
8693
8694 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
8695             Bruno Haible  <bruno@clisp.org>
8696
8697         Fix some modules' file list.
8698         * modules/fstatat (Files): Add m4/lstat.m4.
8699         * modules/openat (Files): Likewise.
8700         * modules/unlinkat (Files): Likewise.
8701
8702 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
8703
8704         maint.mk: fix tight-scope.mk generation in VPATH builds.
8705         * top/maint.mk (tight-scope.mk): Make sure to prefix file
8706         reference with $(srcdir) so that the file is found correctly even
8707         when running `make syntax-check' in a VPATH build.
8708
8709 2011-11-13  Bruno Haible  <bruno@clisp.org>
8710             Jim Meyering  <meyering@redhat.com>
8711
8712         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
8713         * tests/init.sh (compare): Remove "No differences encountered" or
8714         synonymous output from the 'diff' program.
8715
8716 2011-11-13  Bruno Haible  <bruno@clisp.org>
8717
8718         Makefile: Tweak indentation.
8719         * Makefile: Use tab as first character in every line that contains rule
8720         commands.
8721
8722 2011-11-13  Bruno Haible  <bruno@clisp.org>
8723
8724         Syntax check for copyright statements.
8725         * check-copyright: New file.
8726         * Makefile (sc_check_copyright): New rule.
8727
8728 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8729
8730         * build-aux/git-version-gen: Add --prefix to configure the tag
8731         match string.
8732
8733 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8734
8735         * build-aux/git-version-gen: Add --help and --version.
8736
8737 2011-11-12  Jim Meyering  <meyering@redhat.com>
8738
8739         revamp the other test-exclude?.sh scripts to use init.sh, too
8740         * tests/test-exclude1.sh: Use init.sh.
8741         * tests/test-exclude2.sh: Likewise.
8742         * tests/test-exclude3.sh: Likewise.
8743         * tests/test-exclude4.sh: Likewise.
8744         * tests/test-exclude5.sh: Likewise.
8745         * tests/test-exclude6.sh: Likewise.
8746         * tests/test-exclude7.sh: Likewise.
8747         * tests/test-exclude8.sh: Likewise.
8748         * modules/exclude-tests (Files): List init.sh.
8749
8750         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
8751         These shell scripts ignored failure of the binary test-exclude,
8752         so making the latter return 77 didn't cause them to be skipped.
8753         * tests/test-exclude5.sh: Exit with test-exclude's error status
8754         when that program fails.  Revamp to use init.sh.
8755         * tests/test-exclude2.sh: Likewise.
8756
8757         test-exclude: fix a typo
8758         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
8759
8760 2011-11-11  Bruno Haible  <bruno@clisp.org>
8761
8762         obstack: Fix compilation error on MSVC 9.
8763         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
8764
8765 2011-11-11  Jim Meyering  <meyering@redhat.com>
8766
8767         test-exclude: skip tests rather than failing on deficient systems
8768         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
8769         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
8770         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
8771         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
8772
8773 2011-11-10  Bruno Haible  <bruno@clisp.org>
8774
8775         ptsname_r test: Avoid gcc warning on glibc systems.
8776         * tests/test-ptsname_r.c (null_ptr): New function.
8777         (test_errors): Use it.
8778
8779 2011-11-10  Bruno Haible  <bruno@clisp.org>
8780
8781         ptsname_r: Avoid compilation error on OSF/1 5.1.
8782         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
8783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
8784         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
8785         function is not declared or incompatibly declared.
8786         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
8787         * modules/ptsname_r (Depends-on, configure.ac): Update.
8788         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
8789
8790 2011-11-10  Bruno Haible  <bruno@clisp.org>
8791
8792         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
8793         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
8794         When cross-compiling, guess yes on all platforms except AIX.
8795         Reported by Ludovic Courtès <ludo@gnu.org>.
8796
8797 2011-11-09  Bruno Haible  <bruno@clisp.org>
8798
8799         ptsname_r tests: Fix bugs.
8800         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
8801         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
8802
8803 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8804
8805         fstatat: work with cross-compilation
8806         Problem reported by Ludovic Courtès in
8807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
8808         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
8809         "cross-compiling" and assume the bug is present.  Replace
8810         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
8811         an inverted sense, to be more conservative about our assumptions.
8812         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
8813
8814 2011-11-09  Bruno Haible  <bruno@clisp.org>
8815
8816         Improve MODULES.html output.
8817         * modules/mkfifoat (Description): Use the word "function".
8818         * modules/readlinkat (Description): Likewise.
8819         * modules/symlinkat (Description): Likewise.
8820
8821 2011-11-09  Eric Blake  <eblake@redhat.com>
8822
8823         ptsname_r-tests: new test module
8824         * modules/ptsname_r-tests: New module.
8825         * tests/test-ptsname_r.c: New file.
8826
8827         ptsname_r: new module
8828         * modules/ptsname_r: New module.
8829         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
8830         * lib/ptsname.c (__ptsname_r): Split...
8831         * lib/ptsname_r.c: ...into new file.
8832         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8833         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
8834         * modules/stdlib (Makefile.am): Substitute witnesses.
8835         * lib/stdlib.in.h (ptsname_r): Declare it.
8836         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
8837         * MODULES.html.sh (Misc): Likewise.
8838         * modules/ptsname (Depends-on): Alter dependency.
8839         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
8840
8841 2011-11-09  Jim Meyering  <meyering@redhat.com>
8842
8843         announce-gen: be more concise when there's only one URL+tarball
8844         * build-aux/announce-gen (get_tool_versions): When you distribute
8845         only one type of tarball, combine the first two "Here are..."
8846         sections and make the key-checking grammar independent of
8847         how many tarballs there are.
8848
8849 2011-11-09  Eric Blake  <eblake@redhat.com>
8850
8851         openpty: provide a stub on mingw
8852         * lib/pty.in.h (includes): Provide forward declarations.
8853         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
8854
8855         raise: fix mingw handling of SIGPIPE
8856         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
8857
8858 2011-11-08  Bruno Haible  <bruno@clisp.org>
8859
8860         More conditional dependencies.
8861         * modules/faccessat (Depends-on): Add conditions.
8862         * modules/fchmodat (Depends-on): Likewise.
8863         * modules/fchownat (Depends-on): Likewise.
8864         * modules/fstatat (Depends-on): Likewise.
8865         * modules/mkfifoat (Depends-on): Likewise.
8866         * modules/readlinkat (Depends-on): Likewise.
8867         * modules/symlinkat (Depends-on): Likewise.
8868         * modules/unlinkat (Depends-on): Likewise.
8869         * modules/utimensat (Depends-on): Likewise.
8870         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
8871         * modules/linkat (Depends-on): Refine the conditions.
8872         * modules/renameat (Depends-on): Likewise.
8873
8874 2011-11-08  Bruno Haible  <bruno@clisp.org>
8875
8876         faccessat: Move AC_LIBOBJ invocation to module description.
8877         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
8878         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
8879         invocation from here...
8880         * modules/faccessat (configure.ac): ... to here. Invoke
8881         gl_PREREQ_FACCESSAT.
8882
8883 2011-11-08  Bruno Haible  <bruno@clisp.org>
8884
8885         faccessat: Simplify autoconf macro.
8886         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
8887         gl_FUNC_EUIDACCESS.
8888
8889 2011-11-08  Bruno Haible  <bruno@clisp.org>
8890
8891         renameat: Fix dependencies.
8892         * modules/renameat (Depends-on): Add stdbool.
8893
8894 2011-11-08  Bruno Haible  <bruno@clisp.org>
8895
8896         mkfifoat: Fix module description.
8897         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
8898         not gl_UNISTD_MODULE_INDICATOR.
8899
8900 2011-11-08  Bruno Haible  <bruno@clisp.org>
8901
8902         fstatat: Remove unused dependency.
8903         * modules/fstatat (Depends-on): Remove fstat.
8904
8905 2011-11-08  Simon Josefsson  <simon@josefsson.org>
8906
8907         GNUmakefile: behave when Makefile is missing.
8908         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
8909
8910 2011-11-08  Bruno Haible  <bruno@clisp.org>
8911
8912         openat: Conditionalize dependencies.
8913         * lib/openat.c: Reduce the scope of some #includes.
8914         * modules/openat (Depends-on): Add conditions.
8915
8916 2011-11-07  Jim Meyering  <meyering@redhat.com>
8917
8918         maint.mk: extract GPG key ID without using a temporary file
8919         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
8920         without using a temporary file.  Based on a suggestion from Werner Koch
8921         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
8922
8923 2011-11-07  Eric Blake  <eblake@redhat.com>
8924
8925         grantpt: fix typo
8926         * lib/stdlib.in.h (grantpt): Check correct function.
8927
8928         maint.mk: silence new syntax check
8929         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
8930
8931 2011-11-06  Bruno Haible  <bruno@clisp.org>
8932
8933         Doc about floating-point and math API.
8934         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
8935         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
8936
8937 2011-11-06  Bruno Haible  <bruno@clisp.org>
8938
8939         stdalign tests: Skip the test when compiled by Sun C.
8940         * tests/test-stdalign.c (main): Skip the test on Sun C.
8941
8942 2011-11-06  Bruno Haible  <bruno@clisp.org>
8943
8944         ansi-c++-opt: Complete the 2011-06-05 change.
8945         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
8946         does not support namespaces, set the variable to "no", not to ":".
8947
8948 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8949
8950         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
8951
8952 2011-11-06  Bruno Haible  <bruno@clisp.org>
8953
8954         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
8955         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
8956         (minus_zerol) [HP-UX]: New macro.
8957         (unary_minus) [HP-UX]: New function.
8958         (copysignl) [HP-UX]: Use unary_minus function.
8959
8960 2011-11-06  Bruno Haible  <bruno@clisp.org>
8961
8962         ldexp, ldexpf, ldexpl: Enhance tests.
8963         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
8964         and tests/test-ldexpl.c.
8965         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
8966         LDEXP, MIN_EXP, MAX_EXP): New macros.
8967         Include test-ldexp.h.
8968         (main): Just call test_function.
8969         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
8970         infinity.h, nan.h.
8971         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8972         MAX_EXP): New macros.
8973         Include test-ldexp.h.
8974         (x, y): Remove variables.
8975         (main): Just call test_function.
8976         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
8977         infinity.h, nan.h.
8978         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8979         MAX_EXP): New macros.
8980         Include test-ldexp.h.
8981         (x, y): Remove variables.
8982         (main): Just call test_function.
8983         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
8984         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
8985         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8986         (Depends-on): Add isnand-nolibm, signbit, float.
8987         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
8988         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8989         (Depends-on): Add isnanf-nolibm, signbit, float.
8990
8991 2011-11-06  Bruno Haible  <bruno@clisp.org>
8992
8993         math tests: Cosmetics.
8994         * tests/test-math-c++.cc: Reorder declarations.
8995
8996 2011-11-05  Bruno Haible  <bruno@clisp.org>
8997
8998         fma*: Simplify test.
8999         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9000         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9001
9002         Tests for module 'fmal'.
9003         * modules/fmal-tests: New file.
9004         * tests/test-fmal1.c: New file.
9005         * tests/test-fmal2.c: New file.
9006
9007         New module 'fmal'.
9008         * lib/math.in.h (fmal): New declaration.
9009         * lib/fmal.c: New file.
9010         * m4/fmal.m4: New file.
9011         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9012         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9013         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9014         REPLACE_FMAL.
9015         * modules/fmal: New file.
9016         * doc/posix-functions/fmal.texi: Mention the new module and the various
9017         bugs.
9018
9019         Tests for module 'fmaf'.
9020         * modules/fmaf-tests: New file.
9021         * tests/test-fmaf1.c: New file.
9022         * tests/test-fmaf2.c: New file.
9023
9024         New module 'fmaf'.
9025         * lib/math.in.h (fmaf): New declaration.
9026         * lib/fmaf.c: New file.
9027         * m4/fmaf.m4: New file.
9028         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9030         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9031         REPLACE_FMAF.
9032         * modules/fmaf: New file.
9033         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9034         bugs.
9035
9036         Tests for module 'fma'.
9037         * modules/fma-tests: New file.
9038         * tests/test-fma1.c: New file.
9039         * tests/test-fma1.h: New file.
9040         * tests/test-fma2.c: New file.
9041         * tests/test-fma2.h: New file.
9042
9043         New module 'fma'.
9044         * lib/math.in.h (fma): New declaration.
9045         * lib/fma.c: New file.
9046         * m4/fma.m4: New file.
9047         * m4/fegetround.m4: New file.
9048         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9050         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9051         REPLACE_FMA.
9052         * modules/fma: New file.
9053         * doc/posix-functions/fma.texi: Mention the new module and the various
9054         bugs.
9055
9056         Extend gl_MATHFUNC.
9057         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9058         Support 'void' as argument type.
9059         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9060
9061 2011-11-05  Jim Meyering  <meyering@redhat.com>
9062
9063         maint.mk: also prohibit inclusion of dirent.h without use
9064         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9065
9066 2011-11-05  Bruno Haible  <bruno@clisp.org>
9067
9068         ldexpl tests: Avoid test failure on MSVC 9.
9069         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9070         value. Needed in order to enforce the conversion from a value greater
9071         than LDBL_MAX to Infinity.
9072
9073 2011-11-05  Bruno Haible  <bruno@clisp.org>
9074
9075         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9076         * modules/at-internal: New file, extracted from modules/openat.
9077         * modules/openat-h: New file.
9078         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9079         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9080         * modules/openat (Description): Add reference to POSIX function.
9081         (Files): Remove lib/openat.h, lib/openat-proc.c.
9082         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9083         intprops, unistd.
9084         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9085         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9086         gl_FCNTL_MODULE_INDICATOR.
9087         (Include): Remove unistd.h, openat.h.
9088         * modules/areadlinkat (Files): Add lib/at-func.c.
9089         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9090         openat-die, openat-h, save-cwd.
9091         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9092         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9093         openat-die, openat-h, save-cwd, unistd.
9094         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9095         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9096         openat-h, save-cwd. Remove fcntl-h, openat.
9097         * modules/fchmodat (Files): Remove lib/openat.h.
9098         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9099         openat, stdbool, unistd.
9100         * modules/fchownat (Files): Remove lib/openat.h.
9101         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9102         openat, stdbool, sys_stat.
9103         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9104         lib/openat-proc.c.
9105         (Depends-on): Add at-internal.
9106         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9107         * modules/fstatat (Files): Remove lib/openat.h.
9108         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9109         stdbool, unistd.
9110         * modules/fts (Depends-on): Add openat-h.
9111         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9112         openat.
9113         * modules/mkdirat (Files): Remove lib/openat.h.
9114         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9115         openat, stdbool, sys_stat.
9116         * modules/mkfifoat (Files): Add lib/at-func.c.
9117         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9118         openat-h, save-cwd. Remove fcntl-h, openat.
9119         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9120         * modules/readlinkat (Files): Add lib/at-func.c.
9121         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9122         openat-h, save-cwd. Remove fcntl-h, openat.
9123         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9124         openat.
9125         * modules/selinux-at (Files): Add lib/at-func.c.
9126         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9127         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9128         * modules/symlinkat (Files): Add lib/at-func.c.
9129         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9130         openat-h, save-cwd. Remove fcntl-h, openat.
9131         * modules/unlinkat (Files): Remove lib/openat.h.
9132         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9133         stdbool.
9134         * modules/utimensat (Files): Add lib/at-func.c.
9135         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9136         openat-die, openat-h, save-cwd.
9137         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9138         * modules/fdutimensat-tests (Depends-on): Add openat.
9139         * modules/fstatat-tests (Depends-on): Add openat-h.
9140         * modules/readlinkat-tests (Depends-on): Add openat.
9141         * modules/symlinkat-tests (Depends-on): Add openat.
9142
9143 2011-11-05  Bruno Haible  <bruno@clisp.org>
9144
9145         openat: Include <stdbool.h>.
9146         * lib/openat.c: Include <stdbool.h>.
9147
9148 2011-11-04  Bruno Haible  <bruno@clisp.org>
9149
9150         fchownat, renameat, unlinkat: Fix dependencies.
9151         * modules/fchownat (Depends-on): Add fstatat.
9152         * modules/renameat (Depends-on): Likewise.
9153         * modules/unlinkat (Depends-on): Likewise.
9154
9155 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9156
9157         openat: remove direct dependency on dirent
9158         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9159         and hasn't been needed ever since fdopendir was split into its own
9160         module on 2009-08-31.
9161         * modules/openat (Depends-on): Remove dirent.
9162
9163 2011-11-04  Bruno Haible  <bruno@clisp.org>
9164
9165         renameat: Optimize code size.
9166         * modules/renameat (configure.ac): Don't compile at-func2.c if
9167         REPLACE_RENAMEAT is 1.
9168
9169 2011-11-04  Bruno Haible  <bruno@clisp.org>
9170
9171         openat tests: Fix file list.
9172         * modules/openat-tests (Files): Add tests/test-open.h.
9173
9174 2011-11-04  Bruno Haible  <bruno@clisp.org>
9175
9176         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9177         * modules/fchmodat (Depends-on): Add openat-die.
9178         * modules/fchownat (Depends-on): Likewise.
9179         * modules/linkat (Depends-on): Likewise.
9180         * modules/renameat (Depends-on): Likewise.
9181         * modules/openat (Depends-on): Add dirent.
9182
9183 2011-11-04  Jim Meyering  <meyering@redhat.com>
9184
9185         at-func*.c: fix comments
9186         * lib/at-func2.c: Correct/improve first-line comment.
9187         * lib/at-func.c: Correct grammar in first-line comment.
9188
9189 2011-11-04  Bruno Haible  <bruno@clisp.org>
9190
9191         New module 'mkdirat', split off from module 'openat'.
9192         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9193         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9194         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9195         * modules/mkdirat: New file, extracted from modules/openat.
9196         * modules/openat (Files): Remove lib/mkdirat.c.
9197         (Depends-on): Remove mkdir.
9198         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9199         (Include): Remove <sys/stat.h>.
9200         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9201         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9202         tests/test-mkdir.h.
9203         (Depends-on): Remove ignore-value.
9204         (Makefile.am): Remove rules for test-mkdirat.
9205         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9206         of module 'openat'.
9207         * NEWS: Mention the change.
9208
9209 2011-11-04  Bruno Haible  <bruno@clisp.org>
9210
9211         closedir: Avoid warning on mingw.
9212         * lib/closedir.c: Include <unistd.h>.
9213
9214 2011-11-04  Bruno Haible  <bruno@clisp.org>
9215
9216         New module 'fstatat', split off from module 'openat'.
9217         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9218         defined.
9219         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9220         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9221         gl_FUNC_FSTATAT.
9222         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9223         * modules/fstatat: New file, extracted from modules/openat.
9224         * modules/openat (Files): Remove lib/fstatat.c.
9225         (Depends-on): Remove lstat.
9226         (configure.ac): Remove AC_LIBOBJ of fstatat.
9227         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9228         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9229         tests/test-lstat.h, tests/test-stat.h.
9230         (Depends-on): Remove getcwd-lgpl.
9231         (Makefile.am): Remove rules for test-fstatat.
9232         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9233         of module 'openat'.
9234         * NEWS: Mention the change.
9235         * modules/getcwd (Depends-on): Add fstatat.
9236         * modules/linkat (Depends-on): Likewise.
9237         * modules/mkfifoat-tests (Depends-on): Likewise.
9238         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9239
9240 2011-11-03  Bruno Haible  <bruno@clisp.org>
9241
9242         New module 'unlinkat', split off from module 'openat'.
9243         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9244         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9245         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9246         * modules/unlinkat: New file, extracted from modules/openat. Correct
9247         the dependency conditions.
9248         * modules/openat (Files): Remove lib/unlinkat.c.
9249         (Depends-on): Remove rmdir, unlink.
9250         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9251         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9252         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9253         tests/test-rmdir.h, tests/test-unlink.h.
9254         (Depends-on): Remove unlinkdir.
9255         (Makefile.am): Remove rules for test-unlinkat.
9256         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9257         of module 'openat'.
9258         * NEWS: Mention the change.
9259         * modules/linkat-tests (Depends-on): Add unlinkat.
9260         * modules/mkfifoat-tests (Depends-on): Likewise.
9261         * modules/readlinkat-tests (Depends-on): Likewise.
9262
9263 2011-11-02  Bruno Haible  <bruno@clisp.org>
9264
9265         New module 'fchmodat', split off from module 'openat'.
9266         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9267         defined.
9268         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9269         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9270         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9271         * modules/fchmodat: New file, extracted from modules/openat.
9272         * modules/openat (Files): Remove lib/fchmodat.c.
9273         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9274         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9275         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9276         (Makefile.am): Remove rules for test-fchmodat.
9277         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9278         of module 'openat'.
9279         * NEWS: Mention the change.
9280
9281 2011-11-02  Jim Meyering  <meyering@redhat.com>
9282
9283         putenv: indent #definition of "environ" to placate cppi
9284         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9285
9286         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9287         Git logs are often treated as immutable, because editing them
9288         changes the SHA1 checksums of all descendants.  Thus, errors in
9289         git logs tend to stay there forever.  However, when we generate
9290         a ChangeLog file -- typically for distribution -- from that git log,
9291         we can actually make corrections in the generated file.  The key
9292         lies in recording in machine-readable/applicable form the desired
9293         corrections.  See --help for description and an example.
9294         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9295         (usage): Describe it; alphabetize option descriptions.
9296         (main): Honor the new option, carefully.
9297
9298 2011-11-01  Jim Meyering  <meyering@redhat.com>
9299
9300         gitlog-to-changelog: avoid an infloop
9301         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9302         that ends up being empty.
9303
9304 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9305
9306         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9307         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9308         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9309         contains (possibly-quoted) backslashes.  This should avoid
9310         all-too-common shell bugs if COMPLICATED contains backslashes in
9311         the "wrong" places.  Reported by David Evans in
9312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9313         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9314         because we want ASCII ranges.  Is there some reason we don't use
9315         the C locale everywhere in this script?
9316         (func_module, top level): Avoid unwanted pathname expansion when
9317         $repo_url_prefix or $repo_url_suffix_repl contain shell
9318         metacharacters like '?' and '*'.
9319
9320 2011-11-01  Bruno Haible  <bruno@clisp.org>
9321
9322         fchownat: Improve description.
9323         * modules/fchownat (Description): Add link to function.
9324
9325 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9326
9327         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9328         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9330         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9331
9332 2011-11-01  Bruno Haible  <bruno@clisp.org>
9333
9334         alignof: Avoid collision with stdalign module.
9335         * lib/alignof.h (alignof): Remove macro.
9336         * NEWS: Mention the change.
9337         Reported by Paul Eggert.
9338
9339 2011-11-01  Bruno Haible  <bruno@clisp.org>
9340
9341         New module 'fchownat', split off from module 'openat'.
9342         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9343         defined.
9344         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9345         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9346         invoke gl_FUNC_FCHOWNAT.
9347         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9348         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9349         * modules/fchownat: New file, extracted from modules/openat.
9350         * modules/openat (Files): Remove lib/fchownat.c.
9351         (Depends-on): Remove lchown.
9352         (configure.ac): Remove AC_LIBOBJ of fchownat.
9353         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9354         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9355         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9356         (Depends-on): Remove mgetgroups, usleep, stat-time.
9357         (configure.ac): Remove test for getegid.
9358         (Makefile.am): Remove rules for test-fchownat.
9359         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9360         of module 'openat'.
9361         * NEWS: Mention the change.
9362
9363 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9364
9365         stdalign: port better to MSVC and to Sun C 5.11
9366         This fixes some of the problems reported by Bruno Haible in
9367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9368         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9369         shortcomings of MSVC and of Sun C 5.11.
9370         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9371         around __declspec arg.
9372         * modules/stdalign-tests (Files): Add tests/macros.h.
9373         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9374         Include macros.h, for ASSERT.
9375         (DECLARE_ALIGNED): Remove.
9376         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9377         to catch bug), and to 1 if not (simplifies the rest of the code).
9378         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9379         (CHECK_AUTO): Remove.
9380         (CHECK_ALIGNED): Check only the alignment of the static vars,
9381         since auto var alignment isn't supported by Sun C 5.11.
9382         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9383         ASSERT failures are easier to diagnose.
9384
9385 2011-10-31  Bruno Haible  <bruno@clisp.org>
9386
9387         doc about some IRIX 5.3 problems.
9388         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9389         on IRIX 5.3.
9390         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9391         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9392         5.3.
9393         * doc/posix-functions/grantpt.texi: Likewise.
9394         * doc/posix-functions/unlockpt.texi: Likewise.
9395         * doc/posix-functions/lgamma.texi: Likewise.
9396         * doc/posix-functions/nextafter.texi: Likewise.
9397         * doc/posix-functions/remainder.texi: Likewise.
9398         * doc/posix-functions/select.texi: Mention misplaced declaration on
9399         IRIX 5.3.
9400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9401
9402 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9403
9404         gitlog-to-changelog: fix git-log invocation.
9405         git-log mishandles date strings before 1970-01-01 UTC, and there is
9406         no use to specify --since=1970-01-01 by default anyway.
9407         * build-aux/gitlog-to-changelog: By default, when no --since option
9408         was given, do not specify explicit --since option to git-log.
9409
9410 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9411
9412         gitlog-to-changelog: new option --append-dot.
9413         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9414         first non-blank line of each commit message terminated with a dot.
9415
9416 2011-10-30  Bruno Haible  <bruno@clisp.org>
9417
9418         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9419         * lib/ffsl.h: Include <config.h>.
9420         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9421
9422 2011-10-30  Jim Meyering  <meyering@redhat.com>
9423
9424         GNUmakefile: reenable "make syntax-check" for most projects
9425         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9426         build-aux variable", "syntax-check" would do nothing but succeed with
9427         the "No version control files detected..." diagnostic (unless you
9428         happened to override _build-aux via cfg.mk).
9429         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9430         to precede inclusion of maint.mk.  Otherwise, these variables would
9431         be used undefined in any project that does not override the default.
9432
9433 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9434
9435         gitlog-to-changelog: treat a message with only blank lines as empty.
9436         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9437         trailing blank lines before the code that issues a warning about an
9438         empty commit message.
9439
9440 2011-10-30  Jim Meyering  <meyering@redhat.com>
9441
9442         test-parse-datetime.c: avoid new DST-related false positive test failure
9443         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9444         based on the time/date we'll convert, not the current time.
9445         Otherwise, the moment we cross a DST boundary like today's in
9446         Europe, (CEST to CET), that offset ends up being one hour off.
9447
9448 2011-10-27  Bruno Haible  <bruno@clisp.org>
9449
9450         fstat: Tweak documentation.
9451         * modules/fstat (Description): More precise description.
9452
9453 2011-10-27  Bruno Haible  <bruno@clisp.org>
9454
9455         Update documentation regarding 'largefile' module.
9456         * doc/posix-functions/fstat.texi: Tweak wording.
9457         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9458         problems with huge directories and/or small ino_t types.
9459         * doc/posix-functions/readdir.texi: Likewise.
9460         * doc/posix-functions/rewinddir.texi: Likewise.
9461
9462 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9463
9464         maint.mk: don't maintain a second build-aux variable.
9465         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9466         depends on GNUmakefile, which already maintains a cfg.mk
9467         overridable $(_build-aux) for projects with a non-standard
9468         build-aux directory location, although without the $(srcdir)
9469         prefix.  Use that variable consistently instead of introducing a
9470         second one.  Adjust all call sites.
9471
9472 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9473
9474         Add stdalign module and use it in other modules.
9475         This is based on a previous proposal by Bruno Haible
9476         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9477
9478         stdalign: new module
9479         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9480         * modules/stdalign: New files.
9481         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9482         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9483
9484         stdalign-tests: new module
9485         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9486
9487         argp: use stdalign
9488         * lib/argp-parse.c: Include <stdalign.h>.
9489         (alignof): Remove.
9490         * modules/argp (Depends-on): Add stdalign.
9491
9492         crypto libraries: use stdalign
9493         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9494         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9495         Do not include <stdlib.h> twice, in md4.c.
9496         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9497         because we are accessing a pointer's bit-pattern, not a size.
9498         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9499         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9500         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9501         * modules/crypto/sha512: Likewise.
9502
9503         sys_socket: use stdalign, not alignof
9504         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9505         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9506
9507 2011-10-27  Bruno Haible  <bruno@clisp.org>
9508
9509         raise test: Avoid a test failure on Linux/MIPS.
9510         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9511         because 99 is a valid signal on Linux/MIPS.
9512
9513 2011-10-27  Bruno Haible  <bruno@clisp.org>
9514
9515         nonblocking tests: Fix test failure on Linux/MIPS.
9516         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9517         Set to 270000.
9518
9519 2011-10-27  Bruno Haible  <bruno@clisp.org>
9520
9521         utimensat: Work around problem on Linux/hppa.
9522         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9523         values.
9524         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9525
9526 2011-10-25  Jim Meyering  <meyering@redhat.com>
9527
9528         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9529         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9530         after symbols like NULL, size_t, etc.
9531         Reported by Alfred M. Szmidt.
9532
9533         maint.mk: exempt ENODATA from a syntax-check rule
9534         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9535         from the sc_prohibit_always-defined_macros syntax-check rule.
9536         Add a comment.  See this for more details:
9537         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9538
9539 2011-10-23  Jim Meyering  <meyering@redhat.com>
9540
9541         fts: close parent dir FD before returning from post-traversal fts_read
9542         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9543         unlink A, even though an FD open on A remained.  This is suboptimal
9544         (holding a file descriptor open longer than needed), but otherwise not
9545         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9546         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9547         that represents a real problem: it causes the removal of A to fail
9548         with e.g., "rm: cannot remove `A': Device or resource busy"
9549
9550         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9551         directory file descriptors.  After completing the final, FTS_DP,
9552         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9553         cache, but then proceeded to add a new FD to it via the subsequent
9554         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9555         final file descriptor would be closed only via fts_close's call to
9556         fd_ring_clear.  Now, it is usually closed earlier, via the final
9557         FTS_DP-returning fts_read call.
9558         * lib/fts.c (restore_initial_cwd): New function, converted from
9559         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9560         Update callers.
9561         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9562         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9563
9564 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9565             Bruno Haible  <bruno@clisp.org>
9566             Jim Meyering  <jim@meyering.net>
9567
9568         readme-release: improve safety of release prep instructions.
9569         * README-release: Don't git pull all branches when only master
9570         is needed for the release process.
9571         Run make maintainer-clean before changing trees and merging.
9572         Don't try to run ./configure right after git pull in case files
9573         that influence the bootstrap process have changed, move the
9574         ./configure step to after running ./bootstrap.
9575         Don't bootstrap "one last time"... it's the first time!
9576
9577 2011-10-22  Bruno Haible  <bruno@clisp.org>
9578
9579         errno, strerror-override: Support for MSVC 10.
9580         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9581         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9582         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9583         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9584         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9585         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9586         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9587         Assign values compatible with MSVC 10.
9588         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9589         New macros.
9590         (GNULIB_defined_EWINSOCK): New macro.
9591         * lib/strerror-override.c (strerror_override): Update accordingly.
9592         * lib/strerror-override.h: Likewise.
9593         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9594         longer equal to the corresponding errno value.
9595         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9596
9597 2011-10-22  Bruno Haible  <bruno@clisp.org>
9598
9599         perror: Recognize when test program crashes.
9600         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9601         strerror, set gl_cv_func_perror_works to no.
9602         Reported by Daniel Richard G. <skunk@iskunk.org>.
9603
9604         perror: Fix indentation.
9605         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
9606
9607 2011-10-22  Bruno Haible  <bruno@clisp.org>
9608
9609         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
9610         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
9611         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
9612         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
9613         functions, not as a macro.
9614         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
9615         macros.
9616         (isfinite, isinf, isnan, signbit): Check overloaded functions and
9617         absence of macro.
9618         Suggested by Eric Blake.
9619         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9620
9621 2011-10-21  Bruno Haible  <bruno@clisp.org>
9622
9623         relocatable-prog-wrapper: Don't leave object files behind.
9624         * build-aux/install-reloc: Re-synchronize list of .o files to be
9625         removed with list of compilation units.
9626
9627 2011-10-20  Bruno Haible  <bruno@clisp.org>
9628
9629         openpty, posix_openpt: Remove code duplication.
9630         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
9631         * lib/openpty.c: Include <stdlib.h>.
9632         (openpty): Use posix_openpt on all platforms except IRIX.
9633         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
9634
9635 2011-10-20  Bruno Haible  <bruno@clisp.org>
9636
9637         unlockpt: Detect invalid argument.
9638         * lib/unlockpt.c: Include <fcntl.h>.
9639         (unlockpt): Check whether fd is valid, using fcntl().
9640         * modules/unlockpt (Depends-on): Add fcntl-h.
9641
9642 2011-10-20  Bruno Haible  <bruno@clisp.org>
9643
9644         openpty: Avoid compilation error on AIX 6.1.
9645         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
9646
9647 2011-10-20  Bruno Haible  <bruno@clisp.org>
9648
9649         posix_openpt: Support for OpenBSD.
9650         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
9651         (posix_openpt) [OpenBSD]: New code.
9652         * lib/grantpt.c: Include <fcntl.h>.
9653         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
9654         * modules/grantpt (Depends-on): Add fcntl-h.
9655
9656 2011-10-20  Bruno Haible  <bruno@clisp.org>
9657
9658         posix_openpt test: Coding style.
9659         * tests/test-posix_openpt.c: Use GNU coding style.
9660
9661 2011-10-20  Bruno Haible  <bruno@clisp.org>
9662
9663         grantpt: Support --avoid=pt_chown.
9664         * modules/grantpt (Files): Add lib/pty-private.h.
9665
9666 2011-10-20  Bruno Haible  <bruno@clisp.org>
9667
9668         posix_openpt: Fix autoconf macro.
9669         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
9670         unneeded check for _getpty.
9671
9672 2011-10-20  Bruno Haible  <bruno@clisp.org>
9673
9674         openpty: Update comments.
9675         * lib/openpty.c: Add comments about Minix.
9676
9677 2011-10-19  Eric Blake  <eblake@redhat.com>
9678
9679         openpty: relax license
9680         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
9681
9682         pt_chown: use configmake to simplify build
9683         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
9684
9685         ptsname and others: relax license
9686         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
9687         * modules/unlockpt (License): Likewise.
9688         * modules/pt_chown (License): Likewise.
9689         * modules/ptsname (License): Likewise.
9690         * modules/ttyname_r (License): Likewise.
9691
9692 2011-10-19  Jim Meyering  <meyering@redhat.com>
9693
9694         posix_openpt: remove spurious #endif
9695         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
9696
9697 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
9698
9699         maint.mk: Respect $(build_aux) in web-manual rule.
9700         * top/maint.mk (web-manual): Find gen-announce script in user's
9701         $(build_aux) directory instead of hard-coding 'build-aux'.
9702
9703 2011-10-19  Bruno Haible  <bruno@clisp.org>
9704
9705         posix_openpt: Fix compilation error.
9706         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
9707         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
9708         Mention the openpty module as an alternative.
9709
9710 2011-10-19  Bruno Haible  <bruno@clisp.org>
9711
9712         Support for old NeXTstep 3.3 frexp().
9713         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
9714         execution time of the test to 5 seconds.
9715         Reported by Daniel Richard G. <skunk@iskunk.org>.
9716
9717 2011-10-19  Bruno Haible  <bruno@clisp.org>
9718
9719         Support for old NeXTstep 3.3 sed.
9720         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
9721         part, use /.../, not \|...|. Escape periods in the header file name.
9722         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9723         Reported by Daniel Richard G. <skunk@iskunk.org>.
9724
9725 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9726
9727         Support for old NeXTstep 3.3 gcc.
9728         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
9729         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
9730         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
9731         * lib/spawn.in.h (_Restrict_arr_): Likewise.
9732         * lib/regex.h (_Restrict_arr_): Likewise.
9733         * lib/regex_internal.h (re_token_t): Likewise.
9734         * lib/regexec.c (check_node_accept_bytes): Likewise.
9735         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
9736
9737 2011-10-18  Eric Blake  <eblake@redhat.com>
9738
9739         posix_openpt: new module
9740         * modules/posix_openpt: New module.
9741         * m4/posix_openpt.m4: New file.
9742         * lib/posix_openpt.c: Likewise.
9743         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9744         (gl_STDLIB_H_DEFAULTS): Set defaults.
9745         * modules/stdlib (Makefile.am): Substitute macros.
9746         * lib/stdlib.in.h (posix_openpt): Declare.
9747         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
9748         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
9749         * modules/posix_openpt-tests: New test module.
9750         * tests/test-posix_openpt.c: New test.
9751
9752 2011-10-15  Bruno Haible  <bruno@clisp.org>
9753
9754         xstrtoll: Fix compilation failure.
9755         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
9756         from lib/strtol.c.
9757         * doc/posix-headers/limits.texi: Mention missing numerical limits on
9758         some platforms.
9759         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9760
9761 2011-10-15  Bruno Haible  <bruno@clisp.org>
9762
9763         vasnprintf: Optimize bit search operation.
9764         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
9765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
9766         gl_DOUBLE_EXPONENT_LOCATION.
9767         * modules/vasnprintf (Files): Add m4/exponentd.m4.
9768         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9769         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9770         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9771         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9772         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9773         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9774         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9775         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
9776
9777 2011-10-15  Bruno Haible  <bruno@clisp.org>
9778
9779         vasnprintf: Fix comments.
9780         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
9781
9782 2011-10-14  Bruno Haible  <bruno@clisp.org>
9783
9784         Tests for module 'integer_length_ll'.
9785         * modules/integer_length_ll-tests: New file.
9786         * tests/test-integer_length_ll.c: New file.
9787
9788         New module 'integer_length_ll'.
9789         * lib/integer_length_ll.c: New file.
9790         * modules/integer_length_ll: New file.
9791
9792 2011-10-14  Bruno Haible  <bruno@clisp.org>
9793
9794         Tests for module 'integer_length_l'.
9795         * modules/integer_length_l-tests: New file.
9796         * tests/test-integer_length_l.c: New file.
9797
9798         New module 'integer_length_l'.
9799         * lib/integer_length_l.c: New file.
9800         * modules/integer_length_l: New file.
9801
9802 2011-10-14  Bruno Haible  <bruno@clisp.org>
9803
9804         Tests for module 'integer_length'.
9805         * modules/integer_length-tests: New file.
9806         * tests/test-integer_length.c: New file.
9807
9808         New module 'integer_length'.
9809         * lib/integer_length.h: New file.
9810         * lib/integer_length.c: New file.
9811         * modules/integer_length: New file.
9812
9813 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9814
9815         popen: Fix dependency conditions.
9816         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
9817
9818 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9819
9820         perror: Fix autoconf test.
9821         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
9822         <stdlib.h> and <string.h>.
9823
9824 2011-10-14  Bruno Haible  <bruno@clisp.org>
9825
9826         ffsl: Optimize on 64-bit platforms.
9827         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
9828         unrolling.
9829
9830 2011-10-13  Bruno Haible  <bruno@clisp.org>
9831
9832         ffsl: Optimize on 32-bit platforms.
9833         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
9834         use ffs() without a loop.
9835
9836         ffsl, ffsll: Optimize for GCC.
9837         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
9838         * lib/ffsl.c (GCC_BUILTIN): New macro.
9839         * lib/ffsll.c (GCC_BUILTIN): Likewise.
9840
9841 2011-10-13  Bruno Haible  <bruno@clisp.org>
9842
9843         ffs, bcopy, memset: Support symbol renaming via config.h.
9844         * lib/ffs.c: Include <config.h>.
9845         * lib/bcopy.c: Likewise.
9846         * lib/memset.c: Likewise.
9847
9848 2011-10-10  Bruno Haible  <bruno@clisp.org>
9849
9850         atanl: Simplify for platforms where 'long double' == 'double'.
9851         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9852         alternative implementation.
9853         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9854         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9855         * modules/atanl (Depends-on): Add atan. Update conditions.
9856
9857 2011-10-10  Bruno Haible  <bruno@clisp.org>
9858
9859         acosl: Simplify for platforms where 'long double' == 'double'.
9860         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9861         alternative implementation.
9862         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9863         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9864         * modules/acosl (Depends-on): Add acos. Update conditions.
9865
9866 2011-10-10  Bruno Haible  <bruno@clisp.org>
9867
9868         asinl: Simplify for platforms where 'long double' == 'double'.
9869         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9870         alternative implementation.
9871         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9872         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9873         * modules/asinl (Depends-on): Add asin. Update conditions.
9874
9875 2011-10-10  Bruno Haible  <bruno@clisp.org>
9876
9877         tanl: Simplify for platforms where 'long double' == 'double'.
9878         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9879         implementation.
9880         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9881         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9882         * modules/tanl (Depends-on): Add tan. Update conditions.
9883         (configure.ac): Don't compile trigl.c if
9884         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9885
9886 2011-10-10  Bruno Haible  <bruno@clisp.org>
9887
9888         cosl: Simplify for platforms where 'long double' == 'double'.
9889         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9890         implementation.
9891         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9892         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9893         * modules/cosl (Depends-on): Add cos. Update conditions.
9894         (configure.ac): Don't compile sincosl.c and trigl.c if
9895         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9896
9897 2011-10-10  Bruno Haible  <bruno@clisp.org>
9898
9899         sinl: Simplify for platforms where 'long double' == 'double'.
9900         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9901         implementation.
9902         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9903         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9904         * modules/sinl (Depends-on): Add sin. Update conditions.
9905         (configure.ac): Don't compile sincosl.c and trigl.c if
9906         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9907
9908 2011-10-10  Bruno Haible  <bruno@clisp.org>
9909
9910         logl: Simplify for platforms where 'long double' == 'double'.
9911         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9912         implementation.
9913         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9914         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9915         * modules/logl (Depends-on): Add log. Update conditions.
9916
9917 2011-10-10  Bruno Haible  <bruno@clisp.org>
9918
9919         expl: Simplify for platforms where 'long double' == 'double'.
9920         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9921         implementation.
9922         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9923         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9924         * modules/expl (Depends-on): Add exp. Update conditions.
9925
9926 2011-10-10  Bruno Haible  <bruno@clisp.org>
9927
9928         sqrtl: Simplify for platforms where 'long double' == 'double'.
9929         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9930         alternative implementation.
9931         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9932         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9933         * modules/sqrtl (Depends-on): Update conditions.
9934
9935 2011-10-10  Bruno Haible  <bruno@clisp.org>
9936
9937         ldexpl: Simplify for platforms where 'long double' == 'double'.
9938         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9939         alternative implementation.
9940         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9941         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9942         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
9943
9944 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
9945
9946         ffsll: set correct witness
9947         * modules/ffsll (configure.ac): Fix typo.
9948
9949 2011-10-10  Bruno Haible  <bruno@clisp.org>
9950
9951         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
9952         * lib/printf-frexpl.c: Include <config.h>.
9953         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9954         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
9955         second time.
9956         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
9957         gl_LONG_DOUBLE_VS_DOUBLE.
9958         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
9959         conditions.
9960
9961 2011-10-10  Bruno Haible  <bruno@clisp.org>
9962
9963         frexpl: Simplify for platforms where 'long double' == 'double'.
9964         * lib/frexpl.c: Include <config.h>.
9965         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9966         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9967         time.
9968         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9969         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9970         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
9971         * modules/frexpl (Depends-on): Add frexp. Update conditions.
9972         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
9973         conditions.
9974
9975 2011-10-10  Jim Meyering  <meyering@redhat.com>
9976
9977         test-renameat: don't leave behind a temporary file
9978         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
9979           ERROR: files left in build directory after distclean:
9980           ./gltests/test-renameat.too
9981           make[1]: *** [distcleancheck] Error 1
9982         Reported by Tom G. Christensen.
9983
9984 2011-10-09  Bruno Haible  <bruno@clisp.org>
9985
9986         rint: Determine RINT_LIBM correctly on AIX 7.
9987         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
9988         directly, not only through a function pointer. Also accept an optional
9989         4th argument with extra code.
9990         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
9991         rintf() call by gcc when optimizing.
9992
9993         mathfunc.m4: Refactor.
9994         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
9995         m4 variable.
9996
9997 2011-10-09  Bruno Haible  <bruno@clisp.org>
9998
9999         rintl: Simplify for platforms where 'long double' == 'double'.
10000         * lib/rintl.c: Include <config.h>.
10001         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10002         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10003         time.
10004         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10005         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10006         * modules/rintl (Depends-on): Add rint. Update conditions.
10007
10008 2011-10-09  Bruno Haible  <bruno@clisp.org>
10009
10010         roundl: Simplify for platforms where 'long double' == 'double'.
10011         * lib/roundl.c: Include <config.h>.
10012         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10013         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10014         time.
10015         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10016         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10017         * modules/roundl (Depends-on): Add round. Update conditions.
10018
10019 2011-10-09  Bruno Haible  <bruno@clisp.org>
10020
10021         truncl: Simplify for platforms where 'long double' == 'double'.
10022         * lib/truncl.c: Include <config.h>.
10023         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10024         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10025         time.
10026         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10027         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10028         * modules/truncl (Depends-on): Add trunc. Update conditions.
10029
10030 2011-10-09  Bruno Haible  <bruno@clisp.org>
10031
10032         ceill: Simplify for platforms where 'long double' == 'double'.
10033         * lib/ceill.c: Include <config.h>.
10034         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10035         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10036         time.
10037         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10038         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10039         * modules/ceill (Depends-on): Add ceil. Update conditions.
10040
10041 2011-10-09  Bruno Haible  <bruno@clisp.org>
10042
10043         floorl: Simplify for platforms where 'long double' == 'double'.
10044         * lib/floorl.c: Include <config.h>.
10045         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10046         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10047         time.
10048         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10049         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10050         * modules/floorl (Depends-on): Add floor. Update conditions.
10051
10052 2011-10-09  Bruno Haible  <bruno@clisp.org>
10053
10054         rint: Fix ordering constraints.
10055         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10056         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10057         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10058
10059 2011-10-09  Bruno Haible  <bruno@clisp.org>
10060
10061         copysignl: Simplify for platforms where 'long double' == 'double'.
10062         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10063         alternative.
10064         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10065         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10066         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10067
10068 2011-10-09  Bruno Haible  <bruno@clisp.org>
10069
10070         Tests for module 'rintl'.
10071         * modules/rintl-tests: New file.
10072         * tests/test-rintl.c: New file.
10073
10074         New module 'rintl'.
10075         * lib/math.in.h (rintl): New declaration.
10076         * lib/rintl.c: New file.
10077         * m4/rintl.m4: New file.
10078         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10080         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10081         * modules/rintl: New file.
10082         * tests/test-math-c++.cc: Check the declaration of rintl.
10083         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10084         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10085         * doc/posix-functions/rintl.texi: Mention the new module.
10086
10087 2011-10-09  Bruno Haible  <bruno@clisp.org>
10088
10089         Tests for module 'rintf'.
10090         * modules/rintf-tests: New file.
10091         * tests/test-rintf.c: New file.
10092
10093         New module 'rintf'.
10094         * lib/math.in.h (rintf): New declaration.
10095         * lib/rintf.c: New file.
10096         * m4/rintf.m4: New file.
10097         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10099         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10100         * modules/rintf: New file.
10101         * tests/test-math-c++.cc: Check the declaration of rintf.
10102         * doc/posix-functions/rintf.texi: Mention the new module.
10103
10104 2011-10-09  Bruno Haible  <bruno@clisp.org>
10105
10106         rint: Support for MSVC.
10107         * lib/math.in.h (rint): New declaration.
10108         * lib/rint.c: New file.
10109         * m4/rint.m4: New file.
10110         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10112         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10113         * modules/rint (Description): Fix.
10114         (Files): Add lib/rint.c, m4/rint.m4.
10115         (Depends-on): Add math.
10116         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10117         gl_MATH_MODULE_INDICATOR.
10118         * tests/test-math-c++.cc: Check the declaration of rint.
10119         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10120         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10121         * doc/posix-functions/rint.texi: Mention the replacement provided by
10122         the module.
10123
10124         rint tests: More tests.
10125         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10126         minus-zero.h, infinity.h, nan.h.
10127         (main): Skip the test if the current rounding mode is not standard. Add
10128         tests for negative numbers, minus zero, infinity, NaN.
10129         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10130         tests/nan.h.
10131         (Depends-on): Add isnand-nolibm.
10132
10133 2011-10-09  Bruno Haible  <bruno@clisp.org>
10134
10135         Tests for module 'copysignl'.
10136         * modules/copysignl-tests: New file.
10137         * tests/test-copysignl.c: New file.
10138
10139         New module 'copysignl'.
10140         * lib/math.in.h (copysignl): New declaration.
10141         * lib/copysignl.c: New file.
10142         * m4/copysignl.m4: New file.
10143         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10145         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10146         HAVE_COPYSIGNL.
10147         * modules/copysignl: New file.
10148         * tests/test-math-c++.cc: Check the declaration of copysignl.
10149         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10150         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10151         * doc/posix-functions/copysignl.texi: Mention the new module.
10152
10153 2011-10-09  Bruno Haible  <bruno@clisp.org>
10154
10155         Tests for module 'copysignf'.
10156         * modules/copysignf-tests: New file.
10157         * tests/test-copysignf.c: New file.
10158
10159         New module 'copysignf'.
10160         * lib/math.in.h (copysignf): New declaration.
10161         * lib/copysignf.c: New file.
10162         * m4/copysignf.m4: New file.
10163         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10165         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10166         HAVE_COPYSIGNF.
10167         * modules/copysignf: New file.
10168         * tests/test-math-c++.cc: Check the declaration of copysignf.
10169         * doc/posix-functions/copysignf.texi: Mention the new module.
10170
10171 2011-10-09  Bruno Haible  <bruno@clisp.org>
10172
10173         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10174         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10175         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10176         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10177         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10178         gl_SIGNAL_H_DEFAULTS.
10179
10180 2011-10-09  Bruno Haible  <bruno@clisp.org>
10181
10182         poll: Make macro safer.
10183         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10184         ac_cv_header_poll_h is not set.
10185
10186 2011-10-09  Bruno Haible  <bruno@clisp.org>
10187
10188         copysign: Provide replacement.
10189         * lib/math.in.h (copysign): New declaration.
10190         * lib/copysign.c: New file.
10191         * m4/copysign.m4: New file.
10192         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10194         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10195         HAVE_COPYSIGN.
10196         * modules/copysign (Description): Clarify.
10197         (Files): Add lib/copysign.c, m4/copysign.m4.
10198         (Depends-on): Add math, signbit.
10199         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10200         gl_MATH_MODULE_INDICATOR.
10201         * tests/test-math-c++.cc: Check the declaration of copysign.
10202         * doc/posix-functions/copysign.texi: Mention the effects of the module
10203         on Minix and MSVC.
10204
10205 2011-10-09  Bruno Haible  <bruno@clisp.org>
10206
10207         isinf: Ensure macro on AIX 5.1.
10208         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10209         macro.
10210         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10211
10212 2011-10-09  Bruno Haible  <bruno@clisp.org>
10213
10214         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10215         * modules/snprintf-posix-tests (configure.ac): Require
10216         gl_LONG_DOUBLE_VS_DOUBLE.
10217         * modules/sprintf-posix-tests (configure.ac): Likewise.
10218         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10219         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10220         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10221         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10222         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10223         tests on platforms where 'long double' is the same as 'double'.
10224         * tests/test-sprintf-posix.h (test_function): Likewise.
10225         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10226         * tests/test-vasprintf-posix.c (test_function): Likewise.
10227
10228         *printf: Fix for platforms where 'long double' == 'double'.
10229         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10230         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10231         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10232         * modules/fprintf-posix (Files): Likewise.
10233         * modules/obstack-printf-posix (Files): Likewise.
10234         * modules/snprintf-posix (Files): Likewise.
10235         * modules/sprintf-posix (Files): Likewise.
10236         * modules/vasnprintf (Files): Likewise.
10237         * modules/vasnprintf-posix (Files): Likewise.
10238         * modules/vasprintf-posix (Files): Likewise.
10239         * modules/vdprintf-posix (Files): Likewise.
10240         * modules/vfprintf-posix (Files): Likewise.
10241         * modules/vsnprintf-posix (Files): Likewise.
10242         * modules/vsprintf-posix (Files): Likewise.
10243         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10244         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10245         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10246         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10247         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10248         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10249         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10250
10251         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10252         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10253         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10254         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10255         'long double'.
10256         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10257
10258         isinf: Fix for platforms where 'long double' == 'double'.
10259         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10260         Don't blindly assume 80-bit 'long double'.
10261
10262         isfinite: Fix for platforms where 'long double' == 'double'.
10263         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10264         Don't blindly assume 80-bit 'long double'.
10265
10266         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10267         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10268         * modules/isfinite-tests (configure.ac): Require
10269         gl_LONG_DOUBLE_VS_DOUBLE.
10270         * modules/isinf-tests (configure.ac): Likewise.
10271         * modules/isnan-tests (configure.ac): Likewise.
10272         * modules/isnanl-tests (configure.ac): Likewise.
10273         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10274         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10275         tests on platforms where 'long double' is the same as 'double'.
10276         * tests/test-isinf.c (test_isinfl): Likewise.
10277         * tests/test-isnan.c (test_long_double): Likewise.
10278         * tests/test-isnanl.h (main): Likewise.
10279
10280 2011-10-08  Bruno Haible  <bruno@clisp.org>
10281
10282         Tests for module 'tanhf'.
10283         * modules/tanhf-tests: New file.
10284         * tests/test-tanhf.c: New file.
10285
10286         New module 'tanhf'.
10287         * lib/math.in.h (tanhf): New declaration.
10288         * lib/tanhf.c: New file.
10289         * m4/tanhf.m4: New file.
10290         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10292         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10293         * modules/tanhf: New file.
10294         * tests/test-math-c++.cc: Check the declaration of tanhf.
10295         * doc/posix-functions/tanhf.texi: Mention the new module.
10296
10297         tanh: Use a .m4 file.
10298         * m4/tanh.m4: New file.
10299         * modules/tanh (Files): Add it.
10300         (configure.ac): Just invoke gl_FUNC_TANH.
10301
10302 2011-10-08  Bruno Haible  <bruno@clisp.org>
10303
10304         Tests for module 'coshf'.
10305         * modules/coshf-tests: New file.
10306         * tests/test-coshf.c: New file.
10307
10308         New module 'coshf'.
10309         * lib/math.in.h (coshf): New declaration.
10310         * lib/coshf.c: New file.
10311         * m4/coshf.m4: New file.
10312         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10314         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10315         * modules/coshf: New file.
10316         * tests/test-math-c++.cc: Check the declaration of coshf.
10317         * doc/posix-functions/coshf.texi: Mention the new module.
10318
10319         cosh: Use a .m4 file.
10320         * m4/cosh.m4: New file.
10321         * modules/cosh (Files): Add it.
10322         (configure.ac): Just invoke gl_FUNC_COSH.
10323
10324 2011-10-08  Bruno Haible  <bruno@clisp.org>
10325
10326         Tests for module 'sinhf'.
10327         * modules/sinhf-tests: New file.
10328         * tests/test-sinhf.c: New file.
10329
10330         New module 'sinhf'.
10331         * lib/math.in.h (sinhf): New declaration.
10332         * lib/sinhf.c: New file.
10333         * m4/sinhf.m4: New file.
10334         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10336         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10337         * modules/sinhf: New file.
10338         * tests/test-math-c++.cc: Check the declaration of sinhf.
10339         * doc/posix-functions/sinhf.texi: Mention the new module.
10340
10341         sinh: Use a .m4 file.
10342         * m4/sinh.m4: New file.
10343         * modules/sinh (Files): Add it.
10344         (configure.ac): Just invoke gl_FUNC_SINH.
10345
10346 2011-10-08  Bruno Haible  <bruno@clisp.org>
10347
10348         Tests for module 'atan2f'.
10349         * modules/atan2f-tests: New file.
10350         * tests/test-atan2f.c: New file.
10351
10352         New module 'atan2f'.
10353         * lib/math.in.h (atan2f): New declaration.
10354         * lib/atan2f.c: New file.
10355         * m4/atan2f.m4: New file.
10356         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10358         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10359         * modules/atan2f: New file.
10360         * tests/test-math-c++.cc: Check the declaration of atan2f.
10361         * doc/posix-functions/atan2f.texi: Mention the new module.
10362
10363         atan2: Use a .m4 file.
10364         * m4/atan2.m4: New file.
10365         * modules/atan2 (Files): Add it.
10366         (configure.ac): Just invoke gl_FUNC_ATAN2.
10367
10368 2011-10-08  Bruno Haible  <bruno@clisp.org>
10369
10370         Tests for module 'atanf'.
10371         * modules/atanf-tests: New file.
10372         * tests/test-atanf.c: New file.
10373
10374         New module 'atanf'.
10375         * lib/math.in.h (atanf): New declaration.
10376         * lib/atanf.c: New file.
10377         * m4/atanf.m4: New file.
10378         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10380         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10381         * modules/atanf: New file.
10382         * tests/test-math-c++.cc: Check the declaration of atanf.
10383         * doc/posix-functions/atanf.texi: Mention the new module.
10384
10385         atan: Use a .m4 file.
10386         * m4/atan.m4: New file.
10387         * modules/atan (Files): Add it.
10388         (configure.ac): Just invoke gl_FUNC_ATAN.
10389
10390 2011-10-08  Bruno Haible  <bruno@clisp.org>
10391
10392         Tests for module 'acosf'.
10393         * modules/acosf-tests: New file.
10394         * tests/test-acosf.c: New file.
10395
10396         New module 'acosf'.
10397         * lib/math.in.h (acosf): New declaration.
10398         * lib/acosf.c: New file.
10399         * m4/acosf.m4: New file.
10400         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10402         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10403         * modules/acosf: New file.
10404         * tests/test-math-c++.cc: Check the declaration of acosf.
10405         * doc/posix-functions/acosf.texi: Mention the new module.
10406
10407         acos: Use a .m4 file.
10408         * m4/acos.m4: New file.
10409         * modules/acos (Files): Add it.
10410         (configure.ac): Just invoke gl_FUNC_ACOS.
10411
10412 2011-10-08  Bruno Haible  <bruno@clisp.org>
10413
10414         Tests for module 'asinf'.
10415         * modules/asinf-tests: New file.
10416         * tests/test-asinf.c: New file.
10417
10418         New module 'asinf'.
10419         * lib/math.in.h (asinf): New declaration.
10420         * lib/asinf.c: New file.
10421         * m4/asinf.m4: New file.
10422         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10424         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10425         * modules/asinf: New file.
10426         * tests/test-math-c++.cc: Check the declaration of asinf.
10427         * doc/posix-functions/asinf.texi: Mention the new module.
10428
10429         asin: Use a .m4 file.
10430         * m4/asin.m4: New file.
10431         * modules/asin (Files): Add it.
10432         (configure.ac): Just invoke gl_FUNC_ASIN.
10433
10434 2011-10-08  Bruno Haible  <bruno@clisp.org>
10435
10436         Tests for module 'tanf'.
10437         * modules/tanf-tests: New file.
10438         * tests/test-tanf.c: New file.
10439
10440         New module 'tanf'.
10441         * lib/math.in.h (tanf): New declaration.
10442         * lib/tanf.c: New file.
10443         * m4/tanf.m4: New file.
10444         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10446         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10447         * modules/tanf: New file.
10448         * tests/test-math-c++.cc: Check the declaration of tanf.
10449         * doc/posix-functions/tanf.texi: Mention the new module.
10450
10451         tan: Use a .m4 file.
10452         * m4/tan.m4: New file.
10453         * modules/tan (Files): Add it.
10454         (configure.ac): Just invoke gl_FUNC_TAN.
10455
10456 2011-10-08  Bruno Haible  <bruno@clisp.org>
10457
10458         Tests for module 'cosf'.
10459         * modules/cosf-tests: New file.
10460         * tests/test-cosf.c: New file.
10461
10462         New module 'cosf'.
10463         * lib/math.in.h (cosf): New declaration.
10464         * lib/cosf.c: New file.
10465         * m4/cosf.m4: New file.
10466         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10468         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10469         * modules/cosf: New file.
10470         * tests/test-math-c++.cc: Check the declaration of cosf.
10471         * doc/posix-functions/cosf.texi: Mention the new module.
10472
10473         cos: Use a .m4 file.
10474         * m4/cos.m4: New file.
10475         * modules/cos (Files): Add it.
10476         (configure.ac): Just invoke gl_FUNC_COS.
10477
10478 2011-10-08  Bruno Haible  <bruno@clisp.org>
10479
10480         Tests for module 'sinf'.
10481         * modules/sinf-tests: New file.
10482         * tests/test-sinf.c: New file.
10483
10484         New module 'sinf'.
10485         * lib/math.in.h (sinf): New declaration.
10486         * lib/sinf.c: New file.
10487         * m4/sinf.m4: New file.
10488         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10489         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10490         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10491         * modules/sinf: New file.
10492         * tests/test-math-c++.cc: Check the declaration of sinf.
10493         * doc/posix-functions/sinf.texi: Mention the new module.
10494
10495         sin: Use a .m4 file.
10496         * m4/sin.m4: New file.
10497         * modules/sin (Files): Add it.
10498         (configure.ac): Just invoke gl_FUNC_SIN.
10499
10500 2011-10-08  Bruno Haible  <bruno@clisp.org>
10501
10502         Tests for module 'powf'.
10503         * modules/powf-tests: New file.
10504         * tests/test-powf.c: New file.
10505
10506         New module 'powf'.
10507         * lib/math.in.h (powf): New declaration.
10508         * lib/powf.c: New file.
10509         * m4/powf.m4: New file.
10510         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10511         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10512         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10513         * modules/powf: New file.
10514         * tests/test-math-c++.cc: Check the declaration of powf.
10515         * doc/posix-functions/powf.texi: Mention the new module.
10516
10517         pow: Use a .m4 file.
10518         * m4/pow.m4: New file.
10519         * modules/pow (Files): Add it.
10520         (configure.ac): Just invoke gl_FUNC_POW.
10521
10522 2011-10-08  Bruno Haible  <bruno@clisp.org>
10523
10524         Tests for module 'log10f'.
10525         * modules/log10f-tests: New file.
10526         * tests/test-log10f.c: New file.
10527
10528         New module 'log10f'.
10529         * lib/math.in.h (log10f): New declaration.
10530         * lib/log10f.c: New file.
10531         * m4/log10f.m4: New file.
10532         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10534         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10535         * modules/log10f: New file.
10536         * tests/test-math-c++.cc: Check the declaration of log10f.
10537         * doc/posix-functions/log10f.texi: Mention the new module.
10538
10539         log10: Use a .m4 file.
10540         * m4/log10.m4: New file.
10541         * modules/log10 (Files): Add it.
10542         (configure.ac): Just invoke gl_FUNC_LOG10.
10543
10544 2011-10-08  Bruno Haible  <bruno@clisp.org>
10545
10546         Tests for module 'logf'.
10547         * modules/logf-tests: New file.
10548         * tests/test-logf.c: New file.
10549
10550         New module 'logf'.
10551         * lib/math.in.h (logf): New declaration.
10552         * lib/logf.c: New file.
10553         * m4/logf.m4: New file.
10554         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10556         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10557         * modules/logf: New file.
10558         * tests/test-math-c++.cc: Check the declaration of logf.
10559         * doc/posix-functions/logf.texi: Mention the new module.
10560
10561         log: Use a .m4 file.
10562         * m4/log.m4: New file.
10563         * modules/log (Files): Add it.
10564         (configure.ac): Just invoke gl_FUNC_LOG.
10565
10566 2011-10-08  Bruno Haible  <bruno@clisp.org>
10567
10568         Tests for module 'expf'.
10569         * modules/expf-tests: New file.
10570         * tests/test-expf.c: New file.
10571
10572         New module 'expf'.
10573         * lib/math.in.h (expf): New declaration.
10574         * lib/expf.c: New file.
10575         * m4/expf.m4: New file.
10576         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10578         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10579         * modules/expf: New file.
10580         * tests/test-math-c++.cc: Check the declaration of expf.
10581         * doc/posix-functions/expf.texi: Mention the new module.
10582
10583         exp: Use a .m4 file.
10584         * m4/exp.m4: New file.
10585         * modules/exp (Files): Add it.
10586         (configure.ac): Just invoke gl_FUNC_EXP.
10587
10588 2011-10-08  Bruno Haible  <bruno@clisp.org>
10589
10590         Tests for module 'sqrtf'.
10591         * modules/sqrtf-tests: New file.
10592         * tests/test-sqrtf.c: New file.
10593
10594         New module 'sqrtf'.
10595         * lib/math.in.h (sqrtf): New declaration.
10596         * lib/sqrtf.c: New file.
10597         * m4/sqrtf.m4: New file.
10598         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10600         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10601         * modules/sqrtf: New file.
10602         * tests/test-math-c++.cc: Check the declaration of sqrtf.
10603         * doc/posix-functions/sqrtf.texi: Mention the new module.
10604
10605 2011-10-08  Bruno Haible  <bruno@clisp.org>
10606
10607         Tests: Avoid link failures w.r.t. libintl.
10608         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
10609         $(LIBINTL).
10610         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
10611         $(LIBINTL).
10612         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
10613         against $(LIBINTL).
10614         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
10615         $(LIBINTL).
10616         * modules/openat-tests (Makefile.am): Link test-fchmodat against
10617         $(LIBINTL).
10618         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
10619
10620 2011-10-08  Bruno Haible  <bruno@clisp.org>
10621
10622         pow tests: Defeat compiler optimizations.
10623         * tests/test-pow.c (main): Assign arguments to x and y before use.
10624
10625 2011-10-08  Bruno Haible  <bruno@clisp.org>
10626
10627         gnulib-tool: Improve last commit.
10628         * gnulib-tool (func_modules_transitive_closure): Simplify code.
10629         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
10630         ignore dependencies that are not among the modules list.
10631
10632 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
10633
10634         gnulib-tool: don't follow dependencies to avoided modules
10635         This fixes a bug that is related to the previous one.
10636         * gnulib-tool (func_modules_transitive_closure)
10637         (func_emit_autoconf_snippets):
10638         Check whether a dependency is acceptable before using it.
10639         (--extract-dependencies): Report an error if --avoid is also used,
10640         since this combination of options is not yet supported.
10641
10642         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
10643         Problem reported by Peter Dyballa in
10644         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
10645         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
10646         when echoing "$condition".
10647
10648 2011-10-07  Bruno Haible  <bruno@clisp.org>
10649
10650         Fix documentation about math functions on MacOS X.
10651         * doc/posix-functions/exp2.texi: Don't say the function is missing on
10652         MacOS X 10.5.
10653         * doc/posix-functions/fdim.texi: Likewise.
10654         * doc/posix-functions/feclearexcept.texi: Likewise.
10655         * doc/posix-functions/fegetenv.texi: Likewise.
10656         * doc/posix-functions/fegetround.texi: Likewise.
10657         * doc/posix-functions/feholdexcept.texi: Likewise.
10658         * doc/posix-functions/feraiseexcept.texi: Likewise.
10659         * doc/posix-functions/fesetenv.texi: Likewise.
10660         * doc/posix-functions/fesetround.texi: Likewise.
10661         * doc/posix-functions/fetestexcept.texi: Likewise.
10662         * doc/posix-functions/feupdateenv.texi: Likewise.
10663         * doc/posix-functions/fmax.texi: Likewise.
10664         * doc/posix-functions/fmin.texi: Likewise.
10665         * doc/posix-functions/log2.texi: Likewise.
10666         * doc/posix-functions/modff.texi: Likewise.
10667         * doc/posix-functions/nan.texi: Likewise.
10668         * doc/posix-functions/nanf.texi: Likewise.
10669         * doc/posix-functions/nextafterf.texi: Likewise.
10670         * doc/posix-functions/remquo.texi: Likewise.
10671
10672 2011-10-07  Bruno Haible  <bruno@clisp.org>
10673
10674         modff: Drop assumption about library that defines modff.
10675         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
10676         AC_CHECK_FUNCS.
10677         * modules/modff (Files): Add m4/mathfunc.m4.
10678
10679 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
10680
10681         raise tests: Avoid a GCC warning.
10682         * tests/test-raise.c (handler): Use _Noreturn.
10683
10684 2011-10-07  Bruno Haible  <bruno@clisp.org>
10685
10686         Tests for module 'ldexpf'.
10687         * modules/ldexpf-tests: New file.
10688         * tests/test-ldexpf.c: New file.
10689
10690         New module 'ldexpf'.
10691         * lib/math.in.h (ldexpf): New declaration.
10692         * lib/ldexpf.c: New file.
10693         * m4/ldexpf.m4: New file.
10694         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
10695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
10696         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
10697         * modules/ldexpf: New file.
10698         * tests/test-math-c++.cc: Check the declaration of ldexpf.
10699         * doc/posix-functions/ldexpf.texi: Mention the new module.
10700
10701 2011-10-06  Bruno Haible  <bruno@clisp.org>
10702
10703         frexpf: Work around problems on IRIX and mingw.
10704         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
10705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
10706         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
10707         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
10708         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
10709         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
10710         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
10711
10712 2011-10-06  Bruno Haible  <bruno@clisp.org>
10713
10714         fabsf: Drop assumption about library that defines fabsf.
10715         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
10716         AC_CHECK_FUNCS.
10717         * modules/fabsf (Files): Add m4/mathfunc.m4.
10718
10719 2011-10-06  Bruno Haible  <bruno@clisp.org>
10720
10721         frexpf: Drop assumption about library that defines frexpf.
10722         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
10723         'int *', 'float *', 'long double *', 'float', 'long double'.
10724         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
10725         AC_CHECK_FUNCS.
10726         * modules/frexpf (Files): Add m4/mathfunc.m4.
10727
10728         Tests for module 'frexpf'.
10729         * modules/frexpf-tests: New file.
10730         * tests/test-frexpf.c: New file.
10731
10732         New module 'frexpf'.
10733         * lib/math.in.h (frexpf): New declaration.
10734         * lib/frexpf.c: New file.
10735         * m4/frexpf.m4: New file.
10736         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
10737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
10738         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10739         * modules/frexpf: New file.
10740         * tests/test-math-c++.cc: Check the declaration of frexpf.
10741         * doc/posix-functions/frexpf.texi: Mention the new module.
10742
10743 2011-10-06  Bruno Haible  <bruno@clisp.org>
10744
10745         math: Sort function declarations of math.in.h.
10746         * lib/math.in.h (frexp, logb): Move declarations.
10747
10748 2011-10-05  Bruno Haible  <bruno@clisp.org>
10749
10750         Tests for module 'modff'.
10751         * modules/modff-tests: New file.
10752         * tests/test-modff.c: New file.
10753
10754         New module 'modff'.
10755         * lib/math.in.h (modff): New declaration.
10756         * lib/modff.c: New file.
10757         * m4/modff.m4: New file.
10758         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
10759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
10760         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
10761         * modules/modff: New file.
10762         * tests/test-math-c++.cc: Check the declaration of modff.
10763         * doc/posix-functions/modff.texi: Mention the new module.
10764
10765         modf tests: Make test sharper.
10766         * tests/test-modf.c (main): Strengthen upper bound.
10767
10768         modf: Use a .m4 file.
10769         * m4/modf.m4: New file.
10770         * modules/modf (Files): Add it.
10771         (configure.ac): Just invoke gl_FUNC_MODF.
10772
10773 2011-10-05  Bruno Haible  <bruno@clisp.org>
10774
10775         Tests for module 'fmodf'.
10776         * modules/fmodf-tests: New file.
10777         * tests/test-fmodf.c: New file.
10778
10779         New module 'fmodf'.
10780         * lib/math.in.h (fmodf): New declaration.
10781         * lib/fmodf.c: New file.
10782         * m4/fmodf.m4: New file.
10783         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
10784         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
10785         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
10786         * modules/fmodf: New file.
10787         * tests/test-math-c++.cc: Check the declaration of fmodf.
10788         * doc/posix-functions/fmodf.texi: Mention the new module.
10789
10790         fmod: Use a .m4 file.
10791         * m4/fmod.m4: New file.
10792         * modules/fmod (Files): Add it.
10793         (configure.ac): Just invoke gl_FUNC_FMOD.
10794
10795 2011-10-05  Bruno Haible  <bruno@clisp.org>
10796
10797         Tests for module 'fabsf'.
10798         * modules/fabsf-tests: New file.
10799         * tests/test-fabsf.c: New file.
10800
10801         New module 'fabsf'.
10802         * lib/math.in.h (fabsf): New declaration.
10803         * lib/fabsf.c: New file.
10804         * m4/fabsf.m4: New file.
10805         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
10806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
10807         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
10808         * modules/fabsf: New file.
10809         * tests/test-math-c++.cc: Check the declaration of fabsf.
10810         * doc/posix-functions/fabsf.texi: Mention the new module.
10811
10812         fabs: Use a .m4 file.
10813         * m4/fabs.m4: New file.
10814         * modules/fabs (Files): Add it.
10815         (configure.ac): Just invoke gl_FUNC_FABS.
10816
10817 2011-10-05  Jim Meyering  <meyering@redhat.com>
10818
10819         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
10820         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
10821         ls -lL regression introduced in coreutils-8.12, it does so at the
10822         cost of an additional stat call in the common case.  Besides, now
10823         that the kernel change that prompted commit 95f7c57f has been reverted
10824         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
10825         we have no use for commit 95f7c57f, "file-has-acl: use
10826         acl_extended_file_nofollow if available".
10827
10828 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
10829
10830         file-has-acl: revert unintended change in behavior of ls -L
10831         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
10832         derived from...
10833         (file_has_acl): ...code here.  Call it.
10834         This problem was introduced with 2011-07-22 commit 95f7c57f,
10835         "file-has-acl: use acl_extended_file_nofollow if available".
10836         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
10837
10838 2011-10-03  Bruno Haible  <bruno@clisp.org>
10839
10840         poll: Avoid link errors on MSVC.
10841         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
10842         * modules/poll (Depends-on): Add sockets.
10843         (Link): New section.
10844         * NEWS: Mention the change.
10845         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
10846         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
10847         $(LIB_POLL) instead of $(LIBSOCKET).
10848
10849 2011-10-03  Bruno Haible  <bruno@clisp.org>
10850
10851         sys_select tests: Fix link error on MSVC 9.
10852         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
10853         with $(LIB_SELECT) instead of $(LIBSOCKET).
10854
10855 2011-10-03  Bruno Haible  <bruno@clisp.org>
10856
10857         sys_select: Fix compilation error on mingw.
10858         * lib/sys_select.in.h: On native Windows, include <io.h>.
10859
10860 2011-10-03  Bruno Haible  <bruno@clisp.org>
10861
10862         wmemset: Support for MSVC.
10863         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
10864         whether wmemset() exists.
10865
10866 2011-10-03  Bruno Haible  <bruno@clisp.org>
10867
10868         wmemmove: Support for MSVC.
10869         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
10870         whether wmemmove() exists.
10871
10872 2011-10-03  Bruno Haible  <bruno@clisp.org>
10873
10874         wmemcpy: Support for MSVC.
10875         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
10876         whether wmemcpy() exists.
10877
10878 2011-10-03  Bruno Haible  <bruno@clisp.org>
10879
10880         wmemcmp: Support for MSVC.
10881         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
10882         whether wmemcmp() exists.
10883
10884 2011-10-03  Bruno Haible  <bruno@clisp.org>
10885
10886         wmemchr: Support for MSVC.
10887         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
10888         whether wmemchr() exists.
10889
10890 2011-10-03  Bruno Haible  <bruno@clisp.org>
10891
10892         glthread/*, strsignal: Support for MSVC.
10893         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
10894         including <winsock.h> on MSVC 9.
10895         * lib/glthread/lock.h: Likewise.
10896         * lib/glthread/thread.h: Likewise.
10897         * lib/glthread/tls.h: Likewise.
10898         * lib/glthread/yield.h: Likewise.
10899         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
10900         if HAVE_UNISTD_H is false.
10901         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
10902
10903 2011-10-03  Bruno Haible  <bruno@clisp.org>
10904
10905         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
10906         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
10907         Set to 100000.
10908
10909 2011-10-03  Bruno Haible  <bruno@clisp.org>
10910
10911         acl: Fix specification.
10912         * lib/file-has-acl.c (file_has_acl): Fix specification.
10913
10914 2011-10-03  Bruno Haible  <bruno@clisp.org>
10915
10916         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
10917         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
10918         (compute_curr_prefix, shared_library_fullname,
10919         find_shared_library_fullname, get_shared_library_fullname, relocate):
10920         Use it together with PIC && INSTALLDIR.
10921         Reported by <jojelino@gmail.com>
10922         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
10923
10924 2011-10-01  Jim Meyering  <meyering@redhat.com>
10925
10926         maint.mk: adjust a release-related rule not to require use of gzip
10927         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
10928         Instead, check each file in $(DIST_ARCHIVES).  This is better for
10929         projects that build only .tar.xz files.  Also fix an erroneous test.
10930
10931         test-linkat: don't leave behind a temporary file
10932         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
10933         Otherwise, coreutils' "make distcheck" would fail with this:
10934           Only in /c/cu/tests/torture/coreutils/test/\
10935             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
10936           make[2]: *** [my-distcheck] Error 1
10937
10938         float, math: add omitted file
10939         * lib/itold.c: Add file, required for yesterday's float change.
10940
10941 2011-10-01  Bruno Haible  <bruno@clisp.org>
10942
10943         isinf: Fix for OpenBSD/x86.
10944         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
10945         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
10946         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
10947
10948 2011-10-01  Bruno Haible  <bruno@clisp.org>
10949
10950         isfinite: Fix syntax error in configure test.
10951         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
10952
10953         isfinite: Fix typo.
10954         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
10955         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
10956
10957 2011-10-01  Bruno Haible  <bruno@clisp.org>
10958
10959         nonblocking tests: Fix test failure on Linux/IA-64.
10960         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
10961         Set to 270000.
10962
10963 2011-10-01  Bruno Haible  <bruno@clisp.org>
10964
10965         mkfifoat tests: Fix a test failure on mingw.
10966         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
10967         with error ENOSYS.
10968
10969 2011-09-30  Bruno Haible  <bruno@clisp.org>
10970
10971         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
10972         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
10973         'long double'. Set REPLACE_ITOLD.
10974         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
10975         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
10976         * lib/itold.c: New file.
10977         * modules/float (Files): Add lib/itold.c.
10978         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
10979         (Makefile.am): Substitute REPLACE_ITOLD.
10980         * modules/math (Depends-on): Add float.
10981         (Makefile.am): Substitute REPLACE_ITOLD.
10982         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
10983         * doc/posix-headers/math.texi: Likewise.
10984         * doc/posix-functions/logl.texi: Likewise.
10985
10986 2011-09-30  Bruno Haible  <bruno@clisp.org>
10987
10988         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
10989         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
10990         Set to 140000.
10991
10992 2011-09-30  Bruno Haible  <bruno@clisp.org>
10993
10994         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
10995         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
10996         invocation, say "right after AC_PROG_CC_STDC", not "right after
10997         AC_PROG_CC".
10998         Reported by Gary V. Vaughan <gary@gnu.org>.
10999
11000 2011-09-30  Bruno Haible  <bruno@clisp.org>
11001
11002         Centralize C99 requirement.
11003         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11004         * modules/stdarg (configure.ac-early): Invoke it instead of
11005         AC_PROG_CC_STDC.
11006         Reported by Gary V. Vaughan and Paul Eggert.
11007
11008 2011-09-29  Bruno Haible  <bruno@clisp.org>
11009
11010         float: Fix LDBL_MAX value on Linux/PowerPC.
11011         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11012         on Linux/PowerPC.
11013         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11014         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11015         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11016         platform.
11017         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11018
11019 2011-09-29  Bruno Haible  <bruno@clisp.org>
11020
11021         doc: Improve doc about gl_EARLY.
11022         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11023         AC_PROG_CC_STDC invocation.
11024         Reported by Gary V. Vaughan <gary@gnu.org>.
11025
11026 2011-09-28  Bruno Haible  <bruno@clisp.org>
11027
11028         fgetc, fputc, fread, fwrite tests: Fix link error.
11029         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11030         on non-MSVC platforms.
11031         * tests/test-fputc.c (main): Likewise.
11032         * tests/test-fread.c (main): Likewise.
11033         * tests/test-fwrite.c (main): Likewise.
11034         Reported by Jim Meyering.
11035
11036 2011-09-27  Bruno Haible  <bruno@clisp.org>
11037
11038         fputc, fwrite tests: Avoid test failure on MSVC.
11039         * tests/test-fgetc.c: Include msvc-inval.h.
11040         (main): Invoke gl_msvc_inval_ensure_handler.
11041         * tests/test-fputc.c: Include msvc-inval.h.
11042         (main): Invoke gl_msvc_inval_ensure_handler.
11043         * tests/test-fread.c: Include msvc-inval.h.
11044         (main): Invoke gl_msvc_inval_ensure_handler.
11045         * tests/test-fwrite.c: Include msvc-inval.h.
11046         (main): Invoke gl_msvc_inval_ensure_handler.
11047         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11048         * modules/fputc-tests (Depends-on): Likewise.
11049         * modules/fread-tests (Depends-on): Likewise.
11050         * modules/fwrite-tests (Depends-on): Likewise.
11051
11052 2011-09-27  Bruno Haible  <bruno@clisp.org>
11053
11054         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11055         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11056         (raise): Remove older, duplicated declaration.
11057         (_gl_raise_SIGPIPE): New declaration.
11058         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11059         (rpl_raise): Remove function.
11060         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11061         a gnulib-defined SIGPIPE here.
11062         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11063         'sigprocmask' has detected missing signal-blocking and the module
11064         'sigpipe' is enabled.
11065         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11066
11067 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11068
11069         base64-tests: avoid memory leak
11070         * tests/test-base64.c (main): Plug memory leak.
11071
11072         base32: new module
11073         * modules/base32: New module.
11074         * lib/base32.c: New file.
11075         * lib/base32.h: Likewise.
11076         * m4/base32.m4: Likewise.
11077         * modules/base32-tests: New test.
11078         * tests/test-base32.c: Likewise.
11079         * MODULES.html.sh (Misc): Mention it.
11080
11081 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11082
11083         gnulib: use more-standard license notice wording
11084         * gnulib-tool (func_emit_copyright_notice): When emitting a
11085         license notice into a file, use the standard wording as suggested
11086         by the current information for GNU maintainers, except say "file"
11087         rather than "program".  The new wording gives a license version
11088         number, which addresses an issue raised by Glenn Morris in
11089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11090         * m4/onceonly.m4: Use that same wording here, too.
11091
11092         dup2: minor simplification
11093         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11094         as lib/dup2.c no longer uses 'inline'.
11095
11096 2011-09-25  Bruno Haible  <bruno@clisp.org>
11097
11098         strings: Fix compilation error on MSVC.
11099         * lib/strings.in.h: Include <stddef.h> for size_t.
11100
11101 2011-09-25  Bruno Haible  <bruno@clisp.org>
11102
11103         fflush et al.: Document limitation on MSVC.
11104         * doc/posix-functions/fflush.texi: Document possible crash in handling
11105         mode other than DEFAULT_HANDLING.
11106         * doc/posix-functions/fgetc.texi: Likewise.
11107         * doc/posix-functions/fputc.texi: Likewise.
11108         * doc/posix-functions/fread.texi: Likewise.
11109         * doc/posix-functions/fwrite.texi: Likewise.
11110
11111 2011-09-25  Bruno Haible  <bruno@clisp.org>
11112
11113         msvc-inval: Allow three invalid parameter handling modes.
11114         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11115         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11116         macros.
11117         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11118         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11119         SANE_LIBRARY_HANDLING as a no-op.
11120         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11121         <stdlib.h>.
11122         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11123
11124 2011-09-25  Bruno Haible  <bruno@clisp.org>
11125
11126         msvc-inval: Make handler multithread-safe.
11127         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11128         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11129         declarations.
11130         (gl_msvc_inval_current): New declaration.
11131         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11132         Operate on the structure returned by gl_msvc_inval_current().
11133         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11134         Remove varaiables.
11135         (tls_index, tls_initialized): New variables.
11136         (not_per_thread): New variable.
11137         (gl_msvc_inval_current): New function.
11138         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11139         returned by gl_msvc_inval_current().
11140
11141 2011-09-25  Bruno Haible  <bruno@clisp.org>
11142
11143         msvc-inval: Install handler globally.
11144         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11145         !_MSC_VER.
11146         (gl_msvc_invalid_parameter_handler): Remove declaration.
11147         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11148         declarations.
11149         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11150         Install the handler globally, don't uninstall it.
11151         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11152         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11153         currently valid, call RaiseException instead.
11154         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11155         for !_MSC_VER.
11156
11157 2011-09-25  Bruno Haible  <bruno@clisp.org>
11158
11159         strerror_r-posix: Fix for MSVC 9.
11160         * lib/strerror_r.c (local_snprintf): New function.
11161         (snprintf): Define to local_snprintf, not to _snprintf.
11162
11163 2011-09-25  Bruno Haible  <bruno@clisp.org>
11164
11165         ftruncate: Support for MSVC 9.
11166         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11167         (chsize_nothrow): New function.
11168         (chsize): Redefine as a macro.
11169         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11170         * modules/ftruncate (Depends-on): Add msvc-inval.
11171
11172 2011-09-25  Bruno Haible  <bruno@clisp.org>
11173
11174         New module 'fstat'.
11175         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11176         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11177         * lib/fchdir.c (rpl_fstat): Remove function.
11178         * m4/fstat.m4: New file.
11179         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11180         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11181         declared.
11182         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11183         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11184         * modules/fstat: New file.
11185         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11186         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11187         is set.
11188         * doc/posix-functions/fstat.texi: Mention the new module and the
11189         problem on MSVC.
11190         * NEWS: Mention the change.
11191         * modules/acl (Depends-on): Add fstat.
11192         * modules/chdir-safer (Depends-on): Likewise.
11193         * modules/chown (Depends-on): Likewise.
11194         * modules/copy-file (Depends-on): Likewise.
11195         * modules/fchdir (Depends-on): Likewise.
11196         * modules/fdopendir (Depends-on): Likewise.
11197         * modules/fopen (Depends-on): Likewise.
11198         * modules/fts (Depends-on): Likewise.
11199         * modules/getcwd (Depends-on): Likewise.
11200         * modules/isapipe (Depends-on): Likewise.
11201         * modules/linkat (Depends-on): Likewise.
11202         * modules/lseek (Depends-on): Likewise.
11203         * modules/mkdir-p (Depends-on): Likewise.
11204         * modules/open (Depends-on): Likewise.
11205         * modules/openat (Depends-on): Likewise.
11206         * modules/read-file (Depends-on): Likewise.
11207         * modules/renameat (Depends-on): Likewise.
11208         * modules/utimens (Depends-on): Likewise.
11209
11210 2011-09-25  Bruno Haible  <bruno@clisp.org>
11211
11212         linkat: Fix compilation on MSVC 9.
11213         * lib/linkat.c: Don't include <stdint.h>.
11214
11215 2011-09-25  Bruno Haible  <bruno@clisp.org>
11216
11217         fclose: Support for MSVC 9.
11218         * lib/fclose.c: Include msvc-inval.h.
11219         (fclose_nothrow): New function.
11220         (rpl_fclose): Use it.
11221         * modules/fclose (Depends-on): Add msvc-inval.
11222         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11223
11224 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11225
11226         dup2: minor simplifications
11227         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11228         that it's a performance win.
11229         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11230         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11231
11232 2011-09-24  Jim Meyering  <meyering@redhat.com>
11233
11234         test-futimens: avoid a warning from gcc -Wshadow
11235         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11236         to avoid a shadowing warning.
11237
11238 2011-09-24  Bruno Haible  <bruno@clisp.org>
11239
11240         fdopen: Support for MSVC 9.
11241         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11242         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11243         * lib/fdopen.c: Include msvc-inval.h.
11244         (fdopen_nothrow): New function.
11245         (rpl_fdopen): Use it.
11246         * modules/fdopen (Depends-on): Add msvc-inval.
11247         * modules/fclose-tests (Depends-on): Add fdopen.
11248         * modules/fflush-tests (Depends-on): Likewise.
11249         * modules/fgetc-tests (Depends-on): Likewise.
11250         * modules/fputc-tests (Depends-on): Likewise.
11251         * modules/fread-tests (Depends-on): Likewise.
11252         * modules/freopen-tests (Depends-on): Likewise.
11253         * modules/fseeko-tests (Depends-on): Likewise.
11254         * modules/ftello-tests (Depends-on): Likewise.
11255         * modules/fwrite-tests  (Depends-on): Likewise.
11256         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11257
11258 2011-09-24  Bruno Haible  <bruno@clisp.org>
11259
11260         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11261         * modules/fgetc-tests (Depends-on): Add unistd.
11262         * modules/fputc-tests (Depends-on): Likewise.
11263         * modules/fread-tests (Depends-on): Likewise.
11264         * modules/fwrite-tests (Depends-on): Likewise.
11265
11266 2011-09-24  Bruno Haible  <bruno@clisp.org>
11267
11268         dup: Simplify autoconf test.
11269         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11270         on gl_MSVC_INVAL's result.
11271
11272 2011-09-24  Bruno Haible  <bruno@clisp.org>
11273
11274         Tests for function fwrite().
11275         * modules/fwrite-tests: New file.
11276         * tests/test-fwrite.c: New file.
11277         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11278
11279         Tests for function fread().
11280         * modules/fread-tests: New file.
11281         * tests/test-fread.c: New file.
11282         * modules/stdio-tests (Depends-on): Add fread-tests.
11283
11284         Activate fputc tests.
11285         * modules/stdio-tests (Depends-on): Add fputc-tests.
11286
11287         Enhance fgetc, fputc tests.
11288         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11289         * tests/test-fputc.c (main): Likewise.
11290
11291 2011-09-24  Bruno Haible  <bruno@clisp.org>
11292
11293         write: Support for MSVC 9.
11294         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11295         is not 1.
11296         * lib/write.c (write_nothrow): New function.
11297         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11298         not 1. Use write_nothrow.
11299         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11300         invalid parameter handler.
11301         (gl_PREREQ_WRITE): New macro.
11302         * modules/write (Depends-on): Add msvc-inval.
11303         (configure.ac): Invoke gl_PREREQ_WRITE.
11304         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11305
11306 2011-09-24  Bruno Haible  <bruno@clisp.org>
11307
11308         read: Fix last commit.
11309         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11310
11311 2011-09-24  Bruno Haible  <bruno@clisp.org>
11312
11313         dup2: Fix last commit.
11314         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11315         (rpl_dup2): Disable fcntl workaround on native Windows.
11316
11317         sigprocmask: Make code safer.
11318         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11319         section that changes macro definitions for this compilation unit.
11320
11321 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11322
11323         dup2: clarify by coalescing Windows-specific material
11324         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11325         "msvc-nothrow.h"' to the Windows-specific section, so that the
11326         Emacs source need not contain these include files.
11327         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11328         Windows-specific fixes into this function rather than just the
11329         nothrow fix, as this shortens and clarifies the code.  Always
11330         define as a function, as that's a bit cleaner than having it be
11331         sometimes a function and sometimes a macro.
11332         (rpl_dup2): Move the Windows-specific stuff out of here and into
11333         ms_windows_dup2.  Don't protect the Haiku-related fix with
11334         "#if !defined __linux__", as the same code also works around
11335         a Linux kernel bug, and it doesn't add any system calls on any
11336         platform.  Add comment about FreeBSD 6.1.
11337
11338         sigprocmask: move #include directive
11339         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11340         Windows-specific section, so that the Emacs source need not
11341         contain msvc-inval.h.
11342
11343 2011-09-23  Bruno Haible  <bruno@clisp.org>
11344
11345         read: Support for MSVC 9.
11346         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11347         is not 1.
11348         * lib/read.c (read_nothrow): New function.
11349         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11350         read_nothrow.
11351         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11352         invalid parameter handler.
11353         (gl_PREREQ_READ): New macro.
11354         * modules/read (Depends-on): Add msvc-inval.
11355         (configure.ac): Invoke gl_PREREQ_READ.
11356         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11357
11358 2011-09-23  Bruno Haible  <bruno@clisp.org>
11359
11360         close: Support for MSVC 9.
11361         * lib/close.c: Include <errno.h>, msvc-inval.h.
11362         (close_nothrow): New function.
11363         (rpl_close): Use it.
11364         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11365         invalid parameter handler.
11366         * modules/close (Depends-on): Add msvc-inval.
11367         * modules/dup2-tests (Depends-on): Add close.
11368         * modules/dup3-tests (Depends-on): Likewise.
11369         * modules/fcntl-tests (Depends-on): Likewise.
11370         * modules/spawn-pipe-tests (Depends-on): Likewise.
11371         * modules/unistd-safer-tests (Depends-on): Likewise.
11372         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11373
11374 2011-09-23  Bruno Haible  <bruno@clisp.org>
11375
11376         New module 'dup'.
11377         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11378         Allow replacement.
11379         * lib/dup.c: New file.
11380         * lib/fchdir.c (rpl_dup): Remove function.
11381         * m4/dup.m4: New file.
11382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11383         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11384         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11385         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11386         * modules/dup: New file.
11387         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11388         'dup' module is in use.
11389         * modules/fdopendir (Depends-on): Add dup.
11390         * modules/fdutimensat-tests (Depends-on): Likewise.
11391         * modules/fts (Depends-on): Likewise.
11392         * modules/futimens-tests (Depends-on): Likewise.
11393         * modules/posix_spawnp-tests (Depends-on): Likewise.
11394         * modules/unistd-safer-tests (Depends-on): Likewise.
11395         * modules/utimens-tests (Depends-on): Likewise.
11396         * doc/posix-functions/dup.texi: Mention the new module and the problem
11397         on MSVC.
11398
11399 2011-09-23  Bruno Haible  <bruno@clisp.org>
11400
11401         getdtablesize: Support for MSVC 9.
11402         * lib/getdtablesize.c: Include msvc-inval.h.
11403         (_setmaxstdio_nothrow): New function.
11404         (_setmaxstdio): Redefine it.
11405         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11406         * modules/getdtablesize (Depends-on): Add msvc-inval.
11407         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11408
11409 2011-09-23  Bruno Haible  <bruno@clisp.org>
11410
11411         signal-h: Rename from signal.
11412         * modules/signal-h: Renamed from modules/signal.
11413         * modules/pthread_sigmask (Depends-on): Update.
11414         * modules/raise (Depends-on): Likewise.
11415         * modules/sigaction (Depends-on): Likewise.
11416         * modules/sigpipe (Depends-on): Likewise.
11417         * modules/sigprocmask (Depends-on): Likewise.
11418         * modules/sys_select (Depends-on): Likewise.
11419         * modules/signal-h-tests: Renamed from modules/signal-tests.
11420         (Files, Depends-on, Makefile.am): Update.
11421         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11422         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11423         (Files, Makefile.am): Update.
11424         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11425         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11426         * modules/signal: New placeholder file.
11427         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11428         * doc/posix-headers/signal.texi: Update.
11429         * NEWS: Mention the change.
11430
11431 2011-09-23  Bruno Haible  <bruno@clisp.org>
11432
11433         sigprocmask: Avoid crashes through signal() on MSVC 9.
11434         * lib/sigprocmask.c: Include msvc-inval.h.
11435         (signal_nothrow): New function.
11436         (signal): Redefine it.
11437         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11438         * modules/sigprocmask (Depends-on): Add msvc-inval.
11439         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11440
11441 2011-09-23  Bruno Haible  <bruno@clisp.org>
11442
11443         Tests for module 'raise'.
11444         * modules/raise-tests: New file.
11445         * tests/test-raise.c: New file.
11446
11447         raise: Support for MSVC.
11448         * lib/signal.in.h (raise): New declaration.
11449         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11450         for native Windows platforms.
11451         * m4/raise.m4: New file.
11452         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11453         HAVE_RAISE, REPLACE_RAISE.
11454         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11455         REPLACE_RAISE.
11456         * modules/raise (Status, Notice): Remove fields.
11457         (Files): Add m4/raise.m4.
11458         (Depends-on): Add signal, msvc-inval.
11459         (configure.ac): Use the common idioms.
11460         (Maintainer): Add me.
11461         * tests/test-signal-c++.cc: Check the signature of raise.
11462         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11463
11464 2011-09-23  Bruno Haible  <bruno@clisp.org>
11465
11466         pipe2: Fix compilation on pre-C99 compilers.
11467         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11468
11469 2011-09-23  Bruno Haible  <bruno@clisp.org>
11470
11471         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11472         * lib/msvc-nothrow.h: New file.
11473         * lib/msvc-nothrow.c: New file.
11474         * m4/msvc-nothrow.m4: New file.
11475         * modules/msvc-nothrow: New file.
11476         * lib/dup2.c: Include msvc-nothrow.h.
11477         (rpl_dup2): No need to protect _get_osfhandle call here.
11478         * lib/accept4.c: Include msvc-nothrow.h.
11479         * lib/error.c: Likewise.
11480         * lib/fcntl.c: Likewise.
11481         * lib/lseek.c: Likewise.
11482         * lib/nonblocking.c: Likewise.
11483         * lib/poll.c: Likewise.
11484         * lib/read.c: Likewise.
11485         * lib/select.c: Likewise.
11486         * lib/sockets.h: Likewise.
11487         * lib/sockets.c: Likewise.
11488         * lib/stdio-read.c: Likewise.
11489         * lib/stdio-write.c: Likewise.
11490         * lib/write.c: Likewise.
11491         * lib/w32sock.h: Likewise.
11492         * lib/w32spawn.h: Likewise.
11493         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11494         * lib/fsync.c: Likewise.
11495         * lib/isapipe.c: Likewise.
11496         * modules/dup2 (Depends-on): Add msvc-nothrow.
11497         * modules/accept4 (Depends-on): Likewise.
11498         * modules/error (Depends-on): Likewise.
11499         * modules/fcntl (Depends-on): Likewise.
11500         * modules/lseek (Depends-on): Likewise.
11501         * modules/nonblocking (Depends-on): Likewise.
11502         * modules/poll (Depends-on): Likewise.
11503         * modules/read (Depends-on): Likewise.
11504         * modules/select (Depends-on): Likewise.
11505         * modules/sockets (Depends-on): Likewise.
11506         * modules/sigpipe (Depends-on): Likewise.
11507         * modules/write (Depends-on): Likewise.
11508         * modules/accept (Depends-on): Likewise.
11509         * modules/bind (Depends-on): Likewise.
11510         * modules/connect (Depends-on): Likewise.
11511         * modules/gethostname (Depends-on): Likewise.
11512         * modules/getpeername (Depends-on): Likewise.
11513         * modules/getsockname (Depends-on): Likewise.
11514         * modules/getsockopt (Depends-on): Likewise.
11515         * modules/ioctl (Depends-on): Likewise.
11516         * modules/listen (Depends-on): Likewise.
11517         * modules/recv (Depends-on): Likewise.
11518         * modules/recvfrom (Depends-on): Likewise.
11519         * modules/send (Depends-on): Likewise.
11520         * modules/sendto (Depends-on): Likewise.
11521         * modules/setsockopt (Depends-on): Likewise.
11522         * modules/shutdown (Depends-on): Likewise.
11523         * modules/socket (Depends-on): Likewise.
11524         * modules/execute (Depends-on): Likewise.
11525         * modules/spawn-pipe (Depends-on): Likewise.
11526         * modules/flock (Depends-on): Likewise.
11527         * modules/fsync (Depends-on): Likewise.
11528         * modules/isapipe (Depends-on): Likewise.
11529         * tests/test-cloexec.c: Include msvc-nothrow.h.
11530         * tests/test-dup-safer.c: Likewise.
11531         * tests/test-dup2.c: Likewise.
11532         * tests/test-dup3.c: Likewise.
11533         * tests/test-fcntl.c: Likewise.
11534         * tests/test-pipe.c: Likewise.
11535         * tests/test-pipe2.c: Likewise.
11536         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11537         * modules/unistd-safer-tests (Depends-on): Likewise.
11538         * modules/dup2-tests (Depends-on): Likewise.
11539         * modules/dup3-tests (Depends-on): Likewise.
11540         * modules/fcntl-tests (Depends-on): Likewise.
11541         * modules/pipe-posix-tests (Depends-on): Likewise.
11542         * modules/pipe2-tests (Depends-on): Likewise.
11543
11544 2011-09-23  Bruno Haible  <bruno@clisp.org>
11545
11546         dup2: Make code more maintainable.
11547         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11548         (rpl_dup2): Use it.
11549         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11550         * modules/dup2 (configure.ac): Invoke it.
11551         Reported by Paul Eggert.
11552
11553 2011-09-23  Bruno Haible  <bruno@clisp.org>
11554
11555         msvc-inval: Fix compilation error.
11556         * lib/msvc-inval.h: Include <excpt.h>.
11557
11558 2011-09-23  Bruno Haible  <bruno@clisp.org>
11559
11560         mkdir: Tweak for MSVC 9.
11561         * lib/sys_stat.in.h: Update comments.
11562         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11563
11564         Tests for module 'chdir'.
11565         * modules/chdir-tests: New file.
11566         * tests/test-chdir.c: New file.
11567
11568         New module 'chdir'.
11569         * modules/chdir: New file.
11570         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11571         (chdir): New declaration.
11572         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11573         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11574         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11575         * tests/test-unistd-c++.cc: Check signature of chdir.
11576         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11577         * modules/chdir-long (Depends-on): Add chdir.
11578         * modules/fchdir (Depends-on): Likewise.
11579         * modules/rename (Depends-on): Likewise.
11580         * modules/savewd (Depends-on): Likewise.
11581
11582         rmdir: Support for mingw, MSVC 9.
11583         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11584         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11585
11586         getcwd: Tweak for MSVC 9.
11587         * lib/unistd.in.h: Update comments.
11588         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11589
11590 2011-09-22  Bruno Haible  <bruno@clisp.org>
11591
11592         strerror_r-posix: Avoid a link error on MSVC.
11593         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11594         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11595
11596 2011-09-22  Bruno Haible  <bruno@clisp.org>
11597
11598         select: Avoid link errors on MSVC.
11599         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11600         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11601         * modules/pselect (Link): Likewise.
11602         * NEWS: Mention the change.
11603         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
11604         test-select-stdin against $(LIB_SELECT).
11605         * modules/pselect-tests (Makefile.am): Link test-pselect against
11606         $(LIB_SELECT).
11607
11608 2011-09-22  Bruno Haible  <bruno@clisp.org>
11609
11610         select: Avoid compilation error on MSVC.
11611         * lib/select.c: Don't include <stdbool.h>.
11612
11613 2011-09-21  Bruno Haible  <bruno@clisp.org>
11614
11615         Consolidate all uses of PATH_MAX in *.m4 files.
11616         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
11617         macros.
11618         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
11619         and gl_PATHMAX_SNIPPET.
11620         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11621         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11622         * modules/chdir-long (Files): Add m4/pathmax.m4.
11623         * modules/getcwd (Files): Likewise.
11624
11625 2011-09-21  Bruno Haible  <bruno@clisp.org>
11626
11627         ftruncate: Un-deprecate, concentrate on Win32 support.
11628         * modules/ftruncate (Status, Notice): Remove sections.
11629         (Depends-on): Add largefile.
11630         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
11631         non-mingw platforms.
11632         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
11633         include <io.h>.
11634         * modules/perror-tests (Depends-on): Add ftruncate.
11635         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
11636         'ftruncate' module.
11637
11638 2011-09-21  Bruno Haible  <bruno@clisp.org>
11639
11640         Add dependencies to new dirent related modules.
11641         * modules/opendir (Depends-on): Add closedir.
11642         * modules/getcwd (Depends-on): Add opendir, closedir.
11643         * modules/dirent-safer-tests (Depends-on): Likewise.
11644         * modules/fdopendir-tests (Depends-on): Likewise.
11645         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
11646         * modules/renameat-tests (Depends-on): Likewise.
11647
11648 2011-09-21  Bruno Haible  <bruno@clisp.org>
11649
11650         opendir: Avoid compilation error on mingw.
11651         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
11652         * modules/opendir (Depends-on): Add unistd.
11653
11654 2011-09-21  Bruno Haible  <bruno@clisp.org>
11655
11656         ftruncate tests: Avoid a test failure on mingw.
11657         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
11658
11659 2011-09-21  Bruno Haible  <bruno@clisp.org>
11660
11661         select tests: Avoid test failures on OSF/1 5.1 and mingw.
11662         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
11663         native Windows.
11664
11665 2011-09-21  Bruno Haible  <bruno@clisp.org>
11666
11667         New module 'fdopen'.
11668         * lib/stdio.in.h (fdopen): New declaration.
11669         * lib/fdopen.c: New file.
11670         * m4/fdopen.m4: New file.
11671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
11672         REPLACE_FDOPEN.
11673         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
11674         REPLACE_FDOPEN.
11675         * modules/fdopen: New file.
11676         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
11677         * tests/test-stdio-c++.cc: Check signature of fdopen.
11678         * doc/posix-functions/fdopen.texi: Mention the new module.
11679
11680 2011-09-21  Bruno Haible  <bruno@clisp.org>
11681
11682         unlockpt tests: Avoid test failure on NetBSD 5.1.
11683         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
11684         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
11685
11686 2011-09-21  Bruno Haible  <bruno@clisp.org>
11687
11688         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
11689         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11690         * tests/test-getlogin_r.c (main): Likewise.
11691
11692 2011-09-20  Bruno Haible  <bruno@clisp.org>
11693
11694         time tests: Don't require pid_t.
11695         * doc/posix-headers/time.texi: Revert last change.
11696         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
11697         * tests/test-time.c: Comment out the check for pid_t.
11698
11699 2011-09-20  Bruno Haible  <bruno@clisp.org>
11700
11701         fsync tests: Avoid a test failure on mingw.
11702         * tests/test-fsync.c (main): Allow a failure with EIO.
11703
11704 2011-09-20  Bruno Haible  <bruno@clisp.org>
11705
11706         euidaccess: Update comments.
11707         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
11708
11709 2011-09-20  Bruno Haible  <bruno@clisp.org>
11710
11711         Ensure EBADF returns for socket functions on mingw.
11712         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
11713         descriptor is invalid.
11714         * lib/bind.c (rpl_bind): Likewise.
11715         * lib/connect.c (rpl_connect): Likewise.
11716         * lib/getpeername.c (rpl_getpeername): Likewise.
11717         * lib/getsockname.c (rpl_getsockname): Likewise.
11718         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11719         * lib/listen.c (rpl_listen): Likewise.
11720         * lib/recv.c (rpl_recv): Likewise.
11721         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11722         * lib/send.c (rpl_send): Likewise.
11723         * lib/sendto.c (rpl_sendto): Likewise.
11724         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11725         * lib/shutdown.c (rpl_shutdown): Likewise.
11726
11727 2011-09-20  Bruno Haible  <bruno@clisp.org>
11728
11729         select tests: EBADF tests.
11730         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
11731         test_bad_fd): New functions.
11732         (test_function): Invoke also test_bad_fd.
11733
11734 2011-09-20  Bruno Haible  <bruno@clisp.org>
11735
11736         Tests for module 'posix_spawn_file_actions_addopen.
11737         * modules/posix_spawn_file_actions_addopen-tests: New file.
11738         * tests/test-posix_spawn_file_actions_addopen.c: New file.
11739
11740         Tests for module 'posix_spawn_file_actions_adddup2'.
11741         * modules/posix_spawn_file_actions_adddup2-tests: New file.
11742         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
11743
11744         Tests for module 'posix_spawn_file_actions_addclose'.
11745         * modules/posix_spawn_file_actions_addclose-tests: New file.
11746         * tests/test-posix_spawn_file_actions_addclose.c: New file.
11747
11748 2011-09-20  Bruno Haible  <bruno@clisp.org>
11749
11750         Tests for module 'unlockpt'.
11751         * modules/unlockpt-tests: New file.
11752         * tests/test-unlockpt.c: New file.
11753         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
11754
11755         Tests for module 'grantpt'.
11756         * modules/grantpt-tests: New file.
11757         * tests/test-grantpt.c: New file.
11758         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
11759
11760 2011-09-20  Bruno Haible  <bruno@clisp.org>
11761
11762         freopen tests: EBADF tests.
11763         * tests/test-freopen.c: Include errno.h, unistd.h.
11764         (main): Add tests for EBADF, commented out for the moment.
11765
11766         fclose tests: EBADF tests.
11767         * tests/test-fclose.c (main): Add tests for EBADF.
11768
11769         fflush tests: EBADF tests.
11770         * tests/test-fflush.c: Include errno.h, macros.h.
11771         (main): Add tests for EBADF.
11772
11773         ftello tests: EBADF tests.
11774         * tests/test-ftello4.sh: New file.
11775         * tests/test-ftello4.c: New file.
11776         * modules/ftello-tests (Files): Add them.
11777         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
11778
11779         fseeko tests: EBADF tests.
11780         * tests/test-fseeko4.sh: New file.
11781         * tests/test-fseeko4.c: New file.
11782         * modules/fseeko-tests (Files): Add them.
11783         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
11784
11785         Tests for function fputc().
11786         * modules/fputc-tests: New file.
11787         * tests/test-fputc.c: New file.
11788         * modules/stdio-tests (Depends-on): Add fputc-tests.
11789
11790         Tests for function fgetc().
11791         * modules/fgetc-tests: New file.
11792         * tests/test-fgetc.c: New file.
11793         * modules/stdio-tests (Depends-on): Add fgetc-tests.
11794
11795         Tests for function fdopen().
11796         * modules/fdopen-tests: New file.
11797         * tests/test-fdopen.c: New file.
11798         * modules/stdio-tests (Depends-on): Add fdopen-tests.
11799
11800         Tests for module 'vdprintf'.
11801         * modules/vdprintf-tests: New file.
11802         * tests/test-vdprintf.c: New file.
11803
11804         Tests for module 'dprintf'.
11805         * modules/dprintf-tests: New file.
11806         * tests/test-dprintf.c: New file.
11807
11808 2011-09-20  Bruno Haible  <bruno@clisp.org>
11809
11810         Tests for module 'ioctl'.
11811         * modules/ioctl-tests: New file.
11812         * tests/test-ioctl.c: New file.
11813
11814 2011-09-20  Bruno Haible  <bruno@clisp.org>
11815
11816         fcntl tests: EBADF tests.
11817         * tests/test-fcntl.c (main): Add more tests for EBADF.
11818
11819 2011-09-20  Bruno Haible  <bruno@clisp.org>
11820
11821         utimensat tests: EBADF tests.
11822         * tests/test-utimensat.c (main): Add tests for EBADF.
11823
11824         renameat tests: EBADF tests.
11825         * tests/test-renameat.c (main): Add tests for EBADF.
11826
11827         mkfifoat tests: EBADF tests.
11828         * tests/test-mkfifoat.c (main): Add tests for EBADF.
11829
11830         readlinkat tests: EBADF tests.
11831         * tests/test-readlinkat.c (main): Add tests for EBADF.
11832
11833         symlinkat tests: EBADF tests.
11834         * tests/test-symlinkat.c (main): Add tests for EBADF.
11835
11836         linkat tests: EBADF tests.
11837         * tests/test-linkat.c (main): Add tests for EBADF.
11838
11839         Tests for module 'faccessat'.
11840         * modules/faccessat-tests: New file.
11841         * tests/test-faccessat.c: New file.
11842
11843         fdopendir tests: EBADF tests.
11844         * tests/test-fdopendir.c (main): Add more tests for EBADF.
11845
11846         openat tests: EBADF tests.
11847         * tests/test-fchownat.c (main): Add tests for EBADF.
11848         * tests/test-fstatat.c (main): Likewise.
11849         * tests/test-mkdirat.c (main): Likewise.
11850         * tests/test-openat.c (main): Likewise.
11851         * tests/test-unlinkat.c (main): Likewise.
11852         * tests/test-fchmodat.c: New file.
11853         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
11854         (Makefile.am): Also run 'test-fchmodat'.
11855
11856 2011-09-20  Bruno Haible  <bruno@clisp.org>
11857
11858         utimens, futimens, fdutimensat tests: EBADF tests.
11859         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
11860
11861         Tests for function fstat().
11862         * modules/fstat-tests: New file.
11863         * tests/test-fstat.c: New file.
11864         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
11865
11866 2011-09-20  Bruno Haible  <bruno@clisp.org>
11867
11868         test-ttyname_r tests: EBADF tests.
11869         * tests/test-ttyname_r.c (main): Add tests for EBADF.
11870
11871         Tests for module 'isatty'.
11872         * modules/isatty-tests: New file.
11873         * tests/test-isatty.c: New file.
11874
11875         Tests for module 'write'.
11876         * modules/write-tests: New file.
11877         * tests/test-write.c: New file.
11878
11879         Tests for module 'read'.
11880         * modules/read-tests: New file.
11881         * tests/test-read.c: New file.
11882
11883         pwrite tests: EBADF tests.
11884         * tests/test-pwrite.c (main): Add tests for EBADF.
11885
11886         pread tests: EBADF tests.
11887         * tests/test-pread.c (main): Add tests for EBADF.
11888
11889         lseek tests: EBADF tests.
11890         * tests/test-lseek.c (main): Add more tests for EBADF.
11891
11892         Tests for module 'ftruncate'.
11893         * modules/ftruncate-tests: New file.
11894         * tests/test-ftruncate.sh: New file.
11895         * tests/test-ftruncate.c: New file.
11896
11897         fsync tests: EBADF tests.
11898         * tests/test-fsync.c (main): Add more tests for EBADF.
11899
11900         fdatasync tests: EBADF tests.
11901         * tests/test-fdatasync.c (main): Add more tests for EBADF.
11902
11903         Tests for module 'fchown'.
11904         * modules/fchown-tests: New file.
11905         * tests/test-fchown.c: New file.
11906
11907         Tests for module 'fchmod'.
11908         * modules/fchmod-tests: New file.
11909         * tests/test-fchmod.c: New file.
11910
11911         fchdir tests: EBADF tests.
11912         * tests/test-fchdir.c (main): Add more tests for EBADF.
11913
11914         dup2 tests: EBADF tests.
11915         * tests/test-dup2.c (main): Add more tests for EBADF.
11916
11917         Tests for module 'dup'.
11918         * modules/dup-tests: New file.
11919         * tests/test-dup.c: New file.
11920
11921         Tests for module 'close'.
11922         * modules/close-tests: New file.
11923         * tests/test-close.c: New file.
11924
11925 2011-09-20  Bruno Haible  <bruno@clisp.org>
11926
11927         Tests for module 'shutdown'.
11928         * modules/shutdown-tests: New file.
11929         * tests/test-shutdown.c: New file.
11930
11931         Tests for module 'setsockopt'.
11932         * modules/setsockopt-tests: New file.
11933         * tests/test-setsockopt.c: New file.
11934
11935         Tests for module 'sendto'.
11936         * modules/sendto-tests: New file.
11937         * tests/test-sendto.c: New file.
11938
11939         Tests for module 'send'.
11940         * modules/send-tests: New file.
11941         * tests/test-send.c: New file.
11942
11943         Tests for module 'recvfrom'.
11944         * modules/recvfrom-tests: New file.
11945         * tests/test-recvfrom.c: New file.
11946
11947         Tests for module 'recv'.
11948         * modules/recv-tests: New file.
11949         * tests/test-recv.c: New file.
11950
11951         Tests for module 'listen'.
11952         * modules/listen-tests: New file.
11953         * tests/test-listen.c: New file.
11954
11955         Tests for module 'getsockopt'.
11956         * modules/getsockopt-tests: New file.
11957         * tests/test-getsockopt.c: New file.
11958
11959         Tests for module 'getsockname'.
11960         * modules/getsockname-tests: New file.
11961         * tests/test-getsockname.c: New file.
11962
11963         Tests for module 'getpeername'.
11964         * modules/getpeername-tests: New file.
11965         * tests/test-getpeername.c: New file.
11966
11967         Tests for module 'connect'.
11968         * modules/connect-tests: New file.
11969         * tests/test-connect.c: New file.
11970
11971         Tests for module 'bind'.
11972         * modules/bind-tests: New file.
11973         * tests/test-bind.c: New file.
11974
11975         accept4 tests: Fix for native Windows.
11976         * tests/test-accept4.c: Include sockets.h.
11977         (main): Invoke gl_sockets_startup.
11978         * modules/accept4-tests (Depends-on): Add sockets.
11979
11980         accept tests: Fix for native Windows.
11981         * tests/test-accept.c: Include sockets.h.
11982         (main): Invoke gl_sockets_startup.
11983         * modules/accept-tests (Depends-on): Add sockets.
11984
11985 2011-09-19  Bruno Haible  <bruno@clisp.org>
11986
11987         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
11988         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
11989         do...while(0).
11990         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
11991         Suggested by Paul Eggert.
11992
11993 2011-09-19  Bruno Haible  <bruno@clisp.org>
11994
11995         sched: Ensure pid_t is defined.
11996         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
11997         not define pid_t.
11998         * lib/sched.in.h: Include <sys/types.h>.
11999         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12001
12002 2011-09-19  Bruno Haible  <bruno@clisp.org>
12003
12004         msvc-inval: Ensure the entire expansion is a single statement.
12005         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12006         of braces.
12007
12008 2011-09-19  Jim Meyering  <meyering@redhat.com>
12009
12010         tests: use printf, not echo in init.sh's warn_ function
12011         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12012         misbehave when given strings containing a backslash or starting
12013         with e.g., -n.  James Youngman suggested setting IFS.
12014
12015 2011-09-19  Eric Blake  <eblake@redhat.com>
12016
12017         futimens: enhance test
12018         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12019         closed non-negative fd.
12020
12021         date: accept 'hence' as opposite of 'ago'
12022         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12023         * tests/test-parse-datetime.c (main): Enhance test.
12024         Suggested by Jesse Wilson.
12025
12026 2011-09-19  Jim Meyering  <meyering@redhat.com>
12027
12028         getcwd: don't fail in a deep directory on a system without openat
12029         Before this change, getcwd would fail when called from a directory
12030         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12031         the non-openat implementation used "..", "../..", "../../..", etc.
12032         to access ancestor directories.  With too many, that string would
12033         be longer than PATH_MAX.
12034         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12035         using gnulib's openat replacement.
12036         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12037         we're using the replacement function.
12038
12039 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12040
12041         maint.mk: avoid warnings from perl about missing files
12042         * top/maint.mk (def_sym_regex): Ignore files listed in
12043         $(gl_other_headers_) that do not exist, say because a project
12044         does not use a corresponding module.
12045
12046 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12047
12048         stat: use pathmax.h only if needed
12049         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12050         This is better for Emacs, which does not have a mingw port and
12051         therefore can avoid the pathmax module.
12052
12053         utimens: remove dependency on dup2
12054         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12055         to work around the Linux kernel bug.
12056         * modules/utimens (Depends-on): Remove dup2.
12057
12058 2011-09-18  Bruno Haible  <bruno@clisp.org>
12059
12060         inet_ntop, inet_pton: Look for it also in libresolv.
12061         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12062         libnsl, search for it in libresolv.
12063         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12064         Needed on Solaris 7.
12065
12066 2011-09-18  Bruno Haible  <bruno@clisp.org>
12067
12068         accept, accept4 tests: Avoid link error on Solaris.
12069         * modules/accept-tests (Makefile.am): Link test-accept against
12070         $(LIBSOCKET).
12071         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12072         $(LIBSOCKET).
12073
12074         accept4: Avoid link error on Solaris.
12075         * modules/accept4 (Link): New section.
12076
12077         socket functions: Avoid link errors on Solaris.
12078         * modules/accept (Depends-on): Add socketlib.
12079         (Link): New section.
12080         * modules/bind (Depends-on): Add socketlib.
12081         (Link): New section.
12082         * modules/connect (Depends-on): Add socketlib.
12083         (Link): New section.
12084         * modules/getpeername (Depends-on): Add socketlib.
12085         (Link): New section.
12086         * modules/getsockname (Depends-on): Add socketlib.
12087         (Link): New section.
12088         * modules/getsockopt (Depends-on): Add socketlib.
12089         (Link): New section.
12090         * modules/listen (Depends-on): Add socketlib.
12091         (Link): New section.
12092         * modules/recv (Depends-on): Add socketlib.
12093         (Link): New section.
12094         * modules/recvfrom (Depends-on): Add socketlib.
12095         (Link): New section.
12096         * modules/send (Depends-on): Add socketlib.
12097         (Link): New section.
12098         * modules/sendto (Depends-on): Add socketlib.
12099         (Link): New section.
12100         * modules/setsockopt (Depends-on): Add socketlib.
12101         (Link): New section.
12102         * modules/shutdown (Depends-on): Add socketlib.
12103         (Link): New section.
12104         * modules/socket (Depends-on): Add socketlib.
12105         (Link): New section.
12106
12107 2011-09-18  Bruno Haible  <bruno@clisp.org>
12108
12109         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12110         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12111         than 5 seconds.
12112         * modules/ptsname-tests (configure.ac): Test for alarm.
12113
12114 2011-09-18  Bruno Haible  <bruno@clisp.org>
12115
12116         posix_spawn_file_actions_add*: Fix module dependencies.
12117         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12118         posix_spawn_file_actions_init.
12119         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12120         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12121
12122 2011-09-18  Bruno Haible  <bruno@clisp.org>
12123
12124         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12125         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12126         * tests/test-renameat.c (main): Likewise.
12127
12128 2011-09-18  Bruno Haible  <bruno@clisp.org>
12129
12130         Tests for module 'accept4'.
12131         * modules/accept4-tests: New file.
12132         * tests/test-accept4.c: New file.
12133
12134 2011-09-18  Bruno Haible  <bruno@clisp.org>
12135
12136         Tests for module 'accept'.
12137         * modules/accept-tests: New file.
12138         * tests/test-accept.c: New file.
12139
12140 2011-09-18  Bruno Haible  <bruno@clisp.org>
12141
12142         dup2: Support for MSVC.
12143         * lib/dup2.c: Include msvc-inval.h.
12144         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12145         _get_osfhandle calls.
12146         * modules/dup2 (Depends-on): Add msvc-inval.
12147         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12148
12149         New module 'msvc-inval'.
12150         * lib/msvc-inval.h: New file.
12151         * lib/msvc-inval.c: New file.
12152         * m4/msvc-inval.m4: New file.
12153         * modules/msvc-inval: New file.
12154
12155 2011-09-17  Bruno Haible  <bruno@clisp.org>
12156
12157         Tests for module 'pclose'.
12158         * modules/pclose-tests: New file.
12159
12160         New module 'pclose'.
12161         * lib/stdio.in.h (pclose): New declaration.
12162         * lib/pclose.c: New file.
12163         * m4/pclose.m4: New file.
12164         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12165         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12166         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12167         * modules/pclose: New file.
12168         * modules/popen-tests (Depends-on): Add pclose.
12169         * modules/popen-safer-tests (Depends-on): Likewise.
12170         * doc/posix-functions/pclose.texi: Mention the new module.
12171
12172 2011-09-17  Bruno Haible  <bruno@clisp.org>
12173
12174         popen: Support for MSVC.
12175         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12176         * lib/popen.c (popen): Provide alternate definition for native Windows.
12177         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12179         * modules/popen (Depends-on, configure.ac): Update condition.
12180         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12181         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12182         fixed.
12183
12184 2011-09-17  Bruno Haible  <bruno@clisp.org>
12185
12186         isnanl, isnand, isnanf: Work around MSVC bug.
12187         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12188
12189 2011-09-17  Bruno Haible  <bruno@clisp.org>
12190
12191         sys_socket tests: Fix recent mistake.
12192         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12193
12194 2011-09-17  Bruno Haible  <bruno@clisp.org>
12195
12196         putenv: Support for MSVC.
12197         * modules/putenv (Depends-on): Add environ.
12198         * lib/putenv.c (environ): Disable declaration.
12199         * lib/unistd.in.h: Update comment.
12200
12201 2011-09-17  Bruno Haible  <bruno@clisp.org>
12202
12203         math: Avoid macro redefinition warnings on MSVC.
12204         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12205         Undefine before redefining.
12206
12207 2011-09-17  Bruno Haible  <bruno@clisp.org>
12208
12209         doc: Mention functions which are declared as macros.
12210         * doc/posix-functions/*[fl].texi: Mention that some functions are
12211         defined as macros with arguments only.
12212
12213 2011-09-17  Bruno Haible  <bruno@clisp.org>
12214
12215         Add dependencies to new dirent related modules.
12216         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12217         * modules/fts (Depends-on): Likewise.
12218         * modules/glob (Depends-on): Likewise.
12219         * modules/savedir (Depends-on): Likewise.
12220         * modules/scandir (Depends-on): Likewise.
12221         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12222         * modules/fdopendir (Depends-on): Add opendir.
12223
12224 2011-09-17  Bruno Haible  <bruno@clisp.org>
12225
12226         inet_pton: Support for MSVC on Windows Vista or newer.
12227         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12228         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12229         HAVE_DECL_INET_PTON is defined.
12230         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12231         On platforms with <winsock2.h>, test whether inet_pton is declared in
12232         <ws2tcpip.h>. If so, arrange to replace it.
12233         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12234         REPLACE_INET_PTON.
12235         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12236         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12237         (Depends-on, configure.ac): Update condition.
12238         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12239
12240 2011-09-17  Bruno Haible  <bruno@clisp.org>
12241
12242         inet_ntop: Support for MSVC on Windows Vista or newer.
12243         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12244         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12245         HAVE_DECL_INET_NTOP is defined.
12246         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12247         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12248         <ws2tcpip.h>. If so, arrange to replace it.
12249         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12250         REPLACE_INET_NTOP.
12251         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12252         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12253         (Depends-on, configure.ac): Update condition.
12254         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12255
12256 2011-09-16  Eric Blake  <eblake@redhat.com>
12257
12258         test-fsync: yet another enhancement
12259         * tests/test-fsync.c (main): Also test behavior on read-only text
12260         file.
12261
12262 2011-09-16  Bruno Haible  <bruno@clisp.org>
12263
12264         Enhance fsync, fdatasync tests.
12265         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12266         * tests/test-fdatasync.c (main): Likewise.
12267
12268 2011-09-16  Bruno Haible  <bruno@clisp.org>
12269
12270         Support for MSVC compiler: Ensure mode_t gets defined.
12271         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12272         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12273         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12274         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12275         * tests/test-fcntl-h.c: Check that mode_t is defined.
12276         * tests/test-sys_stat.c: Likewise.
12277         * tests/test-sys_types.c: Likewise.
12278         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12279         * doc/posix-headers/sys_stat.texi: Likewise.
12280         * doc/posix-headers/sys_types.texi: Likewise.
12281
12282 2011-09-16  Bruno Haible  <bruno@clisp.org>
12283
12284         sys_stat: Support for MSVC.
12285         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12286         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12287         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12288         MSVC.
12289
12290 2011-09-16  Bruno Haible  <bruno@clisp.org>
12291
12292         Support for MSVC compiler: Ensure off_t gets defined.
12293         * lib/unistd.in.h: Include <sys/types.h>.
12294         * tests/test-fcntl-h.c: Check that off_t is defined.
12295         * tests/test-sys_stat.c: Likewise.
12296         * tests/test-sys_types.c: Likewise.
12297
12298 2011-09-16  Eric Blake  <eblake@redhat.com>
12299
12300         fdatasync: port to Solaris
12301         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12302         * modules/fdatasync (Link): Document it.
12303         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12304
12305         fdatasync: port to MacOS X 10.7
12306         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12307         declared.
12308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12309         * modules/unistd (Makefile.am): Substitute it.
12310         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12311         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12312
12313         fdatasync: minor improvements
12314         * modules/fdatasync (Depends-on): Add condition for fsync.
12315         * lib/fdatasync.c (fdatasync): Add comment.
12316         * tests/test-unistd-c++.cc: Test fdatasync.
12317
12318         unistd: update refs to newer POSIX
12319         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12320         Suggested by Bruno Haible.
12321
12322         fdatasync: new module
12323         * modules/fsync (Description): Document difference to fdatasync.
12324         * modules/fdatasync: New module.
12325         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12326         * lib/fdatasync.c (fdatasync): Likewise.
12327         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12328         defaults.
12329         * modules/unistd (Makefile.am): Set witnesses.
12330         * lib/unistd.in.h (fdatasync): Declare.
12331         * MODULES.html.sh: Document it.
12332         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12333         * modules/fdatasync-tests: New test.
12334         * tests/test-fdatasync.c: Likewise.
12335
12336 2011-09-16  Eric Blake  <eblake@redhat.com>
12337
12338         test-fsync: enhance tests
12339         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12340         * tests/test-fsync.c (main): Enhance test.
12341
12342 2011-09-15  Bruno Haible  <bruno@clisp.org>
12343
12344         Support for MSVC compiler: Ensure ssize_t gets defined.
12345         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12346         * doc/posix-headers/stdio.texi: Likewise.
12347         * modules/stdio (Depends-on): Add ssize_t.
12348         * modules/sys_socket (Depends-on): Likewise.
12349         * modules/sys_types (Depends-on): Likewise.
12350         * modules/sys_uio (Depends-on): Likewise.
12351         * modules/unistd (Depends-on): Likewise.
12352         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12353         * tests/test-sys_types.c: Check that ssize_t is defined.
12354
12355 2011-09-14  Bruno Haible  <bruno@clisp.org>
12356
12357         Avoid using #, the m4 comment starter character, near brackets.
12358         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12359         delimiter character in sed expressions.
12360         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12361         Suggested by Eric Blake.
12362
12363         Properly quote AC_CHECK_DECLS' 4th argument.
12364         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12365         argument.
12366         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12367         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12368         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12369         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12370         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12371         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12372         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12373         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12374         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12375         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12376         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12377         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12378         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12379         * m4/isinf.m4 (gl_ISINF): Likewise.
12380         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12381         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12382         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12383         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12384         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12385         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12386         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12387         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12388         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12389         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12390         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12391         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12392         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12393         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12394         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12395         Reported by Eric Blake.
12396
12397         Properly quote AC_CHECK_DECL's 4th argument.
12398         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12399         argument.
12400         * m4/argp.m4 (gl_ARGP): Likewise.
12401         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12402         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12403         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12404         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12405         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12406         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12407         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12408         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12409         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12410         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12411         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12412         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12413         Reported by Eric Blake.
12414
12415 2011-09-14  Eric Blake  <eblake@redhat.com>
12416
12417         opendir: avoid compile warning
12418         * lib/opendir.c (includes): Always include errno.h.
12419         Reported by Tatsuro MATSUOKA.
12420
12421 2011-09-14  Jim Meyering  <meyering@redhat.com>
12422
12423         maint.mk: sc_tight_scope: propagate failure from sub-make
12424         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12425         Reported by Martin von Gagern.
12426
12427 2011-09-13  Bruno Haible  <bruno@clisp.org>
12428
12429         tempname: Support for MSVC.
12430         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12431         MSVC.
12432         * modules/tempname (Depends-on): Add fcntl-h.
12433
12434 2011-09-13  Bruno Haible  <bruno@clisp.org>
12435
12436         sys_time: Support for MSVC.
12437         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12438         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12439         include <winsock2.h>.
12440         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12441         function declarations that collide with POSIX.
12442         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12443         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12444
12445 2011-09-13  Bruno Haible  <bruno@clisp.org>
12446
12447         stat: Support for MSVC.
12448         * lib/stat.c: Include pathmax.h.
12449         * modules/stat (Depends-on): Add pathmax.
12450
12451         pathmax: Support for native Windows.
12452         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12453
12454 2011-09-12  Bruno Haible  <bruno@clisp.org>
12455
12456         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12457         * lib/dirent.in.h (struct dirent): New type.
12458         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12459         DT_WHT): New macros.
12460         (DIR): New type.
12461         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12462         (readdir, rewinddir): New declarations.
12463         * lib/dirent-private.h: New file.
12464         * lib/opendir.c: New file.
12465         * lib/readdir.c: New file.
12466         * lib/rewinddir.c: New file.
12467         * lib/closedir.c: New file.
12468         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12469         * m4/opendir.m4: New file.
12470         * m4/readdir.m4: New file.
12471         * m4/rewinddir.m4: New file.
12472         * m4/closedir.m4: New file.
12473         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12474         REPLACE_CLOSEDIR here.
12475         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12476         readdir, rewinddir are declared.
12477         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12478         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12479         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12480         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12481         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12482         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12483         * modules/opendir: New file.
12484         * modules/readdir: New file.
12485         * modules/rewinddir: New file.
12486         * modules/closedir: New file.
12487         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12488         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12489         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12490         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12491         * NEWS: Mention the 'fchdir' change.
12492
12493 2011-09-11  Bruno Haible  <bruno@clisp.org>
12494
12495         asm-underscore.m4: Support for MSVC.
12496         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12497         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12498
12499 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12500
12501         Doc about crypt functions.
12502         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12503         needing for _GNU_SOURCE to get crypt.
12504         * doc/posix-functions/encrypt.texi: Likewise.
12505         * doc/posix-functions/setkey.texi: Likewise.
12506
12507 2011-09-11  Bruno Haible  <bruno@clisp.org>
12508
12509         doc: Update regarding MSVC 9.
12510         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12511         tested".
12512         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12513         * doc/posix-headers/*.texi: Likewise.
12514         * doc/pastposix-functions/*.texi: Likewise.
12515         * doc/glibc-functions/*.texi: Likewise.
12516         * doc/glibc-headers/*.texi: Likewise.
12517
12518 2011-09-11  Bruno Haible  <bruno@clisp.org>
12519
12520         unistd et al.: Don't assume <unistd.h> exists.
12521         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12522         does not exist.
12523         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12524         exist. But include <stdlib.h>.
12525         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12526         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12527         symlink() does not exist.
12528         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12529         include <io.h> instead.
12530         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12531         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12532         include <direct.h> instead.
12533         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12534         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12535         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12536         <io.h> instead.
12537         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12538         correctly if the system does not have hard links.
12539         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12540         <direct.h> instead.
12541         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12542         it when looking for function declarations.
12543         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12544         <direct.h> and <io.h> instead.
12545         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12546
12547 2011-09-11  Bruno Haible  <bruno@clisp.org>
12548
12549         strcase: Support for MSVC.
12550         * modules/strcase (Status, Notice): Remove obsoletion mark.
12551         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12552         * doc/posix-functions/strncasecmp.texi: Likewise.
12553
12554         strings: Don't assume <strings.h> exists.
12555         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12556         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12557         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12558         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12559
12560 2011-09-11  Bruno Haible  <bruno@clisp.org>
12561
12562         dirent: Don't assume <dirent.h> exists.
12563         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12564         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12565         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12566         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12567
12568 2011-09-11  Bruno Haible  <bruno@clisp.org>
12569
12570         Fix wint_t on MSVC.
12571         * lib/wchar.in.h (wint_t): On MSVC, override it.
12572         * lib/wctype.in.h (wint_t): Likewise.
12573         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12574         MSVC.
12575         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12576         * doc/posix-headers/wctype.texi: Likewise.
12577
12578 2011-09-11  Bruno Haible  <bruno@clisp.org>
12579
12580         sys_types: Fix typo.
12581         * lib/sys_types.in.h: Fix typo in comment.
12582         Reported by Paul Eggert.
12583
12584         Support for MSVC compiler: Ensure size_t gets defined.
12585         * modules/strings (Depends-on): Add 'sys_types'.
12586         * modules/sys_uio (Depends-on): Likewise.
12587         * lib/sys_uio.in.h: Update comment.
12588
12589         C++ tests for module 'sys_types'.
12590         * modules/sys_types-c++-tests: New file.
12591         * tests/test-sys_types-c++.cc: New file.
12592
12593         Tests for module 'sys_types'.
12594         * modules/sys_types-tests: New file.
12595         * tests/test-sys_types.c: New file.
12596
12597         New module 'sys_types'.
12598         * lib/sys_types.in.h: New file.
12599         * m4/sys_types_h.m4: New file.
12600         * modules/sys_types: New file.
12601         * doc/posix-headers/sys_types.texi: Mention the new module and the
12602         size_t problem on MSVC 9.
12603
12604 2011-09-11  Bruno Haible  <bruno@clisp.org>
12605
12606         Support for MSVC compiler: Avoid division by a literal 0.
12607         * lib/math.in.h (NAN): Define through a function call also on MSVC.
12608         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
12609         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
12610         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
12611         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
12612         * tests/infinity.h: New file.
12613         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
12614         on MSVC.
12615         * tests/test-ceilf1.c: Include infinity.h.
12616         (main): Use Infinityf.
12617         * tests/test-ceil1.c: Include infinity.h.
12618         (main): Use Infinityd.
12619         * tests/test-ceill.c: Include infinity.h.
12620         (main): Use Infinityl.
12621         * tests/test-dprintf-posix.c: Include infinity.h.
12622         (test_function): Use Infinityd.
12623         * tests/test-floorf1.c: Include infinity.h.
12624         (main): Use Infinityf.
12625         * tests/test-floor1.c: Include infinity.h.
12626         (main): Use Infinityd.
12627         * tests/test-floorl.c: Include infinity.h.
12628         (main): Use Infinityl.
12629         * tests/test-fprintf-posix.c: Include infinity.h.
12630         (test_function): Use Infinityd.
12631         * tests/test-frexp.c: Include infinity.h.
12632         (main): Use Infinityd.
12633         * tests/test-frexpl.c: Include infinity.h.
12634         (main): Use Infinityl.
12635         * tests/test-isfinite.c: Include infinity.h.
12636         (test_isfinitef): Use Infinityf.
12637         (test_isfinited): Use Infinityd.
12638         (test_isfinitel): Use Infinityl.
12639         * tests/test-isinf.c: Include infinity.h.
12640         (test_isinff): Use Infinityf.
12641         (test_isinfd): Use Infinityd.
12642         (test_isinfl): Use Infinityl.
12643         * tests/test-isnan.c: Include infinity.h.
12644         (test_float): Use Infinityf.
12645         (test_double): Use Infinityd.
12646         (test_long_double): Use Infinityl.
12647         * tests/test-isnanf.h: Include infinity.h.
12648         (main): Use Infinityf.
12649         * tests/test-isnand.h: Include infinity.h.
12650         (main): Use Infinityd.
12651         * tests/test-isnanl.h: Include infinity.h.
12652         (main): Use Infinityl.
12653         * tests/test-ldexpl.c: Include infinity.h.
12654         (main): Use Infinityl.
12655         * tests/test-printf-posix.h: Include infinity.h.
12656         (test_function): Use Infinityd.
12657         * tests/test-roundf1.c: Include infinity.h.
12658         (main): Use Infinityf.
12659         * tests/test-round1.c: Include infinity.h.
12660         (main): Use Infinityd.
12661         * tests/test-roundl.c: Include infinity.h.
12662         (main): Use Infinityl.
12663         * tests/test-signbit.c: Include infinity.h.
12664         (test_signbitf): Use Infinityf.
12665         (test_signbitd): Use Infinityd.
12666         (test_signbitl): Use Infinityl.
12667         * tests/test-snprintf-posix.h: Include infinity.h.
12668         (test_function): Use Infinityd, Infinityl.
12669         * tests/test-sprintf-posix.h: Include infinity.h.
12670         (test_function): Use Infinityd, Infinityl.
12671         * tests/test-truncf1.c: Include infinity.h.
12672         (main): Use Infinityf.
12673         * tests/test-trunc1.c: Include infinity.h.
12674         (main): Use Infinityd.
12675         * tests/test-truncl.c: Include infinity.h.
12676         (main): Use Infinityl.
12677         * tests/test-vasnprintf-posix.c: Include infinity.h.
12678         (test_function): Use Infinityd, Infinityl.
12679         * tests/test-vasprintf-posix.c: Include infinity.h.
12680         (test_function): Use Infinityd, Infinityl.
12681         * modules/ceilf-tests (Files): Add tests/infinity.h.
12682         * modules/ceil-tests (Files): Likewise.
12683         * modules/ceill-tests (Files): Likewise.
12684         * modules/dprintf-posix-tests (Files): Likewise.
12685         * modules/floorf-tests (Files): Likewise.
12686         * modules/floor-tests (Files): Likewise.
12687         * modules/floorl-tests (Files): Likewise.
12688         * modules/fprintf-posix-tests (Files): Likewise.
12689         * modules/frexp-tests (Files): Likewise.
12690         * modules/frexp-nolibm-tests (Files): Likewise.
12691         * modules/frexpl-tests (Files): Likewise.
12692         * modules/frexpl-nolibm-tests (Files): Likewise.
12693         * modules/isfinite-tests (Files): Likewise.
12694         * modules/isinf-tests (Files): Likewise.
12695         * modules/isnan-tests (Files): Likewise.
12696         * modules/isnanf-tests (Files): Likewise.
12697         * modules/isnanf-nolibm-tests (Files): Likewise.
12698         * modules/isnand-tests (Files): Likewise.
12699         * modules/isnand-nolibm-tests (Files): Likewise.
12700         * modules/isnanl-tests (Files): Likewise.
12701         * modules/isnanl-nolibm-tests (Files): Likewise.
12702         * modules/ldexpl-tests (Files): Likewise.
12703         * modules/printf-posix-tests (Files): Likewise.
12704         * modules/roundf-tests (Files): Likewise.
12705         * modules/round-tests (Files): Likewise.
12706         * modules/roundl-tests (Files): Likewise.
12707         * modules/signbit-tests (Files): Likewise.
12708         * modules/snprintf-posix-tests (Files): Likewise.
12709         * modules/sprintf-posix-tests (Files): Likewise.
12710         * modules/truncf-tests (Files): Likewise.
12711         * modules/trunc-tests (Files): Likewise.
12712         * modules/truncl-tests (Files): Likewise.
12713         * modules/vasnprintf-posix-tests (Files): Likewise.
12714         * modules/vasprintf-posix-tests (Files): Likewise.
12715         * modules/vdprintf-posix-tests (Files): Likewise.
12716         * modules/vfprintf-posix-tests (Files): Likewise.
12717         * modules/vprintf-posix-tests (Files): Likewise.
12718         * modules/vsnprintf-posix-tests (Files): Likewise.
12719         * modules/vsprintf-posix-tests (Files): Likewise.
12720         * modules/xprintf-posix-tests (Files): Likewise.
12721
12722 2011-09-11  Bruno Haible  <bruno@clisp.org>
12723
12724         Ensure pid_t gets defined.
12725         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
12726         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12727         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12728         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12729         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12730         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12731         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12732         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12733         * tests/test-fcntl-h.c: Check that pid_t is defined.
12734         * tests/test-sched.c: Likewise.
12735         * tests/test-termios.c: Likewise.
12736         * tests/test-time.c: Likewise.
12737         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
12738         * doc/posix-headers/signal.texi: Likewise.
12739         * doc/posix-headers/sys_types.texi: Likewise.
12740         * doc/posix-headers/time.texi: Likewise.
12741
12742 2011-09-11  Bruno Haible  <bruno@clisp.org>
12743
12744         acl: Fix compilation on Solaris 10 (older version).
12745         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
12746         of ACE_EVERYONE.
12747         * lib/set-mode-acl.c (qset_acl): Likewise.
12748         Reported by Christian Jullien <eligis@orange.fr>.
12749
12750 2011-09-10  Bruno Haible  <bruno@clisp.org>
12751
12752         iconv, unsetenv: Add support for MSVC compiler.
12753         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
12754         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
12755
12756 2011-09-10  Bruno Haible  <bruno@clisp.org>
12757
12758         *printf: Add support for MSVC compiler.
12759         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
12760         handles the exception caused by the %n directive. When cross-compiling,
12761         guess no on native Windows.
12762         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12763         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
12764         emulate it through vsnprintf.
12765         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
12766         * doc/posix-functions/dprintf.texi: Update documentation regarding
12767         MSVC 9.
12768         * doc/posix-functions/fprintf.texi: Likewise.
12769         * doc/posix-functions/printf.texi: Likewise.
12770         * doc/posix-functions/snprintf.texi: Likewise.
12771         * doc/posix-functions/sprintf.texi: Likewise.
12772         * doc/posix-functions/swprintf.texi: Likewise.
12773         * doc/posix-functions/vdprintf.texi: Likewise.
12774         * doc/posix-functions/vfprintf.texi: Likewise.
12775         * doc/posix-functions/vprintf.texi: Likewise.
12776         * doc/posix-functions/vsnprintf.texi: Likewise.
12777         * doc/posix-functions/vsprintf.texi: Likewise.
12778         * doc/glibc-functions/asprintf.texi: Likewise.
12779         * doc/glibc-functions/obstack_printf.texi: Likewise.
12780         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12781         * doc/glibc-functions/vasprintf.texi: Likewise.
12782
12783 2011-09-10  Bruno Haible  <bruno@clisp.org>
12784
12785         nocrash: Add support for native Windows.
12786         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
12787
12788 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
12789             Bruno Haible  <bruno@clisp.org>
12790
12791         absolute-header, include-next: Add support for MSVC compiler.
12792         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
12793         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
12794         directory separator in #line directives.
12795         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
12796         recognize also backslash as directory separator in #line directives.
12797
12798 2011-09-08  Jim Meyering  <meyering@redhat.com>
12799
12800         maint.mk: mark the post-release commit log with "maint: " prefix
12801         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
12802         one-line commit-log summary.
12803
12804 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
12805             Bruno Haible  <bruno@clisp.org>
12806
12807         Doc about crypt functions.
12808         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
12809         systems.
12810         * doc/posix-functions/encrypt.texi: Likewise.
12811         * doc/posix-functions/setkey.texi: Likewise.
12812
12813 2011-09-08  Simon Josefsson  <simon@josefsson.org>
12814
12815         * lib/gc.h: Fix copyright header.
12816
12817 2011-09-07  Bruno Haible  <bruno@clisp.org>
12818
12819         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
12820         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
12821         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
12822
12823 2011-09-07  Bruno Haible  <bruno@clisp.org>
12824
12825         openat: Work around compilation error with OSF/1 5.1 DTK cc.
12826         * lib/fopen.c: Use different syntax for include of <stdio.h>.
12827         * lib/freopen.c: Likewise.
12828         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
12829         * lib/lstat.c: Likewise.
12830         * lib/stat.c: Likewise.
12831         * lib/open.c: Use different syntax for include of <fcntl.h>.
12832         * lib/openat.c: Include fcntl.h again, explicitly.
12833
12834 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
12835
12836         parse-datetime: document the newly accepted format
12837         * doc/parse-datetime.texi (Combined date and time of day items):
12838         New section.
12839
12840 2011-09-06  Bruno Haible  <bruno@clisp.org>
12841
12842         acl: Fix a test failure on newer Solaris 10 with ZFS.
12843         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
12844         ENOSYS as no ACL.
12845         Reported by Jim Meyering.
12846
12847 2011-09-06  Bruno Haible  <bruno@clisp.org>
12848
12849         acl: Update for AIX >= 5.3 with NFS.
12850         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
12851         ENOSYS as no ACL.
12852
12853         acl: Fix a test failure on AIX >= 5.3 with NFS.
12854         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
12855         as no ACL.
12856
12857 2011-09-06  Bruno Haible  <bruno@clisp.org>
12858
12859         acl: Fix a test failure on IRIX 6.5 with NFS.
12860         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
12861         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
12862         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
12863         * lib/copy-acl.c (qcopy_acl): Likewise.
12864
12865 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
12866
12867         openat: port to AIX 7.1 with large files
12868         AIX 7.1 does a "#define openat open64at" if large files are in use,
12869         so we can't simply #undef openat.  Use the orig_openat trick (similar
12870         to orig_open in lib/open.c) to work around the problem.  Problem
12871         reported by Kevin Brott for GNU tar, in the thread containing
12872         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
12873         * lib/openat.c (__need_system_fcntl_h): Define first.
12874         Include <fcntl.h> and <sys/types.h> before undefining.
12875         (orig_openat) [HAVE_OPENAT]: New inline function.
12876         (openat) [HAVE_OPENAT]: Do not undef.
12877         (rpl_openat): Use orig_openat, not openat.
12878
12879 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12880             Bruno Haible  <bruno@clisp.org>
12881
12882         acl: Avoid errors on NonStop Kernel.
12883         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
12884         ENOTSUP errors.
12885
12886 2011-09-05  Bruno Haible  <bruno@clisp.org>
12887
12888         acl: Clean up Solaris code.
12889         * lib/acl-internal.h: Remove no-op #if.
12890         * lib/file-has-acl.c: Likewise.
12891         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
12892         * lib/copy-acl.c (qcopy_acl): Likewise.
12893
12894 2011-09-05  Bruno Haible  <bruno@clisp.org>
12895
12896         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
12897         binaries built on the original Solaris 10.
12898         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
12899         trivial.
12900
12901 2011-09-05  Bruno Haible  <bruno@clisp.org>
12902
12903         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12904         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
12905         10.
12906         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
12907         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
12908         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
12909         instead of acl_get, facl_get, acl_set, facl_set.
12910
12911 2011-09-05  Bruno Haible  <bruno@clisp.org>
12912
12913         copy-file: Try unit tests on more file systems.
12914         * tests/test-copy-file-1.sh: New file.
12915         * tests/test-copy-file-2.sh: New file.
12916         * modules/copy-file-tests (Files): Add them.
12917         (Makefile.am): Add them to TESTS.
12918
12919         acl: Try unit tests on more file systems.
12920         * tests/test-file-has-acl-1.sh: New file.
12921         * tests/test-file-has-acl-2.sh: New file.
12922         * tests/test-set-mode-acl-1.sh: New file.
12923         * tests/test-set-mode-acl-2.sh: New file.
12924         * tests/test-copy-acl-1.sh: New file.
12925         * tests/test-copy-acl-2.sh: New file.
12926         * modules/acl-tests (Files): Add them.
12927         (Makefile.am): Add them to TESTS.
12928
12929 2011-09-04  Bruno Haible  <bruno@clisp.org>
12930
12931         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12932         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
12933         10.
12934         (OLD_ALLOW, OLD_DENY): New macros.
12935         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
12936         ACE_ACCESS_ALLOWED_ACE_TYPE.
12937         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
12938         ACE_ACCESS_DENIED_ACE_TYPE.
12939         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
12940         (NEW_ACE_EXECUTE): Fix value.
12941         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
12942         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
12943         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
12944         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
12945         NEW_ACE_SYNCHRONIZE): New macros.
12946         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
12947         instead of acl_fromtext, acl_set, facl_set.
12948         Fixes a coreutils/tests/cp/perm failure.
12949
12950 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
12951
12952         openat: test for fstatat (..., 0) bug
12953         Further testing with tar suggests that fstatat (..., 0)
12954         does not work in general, on AIX 7.1; see
12955         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
12956         So, give up entirely on AIX 7.1's fstatat, and fall back on our
12957         replacement fstatat (which is what older AIX releases were using
12958         anyway).
12959         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
12960         use is now changed to orig_fstatat.  This was probably the right
12961         thing to do anyway.
12962         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
12963         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
12964         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
12965         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
12966         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
12967         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
12968         if the bug is found.
12969
12970         openat: test for fstatat (AT_FDCWD, ..., 0) bug
12971         This tests for another fstatat bug on AIX 7.1:
12972         fstatat (AT_FDCWD, ..., 0) does not work.  See
12973         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
12974         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
12975         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
12976         (rpl_fstatat): Adjust so that it works around either (or both)
12977         bugs if present.
12978         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
12979
12980 2011-09-03  Karl Berry  <karl@gnu.org>
12981
12982         * doc/regex.texi (Character Class Operators): Avoid literal ":"
12983         in index entries.
12984
12985 2011-09-02  Bruno Haible  <bruno@clisp.org>
12986
12987         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
12988         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
12989         values of AR, ARFLAGS, RANLIB.
12990         Reported by John W. Eaton <jwe@gnu.org> for Octave.
12991
12992 2011-09-02  Bruno Haible  <bruno@clisp.org>
12993
12994         Find 'ar' program that fits with --host argument.
12995         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
12996
12997 2011-09-02  Bruno Haible  <bruno@clisp.org>
12998
12999         tests: init.sh: Support any non-GNU diff.
13000         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13001         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13002         Solaris 8.
13003
13004 2011-09-02  Bruno Haible  <bruno@clisp.org>
13005
13006         tests: init.sh: work also with any non-GNU diff that supports -u
13007         * tests/init.sh: Relax check for diff -u support.
13008         Rather than checking for GNU diff via --version, simply check
13009         for support for -u itself.  Useful at least on OpenBSD 4.9,
13010         AIX 7.1, IRIX 6.5, and Solaris 10.
13011
13012 2011-09-01  Bruno Haible  <bruno@clisp.org>
13013
13014         strtoimax, strtoumax: Document problem on HP-UX 11.
13015         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13016         * doc/posix-functions/strtoumax.texi: Likewise.
13017
13018 2011-09-01  Bruno Haible  <bruno@clisp.org>
13019
13020         strtoumax: Avoid link error on OSF/1 with DTK cc.
13021         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13022         defined as a function.
13023         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13024         strtoumax is defined, not whether it is declared.
13025
13026 2011-09-01  Bruno Haible  <bruno@clisp.org>
13027
13028         strtoimax: Avoid link error on OSF/1 with DTK cc.
13029         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13030         defined as a function.
13031         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13032         strtoimax is defined, not whether it is declared.
13033
13034 2011-09-01  Bruno Haible  <bruno@clisp.org>
13035
13036         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13037         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13038         as a function.
13039         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13040         whether it is declared.
13041
13042 2011-09-01  Bruno Haible  <bruno@clisp.org>
13043
13044         imaxabs: Avoid link error on OSF/1 with DTK cc.
13045         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13046         as a function.
13047         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13048         whether it is declared.
13049
13050 2011-09-01  Bruno Haible  <bruno@clisp.org>
13051
13052         Tests for module 'strtoumax'.
13053         * modules/strtoumax-tests: New file.
13054         * tests/test-strtoumax.c: New file.
13055
13056         Tests for module 'strtoimax'.
13057         * modules/strtoimax-tests: New file.
13058         * tests/test-strtoimax.c: New file.
13059
13060         Tests for module 'imaxdiv'.
13061         * modules/imaxdiv-tests: New file.
13062         * tests/test-imaxdiv.c: New file.
13063
13064         Tests for module 'imaxabs'.
13065         * modules/imaxabs-tests: New file.
13066         * tests/test-imaxabs.c: New file.
13067
13068 2011-09-01  Bruno Haible  <bruno@clisp.org>
13069
13070         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13071         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13072         pthread_create.
13073
13074 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13075
13076         openat: work around AIX 7.1 fstatat issue
13077         This should fix the problem that was not properly fixed
13078         in the previous change, dated 2011-08-30.
13079         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13080         __need_system_stat_h defined.
13081         (orig_fstatat) [HAVE_FSTATAT]: New function.
13082         (rpl_fstatat): Go back to the old way of doing things,
13083         except call orig_fstatat instead of fstatat.
13084         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13085         Remove unnecessary check whether fstatat fills in st_size etc.
13086
13087 2011-09-01  Bruno Haible  <bruno@clisp.org>
13088
13089         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13090         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13091         just include the system's header.
13092
13093 2011-08-31  Jim Meyering  <meyering@redhat.com>
13094
13095         tests: avoid spurious assertion failure in test-float.c on ppc64
13096         * tests/test-float.c (test_long_double): Comment out an assertion,
13097         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13098         with gcc-4.4.4.
13099
13100         maint: indent with spaces, not TABs
13101         I need to get in the habit of running gnulib's "make check".
13102         Both of these would have been caught.
13103         * m4/largefile.m4: Indent with spaces, not TABs.
13104         * lib/parse-datetime.y (iso_8601_time): Likewise.
13105         Spotted by Pádraig Brady.
13106
13107         test-parse-datetime.c: accommodate a relatively strict gcc warning
13108         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13109         to avoid a warning from gcc's -Werror=missing-declarations.
13110         Insert a few spaces-before-funcall-parenthesis.
13111
13112 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13113
13114         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13115         The parser now accepts ISO 8601 date-time strings with "T" as the
13116         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13117         with a space between the date and time strings.  Now it also parses
13118         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13119         variants like "2004-02-29T16:21:42.333-07:00"
13120         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13121         of day representation using the 'T' separator character.
13122         * doc/parse-datetime.texi (General date syntax): replace use of
13123         deprecated --iso-8601 option with --rfc-3339 in example of date
13124         command output formats that can be parsed.
13125         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13126         lib/parse-datetime.y.
13127         (gmt_offset): New function.
13128         (main): Add additional test cases to validate ISO8601 extended
13129         date and time of day parsing.
13130
13131 2011-08-31  Bruno Haible  <bruno@clisp.org>
13132
13133         freopen: Documentation.
13134         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13135         name.
13136         Reported by Claudio Bley <claudio.bley@gmail.com>.
13137
13138 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13139
13140         freopen: Don't crash if the filename argument is NULL.
13141         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13142         NULL.
13143
13144 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13145
13146         openat: work around AIX 7.1 fstatat bug
13147         Problem reported by Kevin Brott for GNU tar, in the thread containing
13148         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13149         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13150         FSTATAT_ST_SIZE_ETC_BROKEN.
13151         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13152         rpl_fstatat.
13153         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13154         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13155         AC_CHECK_FUNCS_ONCE for fstatat.
13156         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13157         fchmodat, mkdirat, openat and unlinkat.
13158
13159 2011-08-30  Bruno Haible  <bruno@clisp.org>
13160
13161         Avoid endless recursions if config.h includes some header files.
13162         * lib/fopen.c (__need_FILE): Define already before including config.h.
13163         * lib/freopen.c (__need_FILE): Likewise.
13164         * lib/open.c (__need_system_fcntl_h): Likewise.
13165         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13166         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13167         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13168
13169 2011-08-25  Karl Berry  <karl@gnu.org>
13170
13171         * config/srclist.txt (ylwrap): new try.
13172         * build-aux/ylwrap: new file.
13173
13174 2011-08-23  Bruno Haible  <bruno@clisp.org>
13175
13176         tmpdir: Use a good default directory on native Windows.
13177         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13178         (P_tmpdir): Default to _P_tmpdir on native Windows.
13179         (path_search): On native Windows, try the value returned by GetTempPath
13180         before trying P_tmpdir.
13181         * modules/tmpdir (Depends-on): Add pathmax.
13182         Suggested by John Darrington <john@darrington.wattle.id.au>.
13183
13184 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13185
13186         doc: fix typo in README-release
13187         * top/README-release: Capitalize first word of a sentence.
13188
13189 2011-08-19  Jim Meyering  <meyering@redhat.com>
13190
13191         fts: do not exhaust memory when processing million-entry directories
13192         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13193         directory would require about 256*N bytes of memory.  Thus, it was
13194         easy to construct a directory too large to be processed by any of
13195         those tools.  With this change, fts' maximum memory utilization is
13196         now limited to around 30MB.
13197         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13198         (fts_read): When we've processed the final entry (i.e., when
13199         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13200         using the parent entry to read any remaining entries.  Dispatch
13201         depending on what fts_build returns:
13202         - NULL+stop, aka failure: stop
13203         - NULL otherwise: move up in the dir hierarchy
13204         - non-NULL: handle this new entry
13205         (fts_build): Declare and use new local, continue_readdir.
13206         Prepare to be called from fts_read, when the entries
13207         from a partially-read directory have just been exhausted.
13208         In that case, we'll skip the opendir and instead use the parent's
13209         fts_dirp and derive dir_fd from that.
13210         Finally, in the readdir loop, if we read max_entries entries,
13211         exit the loop ensuring *not* to call closedir.  This is required
13212         so that fts_dirp can be reused on a subsequent call.
13213         Prompted by Ben England's report of memory exhaustion in find
13214         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13215
13216         maint: fts: move decl of `dp' down into while loop; split a long line
13217         * lib/fts.c (fts_build): No semantic change.
13218
13219         fts: add/use new struct member, fts_dirp
13220         We are about to use this to manage any directory with
13221         too many entries to read all of them into memory at once.
13222         To do that, we'll need to save the DIR* pointer in each
13223         affected FTSENT struct.
13224         * lib/fts_.h: Include <dirent.h>.
13225         (struct FTSENT) [fts_dirp]: New member.
13226         * lib/fts.c (closedir_and_clear): Define.
13227         Use it in place of closedir so that we are sure to
13228         clear the new fts_dirp member when done with it.
13229         (fts_alloc): Initialize the new member.
13230         (fts_lfree): Free, if needed.
13231
13232         maint: fts: give __opendir2 a new parameter and rename
13233         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13234         than surreptitiously using sole caller's "dir_fd".
13235         (fts_opendir): Rename from __opendir2.
13236
13237         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13238         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13239
13240         maint: fts.c: correct off-by-one indentation
13241         * lib/fts.c (fts_build): Correct indentation, change style
13242         of a couple of block comments, and bracing style.
13243
13244         maint: fts.c: move __opendir2 #define "up" out of function body
13245         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13246
13247         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13248         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13249         out for a long time and besides was useful only on BSD systems.
13250
13251 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13252
13253         regex: port to Stratus OpenVOS
13254         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13255         define to empty, rather than attempting nonportable optimizations.
13256         Problem reported by Paul Green in:
13257         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13258         and fix suggested by Eric Blake in:
13259         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13260
13261 2011-08-17  Eric Blake  <eblake@redhat.com>
13262
13263         getcwd: fix test failures on mingw
13264         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13265         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13266         test if long directory cannot be created, and allow mingw errno.
13267
13268         getcwd-lgpl: fix m4 to match relaxed test for BSD
13269         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13270         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13271         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13272         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13273         signature problem.
13274
13275         getcwd: fix compilation on mingw64
13276         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13277         getcwd.
13278         Reported by Marc-André Lureau.
13279
13280         pipe2: silence compiler warning
13281         * lib/pipe2.c (pipe2): Hide label if it is not used.
13282
13283 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13284
13285         relocatable-prog: fix link error
13286         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13287         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13288         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13289         into modules/relocatable-lib without noticing that
13290         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13291         also needs to build relocatable.c.
13292
13293 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13294
13295         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13296         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13297         shell code: it contained a 'break' that was not in a loop.
13298         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13299         via a shell-language loop; this may have been true in old Autoconf
13300         versions, but it's not true in Autoconf 2.68.  I found this bug
13301         when testing coreutils git on Solaris 8, whose shell complains
13302         about the syntax error.
13303
13304 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13305
13306         * lib/base64.c: Fix comment to reference RFC 4648.
13307         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13308         <gvtulder@gmail.com>.
13309
13310 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13311
13312         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13313
13314         po/Makefile.in.in: fix make -q problem
13315         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13316         rule, since there's no file named 'check-macro-version' and its
13317         use as a file breaks make -q.
13318         (all): Don't depend on check-macro-version.
13319         (CHECK_MACRO_VERSION): New macro.
13320         (stamp-po): Use it.
13321
13322         configmake: fix make -q problem
13323         * modules/configmake (configmake.h): Update configmake.h's time stamp
13324         even if the file does not change.  Otherwise, 'make -q' fails.
13325         Problem reported by Simon Josefsson in
13326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13327
13328 2011-08-11  Jim Meyering  <meyering@redhat.com>
13329
13330         git-version-gen: correct the advice in a comment
13331         * build-aux/git-version-gen: Correct comment.
13332         Don't recommend to list .tarball-version in .gitignore.
13333
13334 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13335
13336         base64: fix off-by-one buffer size bug
13337         Problem and (trivial) fix reported by Gijs van Tulder in
13338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13339         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13340         * tests/test-base64.c (main): Catch the bug.
13341
13342 2011-08-10  Eric Blake  <eblake@redhat.com>
13343
13344         closein: correct comments
13345         * lib/closein.c (close_stdin): Improve comments.
13346
13347 2011-08-09  Bruno Haible  <bruno@clisp.org>
13348
13349         More tests for 'fseeko'.
13350         * tests/test-fseeko3.c: New file, from Eric Blake.
13351         * tests/test-fseeko3.sh: New file.
13352         * modules/fseeko-tests (Files): Add them.
13353         (TESTS): Add test-fseeko3.sh.
13354         (check_PROGRAMS): Add test-fseeko3.
13355
13356 2011-08-09  Eric Blake  <eblake@redhat.com>
13357
13358         fseeko: remove unneeded hack
13359         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13360
13361         fseeko: fix bug on glibc
13362         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13363         Reported by John W. Eaton.
13364
13365 2011-08-08  Bruno Haible  <bruno@clisp.org>
13366
13367         unictype/base: Fix interoperability with preinstalled libunistring.
13368         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13369         Reported by Simon Josefsson.
13370
13371 2011-08-08  Bruno Haible  <bruno@clisp.org>
13372
13373         iswblank: Detect declaration correctly.
13374         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13375         AC_CHECK_DECLS invocation.
13376
13377 2011-08-08  Bruno Haible  <bruno@clisp.org>
13378
13379         tcgetsid: Detect declaration correctly.
13380         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13381         AC_CHECK_DECLS invocation.
13382         Reported by Simon Josefsson.
13383
13384 2011-08-08  Eric Blake  <eblake@redhat.com>
13385
13386         largefile: fix typo that regressed large file support
13387         * modules/largefile (configure.ac-early): Fix section name.
13388
13389 2011-08-06  Karl Berry  <karl@gnu.org>
13390
13391         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13392         a separate module.
13393
13394 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13395
13396         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13397         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13398         get prototype for free.
13399
13400 2011-08-04  Bruno Haible  <bruno@clisp.org>
13401
13402         Tests for module 'pathmax'.
13403         * modules/pathmax-tests: New file.
13404         * tests/test-pathmax.c: New file.
13405
13406         canonicalize-lgpl: Support larger filenames on the Hurd.
13407         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13408         Reported by Paul Eggert.
13409
13410         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13411         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13412         * lib/chdir-long.h: Include pathmax.h.
13413         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13414         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13415         (PATH_MAX): Remove code that is done by pathmax.h.
13416         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13417         * lib/tmpfile.c: Add a comment.
13418         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13419         * modules/chdir-long (Depends-on): Add pathmax.
13420         * modules/getcwd (Depends-on): Add pathmax.
13421         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13422         is not defined.
13423         * doc/posix-headers/limits.texi: Mention the pathmax module.
13424         * NEWS: Mention the change.
13425
13426 2011-08-02  Bruno Haible  <bruno@clisp.org>
13427
13428         pthread_sigmask: Actually use results of gl_THREADLIB.
13429         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13430         gl_THREADLIB, not gl_[]THREADLIB.
13431         Reported by Eric Blake.
13432
13433 2011-08-02  Jim Meyering  <meyering@redhat.com>
13434
13435         maint.mk: relax the default _gl_TS_function_match regexp
13436         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13437         space between function name and "(" in an "extern" declaration.
13438         That would fail to match a decl with no space there: extern void foo();
13439
13440 2011-07-31  Iain Nicol  <iain@thenicols.net>
13441
13442         git-version-gen: document that EXTRA_DIST must include .version
13443         * build-aux/git-version-gen: In the how-to-use comment, document
13444         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13445         will fail when run from an unpacked distribution tarball.
13446
13447 2011-08-01  Bruno Haible  <bruno@clisp.org>
13448
13449         wctype-h: Fix last change.
13450         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13451         REPLACE_TOWLOWER to 0.
13452         Reported by Sam Steingold <sds@gnu.org>.
13453
13454 2011-07-31  Bruno Haible  <bruno@clisp.org>
13455
13456         frexpl: Update autoconf test.
13457         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13458         according to changes of 2011-06-20.
13459
13460 2011-07-31  Bruno Haible  <bruno@clisp.org>
13461
13462         sys_utsname: Add support for Minix.
13463         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13464         <sys/utsname.h>.
13465         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13466         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13467
13468 2011-07-31  Bruno Haible  <bruno@clisp.org>
13469
13470         strings: Add support for Minix.
13471         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13472         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13473         * doc/posix-headers/strings.texi: Document the Minix problem.
13474
13475 2011-07-31  Bruno Haible  <bruno@clisp.org>
13476
13477         wctype-h: Add support for Minix.
13478         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13479         REPLACE_TOWLOWER.
13480         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13481         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13482         REPLACE_ISWCNTRL.
13483
13484 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13485
13486         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13487         This is a performance improvement for 64-bit hosts: it causes the
13488         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13489
13490 2011-07-31  Bruno Haible  <bruno@clisp.org>
13491
13492         stdioext: Add support for Minix.
13493         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13494         * lib/fpurge.c (fpurge): Likewise.
13495         * lib/freadahead.c (freadahead): Likewise.
13496         * lib/freadable.c (freadable): Likewise.
13497         * lib/freading.c (freading): Likewise.
13498         * lib/freadptr.c (freadptr): Likewise.
13499         * lib/freadseek.c (freadptrinc): Likewise.
13500         * lib/fseeko.c (rpl_fseeko): Likewise.
13501         * lib/fseterr.c (fseterr): Likewise.
13502         * lib/fwritable.c (fwritable): Likewise.
13503         * lib/fwriting.c (fwriting): Likewise.
13504         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13505         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13506
13507 2011-07-31  Bruno Haible  <bruno@clisp.org>
13508
13509         errno: Port to Minix.
13510         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13511         ECONNABORTED are defined.
13512         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13513         GNULIB_defined_ECONNABORTED): New macros.
13514         * lib/strerror-override.h (strerror_override): Test also
13515         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13516         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13517         ECONNABORTED.
13518         * doc/posix-headers/errno.texi: Mention the Minix problem.
13519
13520 2011-07-31  Bruno Haible  <bruno@clisp.org>
13521
13522         Work around declaration collisions on Minix.
13523         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13524         defined, set REPLACE_MBSINIT.
13525         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13526         defined, set REPLACE_MBRTOWC.
13527         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13528         set REPLACE_MBRLEN.
13529         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13530         defined, set REPLACE_MBSRTOWCS.
13531         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13532         defined, set REPLACE_WCRTOMB.
13533         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13534         defined, set REPLACE_WCSRTOMBS.
13535
13536 2011-07-31  Bruno Haible  <bruno@clisp.org>
13537
13538         Add support for Minix with ACK compiler.
13539         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13540         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13541         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13542
13543 2011-07-31  Bruno Haible  <bruno@clisp.org>
13544
13545         Documentation about Minix.
13546         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13547         * doc/glibc-headers/*.texi: Likewise.
13548         * doc/posix-functions/*.texi: Likewise.
13549         * doc/glibc-functions/*.texi: Likewise.
13550
13551 2011-07-31  Bruno Haible  <bruno@clisp.org>
13552
13553         snippet/warn-on-use: Fix indentation.
13554         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13555
13556 2011-07-25  Jim Meyering  <meyering@redhat.com>
13557
13558         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13559         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13560         commands.
13561
13562 2011-07-27  Jim Meyering  <meyering@redhat.com>
13563
13564         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13565         * top/maint.mk (gl_extract_significant_defines_): Now that
13566         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13567         gnulib/lib/signal.in.h, and now that we recommend to
13568         define-if-undefined those two symbols in application code,
13569         we must filter them out of the "significant" list.
13570         This avoids a "make syntax-check" failure in coreutils.
13571
13572 2011-07-26  Eric Blake  <eblake@redhat.com>
13573
13574         warnings: add comments about previous patch
13575         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13576         * m4/include_next.m4: Likewise.
13577         * m4/warn-on-use.m4: Likewise.
13578         * m4/warnings.m4: Likewise, and simplify use.
13579         Suggested by Stefano Lattarini.
13580
13581         include-next, warnings: support older autoconf
13582         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13583         AS_VAR_PUSHDEF in a way that works with older autoconf.
13584         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13585         Reported by Daniel P. Berrange.
13586
13587 2011-07-25  Bruno Haible  <bruno@clisp.org>
13588
13589         fseek, ftell: Fix doc.
13590         * doc/posix-functions/fseek.texi: Reword statement about
13591         AC_SYS_LARGEFILE.
13592         * doc/posix-functions/ftell.texi: Likewise.
13593
13594 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13595             Bruno Haible  <bruno@clisp.org>
13596
13597         Add dependencies to the 'largefile' module.
13598         * modules/fopen (Depends-on): Add 'largefile'.
13599         * modules/freopen (Depends-on): Likewise.
13600         * modules/fseeko (Depends-on): Likewise.
13601         * modules/ftello (Depends-on): Likewise.
13602         * modules/glob (Depends-on): Likewise.
13603         * modules/lseek (Depends-on): Likewise.
13604         * modules/lstat (Depends-on): Likewise.
13605         * modules/mkostemp (Depends-on): Likewise.
13606         * modules/mkostemps (Depends-on): Likewise.
13607         * modules/mkstemp (Depends-on): Likewise.
13608         * modules/mkstemps (Depends-on): Likewise.
13609         * modules/open (Depends-on): Likewise.
13610         * modules/openat (Depends-on): Likewise.
13611         * modules/pread (Depends-on): Likewise.
13612         * modules/pwrite (Depends-on): Likewise.
13613         * modules/scandir (Depends-on): Likewise.
13614         * modules/stat (Depends-on): Likewise.
13615         * modules/tmpfile (Depends-on): Likewise.
13616         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
13617         since the containing module now depends on the largefile module.
13618         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
13619         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
13620         off_t is fixed by gnulib.
13621         * doc/posix-functions/freopen.texi: Likewise.
13622         * doc/posix-functions/fseeko.texi: Likewise.
13623         * doc/posix-functions/fstatat.texi: Likewise.
13624         * doc/posix-functions/ftello.texi: Likewise.
13625         * doc/posix-functions/glob.texi: Likewise.
13626         * doc/posix-functions/lseek.texi: Likewise.
13627         * doc/posix-functions/lstat.texi: Likewise.
13628         * doc/posix-functions/mkstemp.texi: Likewise.
13629         * doc/posix-functions/open.texi: Likewise.
13630         * doc/posix-functions/openat.texi: Likewise.
13631         * doc/posix-functions/pread.texi: Likewise.
13632         * doc/posix-functions/pwrite.texi: Likewise.
13633         * doc/posix-functions/scandir.texi: Likewise.
13634         * doc/posix-functions/stat.texi: Likewise.
13635         * doc/posix-functions/tmpfile.texi: Likewise.
13636         * doc/glibc-functions/mkostemp.texi: Likewise.
13637         * doc/glibc-functions/mkostemps.texi: Likewise.
13638         * doc/glibc-functions/mkstemps.texi: Likewise.
13639
13640 2011-07-25  Bruno Haible  <bruno@clisp.org>
13641
13642         fcntl: Move AC_LIBOBJ invocation to module description.
13643         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
13644         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
13645
13646         fcntl: Remove call-in from fchdir.m4.
13647         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
13648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
13649
13650         dup3: Remove potential call-in from fchdir.m4.
13651         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
13652         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
13653
13654         dup2: Move AC_LIBOBJ invocation to module description.
13655         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
13656         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
13657         Don't invoke AC_LIBOBJ.
13658         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
13659
13660         dup2: Remove call-in from fchdir.m4.
13661         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
13662         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
13663
13664         fclose: Move AC_LIBOBJ invocation to module description.
13665         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
13666         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
13667         to 1.
13668         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
13669
13670         fclose: Remove call-in from close.m4.
13671         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
13672         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
13673
13674         close: Move AC_LIBOBJ invocation to module description.
13675         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
13676         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
13677         1.
13678         * modules/close (configure.ac): Invoke AC_LIBOBJ.
13679
13680         close: Remove call-in from fchdir.m4.
13681         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
13682         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
13683
13684         open: Move AC_LIBOBJ invocation to module description.
13685         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
13686         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
13687         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
13688
13689         open: Remove call-in from fchdir.m4.
13690         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
13691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
13692
13693         fchdir: Start to remove gl_REPLACE_* idiom.
13694         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
13695         (gl_FUNC_FCHDIR): Invoke it.
13696
13697 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13698
13699         * lib/ftell.c (ftell): Comment out cast.
13700
13701         close: use gl_REPLACE_FCLOSE only if defined
13702         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
13703         is defined.  The close module doesn't depend on the fclose module
13704         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
13705         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
13706         I reproduced the problem with "./gnulib-tool --test close sys_socket".
13707
13708 2011-07-24  Jim Meyering  <meyering@redhat.com>
13709
13710         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13711         * tests/test-select.h (test_function): Declare as "static".
13712
13713 2011-07-24  Bruno Haible  <bruno@clisp.org>
13714
13715         doc: Mention the effects of AC_SYS_LARGEFILE.
13716         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
13717         on this function.
13718         * doc/posix-functions/aio_error.texi: Likewise.
13719         * doc/posix-functions/aio_fsync.texi: Likewise.
13720         * doc/posix-functions/aio_read.texi: Likewise.
13721         * doc/posix-functions/aio_return.texi: Likewise.
13722         * doc/posix-functions/aio_suspend.texi: Likewise.
13723         * doc/posix-functions/aio_write.texi: Likewise.
13724         * doc/posix-functions/fgetpos.texi: Likewise.
13725         * doc/posix-functions/fopen.texi: Likewise.
13726         * doc/posix-functions/freopen.texi: Likewise.
13727         * doc/posix-functions/fsetpos.texi: Likewise.
13728         * doc/posix-functions/fstatvfs.texi: Likewise.
13729         * doc/posix-functions/ftruncate.texi: Likewise.
13730         * doc/posix-functions/ftw.texi: Likewise.
13731         * doc/posix-functions/getrlimit.texi: Likewise.
13732         * doc/posix-functions/glob.texi: Likewise.
13733         * doc/posix-functions/lio_listio.texi: Likewise.
13734         * doc/posix-functions/lockf.texi: Likewise.
13735         * doc/posix-functions/mkstemp.texi: Likewise.
13736         * doc/posix-functions/mmap.texi: Likewise.
13737         * doc/posix-functions/nftw.texi: Likewise.
13738         * doc/posix-functions/openat.texi: Likewise.
13739         * doc/posix-functions/opendir.texi: Likewise.
13740         * doc/posix-functions/posix_fadvise.texi: Likewise.
13741         * doc/posix-functions/posix_fallocate.texi: Likewise.
13742         * doc/posix-functions/pread.texi: Likewise.
13743         * doc/posix-functions/pwrite.texi: Likewise.
13744         * doc/posix-functions/readdir.texi: Likewise.
13745         * doc/posix-functions/readdir_r.texi: Likewise.
13746         * doc/posix-functions/rewinddir.texi: Likewise.
13747         * doc/posix-functions/scandir.texi: Likewise.
13748         * doc/posix-functions/seekdir.texi: Likewise.
13749         * doc/posix-functions/setrlimit.texi: Likewise.
13750         * doc/posix-functions/statvfs.texi: Likewise.
13751         * doc/posix-functions/telldir.texi: Likewise.
13752         * doc/posix-functions/tmpfile.texi: Likewise.
13753         * doc/posix-functions/truncate.texi: Likewise.
13754         * doc/glibc-functions/fallocate.texi: Likewise.
13755         * doc/glibc-functions/fstatfs.texi: Likewise.
13756         * doc/glibc-functions/fts_children.texi: Likewise.
13757         * doc/glibc-functions/fts_read.texi: Likewise.
13758         * doc/glibc-functions/getdirentries.texi: Likewise.
13759         * doc/glibc-functions/mkostemp.texi: Likewise.
13760         * doc/glibc-functions/mkostemps.texi: Likewise.
13761         * doc/glibc-functions/mkstemps.texi: Likewise.
13762         * doc/glibc-functions/preadv.texi: Likewise.
13763         * doc/glibc-functions/pwritev.texi: Likewise.
13764         * doc/glibc-functions/sendfile.texi: Likewise.
13765         * doc/glibc-functions/statfs.texi: Likewise.
13766
13767 2011-07-24  Bruno Haible  <bruno@clisp.org>
13768
13769         doc: Fix typo.
13770         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
13771
13772 2011-07-24  Bruno Haible  <bruno@clisp.org>
13773
13774         doc: Mention fsusage.
13775         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
13776
13777 2011-07-24  Bruno Haible  <bruno@clisp.org>
13778
13779         doc: Mention new glibc headers and functions.
13780         * doc/glibc-headers/gshadow.texi: New file.
13781         * doc/glibc-functions/endsgent.texi: New file.
13782         * doc/glibc-functions/fgetsgent.texi: New file.
13783         * doc/glibc-functions/fgetsgent_r.texi: New file.
13784         * doc/glibc-functions/getsgent.texi: New file.
13785         * doc/glibc-functions/getsgent_r.texi: New file.
13786         * doc/glibc-functions/getsgnam.texi: New file.
13787         * doc/glibc-functions/getsgnam_r.texi: New file.
13788         * doc/glibc-functions/putsgent.texi: New file.
13789         * doc/glibc-functions/setsgent.texi: New file.
13790         * doc/glibc-functions/sgetsgent.texi: New file.
13791         * doc/glibc-functions/sgetsgent_r.texi: New file.
13792         * doc/glibc-functions/malloc_info.texi: New file.
13793         * doc/glibc-functions/preadv.texi: New file.
13794         * doc/glibc-functions/pwritev.texi: New file.
13795         * doc/glibc-functions/register_printf_modifier.texi: New file.
13796         * doc/glibc-functions/register_printf_specifier.texi: New file.
13797         * doc/glibc-functions/register_printf_type.texi: New file.
13798         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
13799         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
13800         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
13801         * doc/glibc-functions/pthread_getname_np.texi: New file.
13802         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
13803         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
13804         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
13805         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
13806         * doc/glibc-functions/pthread_setname_np.texi: New file.
13807         * doc/glibc-functions/pthread_sigqueue.texi: New file.
13808         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
13809         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
13810         * doc/glibc-functions/qsort_r.texi: New file.
13811         * doc/glibc-functions/quick_exit.texi: New file.
13812         * doc/glibc-functions/syncfs.texi: New file.
13813         * doc/gnulib.texi: Include them.
13814         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
13815         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
13816         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
13817         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13818         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13819         * doc/glibc-functions/execvpe.texi: Likewise.
13820
13821 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13822
13823         ftell: don't include <unistd.h>
13824         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
13825         guaranteed to define off_t, and the ftell module depends on the
13826         stdio module.
13827
13828         ftell: do not assume wraparound signed arithmetic
13829         * lib/ftell.c: Include <limits.h>.
13830         (ftell): Don't assume wraparound signed arithmetic.
13831
13832 2011-07-24  Bruno Haible  <bruno@clisp.org>
13833
13834         close: No longer depend on module 'fclose'.
13835         * modules/close (Depends-on): Remove fclose.
13836         * NEWS: Mention the change.
13837         Suggested by Sam Steingold <sds@gnu.org>.
13838
13839 2011-07-24  Bruno Haible  <bruno@clisp.org>
13840
13841         fsusage: Enable large volume support on AIX >= 5.2.
13842         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
13843         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
13844         instead of STAT_STATVFS.
13845         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
13846
13847         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
13848         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
13849         f_blocks field only on MacOS X.
13850
13851         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
13852         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
13853         * modules/fsusage (Depends-on): Add largefile.
13854
13855 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13856
13857         * README: Modernize discussion of signed integers.
13858         Assuming overflow wraparound is no longer safe.
13859         Mention ones' complement and signed magnitude.
13860
13861 2011-07-22  Bruno Haible  <bruno@clisp.org>
13862
13863         select tests, pselect tests: Refactor.
13864         * tests/test-select.h: New file, extracted from tests/test-select.c.
13865         (select_fn): New type.
13866         (test, do_select, do_select_nowait, do_select_wait, test_tty,
13867         test_connect_first, test_accept_first, test_pair, test_socket_pair,
13868         test_pipe): Add my_select argument.
13869         (test_function): Renamed from main. Add my_select argument.
13870         * tests/test-select.c: Move most code to tests/test-select.h. Include
13871         test-select.h.
13872         * modules/select-tests (Files): Add tests/test-select.h.
13873         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
13874         (my_select, main): New functions.
13875         * modules/pselect-tests (Files): Add tests/test-select.h,
13876         tests/macros.h, tests/signature.h.
13877         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
13878         (configure.ac): Check for <sys/wait.h>.
13879
13880 2011-07-22  Bruno Haible  <bruno@clisp.org>
13881
13882         sys_select tests: Check the signature of FD_*.
13883         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
13884         signature tests from here...
13885         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
13886         here.
13887         * modules/sys_select-tests (Files): Add tests/signature.h.
13888
13889 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13890
13891         largefile: new module, replacing large-inode
13892         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
13893         * MODULES.html.sh: Add largefile, remove large-inode.
13894         * modules/largefile, m4/largefile.m4: New files.
13895         * modules/large-inode, m4/large-inode.m4: Remove.
13896
13897         fsusage: port to MacOS X 10.7 with 4 TiB file systems
13898         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
13899         implementations that use only 32 bits to count blocks.
13900         On typical hosts with 1024-byte blocks, this fails with file
13901         systems as small as 4 TiB.  Problem reported by Herb Wartens
13902         <http://debbugs.gnu.org/9140> and this should also fix a similar
13903         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
13904
13905         large-inode: New module
13906         * MODULES.html.sh: Add it.
13907         * modules/large-inode, m4/large-inode.m4: New files.
13908
13909         extensions: Enable extensions on MacOS X 10.5 and later.
13910         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
13911
13912 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
13913
13914         file-has-acl: use acl_extended_file_nofollow if available
13915         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
13916         (acl_extended_file): New macro.
13917         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
13918         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
13919
13920 2011-07-21  Bruno Haible  <bruno@clisp.org>
13921
13922         Declare system functions in a way that works with C++.
13923         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
13924         declare fdopendir as extern "C".
13925         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
13926         declare frexpl as extern "C".
13927         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
13928         declare gai_strerror as extern "C".
13929         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
13930         programs, declare gai_strerror as extern "C".
13931         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
13932         declare getlogin_r as extern "C".
13933         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
13934         as extern "C".
13935         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
13936         declare ldexpl as extern "C".
13937         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
13938         as extern "C".
13939         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
13940         program, declare getmntinfo as extern "C".
13941         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
13942         stpncpy as extern "C".
13943         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
13944         program, declare __xpg_strerror_r as extern "C".
13945         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
13946         strndup as extern "C".
13947         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
13948         declare memset and bzero as extern "C".
13949         Reported by Sam Steingold <sds@gnu.org>.
13950
13951 2011-07-12  Jim Meyering  <meyering@redhat.com>
13952
13953         maint.mk: prohibit inclusion of "verify.h" without use
13954         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
13955
13956 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13957
13958         timer-time: A new module to check for timer_settime()
13959         * m4/timer_time.m4: Check for the posix function.
13960         * modules/timer-time: Add the new module.
13961         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
13962         Mention it.
13963
13964 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
13965             Bruno Haible  <bruno@clisp.org>
13966
13967         pthread_sigmask: assume POSIX threads if --avoid=threadlib
13968         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
13969         not defined, assume POSIX threads and look for pthread_sigmask in
13970         $LIBS, without changing $CPPFLAGS.
13971
13972 2011-07-19  Bruno Haible  <bruno@clisp.org>
13973
13974         strstr: Update cross-compilation guess.
13975         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
13976         CPUs, guess no, in view of glibc
13977         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
13978         Suggested by Eric Blake. Reported by Reuben Thomas.
13979
13980 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13981
13982         getopt-gnu: suppress core dumps from detection code
13983         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
13984         to suppress core dumps that may well occur on glibc systems.
13985         * modules/getopt-gnu: Depend on nocrash.
13986
13987 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13988
13989         pthread_sigmask: ensure usleep is declared
13990         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
13991         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
13992
13993 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13994
13995         doc: Document NonStop portability issues.
13996         * doc/posix-functions/sigaction.texi (sigaction):
13997         * doc/posix-headers/signal.texi (signal.h):
13998         Document NonStop.  See Joachim Schmitz in
13999         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14000
14001 2011-07-15  Bruno Haible  <bruno@clisp.org>
14002
14003         ffsl, ffsll: Avoid unportable behaviour.
14004         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14005
14006 2011-07-15  Bruno Haible  <bruno@clisp.org>
14007
14008         ffs: More tests.
14009         * tests/test-ffs.c (NBITS): New macro.
14010         (main): Add more tests.
14011         * tests/test-ffsl.c (NBITS): New macro.
14012         (main): Add more tests.
14013         * tests/test-ffsll.c (NBITS): New macro.
14014         (main): Add more tests.
14015
14016 2011-07-15  Eric Blake  <eblake@redhat.com>
14017
14018         ffsl, ffsll: new modules
14019         * modules/ffsl: New file.
14020         * modules/ffsll: Likewise.
14021         * m4/ffsl.m4: Likewise.
14022         * m4/ffsll.m4: Likewise.
14023         * lib/ffsl.c: Likewise.
14024         * lib/ffsl.h: Likewise.
14025         * lib/ffsll.c: Likewise.
14026         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14027         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14028         * modules/string (Makefile.am): Substitute witnesses.
14029         * lib/strings.in.h (ffsl, ffsll): Declare.
14030         * modules/ffsl-tests: New test file.
14031         * modules/ffsll-tests: Likewise.
14032         * tests/test-ffsl.c: Likewise.
14033         * tests/test-ffsll.c: Likewise.
14034         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14035         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14036         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14037
14038         ffs: fix m4 prerequisite
14039         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14040
14041         ffs: avoid undefined behavior
14042         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14043         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14044         Reported by Bruno Haible.
14045
14046 2011-07-12  Bruno Haible  <bruno@clisp.org>
14047
14048         pthread_sigmask: Rely on module 'threadlib'.
14049         * modules/pthread_sigmask (Depends-on): Add threadlib.
14050         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14051         is defined.
14052
14053 2011-07-12  Bruno Haible  <bruno@clisp.org>
14054
14055         regex: Depend on module 'strcase'.
14056         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14057
14058 2011-07-12  Jim Meyering  <meyering@redhat.com>
14059
14060         warn-on-use: fix typo in file name
14061         * modules/snippet/warn-on-use (Files): Correct file name:
14062         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14063
14064 2011-07-12  Bruno Haible  <bruno@clisp.org>
14065
14066         strings: Document module.
14067         * doc/posix-headers/strings.texi: Mention module 'strings'.
14068
14069 2011-07-12  Bruno Haible  <bruno@clisp.org>
14070
14071         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14072         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14073         (Files, Makefile.am): Update.
14074         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14075         * modules/stdlib (Depends-on): Update.
14076
14077 2011-07-12  Bruno Haible  <bruno@clisp.org>
14078
14079         * NEWS: Mention the changes.
14080
14081         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14082         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14083         (Files, Makefile.am): Update.
14084         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14085         * modules/arpa_inet (Depends-on): Update.
14086         * modules/ctype (Depends-on): Update.
14087         * modules/dirent (Depends-on): Update.
14088         * modules/fcntl-h (Depends-on): Update.
14089         * modules/glob (Depends-on): Update.
14090         * modules/iconv-h (Depends-on): Update.
14091         * modules/inttypes-incomplete (Depends-on): Update.
14092         * modules/langinfo (Depends-on): Update.
14093         * modules/locale (Depends-on): Update.
14094         * modules/math (Depends-on): Update.
14095         * modules/netdb (Depends-on): Update.
14096         * modules/poll-h (Depends-on): Update.
14097         * modules/pty (Depends-on): Update.
14098         * modules/search (Depends-on): Update.
14099         * modules/signal (Depends-on): Update.
14100         * modules/spawn (Depends-on): Update.
14101         * modules/stdio (Depends-on): Update.
14102         * modules/stdlib (Depends-on): Update.
14103         * modules/string (Depends-on): Update.
14104         * modules/strings (Depends-on): Update.
14105         * modules/sys_file (Depends-on): Update.
14106         * modules/sys_ioctl (Depends-on): Update.
14107         * modules/sys_select (Depends-on): Update.
14108         * modules/sys_socket (Depends-on): Update.
14109         * modules/sys_stat (Depends-on): Update.
14110         * modules/sys_time (Depends-on): Update.
14111         * modules/sys_times (Depends-on): Update.
14112         * modules/sys_utsname (Depends-on): Update.
14113         * modules/sys_wait (Depends-on): Update.
14114         * modules/termios (Depends-on): Update.
14115         * modules/time (Depends-on): Update.
14116         * modules/unistd (Depends-on): Update.
14117         * modules/wchar (Depends-on): Update.
14118         * modules/wctype-h (Depends-on): Update.
14119         * MODULES.html.sh (Support for building libraries and executables):
14120         Update.
14121
14122         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14123         * modules/snippet/unused-parameter: Renamed from
14124         modules/unused-parameter.
14125         (Files, Makefile.am): Update.
14126         * build-aux/snippet/unused-parameter.h: Renamed from
14127         build-aux/unused-parameter.h.
14128         * modules/selinux-h (Depends-on): Update.
14129         * modules/unistr/base (Depends-on): Update.
14130         * MODULES.html.sh (Core language properties): Update.
14131
14132         Rename module 'link-warning' to 'snippet/link-warning'.
14133         * modules/snippet/link-warning: Renamed from modules/link-warning.
14134         (Files, Makefile.am): Update.
14135         * build-aux/snippet/link-warning.h: Renamed from
14136         build-aux/link-warning.h.
14137         * MODULES.html.sh (Support for building libraries and executables):
14138         Update.
14139
14140         Rename module 'c++defs' to 'snippet/c++defs'.
14141         * modules/snippet/c++defs: Renamed from modules/c++defs.
14142         (Files, Makefile.am): Update.
14143         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14144         * modules/arpa_inet (Depends-on): Update.
14145         * modules/ctype (Depends-on): Update.
14146         * modules/dirent (Depends-on): Update.
14147         * modules/fcntl-h (Depends-on): Update.
14148         * modules/glob (Depends-on): Update.
14149         * modules/iconv-h (Depends-on): Update.
14150         * modules/langinfo (Depends-on): Update.
14151         * modules/locale (Depends-on): Update.
14152         * modules/math (Depends-on): Update.
14153         * modules/netdb (Depends-on): Update.
14154         * modules/poll-h (Depends-on): Update.
14155         * modules/pty (Depends-on): Update.
14156         * modules/search (Depends-on): Update.
14157         * modules/signal (Depends-on): Update.
14158         * modules/spawn (Depends-on): Update.
14159         * modules/stdio (Depends-on): Update.
14160         * modules/stdlib (Depends-on): Update.
14161         * modules/string (Depends-on): Update.
14162         * modules/strings (Depends-on): Update.
14163         * modules/sys_ioctl (Depends-on): Update.
14164         * modules/sys_select (Depends-on): Update.
14165         * modules/sys_socket (Depends-on): Update.
14166         * modules/sys_stat (Depends-on): Update.
14167         * modules/sys_time (Depends-on): Update.
14168         * modules/sys_wait (Depends-on): Update.
14169         * modules/termios (Depends-on): Update.
14170         * modules/time (Depends-on): Update.
14171         * modules/unistd (Depends-on): Update.
14172         * modules/wchar (Depends-on): Update.
14173         * modules/wctype-h (Depends-on): Update.
14174
14175         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14176         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14177         (Files, Makefile.am): Update.
14178         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14179         * modules/argv-iter (Depends-on): Update.
14180         * modules/arpa_inet (Depends-on): Update.
14181         * modules/dirent (Depends-on): Update.
14182         * modules/fcntl-h (Depends-on): Update.
14183         * modules/fnmatch (Depends-on): Update.
14184         * modules/getopt-posix (Depends-on): Update.
14185         * modules/glob (Depends-on): Update.
14186         * modules/iconv-h (Depends-on): Update.
14187         * modules/inttypes-incomplete (Depends-on): Update.
14188         * modules/locale (Depends-on): Update.
14189         * modules/math (Depends-on): Update.
14190         * modules/netdb (Depends-on): Update.
14191         * modules/search (Depends-on): Update.
14192         * modules/signal (Depends-on): Update.
14193         * modules/spawn (Depends-on): Update.
14194         * modules/stdio (Depends-on): Update.
14195         * modules/stdlib (Depends-on): Update.
14196         * modules/string (Depends-on): Update.
14197         * modules/strings (Depends-on): Update.
14198         * modules/sys_socket (Depends-on): Update.
14199         * modules/sys_stat (Depends-on): Update.
14200         * modules/sys_time (Depends-on): Update.
14201         * modules/sys_times (Depends-on): Update.
14202         * modules/sys_utsname (Depends-on): Update.
14203         * modules/time (Depends-on): Update.
14204         * modules/unistd (Depends-on): Update.
14205         * modules/wchar (Depends-on): Update.
14206         * MODULES.html.sh (Support for building libraries and executables):
14207         Update.
14208
14209 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14210
14211         Improvements on _Noreturn and related modules.
14212
14213         modules/_Exit-tests: test _Noreturn too
14214         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14215         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14216         (main): Use them.
14217
14218         stdnoreturn, stdnoreturn-tests: remove modules
14219         They're not needed here and a bit premature for use elsewhere.  See
14220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14221         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14222         * tests/test-stdnoreturn.c: Remove files.
14223         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14224         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14225         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14226         and using noreturn.
14227         * modules/openat, modules/sigpipe-die, modules/xalloc:
14228         * modules/xmemdup0, modules/xstrtol:
14229         Remove dependency on stdnoreturn.
14230
14231         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14232         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14233         Reparenthesize to avoid GCC warning.
14234         Support Microsoft's syntax.
14235         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14236
14237         _Noreturn-tests: remove module
14238         * modules/_Noreturn-tests: Remove.
14239         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14240         * tests/test-_Noreturn.c: Remove.
14241         * tests/test-stdnoreturn.c: Merge from the old
14242         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14243
14244 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14245
14246         _Noreturn, stdnoreturn, and related modules.
14247
14248         * top/maint.mk: Adjust to new noreturn support.
14249         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14250         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14251
14252         xalloc: use stdnoreturn.h
14253         * lib/xalloc.h: Include <stdnoreturn.h>.
14254         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14255         * modules/xalloc (Depends-on): Add stdnoreturn.
14256
14257         xstrtol: use stdnoreturn.h
14258         * lib/xstrtol.h: Include <stdnoreturn.h>.
14259         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14260         * modules/xstrtol (Depends-on): Add stdnoreturn.
14261
14262         xmemdup0: use stdnoreturn.h
14263         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14264         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14265         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14266
14267         sigpipe-die: use stdnoreturn.h
14268         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14269         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14270         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14271
14272         openat: use stdnoreturn.h
14273         * lib/openat.h: Include <stdnoreturn.h>.
14274         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14275         * modules/openat (Depends-on): Add stdnoreturn.
14276
14277         * lib/openat-die.c (openat_save_fail): Modernize comment.
14278
14279         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14280
14281         * lib/glthread/thread.h: Modernize comment.
14282
14283         obstack: use _Noreturn
14284         * lib/obstack.c (__attribute__): Remove macro.
14285         (print_and_abort): Use _Noreturn.
14286
14287         c-stack: use _Noreturn
14288         * lib/c-stack.c (die, overflow_handler, segv_handler):
14289         Use _Noreturn rather than __attribute__((noreturn)).
14290
14291         argmatch-tests, exclude_tests: use _Noreturn
14292         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14293         Remove.
14294         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14295
14296         stdlib: use _Noreturn
14297         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14298         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14299         * modules/stdlib (Depends-on): Add _Noreturn.
14300         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14301
14302         stdnoreturn-tests: new module
14303         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14304
14305         stdnoreturn: new module
14306         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14307         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14308
14309         _Noreturn-tests: new module
14310         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14311
14312         _Noreturn: new module
14313         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14314         New section, mentioning it.
14315         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14316
14317         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14318
14319 2011-07-11  Eric Blake  <eblake@redhat.com>
14320
14321         ffs: new module
14322         * modules/ffs: New file.
14323         * m4/ffs.m4: Likewise.
14324         * lib/ffs.c: Likewise.
14325         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14326         * modules/strings (Makefile.am): Substitute witness.
14327         (Depends-on): Add c++defs.
14328         * lib/strings.in.h (ffs): Declare.
14329         * modules/ffs-tests: New test file.
14330         * tests/test-ffs.c: Test new module.
14331         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14332         * doc/posix-functions/ffs.texi (ffs): Likewise.
14333
14334         regex: avoid compiler warning
14335         * lib/regex.c (includes): Include <strings.h>, for use of
14336         strcasecmp in regcomp.c.
14337         Reported by Joachim Schmitz.
14338
14339 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14340
14341         stdint: respect system's intmax_t if INTMAX_MAX
14342         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14343         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14344         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14345         long but int64_t is long long, and where we will clash with the
14346         system intmax_t if we override it.  See
14347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14348         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14349         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14350         similarly for UINTMAX_C.
14351
14352 2011-07-08  Bruno Haible  <bruno@clisp.org>
14353
14354         pthread_sigmask tests: Avoid a compiler warning.
14355         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14356         non-zero.
14357
14358         sigprocmask tests: A better way to avoid a compiler warning.
14359         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14360         (main): Complain if system() returns non-zero.
14361         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14362
14363 2011-07-08  Bruno Haible  <bruno@clisp.org>
14364
14365         pthread_sigmask: Work around IRIX bug.
14366         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14367         bug.
14368         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14369         there may be unblocked pending signals.
14370         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14371
14372 2011-07-08  Bruno Haible  <bruno@clisp.org>
14373
14374         pthread_sigmask: Work around Cygwin bug.
14375         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14376         bug.
14377         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14378         the system's pthread_sigmask function.
14379         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14380
14381 2011-07-08  Bruno Haible  <bruno@clisp.org>
14382
14383         pthread_sigmask: Work around bug in single-threaded implementation.
14384         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14385         FreeBSD, HP-UX, Solaris bug.
14386         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14387         * lib/pthread_sigmask.c: Include <stddef.h>.
14388         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14389         the system's pthread_sigmask function.
14390         * modules/pthread_sigmask (configure.ac): Invoke
14391         gl_PREREQ_PTHREAD_SIGMASK.
14392         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14393         HP-UX, Solaris.
14394
14395 2011-07-08  Eric Blake  <eblake@redhat.com>
14396
14397         test-sigprocmask: avoid compiler warning
14398         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14399         * tests/test-sigprocmask.c (main): Use it to silence warning.
14400         Reported by Jim Meyering.
14401
14402         test-snprintf: avoid compiler warning
14403         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14404         * tests/test-vsnprintf.c (main): Likewise.
14405         Reported by Jim Meyering.
14406
14407 2011-07-08  Bruno Haible  <bruno@clisp.org>
14408
14409         Tests for module 'pthread_sigmask'.
14410         * modules/pthread_sigmask-tests: New file.
14411         * tests/test-pthread_sigmask1.c: New file, based on
14412         tests/test-sigprocmask.c.
14413         * tests/test-pthread_sigmask2.c: New file.
14414
14415 2011-07-08  Jim Meyering  <meyering@redhat.com>
14416
14417         test-getopt.h: avoid warning about an unused variable
14418         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14419
14420 2011-07-07  Jim Meyering  <meyering@redhat.com>
14421
14422         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14423         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14424         now that it no longer contains leading TABs.
14425         Remove unused "url=FIXME" statement.
14426
14427 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14428
14429         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14430         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14431         When gl_THREADLIB is not in use, assume that the POSIX sematics
14432         are desired.  This is better for Emacs, which uses POSIX semantics
14433         on GNUish and/or POSIXish platforms, and does not use threads at
14434         all otherwise.
14435
14436         pthread_sigmask: fix typo when testing for libraries
14437         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14438         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14439
14440 2011-07-08  Eric Blake  <eblake@redhat.com>
14441
14442         fts: introduce FTS_NOATIME
14443         * lib/fts_.h (FTS_NOATIME): New bit flag.
14444         (FTS_OPTIONMASK): Adjust.
14445         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14446         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14447
14448 2011-07-08  Bruno Haible  <bruno@clisp.org>
14449
14450         Tests for module 'thread'.
14451         * modules/thread-tests: New file.
14452         * tests/test-thread_self.c: New file.
14453         * tests/test-thread_create.cc: New file.
14454
14455 2011-07-08  Bruno Haible  <bruno@clisp.org>
14456
14457         thread: Avoid gcc warnings when using gl_thread_self().
14458         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14459         'void *'.
14460         (gl_thread_self_pointer): Update.
14461
14462 2011-07-07  Bruno Haible  <bruno@clisp.org>
14463
14464         signal-c++-tests: Check declaration of pthread_sigmask.
14465         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14466         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14467         $(LIB_PTHREAD_SIGMASK).
14468
14469 2011-07-07  Bruno Haible  <bruno@clisp.org>
14470
14471         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14472         * lib/signal.in.h (pthread_sigmask): Override if
14473         REPLACE_PTHREAD_SIGMASK is 1.
14474         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14475         REPLACE_PTHREAD_SIGMASK.
14476         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14477         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14478         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14479         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14480         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14481
14482 2011-07-07  Bruno Haible  <bruno@clisp.org>
14483
14484         pthread_sigmask: Ensure declaration in <signal.h>.
14485         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14486         include <pthread.h>.
14487         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14488         problem.
14489
14490 2011-07-07  Bruno Haible  <bruno@clisp.org>
14491
14492         pthread_sigmask: Document the module.
14493         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14494
14495 2011-07-07  Bruno Haible  <bruno@clisp.org>
14496
14497         pthread_sigmask: Follow gnulib conventions.
14498         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14499         gl_PTHREAD_SIGMASK.
14500         * modules/pthread_sigmask (configure.ac): Update.
14501
14502 2011-07-07  Bruno Haible  <bruno@clisp.org>
14503
14504         pthread_sigmask: Make declaration C++ safe.
14505         * lib/signal.in.h: In two special conditions, just do an #include_next.
14506         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14507         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14508         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14509         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14510         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14511         not REPLACE_PTHREAD_MASK.
14512         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14513         not REPLACE_PTHREAD_MASK.
14514         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14515
14516 2011-07-07  Bruno Haible  <bruno@clisp.org>
14517
14518         pthread_sigmask: Fix return value.
14519         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14520         * lib/pthread_sigmask.c: New file.
14521         * modules/pthread_sigmask (Files): Add it.
14522         (configure.ac): Invoke AC_LIBOBJ.
14523
14524 2011-07-07  Eric Blake  <eblake@redhat.com>
14525
14526         getopt: more portable argv creation
14527         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14528         const, use char arrays rather than strings.
14529         Suggested by Paul Eggert.
14530
14531 2011-07-07  Bruno Haible  <bruno@clisp.org>
14532
14533         Tests for module 'sigprocmask'.
14534         * modules/sigprocmask-tests: New file.
14535         * tests/test-sigprocmask.c: New file.
14536
14537 2011-07-07  Bruno Haible  <bruno@clisp.org>
14538
14539         float tests: Tweak.
14540         * tests/test-float.c (main): Tweak skip message.
14541
14542 2011-07-07  Eric Blake  <eblake@redhat.com>
14543
14544         getopt: avoid compiler warning during configure
14545         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14546         assigning string literals to non-const pointer.
14547
14548         getopt-gnu: avoid crash in glibc getopt
14549         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14550         * tests/test-getopt.h (test_getopt): Enhance test.
14551         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14552         * doc/posix-functions/getopt.texi (getopt): Document it.
14553         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14554         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14555         Likewise.
14556
14557 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14558
14559         getopt: handle W; without long options in getopt [BZ #12922]
14560         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14561         but no long options are defined, just return 'W'.
14562
14563 2011-07-07  Bruno Haible  <bruno@clisp.org>
14564
14565         Avoid literal tabs.
14566         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14567         variable containing a tab instead of a literal tab.
14568         Reported by Jim Meyering.
14569
14570 2011-07-07  Bruno Haible  <bruno@clisp.org>
14571
14572         Comments.
14573         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14574
14575 2011-07-06  Bruno Haible  <bruno@clisp.org>
14576
14577         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14578         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14579         <winsock2.h>.
14580         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14581         lib/sys_socket.in.h.
14582         (close, gethostname): Hide declarations from <winsock2.h>.
14583         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14584         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14585         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14586         (select): Don't override if gnulib's <sys/select.h> was already
14587         included.
14588         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14589         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14590         setsockopt, shutdown, select): Tweak indentation.
14591
14592 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14593
14594         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14595         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14596         in an application that does not use the sys_select module.
14597
14598 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14599
14600         poll: do not return 0 on timeout=-1
14601         * lib/poll.c: Loop with yield if no events occured
14602
14603 2011-07-06  Eric Blake  <eblake@redhat.com>
14604
14605         pthread_sigmask: always replace when not using pthread
14606         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
14607         replacement when using some threading other than pthread.  Fix
14608         logic bug.
14609
14610 2011-07-06  Bruno Haible  <bruno@clisp.org>
14611
14612         Comments.
14613         * m4/printf.m4: Update comments about mingw.
14614
14615 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14616
14617         sys_select: define sigset_t more portably
14618         * lib/sys_select.in.h: Always include <sys/types.h>, since
14619         we now need sigset_t and mingw defines it there.
14620         Include <signal.h> before split inclusion guard, to avoid
14621         mishaps on Solaris, whose <signal.h> eventually includes us.
14622         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
14623         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
14624         which come from ...
14625         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14626         gl_CHECK_TYPE_SIGSET_T.
14627         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
14628         does the real work.
14629         * modules/sys_select (Depends-on): Add 'signal'.
14630
14631         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
14632         Suggested by Bruno Haible.
14633
14634         pselect: Use pthread_sigmask, not sigprocmask.
14635         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
14636         multithreaded apps better than sigprocmask does.
14637         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
14638         sigprocmask directly.
14639
14640 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14641
14642         * lib/pselect.c (pselect): Use plain name, without "rpl_".
14643         Don't #undef,  since we don't need any underlying pselect.
14644         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
14645         (Depends-on): Add select.
14646         (Link): Add $(LIBSOCKET).
14647         These changes suggested by Bruno Haible.
14648
14649         pselect: document better
14650         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14651         * doc/posix-functions/pselect.texi (pselect): Document new module.
14652
14653         pthread_sigmask: new module
14654         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14655         * doc/posix-functions/pthread_sigmask.texi: Document new module.
14656         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
14657         This is done only as a macro; I don't know how well that'll
14658         work for C++.  Move <sys/types.h> include before the include_next,
14659         to avoid mishap on Solaris.
14660         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
14661         * modules/signal (Makefile.am): Substitute the check's results.
14662         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
14663
14664         test-pselect: new module
14665         * modules/pselect-tests, tests/test-pselect.c: New files.
14666         * tests/test-select.c, tests/test-sys_select-c++.cc:
14667         If TEST_PSELECT is defined, test pselect instead of testing select.
14668
14669         * tests/test-sys_select.c (sigset_t): Test for it, too.
14670         Suggested by Bruno Haible.
14671
14672 2011-07-05  Eric Blake  <eblake@redhat.com>
14673
14674         snprintf: guarantee %1$d, for libintl
14675         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
14676         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14677         * doc/posix-functions/snprintf.texi (snprintf): Update.
14678         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14679         * tests/test-snprintf.c (main): Enhance test.
14680         * tests/test-vsnprintf.c (main): Likewise.
14681
14682 2011-07-05  Jim Meyering  <meyering@redhat.com>
14683
14684         maint: exempt stdio-read.c and stdio-write.c from the cppi check
14685         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
14686         per Bruno's request, to accommodate this idiom (no space after "#")
14687         even when the function is inside an #if block:
14688         char *
14689         gets (char *s)
14690         #undef gets
14691         {
14692           ...
14693         }
14694
14695 2011-07-04  Jim Meyering  <meyering@redhat.com>
14696
14697         maint: indent with spaces, not TABs, and add a rule to check this
14698         * tests/test-userspec.c: Indent with spaces, not TABs.
14699         * tests/test-argp.c: Likewise.
14700         * tests/test-c-stack2.sh: Likewise.
14701         * tests/test-parse-duration.sh: Likewise
14702         * m4/strtod.m4: Likewise.
14703         * m4/alloca.m4: Likewise.
14704         * m4/pselect.m4: Likewise.
14705         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
14706
14707 2011-07-03  Jim Meyering  <meyering@redhat.com>
14708
14709         maint.mk: correct omissions in prohibit_argmatch_without_use check
14710         This rule would mistakenly report that argmatch.h is included without
14711         use even when both the argmatch and invalid_arg macro were used.
14712         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
14713         of argmatch and invalid_arg.
14714
14715 2011-07-03  Bruno Haible  <bruno@clisp.org>
14716
14717         Comments about EINTR.
14718         * lib/safe-read.h: Explain the purpose of this module.
14719         * lib/safe-write.h: Likewise.
14720         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
14721         module.
14722         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
14723         module.
14724         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14725
14726 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14727
14728         xnanosleep: Rewrite to use new dtotimespec module.
14729         It has the conversion code that used to be in xnanosleep.
14730         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
14731         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
14732         (TIME_T_MAX): Remove.
14733         (xnanosleep): Rewrite in terms of dtotimespec.
14734         * modules/xnanosleep (Depends-on): Add dtotimespec.
14735         Remove intprops, stdbool.
14736
14737         timespec-add, timespec-sub: new modules
14738         * lib/timespec.h (timespec_add, timespec_sub): New decls.
14739         * lib/timespec-add.c, lib/timespec-sub.c:
14740         * modules/timespec-add, modules/timespec-sub: New files.
14741
14742         dtotimespec: new module
14743         * lib/timespec.h (dtotimespec): New decl.
14744         * lib/dtotimespec.c, modules/dtotimespec: New files.
14745
14746         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
14747
14748         pselect: new module
14749         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
14750         (pselect): New decls.
14751         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
14752         since the standard pselect decl uses 'restrict'.
14753         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
14754         HAVE_PSELECT, REPLACE_PSELECT.
14755         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
14756         HAVE_PSELECT, REPLACE_PSELECT.
14757         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
14758
14759         sys_select: don't depend on sys_socket
14760         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
14761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
14762         This fix works on GNU and GNU-like platforms, but has not been tested
14763         on native Windows.
14764         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
14765         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
14766         gl_HEADER_SYS_SOCKET.
14767         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
14768         gl_PREREQ_SYS_H_WINSOCK2.
14769
14770 2011-06-29  Eric Blake  <eblake@redhat.com>
14771
14772         pipe2: fix C89 compile problem
14773         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
14774         Reported by Bruno Haible.
14775
14776         pipe, pipe2: don't corrupt fd on error
14777         * lib/pipe.c (pipe): Leave fd unchanged on error.
14778         * lib/pipe2.c (pipe2): Likewise.
14779         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
14780         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14781
14782 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
14783
14784         mmap-anon: do not use regular expressions inadvertently
14785         * m4/mmap-anon.m4: Remove trailing period from strings sought
14786         in the output.
14787
14788 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14789
14790         nanosleep: fix integer overflow problem
14791         * lib/nanosleep.c (my_usleep): Don't assume signed integer
14792         arithmetic wraps around on overflow.
14793
14794         nanosleep: simplify carrying
14795         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
14796         first call to the underyling nanosleep, not for the last one.
14797         This doesn't fix any bugs, but it simplifies the computation of
14798         the remaining delay.  Found while auditing integer overflow issues.
14799
14800         dup2: remove test for existence of fcntl
14801         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
14802         "#if HAVE_FCNTL", in the configure-time test program.
14803         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
14804         and therefore speeds up "configure" a bit.  Found while
14805         adding the dup2 module to Emacs.
14806
14807 2011-06-24  Eric Blake  <eblake@redhat.com>
14808
14809         maint.mk: enhance useless header checks
14810         * top/maint.mk (_sc_header_without_use): Check both include
14811         styles.
14812         (sc_prohibit_assert_without_use)
14813         (sc_prohibit_close_stream_without_use)
14814         (sc_prohibit_getopt_without_use)
14815         (sc_prohibit_quotearg_without_use)
14816         (sc_prohibit_quote_without_use)
14817         (sc_prohibit_long_options_without_use)
14818         (sc_prohibit_inttostr_without_use)
14819         (sc_prohibit_ignore_value_without_use)
14820         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
14821         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
14822         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
14823         (sc_prohibit_hash_pjw_without_use)
14824         (sc_prohibit_safe_read_without_use)
14825         (sc_prohibit_argmatch_without_use)
14826         (sc_prohibit_canonicalize_without_use)
14827         (sc_prohibit_root_dev_ino_without_use)
14828         (sc_prohibit_openat_without_use)
14829         (sc_prohibit_c_ctype_without_use)
14830         (sc_prohibit_signal_without_use)
14831         (sc_prohibit_stdio--_without_use)
14832         (sc_prohibit_stdio-safer_without_use)
14833         (sc_prohibit_strings_without_use)
14834         (sc_prohibit_intprops_without_use)
14835         (sc_prohibit_stddef_without_use)
14836         (sc_prohibit_xfreopen_without_use): Update clients.
14837
14838 2011-06-24  Jim Meyering  <meyering@redhat.com>
14839
14840         syntax-check: keep one maint.mk rule in sync with its header
14841         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
14842         of the bug Eric has just fixed, with today's commit 25e4c2ec.
14843         I prefer to avoid temporary files here, so use <(...), but that
14844         is not supported by /bin/sh, so...
14845         (SHELL): Define to /bin/bash.
14846
14847 2011-06-24  Eric Blake  <eblake@redhat.com>
14848
14849         maint.mk: update sc_prohibit_intprops_without_use
14850         * top/maint.mk (_intprops_names): Match recent changes.
14851
14852 2011-06-24  Bruno Haible  <bruno@clisp.org>
14853
14854         strerror-override: No-op tweak.
14855         * lib/strerror-override.h (strerror_override): Reorder conditions,
14856         for consistency with lib/strerror-override.c.
14857
14858 2011-06-23  Eric Blake  <eblake@redhat.com>
14859
14860         maint.mk: test further PATH_MAX issues
14861         * top/maint.mk (sc_prohibit_path_max_array): Rename...
14862         (sc_prohibit_path_max_allocation): ...and also test alloca.
14863         Suggested by Jim Meyering.
14864
14865 2011-06-22  Eric Blake  <eblake@redhat.com>
14866
14867         maint.mk: add syntax-check to avoid char[PATH_MAX]
14868         * top/maint.mk (sc_prohibit_path_max_array): New rule.
14869
14870         stat: be robust to PATH_MAX definition
14871         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
14872         * modules/stat (Depends-on): Add verify.
14873
14874         link: work around IRIX bug
14875         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
14876         * lib/link.c (rpl_link): Work around it.
14877         * tests/test-link.h (test_link): Enhance test.
14878         * doc/posix-functions/link.texi (link): Document the bug.
14879
14880         getopt: silence clang warning
14881         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
14882         dereference.
14883         Reported by Gustavo Martin Domato.
14884
14885 2011-06-22  Jim Meyering  <meyering@redhat.com>
14886
14887         bootstrap: do not insert a blank line into each .gitignore file
14888         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
14889
14890 2011-06-21  Eric Blake  <eblake@redhat.com>
14891
14892         perror: test for output mismatch
14893         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
14894         perror on IRIX.
14895
14896         strerror_r: fix OpenBSD behavior on out-of-range
14897         * lib/strerror_r.c (strerror_r): Always use maximal string.
14898         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14899
14900         strerror_r: fix OpenBSD behavior on 0
14901         * lib/strerror-override.c (strerror_override): Also override 0
14902         when needed.
14903         * lib/strerror-override.h (strerror_override): Likewise.
14904         * lib/strerror.c (strerror): Simplify, now that 0 override is done
14905         earlier.
14906         * lib/strerror_r.c (strerror_r): Likewise.
14907         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
14908         behavior...
14909         (gl_FUNC_STRERROR_0): ...into new macro.
14910         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
14911         is overridden.
14912         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
14913         * modules/strerror-override (Files): Add strerror.m4.
14914         (configure.ac): Also provide override for 0 when needed.
14915         * doc/posix-functions/strerror.texi (strerror): Document this.
14916         * doc/posix-functions/perror.texi (perror): Likewise.
14917
14918         perror: adjust array size
14919         * modules/perror (Depends-on): Add strerror-override.
14920         * lib/perror.c (perror): Use it to avoid magic number.
14921
14922         strerror-override: reduce size
14923         * lib/strerror-override.c (strerror_override): Use fewer lines.
14924
14925 2011-06-20  Bruno Haible  <bruno@clisp.org>
14926
14927         pathmax: Ensure correct value for PATH_MAX on HP-UX.
14928         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
14929
14930 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14931
14932         alloca: port to compilers that can optimize like GCC 4.6.0
14933         * lib/alloca.c (find_stack_direction): New signature, taken from
14934         Autoconf git.  This works with GCC 4.6.0.  This code should never
14935         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
14936         be used with other compilers that optimize as well as GCC 4.6.0 does.
14937         (alloca): Adjust to new signature.
14938         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
14939         New macro, which patches Autoconf in a similar way.
14940
14941         c-stack: stop worrying about stack direction
14942         * lib/c-stack.c (find_stack_direction): Remove.
14943         (segv_handler): Don't worry about stack direction growth, as it's
14944         too much of a pain to configure this correctly, given how compilers
14945         are optimizing-away our stack-growth detection code.  Instead, assume
14946         that any access to just before or just after the stack is OK.
14947         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14948         Don't require AC_FUNC_ALLOCA; no longer needed.
14949
14950 2011-06-20  Eric Blake  <eblake@redhat.com>
14951
14952         test-stat: don't allocate PATH_MAX bytes
14953         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
14954         PATH_MAX-sized buffer.
14955         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
14956         * modules/stat-tests (Depends-on): Likewise.
14957         * tests/test-fstatat.c (includes): Drop pathmax.h.
14958         * tests/test-stat.c (includes): Likewise.
14959         Reported by Bruno Haible.
14960
14961 2011-06-20  Bruno Haible  <bruno@clisp.org>
14962
14963         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
14964         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
14965         * lib/float.c: New file.
14966         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
14967         REPLACE_FLOAT_LDBL.
14968         * modules/float (Files): Add lib/float.c.
14969         (configure.ac): Invoke AC_LIBOBJ.
14970         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
14971
14972 2011-06-20  Bruno Haible  <bruno@clisp.org>
14973
14974         Tests for module 'float'.
14975         * modules/float-tests: New file.
14976         * tests/test-float.c: New file.
14977
14978 2011-06-19  Bruno Haible  <bruno@clisp.org>
14979
14980         isinf: Coding style.
14981         * lib/isinf.c: Use GNU coding style.
14982
14983 2011-06-19  Bruno Haible  <bruno@clisp.org>
14984
14985         linkat test: Avoid test failure on AIX 7.1.
14986         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
14987         * tests/test-link.h (test_link): Likewise.
14988
14989 2011-06-19  Bruno Haible  <bruno@clisp.org>
14990
14991         pread test: Avoid test failure on OpenBSD 4.9.
14992         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
14993
14994 2011-06-19  Bruno Haible  <bruno@clisp.org>
14995
14996         sprintf-posix: Fix test failure on AIX 7.1.
14997         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
14998         * doc/posix-functions/dprintf.texi: Mention limited precision problem
14999         on AIX.
15000         * doc/posix-functions/fprintf.texi: Likewise.
15001         * doc/posix-functions/printf.texi: Likewise.
15002         * doc/posix-functions/snprintf.texi: Likewise.
15003         * doc/posix-functions/sprintf.texi: Likewise.
15004         * doc/posix-functions/vdprintf.texi: Likewise.
15005         * doc/posix-functions/vfprintf.texi: Likewise.
15006         * doc/posix-functions/vprintf.texi: Likewise.
15007         * doc/posix-functions/vsnprintf.texi: Likewise.
15008         * doc/posix-functions/vsprintf.texi: Likewise.
15009
15010 2011-06-19  Bruno Haible  <bruno@clisp.org>
15011
15012         roundl-ieee: Fix test failure on AIX 7.1.
15013         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15014         * doc/posix-functions/roundl.texi: Mention problem with negative
15015         arguments.
15016
15017 2011-06-19  Bruno Haible  <bruno@clisp.org>
15018
15019         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15020         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15021         * doc/posix-functions/round.texi: Mention problem with negative
15022         arguments.
15023         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15024
15025 2011-06-19  Bruno Haible  <bruno@clisp.org>
15026
15027         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15028         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15029         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15030         * doc/posix-functions/roundf.texi: Mention problem with negative
15031         arguments.
15032         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15033
15034 2011-06-19  Bruno Haible  <bruno@clisp.org>
15035
15036         ceilf-ieee: Work around bug on MacOS X 10.5.
15037         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15038
15039         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15040         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15041         IEEE compliant, avoid compiler optimizations.
15042         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15043         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15044         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15045         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15046         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15047         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15048         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15049         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15050         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15051         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15052
15053 2011-06-19  Bruno Haible  <bruno@clisp.org>
15054
15055         ceilf-ieee: Work around bug on AIX 7.1.
15056         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15057         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15058
15059 2011-06-19  Bruno Haible  <bruno@clisp.org>
15060
15061         ceil-ieee: Work around bug on AIX 7.1.
15062         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15063         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15064
15065 2011-06-18  Bruno Haible  <bruno@clisp.org>
15066
15067         fsync test: Avoid test failure on MacOS X and AIX.
15068         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15069         EINVAL.
15070
15071 2011-06-18  Bruno Haible  <bruno@clisp.org>
15072
15073         openat, fdopendir tests: Fix link errors.
15074         * modules/openat-tests (Depends-on): Add progname.
15075         * modules/fdopendir-tests (Depends-on): Likewise.
15076         * tests/test-fchownat.c: Include progname.h.
15077         (main): Call set_program_name.
15078         * tests/test-fstatat.c: Include progname.h.
15079         (main): Call set_program_name.
15080         * tests/test-mkdirat.c: Include progname.h.
15081         (main): Call set_program_name.
15082         * tests/test-openat.c: Include progname.h.
15083         (main): Call set_program_name.
15084         * tests/test-unlinkat.c: Include progname.h.
15085         (main): Call set_program_name.
15086         * tests/test-fdopendir.c: Include progname.h.
15087         (main): Call set_program_name.
15088
15089 2011-06-18  Bruno Haible  <bruno@clisp.org>
15090
15091         Doc update.
15092         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15093         HP-UX.
15094         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15095
15096 2011-06-18  Bruno Haible  <bruno@clisp.org>
15097
15098         getcwd tests: Avoid compilation error on HP-UX 11.31.
15099         * modules/getcwd-tests (Depends-on): Add pathmax.
15100         * tests/test-getcwd.c: Include pathmax.h.
15101
15102 2011-06-18  Bruno Haible  <bruno@clisp.org>
15103
15104         isfinite, isinf: Fix link error on AIX 6 and 7.
15105         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15106         needed, also test the macro with a 'float' argument.
15107         * m4/isinf.m4 (gl_ISINF): Likewise.
15108
15109 2011-06-18  Bruno Haible  <bruno@clisp.org>
15110
15111         getloadavg: Don't clobber LIBS. Regression from previous commit.
15112         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15113         AC_CHECK_LIB from here...
15114         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15115         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15116         gl_func_getloadavg_done.
15117         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15118
15119 2011-06-18  Bruno Haible  <bruno@clisp.org>
15120
15121         clean-temp: Improve documentation.
15122         * lib/clean-temp.h: Explain better how to use this module.
15123         Reported by John Darrington <john@darrington.wattle.id.au>.
15124
15125 2011-06-17  Bruno Haible  <bruno@clisp.org>
15126
15127         pread, pwrite: Avoid cc warning on AIX.
15128         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15129         (pwrite): Likewise.
15130
15131 2011-06-17  Bruno Haible  <bruno@clisp.org>
15132
15133         spawn-pipe tests: Fix link error.
15134         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15135         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15136
15137 2011-06-17  Bruno Haible  <bruno@clisp.org>
15138
15139         Tests: Remove unnecessary dependency.
15140         * modules/canonicalize-tests (Depends-on): Remove progname.
15141         * modules/chown-tests (Depends-on): Likewise.
15142         * modules/dirname-tests (Depends-on): Likewise.
15143         * modules/fdopendir-tests (Depends-on): Likewise.
15144         * modules/fdutimensat-tests (Depends-on): Likewise.
15145         * modules/hash-tests (Depends-on): Likewise.
15146         * modules/lchown-tests (Depends-on): Likewise.
15147         * modules/linkat-tests (Depends-on): Likewise.
15148         * modules/renameat-tests (Depends-on): Likewise.
15149         * modules/spawn-pipe-tests (Depends-on): Likewise.
15150         * modules/utimensat-tests (Depends-on): Likewise.
15151
15152 2011-06-17  Bruno Haible  <bruno@clisp.org>
15153
15154         spawn-pipe tests: Fix link error.
15155         * tests/test-spawn-pipe-child.c: Undefine fflush.
15156
15157 2011-06-17  Bruno Haible  <bruno@clisp.org>
15158
15159         Fix tests link errors.
15160         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15161         * modules/chown-tests (Makefile.am): Don't link test-chown with
15162         LIBINTL.
15163         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15164         LIBINTL.
15165         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15166         LIBINTL.
15167         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15168         LIBINTL.
15169
15170 2011-06-16  Bruno Haible  <bruno@clisp.org>
15171
15172         crypto/gc-sha1: Fix recent regression.
15173         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15174         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15175
15176         crypto/gc-md5: Fix recent regression.
15177         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15178
15179         crypto/gc-md4: Fix recent regression.
15180         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15181         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15182
15183         crypto/gc-arctwo: Fix recent regression.
15184         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15185         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15186
15187         crypto/gc-rijndael: Fix recent regression.
15188         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15189         (configure.ac): Invoke AC_LIBOBJ here.
15190         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15191         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15192
15193         crypto/gc-hmac-sha1: Fix recent regression.
15194         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15195         (configure.ac): Invoke AC_LIBOBJ here.
15196         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15197         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15198
15199         crypto/gc-hmac-md5: Fix recent regression.
15200         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15201         (configure.ac): Invoke AC_LIBOBJ here.
15202         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15203         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15204
15205         crypto/gc-des: Fix recent regression.
15206         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15207         (configure.ac): Invoke AC_LIBOBJ here.
15208         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15209         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15210
15211         crypto/gc-arcfour: Fix recent regression.
15212         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15213         (configure.ac): Invoke AC_LIBOBJ here.
15214         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15215         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15216
15217 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15218
15219         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15220         After the 2011-05-21 change, this macro requires
15221         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15222         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15223
15224 2011-06-16  Bruno Haible  <bruno@clisp.org>
15225
15226         fprintftime: Move AC_LIBOBJ invocations to module description.
15227         * m4/fprintftime.m4: Remove file.
15228         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15229         (configure.ac): Remove gl_FPRINTFTIME call.
15230         (Makefile.am): Augment lib_SOURCES.
15231         Reported by Jim Meyering.
15232
15233 2011-06-16  Bruno Haible  <bruno@clisp.org>
15234
15235         tmpfile-safer: Finish 2011-05-23 commit.
15236         * m4/stdio-safer.m4: Really remove file.
15237         Reported by Jim Meyering.
15238
15239 2011-06-16  Bruno Haible  <bruno@clisp.org>
15240
15241         syntax-check: Fix typo.
15242         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15243         printf-posix.m4.
15244         Reported by Jim Meyering.
15245
15246 2011-06-13  Jim Meyering  <meyering@redhat.com>
15247
15248         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15249         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15250
15251 2011-05-23  Bruno Haible  <bruno@clisp.org>
15252
15253         yesno: Move AC_LIBOBJ invocations to module description.
15254         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15255         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15256
15257 2011-05-23  Bruno Haible  <bruno@clisp.org>
15258
15259         xstrtol: Move AC_LIBOBJ invocations to module description.
15260         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15261         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15262
15263 2011-05-23  Bruno Haible  <bruno@clisp.org>
15264
15265         xstrtold: Move AC_LIBOBJ invocations to module description.
15266         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15267         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15268
15269 2011-05-23  Bruno Haible  <bruno@clisp.org>
15270
15271         xstrtod: Move AC_LIBOBJ invocations to module description.
15272         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15273         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15274
15275 2011-05-23  Bruno Haible  <bruno@clisp.org>
15276
15277         xnanosleep: Move AC_LIBOBJ invocations to module description.
15278         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15279         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15280
15281 2011-05-23  Bruno Haible  <bruno@clisp.org>
15282
15283         xgetcwd: Move AC_LIBOBJ invocations to module description.
15284         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15285         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15286
15287 2011-05-23  Bruno Haible  <bruno@clisp.org>
15288
15289         xalloc: Move AC_LIBOBJ invocations to module description.
15290         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15291         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15292
15293 2011-05-23  Bruno Haible  <bruno@clisp.org>
15294
15295         write-any-file: Move AC_LIBOBJ invocations to module description.
15296         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15297         invocation.
15298         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15299
15300 2011-05-23  Bruno Haible  <bruno@clisp.org>
15301
15302         utimens: Move AC_LIBOBJ invocations to module description.
15303         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15304         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15305
15306 2011-05-23  Bruno Haible  <bruno@clisp.org>
15307
15308         utimecmp: Move AC_LIBOBJ invocations to module description.
15309         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15310         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15311
15312 2011-05-23  Bruno Haible  <bruno@clisp.org>
15313
15314         userspec: Move AC_LIBOBJ invocations to module description.
15315         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15316         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15317
15318 2011-05-23  Bruno Haible  <bruno@clisp.org>
15319
15320         unlinkdir: Move AC_LIBOBJ invocations to module description.
15321         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15322         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15323
15324 2011-05-23  Bruno Haible  <bruno@clisp.org>
15325
15326         unistd-safer: Move AC_LIBOBJ invocations to module description.
15327         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15328         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15329
15330 2011-05-23  Bruno Haible  <bruno@clisp.org>
15331
15332         tempname: Move AC_LIBOBJ invocations to module description.
15333         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15334         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15335
15336 2011-05-23  Bruno Haible  <bruno@clisp.org>
15337
15338         strftime: Move AC_LIBOBJ invocations to module description.
15339         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15340         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15341
15342 2011-05-23  Bruno Haible  <bruno@clisp.org>
15343
15344         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15345         * m4/stdlib-safer.m4: Remove file.
15346         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15347         (configure.ac): Remove gl_STDLIB_SAFER call.
15348         (Makefile.am): Augment lib_SOURCES.
15349
15350 2011-05-23  Bruno Haible  <bruno@clisp.org>
15351
15352         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15353         * m4/stdio-safer.m4: Remove file.
15354         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15355         (configure.ac): Remove gl_TMPFILE_SAFER call.
15356         (Makefile.am): Augment lib_SOURCES.
15357
15358 2011-05-23  Bruno Haible  <bruno@clisp.org>
15359
15360         popen-safer: Move AC_LIBOBJ invocations to module description.
15361         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15362         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15363         (configure.ac): Remove gl_POPEN_SAFER call.
15364         (Makefile.am): Augment lib_SOURCES.
15365
15366 2011-05-23  Bruno Haible  <bruno@clisp.org>
15367
15368         freopen-safer: Move AC_LIBOBJ invocations to module description.
15369         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15370         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15371         (configure.ac): Remove gl_FREOPEN_SAFER call.
15372         (Makefile.am): Augment lib_SOURCES.
15373
15374 2011-05-23  Bruno Haible  <bruno@clisp.org>
15375
15376         fopen-safer: Move AC_LIBOBJ invocations to module description.
15377         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15378         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15379         (configure.ac): Remove gl_FOPEN_SAFER call.
15380         (Makefile.am): Augment lib_SOURCES.
15381
15382 2011-05-23  Bruno Haible  <bruno@clisp.org>
15383
15384         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15385         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15386         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15387
15388 2011-05-23  Bruno Haible  <bruno@clisp.org>
15389
15390         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15391         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15392         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15393
15394 2011-05-23  Bruno Haible  <bruno@clisp.org>
15395
15396         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15397         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15398         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15399
15400 2011-05-23  Bruno Haible  <bruno@clisp.org>
15401
15402         settime: Move AC_LIBOBJ invocations to module description.
15403         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15404         * modules/settime (Makefile.am): Augment lib_SOURCES.
15405
15406 2011-05-23  Bruno Haible  <bruno@clisp.org>
15407
15408         savedir: Move AC_LIBOBJ invocations to module description.
15409         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15410         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15411
15412 2011-05-23  Bruno Haible  <bruno@clisp.org>
15413
15414         save-cwd: Move AC_LIBOBJ invocations to module description.
15415         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15416         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15417
15418 2011-05-23  Bruno Haible  <bruno@clisp.org>
15419
15420         same: Move AC_LIBOBJ invocations to module description.
15421         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15422         * modules/same (Makefile.am): Augment lib_SOURCES.
15423
15424 2011-05-23  Bruno Haible  <bruno@clisp.org>
15425
15426         safe-write: Move AC_LIBOBJ invocations to module description.
15427         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15428         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15429         instead of gl_SAFE_WRITE.
15430         (Makefile.am): Augment lib_SOURCES.
15431
15432 2011-05-23  Bruno Haible  <bruno@clisp.org>
15433
15434         safe-read: Move AC_LIBOBJ invocations to module description.
15435         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15436         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15437         of gl_SAFE_READ.
15438         (Makefile.am): Augment lib_SOURCES.
15439
15440 2011-05-23  Bruno Haible  <bruno@clisp.org>
15441
15442         safe-alloc: Move AC_LIBOBJ invocations to module description.
15443         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15444         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15445
15446 2011-05-23  Bruno Haible  <bruno@clisp.org>
15447
15448         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15449         * m4/rijndael.m4: Remove file.
15450         * modules/crypto/rijndael (Files): Remove it.
15451         (configure.ac): Remove gl_RIJNDAEL call.
15452         (Makefile.am): Augment lib_SOURCES.
15453
15454 2011-05-23  Bruno Haible  <bruno@clisp.org>
15455
15456         readtokens: Move AC_LIBOBJ invocations to module description.
15457         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15458         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15459
15460 2011-05-23  Bruno Haible  <bruno@clisp.org>
15461
15462         read-file: Move AC_LIBOBJ invocations to module description.
15463         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15464         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15465         of gl_FUNC_READ_FILE.
15466         (Makefile.am): Augment lib_SOURCES.
15467
15468 2011-05-23  Bruno Haible  <bruno@clisp.org>
15469
15470         quotearg: Move AC_LIBOBJ invocations to module description.
15471         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15472         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15473
15474 2011-05-23  Bruno Haible  <bruno@clisp.org>
15475
15476         quote: Move AC_LIBOBJ invocations to module description.
15477         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15478         * modules/quote (Makefile.am): Augment lib_SOURCES.
15479
15480 2011-05-23  Bruno Haible  <bruno@clisp.org>
15481
15482         posixver: Move AC_LIBOBJ invocations to module description.
15483         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15484         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15485
15486 2011-05-23  Bruno Haible  <bruno@clisp.org>
15487
15488         posixtm: Move AC_LIBOBJ invocations to module description.
15489         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15490         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15491
15492 2011-05-23  Bruno Haible  <bruno@clisp.org>
15493
15494         physmem: Move AC_LIBOBJ invocations to module description.
15495         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15496         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15497
15498 2011-05-23  Bruno Haible  <bruno@clisp.org>
15499
15500         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15501         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15502         invocation.
15503         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15504
15505 2011-05-23  Bruno Haible  <bruno@clisp.org>
15506
15507         mpsort: Move AC_LIBOBJ invocations to module description.
15508         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15509         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15510
15511 2011-05-23  Bruno Haible  <bruno@clisp.org>
15512
15513         modechange: Move AC_LIBOBJ invocations to module description.
15514         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15515         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15516
15517 2011-05-23  Bruno Haible  <bruno@clisp.org>
15518
15519         mkdir-p: Move AC_LIBOBJ invocations to module description.
15520         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15521         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15522
15523 2011-05-23  Bruno Haible  <bruno@clisp.org>
15524
15525         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15526         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15527         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15528
15529 2011-05-23  Bruno Haible  <bruno@clisp.org>
15530
15531         mgetgroups: Move AC_LIBOBJ invocations to module description.
15532         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15533         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15534
15535 2011-05-23  Bruno Haible  <bruno@clisp.org>
15536
15537         memxor: Move AC_LIBOBJ invocations to module description.
15538         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15539         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15540
15541 2011-05-23  Bruno Haible  <bruno@clisp.org>
15542
15543         memcoll: Move AC_LIBOBJ invocations to module description.
15544         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15545         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15546
15547 2011-05-23  Bruno Haible  <bruno@clisp.org>
15548
15549         memcasecmp: Move AC_LIBOBJ invocations to module description.
15550         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15551         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15552
15553 2011-05-23  Bruno Haible  <bruno@clisp.org>
15554
15555         crypto/md5: Move AC_LIBOBJ invocations to module description.
15556         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15557         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15558
15559 2011-05-23  Bruno Haible  <bruno@clisp.org>
15560
15561         crypto/md4: Move AC_LIBOBJ invocations to module description.
15562         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15563         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15564
15565 2011-05-23  Bruno Haible  <bruno@clisp.org>
15566
15567         crypto/md2: Move AC_LIBOBJ invocations to module description.
15568         * m4/md2.m4: Remove file.
15569         * modules/crypto/md2 (Files): Remove it.
15570         (configure.ac): Remove gl_MD2 call.
15571         (Makefile.am): Augment lib_SOURCES.
15572
15573 2011-05-23  Bruno Haible  <bruno@clisp.org>
15574
15575         long-options: Move AC_LIBOBJ invocations to module description.
15576         * m4/long-options.m4: Remove file.
15577         * modules/long-options (Files): Remove it.
15578         (configure.ac): Remove gl_LONG_OPTIONS call.
15579         (Makefile.am): Augment lib_SOURCES.
15580
15581 2011-05-23  Bruno Haible  <bruno@clisp.org>
15582
15583         i-ring: Move AC_LIBOBJ invocations to module description.
15584         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15585         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15586
15587 2011-05-23  Bruno Haible  <bruno@clisp.org>
15588
15589         idcache: Move AC_LIBOBJ invocations to module description.
15590         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15591         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15592
15593 2011-05-23  Bruno Haible  <bruno@clisp.org>
15594
15595         human: Move AC_LIBOBJ invocations to module description.
15596         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15597         * modules/human (Makefile.am): Augment lib_SOURCES.
15598
15599 2011-05-23  Bruno Haible  <bruno@clisp.org>
15600
15601         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15602         * m4/hmac-sha1.m4: Remove file.
15603         * modules/crypto/hmac-sha1 (Files): Remove it.
15604         (configure.ac): Remove gl_HMAC_SHA1 call.
15605         (Makefile.am): Augment lib_SOURCES.
15606
15607 2011-05-23  Bruno Haible  <bruno@clisp.org>
15608
15609         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
15610         * m4/hmac-md5.m4: Remove file.
15611         * modules/crypto/hmac-md5 (Files): Remove it.
15612         (configure.ac): Remove gl_HMAC_MD5 call.
15613         (Makefile.am): Augment lib_SOURCES.
15614
15615 2011-05-23  Bruno Haible  <bruno@clisp.org>
15616
15617         hash: Move AC_LIBOBJ invocations to module description.
15618         * m4/hash.m4: Remove file.
15619         * modules/hash (Files): Remove it.
15620         (configure.ac): Remove gl_HASH call.
15621         (Makefile.am): Augment lib_SOURCES.
15622
15623 2011-05-23  Bruno Haible  <bruno@clisp.org>
15624
15625         hard-locale: Move AC_LIBOBJ invocations to module description.
15626         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
15627         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
15628
15629 2011-05-23  Bruno Haible  <bruno@clisp.org>
15630
15631         getugroups: Move AC_LIBOBJ invocations to module description.
15632         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
15633         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
15634
15635 2011-05-23  Bruno Haible  <bruno@clisp.org>
15636
15637         gettime: Move AC_LIBOBJ invocations to module description.
15638         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
15639         * modules/gettime (Makefile.am): Augment lib_SOURCES.
15640
15641 2011-05-23  Bruno Haible  <bruno@clisp.org>
15642
15643         getndelim2: Move AC_LIBOBJ invocations to module description.
15644         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
15645         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
15646
15647 2011-05-23  Bruno Haible  <bruno@clisp.org>
15648
15649         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
15650         * m4/gc-pbkdf2-sha1.m4: Remove file.
15651         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
15652         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
15653         (Makefile.am): Augment lib_SOURCES.
15654
15655 2011-05-23  Bruno Haible  <bruno@clisp.org>
15656
15657         fts: Move AC_LIBOBJ invocations to module description.
15658         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
15659         * modules/fts (configure.ac): ... to here.
15660
15661 2011-05-23  Bruno Haible  <bruno@clisp.org>
15662
15663         file-type: Move AC_LIBOBJ invocations to module description.
15664         * m4/file-type.m4: Remove file.
15665         * modules/file-type (Files): Remove it.
15666         (configure.ac): Remove gl_FILE_TYPE call.
15667         (Makefile.am): Augment lib_SOURCES.
15668
15669 2011-05-23  Bruno Haible  <bruno@clisp.org>
15670
15671         filenamecat*: Respect rules for use of AC_LIBOBJ.
15672         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
15673         Remove AC_LIBOBJ invocation.
15674         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
15675         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
15676
15677 2011-05-23  Bruno Haible  <bruno@clisp.org>
15678
15679         filemode: Move AC_LIBOBJ invocations to module description.
15680         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
15681         * modules/filemode (Makefile.am): Augment lib_SOURCES.
15682
15683 2011-05-23  Bruno Haible  <bruno@clisp.org>
15684
15685         openat-safer: Move AC_LIBOBJ invocations to module description.
15686         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
15687         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
15688
15689 2011-05-23  Bruno Haible  <bruno@clisp.org>
15690
15691         fcntl-safer: Move AC_LIBOBJ invocations to module description.
15692         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
15693         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
15694
15695 2011-05-23  Bruno Haible  <bruno@clisp.org>
15696
15697         exclude: Move AC_LIBOBJ invocations to module description.
15698         * m4/exclude.m4: Remove file.
15699         * modules/exclude (Files): Remove it.
15700         (configure.ac): Remove gl_EXCLUDE call.
15701         (Makefile.am): Augment lib_SOURCES.
15702
15703 2011-05-23  Bruno Haible  <bruno@clisp.org>
15704
15705         dirname*: Respect rules for use of AC_LIBOBJ.
15706         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
15707         invocations.
15708         * modules/dirname (Makefile.am): Augment lib_SOURCES.
15709         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
15710
15711 2011-05-23  Bruno Haible  <bruno@clisp.org>
15712
15713         dirent-safer: Move AC_LIBOBJ invocations to module description.
15714         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
15715         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
15716
15717 2011-05-23  Bruno Haible  <bruno@clisp.org>
15718
15719         crypto/des: Move AC_LIBOBJ invocations to module description.
15720         * m4/des.m4: Remove file.
15721         * modules/crypto/des (Files): Remove it.
15722         (configure.ac): Remove gl_DES call.
15723         (Makefile.am): Augment lib_SOURCES.
15724
15725 2011-05-23  Bruno Haible  <bruno@clisp.org>
15726
15727         cycle-check: Move AC_LIBOBJ invocations to module description.
15728         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
15729         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
15730
15731 2011-05-23  Bruno Haible  <bruno@clisp.org>
15732
15733         c-strtold: Move AC_LIBOBJ invocations to module description.
15734         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
15735         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
15736
15737 2011-05-23  Bruno Haible  <bruno@clisp.org>
15738
15739         c-strtod: Move AC_LIBOBJ invocations to module description.
15740         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
15741         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
15742
15743 2011-05-23  Bruno Haible  <bruno@clisp.org>
15744
15745         crc: Move AC_LIBOBJ invocations to module description.
15746         * m4/crc.m4: Remove file.
15747         * modules/crc (Files): Remove it.
15748         (configure.ac): Remove gl_CRC call.
15749         (Makefile.am): Augment lib_SOURCES.
15750
15751 2011-05-23  Bruno Haible  <bruno@clisp.org>
15752
15753         close-stream: Move AC_LIBOBJ invocations to module description.
15754         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
15755         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
15756
15757 2011-05-23  Bruno Haible  <bruno@clisp.org>
15758
15759         closeout: Move AC_LIBOBJ invocations to module description.
15760         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
15761         * modules/closeout (Makefile.am): Augment lib_SOURCES.
15762
15763 2011-05-23  Bruno Haible  <bruno@clisp.org>
15764
15765         closein: Move AC_LIBOBJ invocations to module description.
15766         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
15767         * modules/closein (Makefile.am): Augment lib_SOURCES.
15768
15769 2011-05-23  Bruno Haible  <bruno@clisp.org>
15770
15771         cloexec: Move AC_LIBOBJ invocations to module description.
15772         * m4/cloexec.m4: Remove file.
15773         * modules/cloexec (Files): Remove it.
15774         (configure.ac): Remove gl_CLOEXEC call.
15775         (Makefile.am): Augment lib_SOURCES.
15776
15777 2011-05-23  Bruno Haible  <bruno@clisp.org>
15778
15779         check-version: Move AC_LIBOBJ invocations to module description.
15780         * m4/check-version.m4: Remove file.
15781         * modules/check-version (Files): Remove it.
15782         (configure.ac): Remove gl_CHECK_VERSION call.
15783         (Makefile.am): Augment lib_SOURCES.
15784
15785 2011-05-23  Bruno Haible  <bruno@clisp.org>
15786
15787         chdir-safer: Move AC_LIBOBJ invocations to module description.
15788         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
15789         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
15790
15791 2011-05-23  Bruno Haible  <bruno@clisp.org>
15792
15793         canonicalize: Move AC_LIBOBJ invocations to module description.
15794         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
15795         AC_LIBOBJ invocation.
15796         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
15797
15798 2011-05-23  Bruno Haible  <bruno@clisp.org>
15799
15800         canon-host: Move AC_LIBOBJ invocations to module description.
15801         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
15802         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
15803         instead of gl_CANON_HOST.
15804         (Makefile.am): Augment lib_SOURCES.
15805
15806 2011-05-23  Bruno Haible  <bruno@clisp.org>
15807
15808         backupfile: Move AC_LIBOBJ invocations to module description.
15809         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
15810         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
15811
15812 2011-05-23  Bruno Haible  <bruno@clisp.org>
15813
15814         argmatch: Move AC_LIBOBJ invocations to module description.
15815         * m4/argmatch.m4: Remove file.
15816         * modules/argmatch (Files): Remove it.
15817         (configure.ac): Remove gl_ARGMATCH call.
15818         (Makefile.am): Augment lib_SOURCES.
15819
15820 2011-05-23  Bruno Haible  <bruno@clisp.org>
15821
15822         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
15823         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
15824         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
15825
15826 2011-05-23  Bruno Haible  <bruno@clisp.org>
15827
15828         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
15829         * m4/arcfour.m4: Remove file.
15830         * modules/crypto/arcfour (Files): Remove it.
15831         (configure.ac): Remove gl_ARCFOUR call.
15832         (Makefile.am): Augment lib_SOURCES.
15833
15834 2011-05-22  Bruno Haible  <bruno@clisp.org>
15835
15836         write: Move AC_LIBOBJ invocations to module description.
15837         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
15838         * modules/write (configure.ac): ... to here.
15839
15840 2011-05-22  Bruno Haible  <bruno@clisp.org>
15841
15842         wmemset: Move AC_LIBOBJ invocations to module description.
15843         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
15844         here...
15845         * modules/wmemset (configure.ac): ... to here.
15846
15847 2011-05-22  Bruno Haible  <bruno@clisp.org>
15848
15849         wmemmove: Move AC_LIBOBJ invocations to module description.
15850         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
15851         here...
15852         * modules/wmemmove (configure.ac): ... to here.
15853
15854 2011-05-22  Bruno Haible  <bruno@clisp.org>
15855
15856         wmemcpy: Move AC_LIBOBJ invocations to module description.
15857         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
15858         here...
15859         * modules/wmemcpy (configure.ac): ... to here.
15860
15861 2011-05-22  Bruno Haible  <bruno@clisp.org>
15862
15863         wmemcmp: Move AC_LIBOBJ invocations to module description.
15864         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
15865         here...
15866         * modules/wmemcmp (configure.ac): ... to here.
15867
15868 2011-05-22  Bruno Haible  <bruno@clisp.org>
15869
15870         wmemchr: Move AC_LIBOBJ invocations to module description.
15871         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
15872         here...
15873         * modules/wmemchr (configure.ac): ... to here.
15874
15875 2011-05-22  Bruno Haible  <bruno@clisp.org>
15876
15877         wcswidth: Move AC_LIBOBJ invocations to module description.
15878         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
15879         here...
15880         * modules/wcswidth (configure.ac): ... to here.
15881
15882 2011-05-22  Bruno Haible  <bruno@clisp.org>
15883
15884         wcwidth: Respect rules for use of AC_LIBOBJ.
15885         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
15886         invocation from here...
15887         * modules/wcwidth (configure.ac): ... to here.
15888         (Depends-on): Update conditions.
15889
15890 2011-05-22  Bruno Haible  <bruno@clisp.org>
15891
15892         wctype: Move AC_LIBOBJ invocations to module description.
15893         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
15894         invocation from here...
15895         * modules/wctype (configure.ac): ... to here.
15896         (Depends-on): Update conditions.
15897
15898 2011-05-22  Bruno Haible  <bruno@clisp.org>
15899
15900         wctrans: Move AC_LIBOBJ invocations to module description.
15901         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
15902         invocation from here...
15903         * modules/wctrans (configure.ac): ... to here.
15904
15905 2011-05-22  Bruno Haible  <bruno@clisp.org>
15906
15907         wctomb: Move AC_LIBOBJ invocations to module description.
15908         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
15909         invocations from here...
15910         * modules/wctomb (configure.ac): ... to here.
15911
15912 2011-05-22  Bruno Haible  <bruno@clisp.org>
15913
15914         wctob: Move AC_LIBOBJ invocations to module description.
15915         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
15916         gl_PREREQ_WCTOB invocations from here...
15917         * modules/wctob (configure.ac): ... to here.
15918         (Depends-on): Update conditions.
15919
15920 2011-05-22  Bruno Haible  <bruno@clisp.org>
15921
15922         wcsxfrm: Move AC_LIBOBJ invocations to module description.
15923         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
15924         here...
15925         * modules/wcsxfrm (configure.ac): ... to here.
15926
15927 2011-05-22  Bruno Haible  <bruno@clisp.org>
15928
15929         wcstok: Move AC_LIBOBJ invocations to module description.
15930         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
15931         * modules/wcstok (configure.ac): ... to here.
15932
15933 2011-05-22  Bruno Haible  <bruno@clisp.org>
15934
15935         wcsstr: Move AC_LIBOBJ invocations to module description.
15936         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
15937         * modules/wcsstr (configure.ac): ... to here.
15938
15939 2011-05-22  Bruno Haible  <bruno@clisp.org>
15940
15941         wcsspn: Move AC_LIBOBJ invocations to module description.
15942         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
15943         * modules/wcsspn (configure.ac): ... to here.
15944
15945 2011-05-22  Bruno Haible  <bruno@clisp.org>
15946
15947         wcsrtombs: Move AC_LIBOBJ invocations to module description.
15948         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
15949         gl_PREREQ_WCSRTOMBS invocations from here...
15950         * modules/wcsrtombs (configure.ac): ... to here.
15951
15952 2011-05-22  Bruno Haible  <bruno@clisp.org>
15953
15954         wcsrchr: Move AC_LIBOBJ invocations to module description.
15955         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
15956         here...
15957         * modules/wcsrchr (configure.ac): ... to here.
15958
15959 2011-05-22  Bruno Haible  <bruno@clisp.org>
15960
15961         wcspbrk: Move AC_LIBOBJ invocations to module description.
15962         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
15963         here...
15964         * modules/wcspbrk (configure.ac): ... to here.
15965
15966 2011-05-22  Bruno Haible  <bruno@clisp.org>
15967
15968         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
15969         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
15970         gl_PREREQ_WCSNRTOMBS invocations from here...
15971         * modules/wcsnrtombs (configure.ac): ... to here.
15972
15973 2011-05-22  Bruno Haible  <bruno@clisp.org>
15974
15975         wcsnlen: Move AC_LIBOBJ invocations to module description.
15976         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
15977         here...
15978         * modules/wcsnlen (configure.ac): ... to here.
15979
15980 2011-05-22  Bruno Haible  <bruno@clisp.org>
15981
15982         wcsncpy: Move AC_LIBOBJ invocations to module description.
15983         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
15984         here...
15985         * modules/wcsncpy (configure.ac): ... to here.
15986
15987 2011-05-22  Bruno Haible  <bruno@clisp.org>
15988
15989         wcsncmp: Move AC_LIBOBJ invocations to module description.
15990         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
15991         here...
15992         * modules/wcsncmp (configure.ac): ... to here.
15993
15994 2011-05-22  Bruno Haible  <bruno@clisp.org>
15995
15996         wcsncat: Move AC_LIBOBJ invocations to module description.
15997         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
15998         here...
15999         * modules/wcsncat (configure.ac): ... to here.
16000
16001 2011-05-22  Bruno Haible  <bruno@clisp.org>
16002
16003         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16004         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16005         from here...
16006         * modules/wcsncasecmp (configure.ac): ... to here.
16007
16008 2011-05-22  Bruno Haible  <bruno@clisp.org>
16009
16010         wcslen: Move AC_LIBOBJ invocations to module description.
16011         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16012         * modules/wcslen (configure.ac): ... to here.
16013
16014 2011-05-22  Bruno Haible  <bruno@clisp.org>
16015
16016         wcsdup: Move AC_LIBOBJ invocations to module description.
16017         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16018         * modules/wcsdup (configure.ac): ... to here.
16019
16020 2011-05-22  Bruno Haible  <bruno@clisp.org>
16021
16022         wcscspn: Move AC_LIBOBJ invocations to module description.
16023         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16024         here...
16025         * modules/wcscspn (configure.ac): ... to here.
16026
16027 2011-05-22  Bruno Haible  <bruno@clisp.org>
16028
16029         wcscpy: Move AC_LIBOBJ invocations to module description.
16030         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16031         * modules/wcscpy (configure.ac): ... to here.
16032
16033 2011-05-22  Bruno Haible  <bruno@clisp.org>
16034
16035         wcscoll: Move AC_LIBOBJ invocations to module description.
16036         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16037         here...
16038         * modules/wcscoll (configure.ac): ... to here.
16039
16040 2011-05-22  Bruno Haible  <bruno@clisp.org>
16041
16042         wcscmp: Move AC_LIBOBJ invocations to module description.
16043         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16044         * modules/wcscmp (configure.ac): ... to here.
16045
16046 2011-05-22  Bruno Haible  <bruno@clisp.org>
16047
16048         wcschr: Move AC_LIBOBJ invocations to module description.
16049         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16050         * modules/wcschr (configure.ac): ... to here.
16051
16052 2011-05-22  Bruno Haible  <bruno@clisp.org>
16053
16054         wcscat: Move AC_LIBOBJ invocations to module description.
16055         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16056         * modules/wcscat (configure.ac): ... to here.
16057
16058 2011-05-22  Bruno Haible  <bruno@clisp.org>
16059
16060         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16061         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16062         here...
16063         * modules/wcscasecmp (configure.ac): ... to here.
16064
16065 2011-05-22  Bruno Haible  <bruno@clisp.org>
16066
16067         wcrtomb: Move AC_LIBOBJ invocations to module description.
16068         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16069         invocations from here...
16070         * modules/wcrtomb (configure.ac): ... to here.
16071
16072 2011-05-22  Bruno Haible  <bruno@clisp.org>
16073
16074         wcpncpy: Move AC_LIBOBJ invocations to module description.
16075         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16076         here...
16077         * modules/wcpncpy (configure.ac): ... to here.
16078
16079 2011-05-22  Bruno Haible  <bruno@clisp.org>
16080
16081         wcpcpy: Move AC_LIBOBJ invocations to module description.
16082         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16083         * modules/wcpcpy (configure.ac): ... to here.
16084
16085 2011-05-22  Bruno Haible  <bruno@clisp.org>
16086
16087         waitpid: Move AC_LIBOBJ invocations to module description.
16088         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16089         invocation from here...
16090         * modules/waitpid (configure.ac): ... to here.
16091
16092 2011-05-22  Bruno Haible  <bruno@clisp.org>
16093
16094         utimensat: Move AC_LIBOBJ invocations to module description.
16095         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16096         here...
16097         * modules/utimensat (configure.ac): ... to here.
16098
16099 2011-05-22  Bruno Haible  <bruno@clisp.org>
16100
16101         usleep: Move AC_LIBOBJ invocations to module description.
16102         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16103         here...
16104         * modules/usleep (configure.ac): ... to here.
16105
16106 2011-05-22  Bruno Haible  <bruno@clisp.org>
16107
16108         unlockpt: Move AC_LIBOBJ invocations to module description.
16109         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16110         gl_PREREQ_UNLOCKPT invocations from here...
16111         * modules/unlockpt (configure.ac): ... to here.
16112
16113 2011-05-22  Bruno Haible  <bruno@clisp.org>
16114
16115         unlink: Respect rules for use of AC_LIBOBJ.
16116         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16117         * modules/unlink (configure.ac): ... to here.
16118
16119 2011-05-22  Bruno Haible  <bruno@clisp.org>
16120
16121         uname: Move AC_LIBOBJ invocations to module description.
16122         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16123         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16124         here...
16125         * modules/uname (configure.ac): ... to here.
16126
16127 2011-05-22  Bruno Haible  <bruno@clisp.org>
16128
16129         ttyname_r: Move AC_LIBOBJ invocations to module description.
16130         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16131         gl_PREREQ_TTYNAME_R invocations from here...
16132         * modules/ttyname_r (configure.ac): ... to here.
16133
16134 2011-05-22  Bruno Haible  <bruno@clisp.org>
16135
16136         tsearch: Move AC_LIBOBJ invocations to module description.
16137         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16138         invocations from here...
16139         * modules/tsearch (configure.ac): ... to here.
16140
16141 2011-05-22  Bruno Haible  <bruno@clisp.org>
16142
16143         towctrans: Move AC_LIBOBJ invocations to module description.
16144         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16145         AC_LIBOBJ invocation from here...
16146         * modules/towctrans (configure.ac): ... to here.
16147
16148 2011-05-22  Bruno Haible  <bruno@clisp.org>
16149
16150         tmpfile: Move AC_LIBOBJ invocations to module description.
16151         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16152         invocations from here...
16153         * modules/tmpfile (configure.ac): ... to here.
16154
16155 2011-05-22  Bruno Haible  <bruno@clisp.org>
16156
16157         times: Move AC_LIBOBJ invocations to module description.
16158         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16159         * modules/times (configure.ac): ... to here.
16160
16161 2011-05-22  Bruno Haible  <bruno@clisp.org>
16162
16163         time_r: Move AC_LIBOBJ invocations to module description.
16164         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16165         invocations from here...
16166         * modules/time_r (configure.ac): ... to here.
16167
16168 2011-05-22  Bruno Haible  <bruno@clisp.org>
16169
16170         timegm: Move AC_LIBOBJ invocations to module description.
16171         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16172         invocations from here...
16173         * modules/timegm (configure.ac): ... to here.
16174
16175 2011-05-22  Bruno Haible  <bruno@clisp.org>
16176
16177         tcgetsid: Move AC_LIBOBJ invocations to module description.
16178         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16179         and gl_PREREQ_TCGETSID invocations from here...
16180         * modules/tcgetsid (configure.ac): ... to here.
16181         (Depends-on): Update conditions.
16182
16183 2011-05-22  Bruno Haible  <bruno@clisp.org>
16184
16185         symlinkat: Move AC_LIBOBJ invocations to module description.
16186         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16187         here...
16188         * modules/symlinkat (configure.ac): ... to here.
16189
16190 2011-05-22  Bruno Haible  <bruno@clisp.org>
16191
16192         symlink: Move AC_LIBOBJ invocations to module description.
16193         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16194         here...
16195         * modules/symlink (configure.ac): ... to here.
16196
16197 2011-05-22  Bruno Haible  <bruno@clisp.org>
16198
16199         strverscmp: Move AC_LIBOBJ invocations to module description.
16200         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16201         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16202         from here...
16203         * modules/strverscmp (configure.ac): ... to here.
16204
16205 2011-05-22  Bruno Haible  <bruno@clisp.org>
16206
16207         strtok_r: Move AC_LIBOBJ invocations to module description.
16208         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16209         and gl_PREREQ_STRTOK_R invocations from here...
16210         * modules/strtok_r (configure.ac): ... to here.
16211         (Depends-on): Update conditions.
16212
16213 2011-05-22  Bruno Haible  <bruno@clisp.org>
16214
16215         strtoumax: Move AC_LIBOBJ invocations to module description.
16216         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16217         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16218         from here...
16219         * modules/strtoumax (configure.ac): ... to here.
16220
16221 2011-05-22  Bruno Haible  <bruno@clisp.org>
16222
16223         strtoimax: Move AC_LIBOBJ invocations to module description.
16224         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16225         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16226         from here...
16227         * modules/strtoimax (configure.ac): ... to here.
16228
16229 2011-05-22  Bruno Haible  <bruno@clisp.org>
16230
16231         strtoull: Move AC_LIBOBJ invocations to module description.
16232         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16233         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16234         from here...
16235         * modules/strtoull (configure.ac): ... to here.
16236
16237 2011-05-22  Bruno Haible  <bruno@clisp.org>
16238
16239         strtoll: Move AC_LIBOBJ invocations to module description.
16240         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16241         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16242         here...
16243         * modules/strtoll (configure.ac): ... to here.
16244
16245 2011-05-22  Bruno Haible  <bruno@clisp.org>
16246
16247         strtoul: Move AC_LIBOBJ invocations to module description.
16248         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16249         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16250         * modules/strtoul (configure.ac): ... to here.
16251
16252 2011-05-22  Bruno Haible  <bruno@clisp.org>
16253
16254         strtol: Move AC_LIBOBJ invocations to module description.
16255         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16256         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16257         * modules/strtol (configure.ac): ... to here.
16258
16259 2011-05-22  Bruno Haible  <bruno@clisp.org>
16260
16261         strtod: Move AC_LIBOBJ invocations to module description.
16262         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16263         invocations from here...
16264         * modules/strtod (configure.ac): ... to here.
16265
16266 2011-05-22  Bruno Haible  <bruno@clisp.org>
16267
16268         strstr*: Move AC_LIBOBJ invocations to module description.
16269         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16270         invocations from here...
16271         * modules/strstr-simple (configure.ac): ... to here.
16272         * modules/strstr (configure.ac): ... and here.
16273
16274 2011-05-22  Bruno Haible  <bruno@clisp.org>
16275
16276         strsignal: Move AC_LIBOBJ invocations to module description.
16277         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16278         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16279         * modules/strsignal (configure.ac): ... to here.
16280         (Depends-on): Update conditions.
16281
16282 2011-05-22  Bruno Haible  <bruno@clisp.org>
16283
16284         strsep: Move AC_LIBOBJ invocations to module description.
16285         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16286         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16287         here...
16288         * modules/strsep (configure.ac): ... to here.
16289
16290 2011-05-22  Bruno Haible  <bruno@clisp.org>
16291
16292         strptime: Move AC_LIBOBJ invocations to module description.
16293         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16294         gl_PREREQ_STRPTIME invocations from here...
16295         * modules/strptime (configure.ac): ... to here.
16296
16297 2011-05-22  Bruno Haible  <bruno@clisp.org>
16298
16299         strpbrk: Move AC_LIBOBJ invocations to module description.
16300         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16301         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16302         here...
16303         * modules/strpbrk (configure.ac): ... to here.
16304
16305 2011-05-22  Bruno Haible  <bruno@clisp.org>
16306
16307         strnlen: Move AC_LIBOBJ invocations to module description.
16308         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16309         invocations from here...
16310         * modules/strnlen (configure.ac): ... to here.
16311
16312 2011-05-22  Bruno Haible  <bruno@clisp.org>
16313
16314         strndup: Move AC_LIBOBJ invocations to module description.
16315         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16316         invocations from here...
16317         * modules/strndup (configure.ac): ... to here.
16318         (Depends-on): Update conditions.
16319
16320 2011-05-22  Bruno Haible  <bruno@clisp.org>
16321
16322         strncat: Move AC_LIBOBJ invocations to module description.
16323         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16324         invocations from here...
16325         * modules/strncat (configure.ac): ... to here.
16326
16327 2011-05-22  Bruno Haible  <bruno@clisp.org>
16328
16329         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16330         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16331         invocations from here...
16332         * modules/strdup (configure.ac): ... to here.
16333         * modules/strdup-posix (configure.ac): ... and here.
16334
16335 2011-05-22  Bruno Haible  <bruno@clisp.org>
16336
16337         strcspn: Move AC_LIBOBJ invocations to module description.
16338         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16339         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16340         here...
16341         * modules/strcspn (configure.ac): ... to here.
16342
16343 2011-05-22  Bruno Haible  <bruno@clisp.org>
16344
16345         strchrnul: Move AC_LIBOBJ invocations to module description.
16346         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16347         gl_PREREQ_STRCHRNUL invocations from here...
16348         * modules/strchrnul (configure.ac): ... to here.
16349
16350 2011-05-22  Bruno Haible  <bruno@clisp.org>
16351
16352         strcasestr*: Move AC_LIBOBJ invocations to module description.
16353         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16354         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16355         * modules/strcasestr-simple (configure.ac): ... to here.
16356         * modules/strcasestr (configure.ac): ... and here.
16357
16358 2011-05-22  Bruno Haible  <bruno@clisp.org>
16359
16360         strcase: Move AC_LIBOBJ invocations to module description.
16361         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16362         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16363         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16364         gl_PREREQ_STRNCASECMP invocations from here...
16365         * modules/strcase (configure.ac): ... to here.
16366
16367 2011-05-22  Bruno Haible  <bruno@clisp.org>
16368
16369         stpncpy: Move AC_LIBOBJ invocations to module description.
16370         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16371         here...
16372         * modules/stpncpy (configure.ac): ... to here.
16373
16374 2011-05-22  Bruno Haible  <bruno@clisp.org>
16375
16376         stpcpy: Move AC_LIBOBJ invocations to module description.
16377         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16378         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16379         here...
16380         * modules/stpcpy (configure.ac): ... to here.
16381
16382 2011-05-21  Bruno Haible  <bruno@clisp.org>
16383
16384         stat: Move AC_LIBOBJ invocations to module description.
16385         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16386         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16387         here...
16388         * modules/stat (configure.ac): ... to here.
16389
16390 2011-05-21  Bruno Haible  <bruno@clisp.org>
16391
16392         sleep: Move AC_LIBOBJ invocations to module description.
16393         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16394         * modules/sleep (configure.ac): ... to here.
16395
16396 2011-05-21  Bruno Haible  <bruno@clisp.org>
16397
16398         signbit: Move AC_LIBOBJ invocations to module description.
16399         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16400         * modules/signbit (configure.ac): ... to here.
16401
16402 2011-05-21  Bruno Haible  <bruno@clisp.org>
16403
16404         sigprocmask: Move AC_LIBOBJ invocations to module description.
16405         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16406         gl_PREREQ_SIGPROMASK invocations from here...
16407         * modules/sigprocmask (configure.ac): ... to here.
16408
16409 2011-05-21  Bruno Haible  <bruno@clisp.org>
16410
16411         sigaction: Move AC_LIBOBJ invocations to module description.
16412         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16413         gl_PREREQ_SIGACTION invocations from here...
16414         * modules/sigaction (configure.ac): ... to here.
16415
16416 2011-05-21  Bruno Haible  <bruno@clisp.org>
16417
16418         sig2str: Move AC_LIBOBJ invocations to module description.
16419         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16420         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16421         here...
16422         * modules/sig2str (configure.ac): ... to here.
16423
16424 2011-05-21  Bruno Haible  <bruno@clisp.org>
16425
16426         setlocale: Move AC_LIBOBJ invocations to module description.
16427         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16428         gl_PREREQ_SETLOCALE invocations from here...
16429         * modules/setlocale (configure.ac): ... to here.
16430
16431 2011-05-21  Bruno Haible  <bruno@clisp.org>
16432
16433         unsetenv: Move AC_LIBOBJ invocations to module description.
16434         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16435         and gl_PREREQ_UNSETENV invocations from here...
16436         * modules/unsetenv (configure.ac): ... to here.
16437         (Depends-on): Update.
16438
16439 2011-05-21  Bruno Haible  <bruno@clisp.org>
16440
16441         setenv: Move AC_LIBOBJ invocations to module description.
16442         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16443         here...
16444         * modules/setenv (configure.ac): ... to here.
16445
16446 2011-05-21  Bruno Haible  <bruno@clisp.org>
16447
16448         selinux-h: Move AC_LIBOBJ invocations to module description.
16449         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16450         AC_LIBOBJ invocation from here...
16451         * modules/selinux-h (configure.ac): ... to here.
16452
16453 2011-05-21  Bruno Haible  <bruno@clisp.org>
16454
16455         select: Respect rules for use of AC_LIBOBJ.
16456         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16457         here...
16458         * modules/select (configure.ac): ... to here.
16459
16460 2011-05-21  Bruno Haible  <bruno@clisp.org>
16461
16462         scandir: Move AC_LIBOBJ invocations to module description.
16463         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16464         invocations from here...
16465         * modules/scandir (configure.ac): ... to here.
16466
16467 2011-05-21  Bruno Haible  <bruno@clisp.org>
16468
16469         rpmatch: Move AC_LIBOBJ invocations to module description.
16470         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16471         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16472         here...
16473         * modules/rpmatch (configure.ac): ... to here.
16474
16475 2011-05-21  Bruno Haible  <bruno@clisp.org>
16476
16477         rmdir: Respect rules for use of AC_LIBOBJ.
16478         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16479         * modules/rmdir (configure.ac): ... to here.
16480
16481 2011-05-21  Bruno Haible  <bruno@clisp.org>
16482
16483         renameat: Move AC_LIBOBJ invocations to module description.
16484         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16485         here...
16486         * modules/renameat (configure.ac): ... to here.
16487
16488 2011-05-21  Bruno Haible  <bruno@clisp.org>
16489
16490         rename: Respect rules for use of AC_LIBOBJ.
16491         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16492         here...
16493         * modules/rename (configure.ac): ... to here.
16494
16495 2011-05-21  Bruno Haible  <bruno@clisp.org>
16496
16497         remove: Move AC_LIBOBJ invocations to module description.
16498         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16499         here...
16500         * modules/remove (configure.ac): ... to here.
16501
16502 2011-05-21  Bruno Haible  <bruno@clisp.org>
16503
16504         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16505         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16506         macro.
16507         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16508         * modules/relocatable-lib (configure.ac): ... to here.
16509         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16510         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16511
16512 2011-05-21  Bruno Haible  <bruno@clisp.org>
16513
16514         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16515         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16516         here...
16517         * modules/relocatable-prog (configure.ac): ... to here.
16518
16519 2011-05-21  Bruno Haible  <bruno@clisp.org>
16520
16521         regex: Move AC_LIBOBJ invocations to module description.
16522         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16523         invocations from here...
16524         * modules/regex (configure.ac): ... to here.
16525
16526 2011-05-21  Bruno Haible  <bruno@clisp.org>
16527
16528         realloc-*: Move AC_LIBOBJ invocations to module description.
16529         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16530         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16531         AC_LIBOBJ invocations from here...
16532         * modules/realloc-gnu (configure.ac): ... to here.
16533         * modules/realloc-posix (configure.ac): ... and here.
16534
16535 2011-05-21  Bruno Haible  <bruno@clisp.org>
16536
16537         readutmp: Move AC_LIBOBJ invocations to module description.
16538         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16539         * modules/readutmp (configure.ac): ... to here.
16540
16541 2011-05-21  Bruno Haible  <bruno@clisp.org>
16542
16543         readlinkat: Move AC_LIBOBJ invocations to module description.
16544         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16545         here...
16546         * modules/readlinkat (configure.ac): ... to here.
16547
16548 2011-05-21  Bruno Haible  <bruno@clisp.org>
16549
16550         readlink: Move AC_LIBOBJ invocations to module description.
16551         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16552         gl_PREREQ_READLINK invocations from here...
16553         * modules/readlink (configure.ac): ... to here.
16554
16555 2011-05-21  Bruno Haible  <bruno@clisp.org>
16556
16557         readline: Move AC_LIBOBJ invocations to module description.
16558         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16559         gl_PREREQ_READLINE invocations from here...
16560         * modules/readline (configure.ac): ... to here.
16561
16562 2011-05-21  Bruno Haible  <bruno@clisp.org>
16563
16564         read: Move AC_LIBOBJ invocations to module description.
16565         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16566         * modules/read (configure.ac): ... to here.
16567
16568 2011-05-21  Bruno Haible  <bruno@clisp.org>
16569
16570         rawmemchr: Move AC_LIBOBJ invocations to module description.
16571         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16572         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16573         from here...
16574         * modules/rawmemchr (configure.ac): ... to here.
16575
16576 2011-05-21  Bruno Haible  <bruno@clisp.org>
16577
16578         random_r: Move AC_LIBOBJ invocations to module description.
16579         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16580         gl_PREREQ_RANDOM_R invocations from here...
16581         * modules/random_r (configure.ac): ... to here.
16582
16583 2011-05-21  Bruno Haible  <bruno@clisp.org>
16584
16585         pwrite: Move AC_LIBOBJ invocations to module description.
16586         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16587         * modules/pwrite (configure.ac): ... to here.
16588
16589 2011-05-21  Bruno Haible  <bruno@clisp.org>
16590
16591         putenv: Move AC_LIBOBJ invocations to module description.
16592         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16593         * modules/putenv (configure.ac): ... to here.
16594
16595 2011-05-21  Bruno Haible  <bruno@clisp.org>
16596
16597         login_tty: Move AC_LIBOBJ invocations to module description.
16598         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16599         * modules/login_tty (configure.ac): ... to here.
16600
16601 2011-05-21  Bruno Haible  <bruno@clisp.org>
16602
16603         openpty: Move AC_LIBOBJ invocations to module description.
16604         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
16605         * modules/openpty (configure.ac): ... to here.
16606
16607 2011-05-21  Bruno Haible  <bruno@clisp.org>
16608
16609         forkpty: Move AC_LIBOBJ invocations to module description.
16610         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
16611         * modules/forkpty (configure.ac): ... to here.
16612
16613 2011-05-21  Bruno Haible  <bruno@clisp.org>
16614
16615         ptsname: Move AC_LIBOBJ invocations to module description.
16616         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
16617         invocations from here...
16618         * modules/ptsname (configure.ac): ... to here.
16619
16620 2011-05-21  Bruno Haible  <bruno@clisp.org>
16621
16622         pread: Move AC_LIBOBJ invocations to module description.
16623         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
16624         * modules/pread (configure.ac): ... to here.
16625
16626 2011-05-21  Bruno Haible  <bruno@clisp.org>
16627
16628         posix_spawn*: Move AC_LIBOBJ invocations to module description.
16629         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
16630         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
16631         * modules/posix_spawn (configure.ac): ... to here.
16632         * modules/posix_spawnp (configure.ac): ... and here.
16633
16634 2011-05-21  Bruno Haible  <bruno@clisp.org>
16635
16636         popen: Move AC_LIBOBJ invocations to module description.
16637         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
16638         invocations from here...
16639         * modules/popen (configure.ac): ... to here.
16640
16641 2011-05-21  Bruno Haible  <bruno@clisp.org>
16642
16643         poll: Move AC_LIBOBJ invocations to module description.
16644         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
16645         invocations from here...
16646         * modules/poll (configure.ac): ... to here.
16647
16648 2011-05-21  Bruno Haible  <bruno@clisp.org>
16649
16650         pipe-posix: Move AC_LIBOBJ invocations to module description.
16651         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
16652         * modules/pipe-posix (configure.ac): ... to here.
16653
16654 2011-05-21  Bruno Haible  <bruno@clisp.org>
16655
16656         openat: Respect rules for use of AC_LIBOBJ.
16657         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
16658         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16659         * modules/openat (configure.ac): ... to here.
16660
16661 2011-05-21  Bruno Haible  <bruno@clisp.org>
16662
16663         obstack-printf*: Move AC_LIBOBJ invocations to module description.
16664         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
16665         invocation from here...
16666         * modules/obstack-printf (configure.ac): ... to here.
16667         * modules/obstack-printf-posix (configure.ac): ... and here.
16668
16669 2011-05-21  Bruno Haible  <bruno@clisp.org>
16670
16671         nl_langinfo: Move AC_LIBOBJ invocations to module description.
16672         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
16673         from here...
16674         * modules/nl_langinfo (configure.ac): ... to here.
16675
16676 2011-05-21  Bruno Haible  <bruno@clisp.org>
16677
16678         nanosleep: Move AC_LIBOBJ invocations to module description.
16679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
16680         gl_PREREQ_NANOSLEEP invocations from here...
16681         * modules/nanosleep (configure.ac): ... to here.
16682
16683 2011-05-21  Bruno Haible  <bruno@clisp.org>
16684
16685         mountlist: Move AC_LIBOBJ invocations to module description.
16686         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
16687         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
16688         * modules/mountlist (configure.ac): ... to here.
16689
16690 2011-05-21  Bruno Haible  <bruno@clisp.org>
16691
16692         mktime: Respect rules for use of AC_LIBOBJ.
16693         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
16694         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
16695         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
16696         (gl_FUNC_MKTIME_INTERNAL): ... and here...
16697         * modules/mktime (configure.ac): ... to here.
16698         * modules/mktime-internal (configure.ac): ... and here.
16699         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
16700
16701 2011-05-21  Bruno Haible  <bruno@clisp.org>
16702
16703         mkstemps: Move AC_LIBOBJ invocations to module description.
16704         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
16705         here...
16706         * modules/mkstemps (configure.ac): ... to here.
16707
16708 2011-05-21  Bruno Haible  <bruno@clisp.org>
16709
16710         mkstemp: Move AC_LIBOBJ invocations to module description.
16711         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
16712         gl_PREREQ_MKSTEMP invocations from here...
16713         * modules/mkstemp (configure.ac): ... to here.
16714
16715 2011-05-21  Bruno Haible  <bruno@clisp.org>
16716
16717         mkostemps: Move AC_LIBOBJ invocations to module description.
16718         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
16719         here...
16720         * modules/mkostemps (configure.ac): ... to here.
16721
16722 2011-05-21  Bruno Haible  <bruno@clisp.org>
16723
16724         mkostemp: Move AC_LIBOBJ invocations to module description.
16725         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
16726         gl_PREREQ_MKOSTEMP invocations from here...
16727         * modules/mkostemp (configure.ac): ... to here.
16728
16729 2011-05-21  Bruno Haible  <bruno@clisp.org>
16730
16731         mknod: Move AC_LIBOBJ invocations to module description.
16732         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
16733         * modules/mknod (configure.ac): ... to here.
16734
16735 2011-05-21  Bruno Haible  <bruno@clisp.org>
16736
16737         mkfifoat: Move AC_LIBOBJ invocations to module description.
16738         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
16739         here...
16740         * modules/mkfifoat (configure.ac): ... to here.
16741
16742 2011-05-21  Bruno Haible  <bruno@clisp.org>
16743
16744         mkfifo: Respect rules for use of AC_LIBOBJ.
16745         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
16746         here...
16747         * modules/mkfifo (configure.ac): ... to here.
16748
16749 2011-05-21  Bruno Haible  <bruno@clisp.org>
16750
16751         mkdtemp: Move AC_LIBOBJ invocations to module description.
16752         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
16753         invocations from here...
16754         * modules/mkdtemp (configure.ac): ... to here.
16755
16756 2011-05-21  Bruno Haible  <bruno@clisp.org>
16757
16758         mkdir: Move AC_LIBOBJ invocations to module description.
16759         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
16760         * modules/mkdir (configure.ac): ... to here.
16761
16762 2011-05-21  Bruno Haible  <bruno@clisp.org>
16763
16764         memset: Move AC_LIBOBJ invocations to module description.
16765         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
16766         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
16767         here...
16768         * modules/memset (configure.ac): ... to here.
16769
16770 2011-05-21  Bruno Haible  <bruno@clisp.org>
16771
16772         memrchr: Move AC_LIBOBJ invocations to module description.
16773         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
16774         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
16775         here...
16776         * modules/memrchr (configure.ac): ... to here.
16777
16778 2011-05-21  Bruno Haible  <bruno@clisp.org>
16779
16780         mempcpy: Move AC_LIBOBJ invocations to module description.
16781         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
16782         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
16783         here...
16784         * modules/mempcpy (configure.ac): ... to here.
16785
16786 2011-05-21  Bruno Haible  <bruno@clisp.org>
16787
16788         memmove: Move AC_LIBOBJ invocations to module description.
16789         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
16790         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
16791         here...
16792         * modules/memmove (configure.ac): ... to here.
16793
16794 2011-05-21  Bruno Haible  <bruno@clisp.org>
16795
16796         memmem*: Move AC_LIBOBJ invocations to module description.
16797         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
16798         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
16799         here...
16800         (gl_FUNC_MEMMEM): ... and here...
16801         * modules/memmem-simple (configure.ac): ... to here.
16802         * modules/memmem (configure.ac): ... and here.
16803
16804 2011-05-21  Bruno Haible  <bruno@clisp.org>
16805
16806         memcpy: Move AC_LIBOBJ invocations to module description.
16807         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
16808         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
16809         here...
16810         * modules/memcpy (configure.ac): ... to here.
16811
16812 2011-05-21  Bruno Haible  <bruno@clisp.org>
16813
16814         memcmp: Simplify autoconf macro.
16815         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
16816         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
16817         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
16818
16819 2011-05-21  Bruno Haible  <bruno@clisp.org>
16820
16821         memcmp: Move AC_LIBOBJ invocations to module description.
16822         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
16823         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
16824         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
16825         * modules/memcmp (configure.ac): ... to here.
16826         (Depends-on): Update conditions.
16827
16828 2011-05-21  Bruno Haible  <bruno@clisp.org>
16829
16830         memchr: Respect rules for use of AC_LIBOBJ.
16831         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
16832         invocations from here...
16833         * modules/memchr (configure.ac): ... to here.
16834
16835 2011-05-21  Bruno Haible  <bruno@clisp.org>
16836
16837         mbtowc: Move AC_LIBOBJ invocations to module description.
16838         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
16839         invocations from here...
16840         * modules/mbtowc (configure.ac): ... to here.
16841
16842 2011-05-21  Bruno Haible  <bruno@clisp.org>
16843
16844         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
16845         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
16846         gl_PREREQ_MBSRTOWCS invocations from here...
16847         * modules/mbsrtowcs (configure.ac): ... to here.
16848
16849 2011-05-21  Bruno Haible  <bruno@clisp.org>
16850
16851         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
16852         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
16853         gl_PREREQ_MBSNRTOWCS invocations from here...
16854         * modules/mbsnrtowcs (configure.ac): ... to here.
16855
16856 2011-05-21  Bruno Haible  <bruno@clisp.org>
16857
16858         mbsinit: Move AC_LIBOBJ invocations to module description.
16859         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
16860         invocations from here...
16861         * modules/mbsinit (configure.ac): ... to here.
16862
16863 2011-05-21  Bruno Haible  <bruno@clisp.org>
16864
16865         mbrlen: Move AC_LIBOBJ invocations to module description.
16866         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
16867         invocations from here...
16868         * modules/mbrlen (configure.ac): ... to here.
16869
16870 2011-05-21  Bruno Haible  <bruno@clisp.org>
16871
16872         mbrtowc: Respect rules for use of AC_LIBOBJ.
16873         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
16874         invocations from here...
16875         * modules/mbrtowc (configure.ac): ... to here.
16876
16877 2011-05-21  Bruno Haible  <bruno@clisp.org>
16878
16879         malloc-*: Move AC_LIBOBJ invocations to module description.
16880         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
16881         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
16882         AC_LIBOBJ invocations from here...
16883         * modules/malloc-gnu (configure.ac): ... to here.
16884         * modules/malloc-posix (configure.ac): ... and here.
16885
16886 2011-05-21  Bruno Haible  <bruno@clisp.org>
16887
16888         lstat, openat: Respect rules for use of AC_LIBOBJ.
16889         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
16890         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
16891         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
16892         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
16893         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
16894         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
16895         here.
16896         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16897
16898 2011-05-21  Bruno Haible  <bruno@clisp.org>
16899
16900         lseek: Move AC_LIBOBJ invocations to module description.
16901         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
16902         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16903         * modules/lseek (configure.ac): ... to here.
16904
16905 2011-05-21  Bruno Haible  <bruno@clisp.org>
16906
16907         linkat: Move AC_LIBOBJ invocations to module description.
16908         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
16909         here...
16910         * modules/linkat (configure.ac): ... to here.
16911
16912 2011-05-21  Bruno Haible  <bruno@clisp.org>
16913
16914         link: Respect rules for use of AC_LIBOBJ.
16915         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
16916         * modules/link (configure.ac): ... to here.
16917
16918 2011-05-21  Bruno Haible  <bruno@clisp.org>
16919
16920         lchown: Move AC_LIBOBJ invocations to module description.
16921         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16922         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16923         * modules/lchown (configure.ac): ... to here.
16924
16925 2011-05-21  Bruno Haible  <bruno@clisp.org>
16926
16927         iswctype: Move AC_LIBOBJ invocations to module description.
16928         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
16929         here...
16930         * modules/iswctype (configure.ac): ... to here.
16931
16932 2011-05-21  Bruno Haible  <bruno@clisp.org>
16933
16934         iswblank: Move AC_LIBOBJ invocations to module description.
16935         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
16936         here...
16937         * modules/iswblank (configure.ac): ... to here.
16938
16939 2011-05-21  Bruno Haible  <bruno@clisp.org>
16940
16941         atanl: Move AC_LIBOBJ invocations to module description.
16942         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
16943         * modules/atanl (configure.ac): ... to here.
16944
16945 2011-05-21  Bruno Haible  <bruno@clisp.org>
16946
16947         acosl: Move AC_LIBOBJ invocations to module description.
16948         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
16949         * modules/acosl (configure.ac): ... to here.
16950
16951 2011-05-21  Bruno Haible  <bruno@clisp.org>
16952
16953         asinl: Respect rules for use of AC_LIBOBJ.
16954         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
16955         * modules/asinl (configure.ac): ... to here.
16956
16957 2011-05-21  Bruno Haible  <bruno@clisp.org>
16958
16959         tanl: Move AC_LIBOBJ invocations to module description.
16960         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
16961         * modules/tanl (configure.ac): ... to here.
16962
16963 2011-05-21  Bruno Haible  <bruno@clisp.org>
16964
16965         cosl: Move AC_LIBOBJ invocations to module description.
16966         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
16967         * modules/cosl (configure.ac): ... to here.
16968
16969 2011-05-21  Bruno Haible  <bruno@clisp.org>
16970
16971         sinl: Move AC_LIBOBJ invocations to module description.
16972         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
16973         * modules/sinl (configure.ac): ... to here.
16974
16975 2011-05-21  Bruno Haible  <bruno@clisp.org>
16976
16977         logl: Move AC_LIBOBJ invocations to module description.
16978         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
16979         * modules/logl (configure.ac): ... to here.
16980
16981 2011-05-21  Bruno Haible  <bruno@clisp.org>
16982
16983         expl: Move AC_LIBOBJ invocations to module description.
16984         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
16985         * modules/expl (configure.ac): ... to here.
16986
16987 2011-05-21  Bruno Haible  <bruno@clisp.org>
16988
16989         roundl: Move AC_LIBOBJ invocations to module description.
16990         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
16991         * modules/roundl (configure.ac): ... to here.
16992
16993 2011-05-21  Bruno Haible  <bruno@clisp.org>
16994
16995         round: Move AC_LIBOBJ invocations to module description.
16996         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
16997         * modules/round (configure.ac): ... to here.
16998
16999 2011-05-21  Bruno Haible  <bruno@clisp.org>
17000
17001         roundf: Move AC_LIBOBJ invocations to module description.
17002         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17003         * modules/roundf (configure.ac): ... to here.
17004
17005 2011-05-21  Bruno Haible  <bruno@clisp.org>
17006
17007         truncl: Move AC_LIBOBJ invocations to module description.
17008         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17009         * modules/truncl (configure.ac): ... to here.
17010
17011 2011-05-21  Bruno Haible  <bruno@clisp.org>
17012
17013         trunc: Move AC_LIBOBJ invocations to module description.
17014         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17015         * modules/trunc (configure.ac): ... to here.
17016
17017 2011-05-21  Bruno Haible  <bruno@clisp.org>
17018
17019         truncf: Move AC_LIBOBJ invocations to module description.
17020         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17021         * modules/truncf (configure.ac): ... to here.
17022
17023 2011-05-21  Bruno Haible  <bruno@clisp.org>
17024
17025         ceill: Move AC_LIBOBJ invocations to module description.
17026         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17027         * modules/ceill (configure.ac): ... to here.
17028
17029 2011-05-21  Bruno Haible  <bruno@clisp.org>
17030
17031         ceil: Move AC_LIBOBJ invocations to module description.
17032         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17033         * modules/ceil (configure.ac): ... to here.
17034
17035 2011-05-21  Bruno Haible  <bruno@clisp.org>
17036
17037         ceilf: Move AC_LIBOBJ invocations to module description.
17038         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17039         * modules/ceilf (configure.ac): ... to here.
17040
17041 2011-05-21  Bruno Haible  <bruno@clisp.org>
17042
17043         floorl: Respect rules for use of AC_LIBOBJ.
17044         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17045         * modules/floorl (configure.ac): ... to here.
17046
17047 2011-05-21  Bruno Haible  <bruno@clisp.org>
17048
17049         floor: Respect rules for use of AC_LIBOBJ.
17050         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17051         * modules/floor (configure.ac): ... to here.
17052
17053 2011-05-21  Bruno Haible  <bruno@clisp.org>
17054
17055         floorf: Move AC_LIBOBJ invocations to module description.
17056         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17057         * modules/floorf (configure.ac): ... to here.
17058
17059 2011-05-20  Bruno Haible  <bruno@clisp.org>
17060
17061         sqrtl: Respect rules for use of AC_LIBOBJ.
17062         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17063         * modules/sqrtl (configure.ac): ... to here.
17064
17065 2011-05-20  Bruno Haible  <bruno@clisp.org>
17066
17067         ldexpl: Respect rules for use of AC_LIBOBJ.
17068         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17069         * modules/ldexpl (configure.ac): ... to here.
17070
17071 2011-05-20  Bruno Haible  <bruno@clisp.org>
17072
17073         frexpl*: Respect rules for use of AC_LIBOBJ.
17074         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17075         invocation from here...
17076         * modules/frexpl (configure.ac): ... to here.
17077         * modules/frexpl-nolibm (configure.ac): ... and here.
17078
17079 2011-05-20  Bruno Haible  <bruno@clisp.org>
17080
17081         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17082         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17083         invocation from here...
17084         * modules/frexp (configure.ac): ... to here.
17085         * modules/frexp-nolibm (configure.ac): ... and here.
17086
17087 2011-05-20  Bruno Haible  <bruno@clisp.org>
17088
17089         isnan: Respect rules for use of AC_LIBOBJ.
17090         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17091         invocations here.
17092         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17093         REPLACE_ISNAN.
17094         * modules/isnand (configure.ac): Likewise.
17095         * modules/isnanl (configure.ac): Likewise.
17096
17097 2011-05-20  Bruno Haible  <bruno@clisp.org>
17098
17099         isnanl*: Respect rules for use of AC_LIBOBJ.
17100         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17101         invocation from here...
17102         * modules/isnanl (configure.ac): ... to here.
17103         * modules/isnanl-nolibm (configure.ac): ... and here.
17104
17105 2011-05-20  Bruno Haible  <bruno@clisp.org>
17106
17107         isnand*: Move AC_LIBOBJ invocations to module description.
17108         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17109         invocation from here...
17110         * modules/isnand (configure.ac): ... to here.
17111         * modules/isnand-nolibm (configure.ac): ... and here.
17112
17113 2011-05-20  Bruno Haible  <bruno@clisp.org>
17114
17115         isnanf*: Move AC_LIBOBJ invocations to module description.
17116         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17117         invocation from here...
17118         * modules/isnanf (configure.ac): ... to here.
17119         * modules/isnanf-nolibm (configure.ac): ... and here.
17120
17121 2011-05-20  Bruno Haible  <bruno@clisp.org>
17122
17123         isnan*: Separate the AC_LIBOBJ invocations.
17124         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17125         AC_LIBOBJ invocation.
17126         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17127         here.
17128         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17129         AC_LIBOBJ invocation.
17130         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17131         here.
17132         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17133         AC_LIBOBJ invocation.
17134         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17135         here.
17136         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17137
17138 2011-05-08  Bruno Haible  <bruno@clisp.org>
17139
17140         isinf: Move AC_LIBOBJ invocations to module description.
17141         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17142         * modules/isinf (configure.ac): ... to here.
17143
17144 2011-05-08  Bruno Haible  <bruno@clisp.org>
17145
17146         isfinite: Move AC_LIBOBJ invocations to module description.
17147         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17148         * modules/isfinite (configure.ac): ... to here.
17149
17150 2011-05-08  Bruno Haible  <bruno@clisp.org>
17151
17152         isblank: Move AC_LIBOBJ invocations to module description.
17153         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17154         here...
17155         * modules/isblank (configure.ac): ... to here.
17156
17157 2011-05-08  Bruno Haible  <bruno@clisp.org>
17158
17159         isapipe: Move AC_LIBOBJ invocations to module description.
17160         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17161         gl_PREREQ_ISAPIPE invocations from here...
17162         * modules/isapipe (configure.ac): ... to here.
17163         (Depends-on): Update condition.
17164
17165 2011-05-08  Bruno Haible  <bruno@clisp.org>
17166
17167         ioctl: Move AC_LIBOBJ invocations to module description.
17168         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17169         invocations from here...
17170         * modules/ioctl (configure.ac): ... to here.
17171         (Depends-on): Update condition.
17172
17173 2011-05-08  Bruno Haible  <bruno@clisp.org>
17174
17175         imaxdiv: Move AC_LIBOBJ invocations to module description.
17176         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17177         invocations from here...
17178         * modules/imaxdiv (configure.ac): ... to here.
17179
17180 2011-05-08  Bruno Haible  <bruno@clisp.org>
17181
17182         imaxabs: Move AC_LIBOBJ invocations to module description.
17183         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17184         invocations from here...
17185         * modules/imaxabs (configure.ac): ... to here.
17186
17187 2011-05-08  Bruno Haible  <bruno@clisp.org>
17188
17189         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17190         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17191         AC_LIBOBJ invocations from here...
17192         * modules/getaddrinfo (configure.ac): ... to here.
17193         (Depends-on): Add conditions.
17194
17195 2011-05-08  Bruno Haible  <bruno@clisp.org>
17196
17197         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17198         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17199         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17200         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17201         (gl_PREREQ_INET_PTON): ... from here.
17202         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17203         gl_PREREQ_INET_PTON here.
17204         (Depends-on): Update condition.
17205
17206 2011-05-08  Bruno Haible  <bruno@clisp.org>
17207
17208         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17209         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17210         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17211         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17212         (gl_PREREQ_INET_NTOP): ... from here.
17213         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17214         gl_PREREQ_INET_NTOP here.
17215         (Depends-on): Update condition.
17216
17217 2011-05-08  Bruno Haible  <bruno@clisp.org>
17218
17219         iconv_open: Move AC_LIBOBJ invocations to module description.
17220         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17221         AC_LIBOBJ invocations from here...
17222         * modules/iconv_open (configure.ac): ... to here.
17223
17224 2011-05-08  Bruno Haible  <bruno@clisp.org>
17225
17226         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17227         If module 'iconv_open' is among the main modules and module
17228         'iconv_open-utf' is among the tests dependencies, then
17229         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17230         return the special iconv_t values. Therefore iconv() and iconv_close()
17231         must support these special iconv_t values, already in lib, not only in
17232         tests.
17233         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17234         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17235         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17236         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17237         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17238         (Depends-on): Add the dependencies of iconv_open-utf.
17239         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17240         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17241         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17242
17243 2011-05-08  Bruno Haible  <bruno@clisp.org>
17244
17245         group-member: Move AC_LIBOBJ invocations to module description.
17246         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17247         gl_PREREQ_GROUP_MEMBER invocations from here...
17248         * modules/group-member (configure.ac): ... to here.
17249
17250 2011-05-08  Bruno Haible  <bruno@clisp.org>
17251
17252         grantpt: Move AC_LIBOBJ invocations to module description.
17253         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17254         invocations from here...
17255         * modules/grantpt (configure.ac): ... to here.
17256
17257 2011-05-08  Bruno Haible  <bruno@clisp.org>
17258
17259         glob: Move AC_LIBOBJ invocations to module description.
17260         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17261         from here...
17262         * modules/glob (configure.ac): ... to here.
17263
17264 2011-05-08  Bruno Haible  <bruno@clisp.org>
17265
17266         getusershell: Move AC_LIBOBJ invocations to module description.
17267         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17268         Move AC_LIBOBJ invocation from here...
17269         * modules/getusershell (configure.ac): ... to here.
17270         (Depends-on): Update condition.
17271
17272 2011-05-08  Bruno Haible  <bruno@clisp.org>
17273
17274         gettimeofday: Move AC_LIBOBJ invocations to module description.
17275         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17276         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17277         gl_PREREQ_GETTIMEOFDAY invocations from here...
17278         * modules/gettimeofday (configure.ac): ... to here.
17279
17280 2011-05-08  Bruno Haible  <bruno@clisp.org>
17281
17282         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17283         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17284         just gl_FUNC_TZSET.
17285         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17286         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17287         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17288         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17289
17290 2011-05-08  Bruno Haible  <bruno@clisp.org>
17291
17292         getsubopt: Move AC_LIBOBJ invocations to module description.
17293         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17294         gl_PREREQ_GETSUBOPT invocations from here...
17295         * modules/getsubopt (configure.ac): ... to here.
17296
17297 2011-05-08  Bruno Haible  <bruno@clisp.org>
17298
17299         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17300         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17301         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17302         * modules/getpass-gnu (configure.ac): ... to here.
17303
17304 2011-05-08  Bruno Haible  <bruno@clisp.org>
17305
17306         getpass: Move AC_LIBOBJ invocations to module description.
17307         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17308         gl_PREREQ_GETPASS invocations from here...
17309         * modules/getpass (configure.ac): ... to here.
17310
17311 2011-05-08  Bruno Haible  <bruno@clisp.org>
17312
17313         getpagesize: Move AC_LIBOBJ invocations to module description.
17314         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17315         from here...
17316         * modules/getpagesize (configure.ac): ... to here.
17317
17318 2011-05-08  Bruno Haible  <bruno@clisp.org>
17319
17320         getopt: Move AC_LIBOBJ invocations to module description.
17321         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17322         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17323         invocations from here...
17324         * modules/getopt-gnu (configure.ac): ... to here.
17325         * modules/getopt-posix (configure.ac): ... and here.
17326         (Depends-on): Update condition.
17327
17328 2011-05-08  Bruno Haible  <bruno@clisp.org>
17329
17330         getopt, argp: Respect rules for use of AC_LIBOBJ.
17331         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17332         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17333         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17334         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17335
17336 2011-05-08  Bruno Haible  <bruno@clisp.org>
17337
17338         getlogin_r: Move AC_LIBOBJ invocations to module description.
17339         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17340         gl_PREREQ_GETLOGIN_R invocations from here...
17341         * modules/getlogin_r (configure.ac): ... to here.
17342
17343 2011-05-08  Bruno Haible  <bruno@clisp.org>
17344
17345         getlogin: Move AC_LIBOBJ invocations to module description.
17346         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17347         here...
17348         * modules/getlogin (configure.ac): ... to here.
17349
17350 2011-05-08  Bruno Haible  <bruno@clisp.org>
17351
17352         getloadavg: Move AC_LIBOBJ invocations to module description.
17353         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17354         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17355         * modules/getloadavg (configure.ac): ... to here.
17356
17357 2011-05-08  Bruno Haible  <bruno@clisp.org>
17358
17359         gethrxtime: Move AC_LIBOBJ invocations to module description.
17360         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17361         LIB_GETHRXTIME from here...
17362         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17363         invocations from here...
17364         * modules/gethrxtime (configure.ac): ... to here.
17365
17366 2011-05-08  Bruno Haible  <bruno@clisp.org>
17367
17368         gethostname: Move AC_LIBOBJ invocations to module description.
17369         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17370         gl_PREREQ_GETHOSTNAME invocations from here...
17371         * modules/gethostname (configure.ac): ... to here.
17372
17373 2011-05-08  Bruno Haible  <bruno@clisp.org>
17374
17375         getgroups: Move AC_LIBOBJ invocations to module description.
17376         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17377         here...
17378         * modules/getgroups (configure.ac): ... to here.
17379
17380 2011-05-08  Bruno Haible  <bruno@clisp.org>
17381
17382         getdtablesize: Move AC_LIBOBJ invocations to module description.
17383         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17384         invocation from here...
17385         * modules/getdtablesize (configure.ac): ... to here.
17386
17387 2011-05-08  Bruno Haible  <bruno@clisp.org>
17388
17389         getdomainname: Move AC_LIBOBJ invocations to module description.
17390         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17391         gl_PREREQ_GETDOMAINNAME invocations from here...
17392         * modules/getdomainname (configure.ac): ... to here.
17393
17394 2011-05-08  Bruno Haible  <bruno@clisp.org>
17395
17396         getline: Move AC_LIBOBJ invocations to module description.
17397         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17398         invocations from here...
17399         * modules/getline (configure.ac): ... to here.
17400
17401 2011-05-08  Bruno Haible  <bruno@clisp.org>
17402
17403         getline: Simplify.
17404         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17405         It's already handled through the module dependency.
17406
17407 2011-05-08  Bruno Haible  <bruno@clisp.org>
17408
17409         getdelim: Move AC_LIBOBJ invocations to module description.
17410         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17411         and gl_PREREQ_GETDELIM invocations from here...
17412         * modules/getdelim (configure.ac): ... to here.
17413         (Depends-on): Fix condition.
17414
17415 2011-05-08  Bruno Haible  <bruno@clisp.org>
17416
17417         getcwd: Move AC_LIBOBJ invocations to module description.
17418         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17419         invocations from here...
17420         * modules/getcwd (configure.ac): ... to here.
17421
17422 2011-05-08  Bruno Haible  <bruno@clisp.org>
17423
17424         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17425         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17426         here...
17427         * modules/getcwd-lgpl (configure.ac): ... to here.
17428
17429 2011-05-07  Bruno Haible  <bruno@clisp.org>
17430
17431         crypto/gc: Move AC_LIBOBJ invocations to module description.
17432         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17433         * modules/crypto/gc (configure.ac): ... to here.
17434
17435 2011-05-07  Bruno Haible  <bruno@clisp.org>
17436
17437         fwriting: Move AC_LIBOBJ invocations to module description.
17438         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17439         here...
17440         * modules/fwriting (configure.ac): ... to here.
17441
17442 2011-05-07  Bruno Haible  <bruno@clisp.org>
17443
17444         fwritable: Move AC_LIBOBJ invocations to module description.
17445         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17446         here...
17447         * modules/fwritable (configure.ac): ... to here.
17448
17449 2011-05-07  Bruno Haible  <bruno@clisp.org>
17450
17451         futimens: Move AC_LIBOBJ invocations to module description.
17452         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17453         here...
17454         * modules/futimens (configure.ac): ... to here.
17455
17456 2011-05-07  Bruno Haible  <bruno@clisp.org>
17457
17458         ftruncate: Move AC_LIBOBJ invocations to module description.
17459         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17460         gl_PREREQ_FTRUNCATE invocations from here...
17461         * modules/ftruncate (configure.ac): ... to here.
17462
17463 2011-05-07  Bruno Haible  <bruno@clisp.org>
17464
17465         fsync: Move AC_LIBOBJ invocations to module description.
17466         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17467         invocations from here...
17468         * modules/fsync (configure.ac): ... to here.
17469
17470 2011-05-07  Bruno Haible  <bruno@clisp.org>
17471
17472         fsusage: Move AC_LIBOBJ invocations to module description.
17473         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17474         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17475         * modules/fsusage (configure.ac): ... to here.
17476
17477 2011-05-07  Bruno Haible  <bruno@clisp.org>
17478
17479         freopen: Move AC_LIBOBJ invocations to module description.
17480         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17481         invocations from here...
17482         * modules/freopen (configure.ac): ... to here.
17483
17484 2011-05-07  Bruno Haible  <bruno@clisp.org>
17485
17486         free: Move AC_LIBOBJ invocations to module description.
17487         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17488         invocations from here...
17489         * modules/free (configure.ac): ... to here.
17490
17491 2011-05-07  Bruno Haible  <bruno@clisp.org>
17492
17493         freadable: Move AC_LIBOBJ invocations to module description.
17494         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17495         here...
17496         * modules/freadable (configure.ac): ... to here.
17497
17498 2011-05-07  Bruno Haible  <bruno@clisp.org>
17499
17500         fpurge: Move AC_LIBOBJ invocations to module description.
17501         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17502         invocations from here...
17503         * modules/fpurge (configure.ac): ... to here.
17504
17505 2011-05-07  Bruno Haible  <bruno@clisp.org>
17506
17507         fpending: Move AC_LIBOBJ invocations to module description.
17508         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17509         gl_FUNC_FPENDING.
17510         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17511         invocations from here...
17512         * modules/fpending (configure.ac): ... to here.
17513
17514 2011-05-07  Bruno Haible  <bruno@clisp.org>
17515
17516         fopen: Move AC_LIBOBJ invocations to module description.
17517         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17518         invocations from here...
17519         * modules/fopen (configure.ac): ... to here.
17520
17521 2011-05-07  Bruno Haible  <bruno@clisp.org>
17522
17523         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17524         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17525         gl_FUNC_FNMATCH_POSIX.
17526         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17527         invocations from here...
17528         * modules/fnmatch (configure.ac): ... to here.
17529         * modules/fnmatch-gnu (configure.ac): ... and here.
17530
17531 2011-05-07  Bruno Haible  <bruno@clisp.org>
17532
17533         flock: Move AC_LIBOBJ invocations to module description.
17534         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17535         invocations from here...
17536         * modules/flock (configure.ac): ... to here.
17537
17538 2011-05-07  Bruno Haible  <bruno@clisp.org>
17539
17540         fileblocks: Move AC_LIBOBJ invocations to module description.
17541         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17542         gl_PREREQ_FILEBLOCKS invocations from here...
17543         * modules/fileblocks (configure.ac): ... to here.
17544
17545 2011-05-06  Bruno Haible  <bruno@clisp.org>
17546
17547         fflush: Move AC_LIBOBJ invocations to module description.
17548         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17549         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17550         invocations from here...
17551         * modules/fflush (configure.ac): ... to here.
17552
17553 2011-05-06  Bruno Haible  <bruno@clisp.org>
17554
17555         fdopendir: Move AC_LIBOBJ invocations to module description.
17556         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17557         here...
17558         * modules/fdopendir (configure.ac): ... to here.
17559         (Depends-on): Improve conditions.
17560
17561 2011-05-06  Bruno Haible  <bruno@clisp.org>
17562
17563         _Exit: Move AC_LIBOBJ invocations to module description.
17564         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17565         invocations from here...
17566         * modules/_Exit (configure.ac): ... to here.
17567
17568 2011-05-21  Bruno Haible  <bruno@clisp.org>
17569
17570         euidaccess: Respect rules for use of AC_LIBOBJ.
17571         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17572         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17573         from here...
17574         * modules/euidaccess (configure.ac): ... to here.
17575
17576 2011-05-06  Bruno Haible  <bruno@clisp.org>
17577
17578         error: Move AC_LIBOBJ invocations to module description.
17579         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17580         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17581         invocations from here...
17582         * modules/error (configure.ac): ... to here.
17583
17584 2011-05-06  Bruno Haible  <bruno@clisp.org>
17585
17586         duplocale: Move AC_LIBOBJ invocations to module description.
17587         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17588         gl_PREREQ_DUPLOCALE invocations from here...
17589         * modules/duplocale (configure.ac): ... to here.
17590
17591 2011-05-05  Bruno Haible  <bruno@clisp.org>
17592
17593         dirfd: Move AC_LIBOBJ invocations to module description.
17594         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17595         gl_FUNC_DIRFD.
17596         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17597         here...
17598         * modules/dirfd (configure.ac): ... to here.
17599         (Depends-on): Fix condition.
17600
17601 2011-05-05  Bruno Haible  <bruno@clisp.org>
17602
17603         chown: Respect rules for use of AC_LIBOBJ.
17604         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
17605         * modules/chown (configure.ac): ... to here.
17606
17607 2011-05-05  Bruno Haible  <bruno@clisp.org>
17608
17609         chdir-long: Move AC_LIBOBJ invocations to module description.
17610         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
17611         gl_PREREQ_CHDIR_LONG invocations from here...
17612         * modules/chdir-long (configure.ac): ... to here.
17613
17614 2011-05-05  Bruno Haible  <bruno@clisp.org>
17615
17616         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17617         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
17618         from here...
17619         * modules/canonicalize-lgpl (configure.ac): ... to here.
17620
17621 2011-05-05  Bruno Haible  <bruno@clisp.org>
17622
17623         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
17624         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
17625         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
17626         REPLACE_CALLOC.
17627         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
17628         * modules/calloc-gnu (configure.ac): Likewise.
17629
17630 2011-05-05  Bruno Haible  <bruno@clisp.org>
17631
17632         btowc: Move AC_LIBOBJ invocations to module description.
17633         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
17634         invocations from here...
17635         * modules/btowc (configure.ac): ... to here.
17636
17637 2011-05-21  Bruno Haible  <bruno@clisp.org>
17638
17639         atexit: Move AC_LIBOBJ invocations to module description.
17640         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
17641         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
17642         here...
17643         * modules/atexit (configure.ac): ... to here.
17644
17645 2011-05-05  Bruno Haible  <bruno@clisp.org>
17646
17647         atoll: Move AC_LIBOBJ invocations to module description.
17648         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
17649         invocations from here...
17650         * modules/atoll (configure.ac): ... to here.
17651
17652 2011-05-05  Bruno Haible  <bruno@clisp.org>
17653
17654         argz: Move AC_LIBOBJ invocations to module description.
17655         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
17656         * modules/argz (configure.ac): ... to here.
17657
17658 2011-05-05  Bruno Haible  <bruno@clisp.org>
17659
17660         alphasort: Move AC_LIBOBJ invocations to module description.
17661         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
17662         gl_PREREQ_ALPHASORT invocations from here...
17663         * modules/alphasort (configure.ac): ... to here.
17664
17665 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17666
17667         verify: new macro verify_expr; verify_true deprecated
17668         * NEWS: Mention this.
17669         * doc/verify.texi (Compile-time Assertions): Document this.
17670         * lib/verify.h (verify_true): Deprecate.
17671         (verify_expr): New macro.
17672         * tests/test-verify.c (function): Test verify_expr.
17673
17674 2011-06-14  Jim Meyering  <meyering@redhat.com>
17675
17676         init.sh: give more portable redirection-related advice in a comment
17677         * tests/init.sh (stderr_fileno_): Update the advice in comments.
17678         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
17679         for lots of discussion.  Stefano Lattarini suggested the solution
17680         of putting "9>&2" after the command.  Reported by Bruno Haible.
17681
17682 2011-06-13  Bruno Haible  <bruno@clisp.org>
17683
17684         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
17685         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
17686         'none'.
17687
17688 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17689
17690         ftoastr: use strtof only if HAVE_STRTOF
17691         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
17692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
17693         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
17694         * modules/ftoastr (configure.ac): Check for strtof.
17695
17696 2011-06-13  Bruno Haible  <bruno@clisp.org>
17697
17698         gnulib-tool: Addendum to 2011-06-08 commit.
17699         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
17700         and --witness-c-macro have been given, augment AM_CPPFLAGS.
17701
17702 2011-06-13  Bruno Haible  <bruno@clisp.org>
17703
17704         fseeko: Provide a non-inline replacement of fseek().
17705         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
17706         * modules/fseeko (Depends-on): Add fseek.
17707         * modules/fseek (License): Change to LGPLv2+.
17708
17709 2011-06-13  Bruno Haible  <bruno@clisp.org>
17710
17711         ftello: Provide a non-inline replacement of ftell().
17712         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
17713         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
17714         not have ftello() (such as on mingw).
17715         * modules/ftello (Depends-on): Add ftell.
17716         * modules/ftell (License): Change to LGPLv2+.
17717
17718 2011-05-07  Bruno Haible  <bruno@clisp.org>
17719
17720         ftell: Move AC_LIBOBJ invocations to module description.
17721         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
17722         * modules/ftell (configure.ac): ... to here.
17723
17724 2011-05-07  Bruno Haible  <bruno@clisp.org>
17725
17726         ftello: Respect rules for use of AC_LIBOBJ.
17727         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
17728         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
17729         here...
17730         * modules/ftello (configure.ac): ... to here.
17731
17732 2011-05-07  Bruno Haible  <bruno@clisp.org>
17733
17734         fseeko: Simplify.
17735         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
17736         (gl_FUNC_FSEEKO): Inline it here.
17737
17738 2011-05-07  Bruno Haible  <bruno@clisp.org>
17739
17740         fseek: Move AC_LIBOBJ invocations to module description.
17741         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
17742         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17743         * modules/fseek (configure.ac): ... to here.
17744
17745 2011-05-07  Bruno Haible  <bruno@clisp.org>
17746
17747         fseek: Respect rules for use of AC_LIBOBJ.
17748         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
17749         here...
17750         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
17751
17752 2011-05-07  Bruno Haible  <bruno@clisp.org>
17753
17754         fseeko: Respect rules for use of AC_LIBOBJ.
17755         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
17756         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
17757         here...
17758         * modules/fseeko (configure.ac): ... to here.
17759
17760 2011-06-13  Bruno Haible  <bruno@clisp.org>
17761
17762         gnulib-tool: Allow comments in the 'Depends-on' section.
17763         * doc/gnulib.texi (Module description): Mention comment syntax in the
17764         Depends-on section.
17765         * gnulib-tool (func_get_dependencies): Filter out comment lines.
17766
17767 2011-06-13  Bruno Haible  <bruno@clisp.org>
17768
17769         file-set.h: guard __attibute__ use, now that it's not always defined
17770         * lib/file-set.h (record_file): Use __attribute__ only with compiler
17771         versions that support it.  This fixes a coreutils build failure with
17772         the vendor cc on HP-UX 11.31.
17773
17774 2011-06-12  Bruno Haible  <bruno@clisp.org>
17775
17776         acl: Add support for HP-UX >= 11.11 JFS ACLs.
17777         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
17778         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
17779         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
17780         (acl, aclsort): New declarations.
17781         (aclv_nontrivial): New declaration.
17782         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
17783         (file_has_acl): Read also the second kind of HP-UX ACLs.
17784         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
17785         kind of HP-UX ACLs if the first kind fails.
17786         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
17787         second kind of HP-UX ACLs.
17788         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
17789         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
17790         agree.
17791         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17792         hpuxjfs.
17793         Handle hpuxjfs.
17794         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17795         hpuxjfs.
17796         Handle hpuxjfs.
17797         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17798         (func_test_same_acls): Use both lsacl and getacl.
17799         Handle hpuxjfs.
17800         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17801         (func_test_same_acls): Use both lsacl and getacl.
17802         Handle hpuxjfs.
17803
17804 2011-06-12  Bruno Haible  <bruno@clisp.org>
17805
17806         acl: Complete the 2010-08-10 fix.
17807         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
17808         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
17809         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
17810         explicitly.
17811         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
17812         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
17813
17814 2011-06-12  Bruno Haible  <bruno@clisp.org>
17815
17816         spawn-pipe tests: Comments.
17817         * tests/test-spawn-pipe-child.c (main): Update comment.
17818         Reported by James Youngman <jay@gnu.org>.
17819
17820 2011-06-11  James Youngman  <jay@gnu.org>
17821
17822         New module 'stat-size'.
17823         * modules/stat-size: New module.  Provides macros for accessing
17824         file size information in instances of struct stat.  Depends on the
17825         fileblocks module because it calls st_blocks.
17826         * lib/stat-size.h: New file, adapted from coreutils' system.h.
17827         * doc/gnulib.texi: Include stat-size.texi.
17828         * doc/stat-size.texi: Documentation for this module.
17829         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
17830         * m4/fileblocks.m4: Mention that stat-size depends on the call to
17831         AC_STRUCT_ST_BLOCKS.
17832
17833 2011-06-09  Bruno Haible  <bruno@clisp.org>
17834
17835         thread: Support pthreads-win32.
17836         * lib/glthread/thread.h (gl_thread_self): Define differently on
17837         pthreads-win32.
17838         (gl_null_thread): New declaration.
17839         (gl_thread_self_pointer): New macro.
17840         * lib/glthread/thread.c (gl_null_thread): New constant.
17841         * tests/test-lock.c: Use gl_thread_self_pointer instead of
17842         gl_thread_self.
17843         * tests/test-tls.c: Likewise.
17844         Suggested by Paul Eggert. Reported by Eric Blake.
17845
17846 2011-06-09  Bruno Haible  <bruno@clisp.org>
17847
17848         thread: Fix confusion between NULL and 0.
17849         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
17850         Reported by Paul Eggert.
17851
17852 2011-06-09  Bruno Haible  <bruno@clisp.org>
17853
17854         spawn-pipe tests: Avoid test failure on HP-UX 11.
17855         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
17856         is closed.
17857
17858 2011-06-09  Bruno Haible  <bruno@clisp.org>
17859
17860         acl tests: Fix compilation error on HP-UX 11.
17861         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
17862
17863 2011-06-09  Bruno Haible  <bruno@clisp.org>
17864
17865         rmdir: Avoid test failure on HP-UX 10.20.
17866         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
17867         EEXIST.
17868
17869 2011-06-08  Eric Blake  <eblake@redhat.com>
17870
17871         perror: fix test on mingw
17872         * modules/perror-tests (Depends-on): Add dup2.
17873
17874         strerror_r-posix: fix on MacOS
17875         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
17876         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
17877         logic bug.
17878         * lib/strerror_r.c (strerror_r): Fix the bug.
17879         * lib/strerror.c (strerror): Likewise.
17880         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17881         problem.
17882         * doc/posix-functions/strerror.texi (strerror): Likewise.
17883         * doc/posix-functions/perror.texi (perror): Likewise.
17884         * tests/test-strerror.c (main): Enhance test.
17885         * tests/test-strerror_r.c (main): Likewise.
17886
17887 2011-06-08  Bruno Haible  <bruno@clisp.org>
17888
17889         gnulib-tool: Better isolation between different gnulib-tool invocations.
17890         * gnulib-tool: New option --witness-c-macro.
17891         (witness_c_macro): New variable.
17892         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
17893         AM_CPPFLAGS define it as a C macro.
17894         (func_emit_tests_Makefile_am): Likewise.
17895         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
17896         read it from there.
17897         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
17898         m4_define, not AC_DEFUN.
17899         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
17900         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
17901         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
17902         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
17903         s|...|...|, to substitute the values of the GNULIB_* module indicator
17904         variables.
17905         * modules/dirent (Makefile.am): Likewise.
17906         * modules/fcntl-h (Makefile.am): Likewise.
17907         * modules/iconv-h (Makefile.am): Likewise.
17908         * modules/langinfo (Makefile.am): Likewise.
17909         * modules/locale (Makefile.am): Likewise.
17910         * modules/math (Makefile.am): Likewise.
17911         * modules/netdb (Makefile.am): Likewise.
17912         * modules/poll-h (Makefile.am): Likewise.
17913         * modules/pty (Makefile.am): Likewise.
17914         * modules/search (Makefile.am): Likewise.
17915         * modules/signal (Makefile.am): Likewise.
17916         * modules/spawn (Makefile.am): Likewise.
17917         * modules/stdio (Makefile.am): Likewise.
17918         * modules/stdlib (Makefile.am): Likewise.
17919         * modules/string (Makefile.am): Likewise.
17920         * modules/sys_ioctl (Makefile.am): Likewise.
17921         * modules/sys_select (Makefile.am): Likewise.
17922         * modules/sys_socket (Makefile.am): Likewise.
17923         * modules/sys_stat (Makefile.am): Likewise.
17924         * modules/sys_times (Makefile.am): Likewise.
17925         * modules/sys_utsname (Makefile.am): Likewise.
17926         * modules/sys_wait (Makefile.am): Likewise.
17927         * modules/termios (Makefile.am): Likewise.
17928         * modules/time (Makefile.am): Likewise.
17929         * modules/unistd (Makefile.am): Likewise.
17930         * modules/wchar (Makefile.am): Likewise.
17931
17932 2011-06-08  Eric Blake  <eblake@redhat.com>
17933
17934         strerror: simplify replacement
17935         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
17936         * modules/strerror (configure.ac): No prereqs needed here...
17937         * modules/strerror-override (configure.ac): ...but this needs it.
17938         (Files): Add file for needed prereq macro.
17939
17940 2011-06-08  Bruno Haible  <bruno@clisp.org>
17941
17942         strerror_r-posix: Tweaks.
17943         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
17944         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
17945         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
17946         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
17947         (gl_FUNC_STRERROR_R): ... to here.
17948         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
17949
17950 2011-06-07  Eric Blake  <eblake@redhat.com>
17951
17952         perror: document fixed bugs
17953         * doc/posix-functions/perror.texi (perror): Document recent
17954         patches.
17955
17956 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17957
17958         stat-time: get_stat_birthtime failure is better-defined
17959         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
17960         return a timestamp whose tv_sec and tv_nsec values are both -1.
17961         Previously, the spec said only that the tv_nsec value was negative.
17962         This upward-compatible change simplifies GNU tar a bit.
17963
17964 2011-06-07  Eric Blake  <eblake@redhat.com>
17965
17966         strerror_r-posix: work around cygwin 1.7.9
17967         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
17968         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
17969         bug without replacing strerror_r.
17970         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
17971         strerror_r is buggy, but without requiring strerror_r compilation.
17972         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
17973
17974         test-perror: relax test to ignore cygwin bug
17975         * tests/test-perror2.c (main): Relax test on requiring detection
17976         of stream errors, and use unbuffered stream.
17977         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
17978         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17979         * doc/posix-functions/fputc.texi (fputc): Likewise.
17980         * doc/posix-functions/fputs.texi (fputs): Likewise.
17981         * doc/posix-functions/fputws.texi (fputws): Likewise.
17982         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17983         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
17984         * doc/posix-functions/getopt.texi (getopt): Likewise.
17985         * doc/posix-functions/perror.texi (perror): Likewise.
17986         * doc/posix-functions/printf.texi (printf): Likewise.
17987         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
17988         * doc/posix-functions/psignal.texi (psignal): Likewise.
17989         * doc/posix-functions/putc.texi (putc): Likewise.
17990         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
17991         Likewise.
17992         * doc/posix-functions/putchar.texi (putchar): Likewise.
17993         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
17994         Likewise.
17995         * doc/posix-functions/puts.texi (puts): Likewise.
17996         * doc/posix-functions/putwc.texi (putwc): Likewise.
17997         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17998         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17999         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18000         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18001         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18002         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18003         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18004         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18005
18006 2011-05-22  Bruno Haible  <bruno@clisp.org>
18007
18008         strerror: Move AC_LIBOBJ invocations to module description.
18009         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18010         gl_PREREQ_STRERROR invocations from here...
18011         * modules/strerror (configure.ac): ... to here.
18012
18013 2011-05-21  Bruno Haible  <bruno@clisp.org>
18014
18015         perror: Use common idiom.
18016         * modules/perror (configure.ac): Reorder statements.
18017
18018 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18019
18020         tests: fix usage message in 'mktempd_'
18021         * tests/init.sh (mktempd_): In the usage message, use literal
18022         'mktempd_', not '$ME' (which is even undefined), as the name of
18023         the subroutine.
18024
18025 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18026
18027         tests init: new function 'fatal_', for hard errors
18028         Before this patch, the only way offered by tests/init.sh to
18029         properly signal a hard error was the `framework_failure_'
18030         function.  But the error message issued by that function,
18031         as its name would suggest, refers to a set-up failure in the
18032         testsuite, while hard errors can obviously also be due to
18033         other reasons.  The best way to fix this inconsistency is to
18034         introduce a new function with a more general error message.
18035         * tests/init.sh (fatal_): New function.
18036
18037 2011-06-06  Eric Blake  <eblake@redhat.com>
18038
18039         canonicalize-lgpl: use common idiom
18040         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18041         over newer POSIX -Rf.
18042         Reported by Bruno Haible.
18043
18044         canonicalize-lgpl: work around AIX realpath bug
18045         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18046         * doc/posix-functions/realpath.texi (realpath): Document it.
18047         Reported by Bruno Haible.
18048
18049         strerror: work around FreeBSD bug
18050         * lib/strerror.c (strerror): Special case 0.
18051         Reported by Bruno Haible.
18052
18053         strerror-override: avoid bloating errno module
18054         * modules/errno (Files, configure.ac): Move replacement strings...
18055         * modules/strerror-override: ...to new module.
18056         * modules/strerror (Depends-on): Add strerror-override.
18057         * modules/strerror_r-posix (Depends-on): Likewise.
18058         * MODULES.html.sh: Document new module.
18059         Reported by Bruno Haible.
18060
18061 2011-06-06  Bruno Haible  <bruno@clisp.org>
18062
18063         spawn-pipe tests: Rename program.
18064         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18065         * tests/test-spawn-pipe-child.c: Update comment.
18066         * tests/test-spawn-pipe.sh: Update.
18067         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18068
18069         spawn-pipe tests: Link the child program only against libc.
18070         * tests/test-spawn-pipe-child.c: New file, extracted from
18071         tests/test-spawn-pipe.c.
18072         (main): Expect only one argument.
18073         (is_open): New function, copied from tests/test-pipe.c.
18074         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18075         (child_main): Remove function.
18076         (test_pipe): Pass only one argument to the child program.
18077         (main): Remove child process code. Expect the child program's name as
18078         first argument.
18079         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18080         argument.
18081         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18082         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18083         test-spawn-pipe-child against no libraries.
18084
18085 2011-06-06  Bruno Haible  <bruno@clisp.org>
18086
18087         careadlinkat: Avoid mismatch between ssize_t and int.
18088         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18089         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18090
18091 2011-06-06  Jim Meyering  <meyering@redhat.com>
18092
18093         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18094         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18095         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18096
18097 2011-06-05  Bruno Haible  <bruno@clisp.org>
18098
18099         ansi-c++-opt: Interoperability with libtool.
18100         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18101         set the variable to "no", not to ":".
18102         * NEWS: Mention the change.
18103
18104 2011-06-05  Bruno Haible  <bruno@clisp.org>
18105
18106         acl: Fix test failure on AIX 7.
18107         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18108         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18109
18110 2011-06-05  Bruno Haible  <bruno@clisp.org>
18111
18112         pipe-filter-ii: Fix test failure on AIX and IRIX.
18113         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18114         with EAGAIN, retry with a smaller buffer size.
18115
18116 2011-06-05  Bruno Haible  <bruno@clisp.org>
18117
18118         localename: Fix link dependencies.
18119         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18120         * modules/localename-tests (Makefile.am): Link test-localename with
18121         $(LIBTHREAD).
18122
18123 2011-06-05  Bruno Haible  <bruno@clisp.org>
18124
18125         error: Avoid gcc warning.
18126         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18127
18128 2011-06-05  Bruno Haible  <bruno@clisp.org>
18129
18130         unsetenv: Avoid gcc warning.
18131         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18132
18133 2011-06-05  Bruno Haible  <bruno@clisp.org>
18134
18135         setenv: Avoid gcc warning.
18136         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18137
18138 2011-06-05  Bruno Haible  <bruno@clisp.org>
18139
18140         sys_select: Ensure memset is declared also on AIX 7.
18141         * lib/sys_select.in.h: Include <string.h> also on AIX.
18142         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18143         self-contained also on AIX 7.1.
18144
18145 2011-06-04  Jim Meyering  <meyering@redhat.com>
18146
18147         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18148         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18149         function name, "error".
18150         (_gl_translatable_diag_func_re): New configurable variable.
18151
18152 2011-06-04  Bruno Haible  <bruno@clisp.org>
18153
18154         getopt: Avoid gcc warning.
18155         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18156
18157 2011-06-04  Bruno Haible  <bruno@clisp.org>
18158
18159         strerror_r: Fix comments.
18160         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18161         commit.
18162
18163 2011-06-04  Bruno Haible  <bruno@clisp.org>
18164
18165         perror: Fix compilation error.
18166         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18167         Undefine fprintf, not sprintf.
18168         * modules/perror (Depends-on): Remove intprops, verify.
18169
18170 2011-06-04  Bruno Haible  <bruno@clisp.org>
18171
18172         setlocale: Enable replacement on Cygwin 1.5.
18173         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18174         Cygwin 1.5.x.
18175         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18176         LC_CTYPE category also exists on Cygwin 1.5.x.
18177
18178 2011-06-04  Bruno Haible  <bruno@clisp.org>
18179
18180         strerror-override: Don't disable symbol renamings.
18181         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18182         * lib/strerror-override.c: Include config.h.
18183         (strerror_override): Don't undefine.
18184
18185 2011-06-03  Bruno Haible  <bruno@clisp.org>
18186
18187         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18188         * lib/localename.h: Update copyright header.
18189         * lib/localename.c: Likewise.
18190         * lib/relocatable.h: Likewise.
18191         * lib/relocatable.c: Likewise.
18192
18193 2011-06-02  Bruno Haible  <bruno@clisp.org>
18194
18195         doc: Fix a module name.
18196         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18197
18198 2011-06-02  Bruno Haible  <bruno@clisp.org>
18199
18200         pipe2: Remove dependency on 'nonblocking' module.
18201         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18202         O_NONBLOCK is defined by gnulib.
18203         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18204         is zero.
18205         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18206         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18207         defined by gnulib.
18208         (get_nonblocking_flag): New function.
18209         (main): Test O_NONBLOCK flag only if it is nonzero.
18210         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18211
18212 2011-06-03  Jim Meyering  <meyering@redhat.com>
18213
18214         maint: three new prohibit-header-without-use rules
18215         Prohibit use of cloexec.h, posixver.h, same.h without use.
18216         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18217         (sc_prohibit_posixver_without_use): Likewise.
18218         (sc_prohibit_same_without_use): Likewise.
18219
18220 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18221
18222         allocator: 'die' routine is now given requested size
18223         * lib/allocator.h (struct allocator.die): New size arg.
18224         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18225         If the actual problem is an ssize_t limitation, not a size_t or
18226         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18227
18228 2011-06-01  Eric Blake  <eblake@redhat.com>
18229
18230         strerror: drop strerror_r dependency
18231         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18232         * lib/strerror-override.c (strerror_override): ...to new file.
18233         * lib/strerror-override.h: Add prototype.
18234         * lib/strerror-impl.h: Delete.
18235         * lib/strerror.c (strerror): New implementation.
18236         * modules/errno (Files): Add new files.
18237         (configure.ac): Compile new file as appropriate.
18238         * modules/strerror (Files): Drop unused file.
18239         (Depends-on): Drop strerror_r-posix.
18240         * MODULES.html.sh: Document strerror_r-posix.
18241         Requested by Sam Steingold.
18242
18243         perror: call strerror_r directly
18244         * modules/perror (Files): Drop strerror-impl.h.
18245         * lib/perror.c (perror): Use our own stack buffer, rather than
18246         calling a wrapper that uses static storage.
18247         * doc/posix-functions/perror.texi (perror): Document a limitation
18248         of our replacement.
18249
18250         strerror_r: fix includes for FreeBSD
18251         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18252         since we use abort on some platforms.
18253         Reported by Matthias Bolte.
18254
18255 2011-05-31  Bruno Haible  <bruno@clisp.org>
18256
18257         Fix link errors in tests: openat-die uses gettext-h.
18258         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18259         against $(LIBINTL).
18260         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18261         against $(LIBINTL).
18262         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18263         $(LIBINTL).
18264         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18265         against $(LIBINTL).
18266         * modules/linkat-tests (Makefile.am): Link test-linkat against
18267         $(LIBINTL).
18268         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18269         $(LIBINTL).
18270         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18271         against $(LIBINTL).
18272         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18273         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18274         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18275         $(LIBINTL).
18276         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18277         $(LIBINTL).
18278         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18279         $(LIBINTL).
18280         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18281
18282 2011-05-31  Bruno Haible  <bruno@clisp.org>
18283
18284         Fix link errors in tests: wait-process uses gettext-h.
18285         * modules/nonblocking-pipe-tests (Makefile.am): Set
18286         test_nonblocking_pipe_main_LDADD.
18287         * modules/nonblocking-socket-tests (Makefile.am): Link
18288         test-nonblocking-socket-main against $(LIBINTL).
18289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18290
18291 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18292
18293         assert-h: work around 'verify' incompatibility
18294         * lib/verify.h: Use @...@ directives, not ifdef.
18295         * modules/assert-h (assert.h): Implement the directives.
18296         (assert.h): Substitute the symbol-prefix more consistently.
18297
18298 2011-05-29  Jim Meyering  <meyering@redhat.com>
18299
18300         trim: remove three superfluous assignments
18301         * lib/trim.c (trim2): Remove three superfluous assignments
18302         and correct brace positioning.
18303
18304 2011-05-29  Bruno Haible  <bruno@clisp.org>
18305
18306         wctype-h: Avoid namespace pollution on Solaris 2.6.
18307         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18308         identifiers.
18309         * doc/posix-headers/wctype.texi: Mention the problem.
18310         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18311
18312 2011-05-28  Jim Meyering  <meyering@redhat.com>
18313
18314         parse-datetime.y: accommodate -Wstrict-overflow
18315         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18316         placate -Wstrict-overflow.
18317
18318         trim: avoid a warning from -O2 -Wstrict-overflow
18319         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18320
18321 2011-05-29  Bruno Haible  <bruno@clisp.org>
18322
18323         gnulib-tool: Fix bug in yesterday's commit.
18324         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18325         twice.
18326
18327 2011-05-29  Bruno Haible  <bruno@clisp.org>
18328
18329         Allow multiple gnulib generated include files to be combined.
18330         * gnulib-tool (func_compute_include_guard_prefix): New function.
18331         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18332         ${gl_include_guard_prefix} references.
18333         (func_import, func_create_testdir): Invoke
18334         func_compute_include_guard_prefix.
18335         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18336         * lib/ctype.in.h: Likewise.
18337         * lib/dirent.in.h: Likewise.
18338         * lib/errno.in.h: Likewise.
18339         * lib/fcntl.in.h: Likewise.
18340         * lib/float.in.h: Likewise.
18341         * lib/getopt.in.h: Likewise.
18342         * lib/iconv.in.h: Likewise.
18343         * lib/langinfo.in.h: Likewise.
18344         * lib/locale.in.h: Likewise.
18345         * lib/math.in.h: Likewise.
18346         * lib/netdb.in.h: Likewise.
18347         * lib/netinet_in.in.h: Likewise.
18348         * lib/poll.in.h: Likewise.
18349         * lib/pthread.in.h: Likewise.
18350         * lib/pty.in.h: Likewise.
18351         * lib/sched.in.h: Likewise.
18352         * lib/se-selinux.in.h: Likewise.
18353         * lib/search.in.h: Likewise.
18354         * lib/signal.in.h: Likewise.
18355         * lib/spawn.in.h: Likewise.
18356         * lib/stdarg.in.h: Likewise.
18357         * lib/stddef.in.h: Likewise.
18358         * lib/stdint.in.h: Likewise.
18359         * lib/stdio.in.h: Likewise.
18360         * lib/stdlib.in.h: Likewise.
18361         * lib/string.in.h: Likewise.
18362         * lib/strings.in.h: Likewise.
18363         * lib/sys_file.in.h: Likewise.
18364         * lib/sys_ioctl.in.h: Likewise.
18365         * lib/sys_select.in.h: Likewise.
18366         * lib/sys_socket.in.h: Likewise.
18367         * lib/sys_stat.in.h: Likewise.
18368         * lib/sys_time.in.h: Likewise.
18369         * lib/sys_times.in.h: Likewise.
18370         * lib/sys_uio.in.h: Likewise.
18371         * lib/sys_utsname.in.h: Likewise.
18372         * lib/sys_wait.in.h: Likewise.
18373         * lib/sysexits.in.h: Likewise.
18374         * lib/termios.in.h: Likewise.
18375         * lib/time.in.h: Likewise.
18376         * lib/unistd.in.h: Likewise.
18377         * lib/wchar.in.h: Likewise.
18378         * lib/wctype.in.h: Likewise.
18379         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18380         * modules/ctype (Makefile.am): Likewise.
18381         * modules/dirent (Makefile.am): Likewise.
18382         * modules/errno (Makefile.am): Likewise.
18383         * modules/fcntl-h (Makefile.am): Likewise.
18384         * modules/float (Makefile.am): Likewise.
18385         * modules/getopt-posix (Makefile.am): Likewise.
18386         * modules/iconv-h (Makefile.am): Likewise.
18387         * modules/langinfo (Makefile.am): Likewise.
18388         * modules/locale (Makefile.am): Likewise.
18389         * modules/math (Makefile.am): Likewise.
18390         * modules/netdb (Makefile.am): Likewise.
18391         * modules/netinet_in (Makefile.am): Likewise.
18392         * modules/poll-h (Makefile.am): Likewise.
18393         * modules/pthread (Makefile.am): Likewise.
18394         * modules/pty (Makefile.am): Likewise.
18395         * modules/sched (Makefile.am): Likewise.
18396         * modules/search (Makefile.am): Likewise.
18397         * modules/selinux-h (Makefile.am): Likewise.
18398         * modules/signal (Makefile.am): Likewise.
18399         * modules/spawn (Makefile.am): Likewise.
18400         * modules/stdarg (Makefile.am): Likewise.
18401         * modules/stddef (Makefile.am): Likewise.
18402         * modules/stdint (Makefile.am): Likewise.
18403         * modules/stdio (Makefile.am): Likewise.
18404         * modules/stdlib (Makefile.am): Likewise.
18405         * modules/string (Makefile.am): Likewise.
18406         * modules/strings (Makefile.am): Likewise.
18407         * modules/sys_file (Makefile.am): Likewise.
18408         * modules/sys_ioctl (Makefile.am): Likewise.
18409         * modules/sys_select (Makefile.am): Likewise.
18410         * modules/sys_socket (Makefile.am): Likewise.
18411         * modules/sys_stat (Makefile.am): Likewise.
18412         * modules/sys_time (Makefile.am): Likewise.
18413         * modules/sys_times (Makefile.am): Likewise.
18414         * modules/sys_uio (Makefile.am): Likewise.
18415         * modules/sys_utsname (Makefile.am): Likewise.
18416         * modules/sys_wait (Makefile.am): Likewise.
18417         * modules/sysexits (Makefile.am): Likewise.
18418         * modules/termios (Makefile.am): Likewise.
18419         * modules/time (Makefile.am): Likewise.
18420         * modules/unistd (Makefile.am): Likewise.
18421         * modules/wchar (Makefile.am): Likewise.
18422         * modules/wctype-h (Makefile.am): Likewise.
18423         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18424
18425 2011-05-29  Bruno Haible  <bruno@clisp.org>
18426
18427         assert-h: Allow multiple gnulib generated replacements to coexist.
18428         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18429
18430 2011-05-29  Bruno Haible  <bruno@clisp.org>
18431
18432         argp: Allow coexistence with strerror_r-posix module.
18433         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18434         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18435         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18436         not the glibc signature.
18437
18438 2011-05-28  Bruno Haible  <bruno@clisp.org>
18439
18440         gnulib-tool: Alternative structure of testdirs, similar to --import.
18441         * gnulib-tool: New option --single-configure.
18442         (func_usage): Document it.
18443         (single_configure): New variable.
18444         (func_modules_transitive_closure_separately,
18445         func_modules_transitive_closure_separately,
18446         func_determine_use_libtests, func_modules_add_dummy_separately,
18447         func_modules_to_filelist_separately): New functions, extracted from
18448         func_import.
18449         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18450         (func_import): Use the new functions.
18451         (func_create_testdir): Set final_modules. Handle $single_configure =
18452         true case.
18453
18454 2011-05-28  Bruno Haible  <bruno@clisp.org>
18455
18456         getloadavg: Remove an unreliable safety check.
18457         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18458         getloadavg.c is in place.
18459         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18460         Reported by Sam Steingold <sds@gnu.org>.
18461
18462 2011-05-28  Bruno Haible  <bruno@clisp.org>
18463
18464         doc: Cleanup yet another file produced by texinfo.tex.
18465         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18466
18467 2011-05-28  Bruno Haible  <bruno@clisp.org>
18468
18469         Finish the conditional dependencies mechanism.
18470         * gnulib-tool: New option --no-conditional-dependencies.
18471         (func_usage): Document it. Don't mark --conditional-dependencies as
18472         experimental.
18473         (cond_dependencies): The possible values can now be true, false, empty.
18474         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18475         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18476         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18477
18478 2011-05-28  Bruno Haible  <bruno@clisp.org>
18479
18480         doc: Use a recent texinfo.tex.
18481         * doc/Makefile (tex_opts): New variable.
18482         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18483
18484 2011-05-28  Jim Meyering  <meyering@redhat.com>
18485
18486         intprops.h: adjust comment to match code change
18487         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18488         only once, it *may* have side effects.  Also fix an unrelated typo.
18489         (_GL_INT_SIGNED): Likewise.
18490
18491 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18492
18493         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18494
18495 2011-05-26  Bruno Haible  <bruno@clisp.org>
18496
18497         mbsrchr: Avoid collision with system function on Interix.
18498         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18499         Reported by Markus Duft <mduft@gentoo.org>.
18500
18501 2011-05-15  James Youngman  <jay@gnu.org>
18502
18503         getopt: for ambiguous options, enumerate the possibilities.
18504         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18505         the ambiguous options when an ambiguous prefix is given. This was
18506         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18507         glibc change was
18508         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18509
18510 2011-05-25  Eric Blake  <eblake@redhat.com>
18511
18512         getcwd: work around mingw bug
18513         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18514         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18515         Reported by Matthias Bolte.
18516
18517 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18518
18519         test-intprops: disable -Wtype-limits diagnostics
18520         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18521         diagnostics.  Otherwise, the integer overflow macros generate many
18522         diagnostics.  Reported by Jim Meyering in
18523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18524
18525         intprops: shorten, to pacify gcc -Woverlength-strings
18526         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18527         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18528         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18529         likely to run afoul of C compiler limits for string constant lengths.
18530         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18531
18532 2011-05-24  Eric Blake  <eblake@redhat.com>
18533
18534         docs: document recently fixed glibc printf bug
18535         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18536         * doc/posix-functions/printf.texi (printf): Likewise.
18537         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18538         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18539
18540         closein-tests: convert to init.sh
18541         * modules/closein-tests (Files): Add init.sh
18542         * tests/test-closein.sh Use it.
18543
18544         yesno-tests: convert to init.sh
18545         * modules/yesno-tests (Files): Add init.sh.
18546         * tests/test-yesno.sh: Use it.
18547
18548         atexit-tests: ensure reliable exit status
18549         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18550         Reported by Bruno Haible.
18551
18552 2011-05-24  Bruno Haible  <bruno@clisp.org>
18553
18554         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18555         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18556         gl_PREREQ_STRERROR_R invocations from here...
18557         * modules/strerror_r-posix (configure.ac): ... to here.
18558
18559 2011-05-24  Eric Blake  <eblake@redhat.com>
18560
18561         strerror_r: fix missing header
18562         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18563
18564         strerror_r: fix AIX test failures
18565         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18566         ERANGE failure.
18567
18568         strerror_r: fix Solaris test failures
18569         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18570         failures.
18571         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18572
18573         strerror_r: enforce POSIX recommendations
18574         * lib/strerror_r.c (safe_copy): New helper method.
18575         (strerror_r): Guarantee a non-empty string.
18576         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18577         recent POSIX rulings and to match our strerror guarantees.
18578         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18579
18580 2011-05-24  Jim Meyering  <meyering@redhat.com>
18581
18582         test-perror2.c: avoid warning about unused variable
18583         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18584
18585 2011-05-24  Eric Blake  <eblake@redhat.com>
18586
18587         perror: avoid spurious test failure on HP-UX
18588         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18589
18590         tests: fix logic bug in init.sh
18591         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18592         shell.
18593
18594 2011-05-24  Jim Meyering  <meyering@redhat.com>
18595
18596         utimensat: do not reference an out-of-scope buffer
18597         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18598         declared in an inner scope, yet "times" would be dereferenced outside
18599         the scope in which "ts" was valid.
18600         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18601         of ts[2] "out/up", so that the use of aliased "times" (via
18602         "times = ts;") does not end up referencing an out-of-scope "ts"
18603
18604         opendir-safer.c: don't clobber errno; don't close negative FD
18605         * lib/opendir-safer.c (opendir_safer):
18606         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
18607         file descriptor, and more importantly, don't clobber the
18608         offending errno value with EINVAL.  Before, upon failure
18609         of dup_safer, we would pass the negative file descriptor to
18610         fdopendir, which would clobber errno.
18611
18612 2011-05-23  Bruno Haible  <bruno@clisp.org>
18613
18614         idcache: Fix module description.
18615         * modules/idcache (Include): Set to "idcache.h".
18616
18617 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18618
18619         gnulib-tool: fix portability problem with MacOS sed
18620         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
18621         before the "}".  Problem reported by Leo in
18622         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
18623         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
18624         sed_extract_condition1, sed_extract_condition2.
18625
18626 2011-05-23  Bruno Haible  <bruno@clisp.org>
18627
18628         hash: Simplify autoconf macro.
18629         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
18630
18631 2011-05-23  Bruno Haible  <bruno@clisp.org>
18632
18633         getugroups: Fix module description.
18634         * modules/getugroups (Include): Set to "getugroups.h".
18635
18636 2011-05-23  Bruno Haible  <bruno@clisp.org>
18637
18638         linkat: Simplify autoconf macro.
18639         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
18640
18641 2011-05-23  Bruno Haible  <bruno@clisp.org>
18642             Eric Blake  <eblake@redhat.com>
18643
18644         linkat, renameat: Update dependencies.
18645         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
18646         * modules/linkat (Depends-on): Likewise. Remove also readlink,
18647         symlinkat.
18648
18649 2011-05-23  Jim Meyering  <meyering@redhat.com>
18650
18651         maint.mk: more tight_scope improvements
18652         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
18653         (_gl_TS_headers): Define only in if-0'd block.
18654         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
18655         sometimes we must *not* use it.  Adjust uses accordingly.
18656         (sc_tight_scope): Use much simpler grep-based test to determine
18657         whether we skip this rule.
18658
18659         maint.mk: generalize/improve the tight-scope rule
18660         * top/maint.mk: Emit a warning when the test is skipped.
18661         (_gl_TS_dir): Add $(srcdir)/ prefix.
18662         (_gl_TS_function_match): Simplify, rather than trying
18663         to enumerate common types.  Otherwise, it would fail to match an
18664         "extern unsigned char const *" declaration in idutils.
18665         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
18666         a way to support use of that type of macro.
18667         (_gl_TS_var_match): Simplify regexp.
18668         (_gl_TS_obj_files): New configurable variable.
18669         (_gl_TS_headers): Likewise.
18670
18671 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18672
18673         verify: fix bug when gnulib <assert.h> is also included
18674         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
18675         is defined, not if _GL_STATIC_ASSERT_H is not defined.
18676         Perhaps there's a better way, but this fixes the immediate problem.
18677         Problem reported by Bruno Haible in
18678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
18679
18680 2011-05-22  Bruno Haible  <bruno@clisp.org>
18681
18682         xgetcwd: Simplify autoconf macro.
18683         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
18684
18685 2011-05-22  Bruno Haible  <bruno@clisp.org>
18686
18687         New module 'mktime-internal'.
18688         * modules/mktime-internal: New file.
18689         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
18690         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
18691         mktime_internal as a C macro if libc has __mktime_internal.
18692         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
18693         conditions.
18694         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
18695
18696 2011-05-22  Bruno Haible  <bruno@clisp.org>
18697
18698         timegm: Correct mktime replacement statements.
18699         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
18700         defining mktime as a C macro. This completes a 2009-07-28 commit.
18701
18702 2011-05-22  Bruno Haible  <bruno@clisp.org>
18703
18704         timegm: Simplify autoconf macro.
18705         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
18706
18707 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18708
18709         clock-time: change to LGPLv2+.
18710         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
18711         BSD-like but we have no mark for that; this is good enough for now.
18712
18713 2011-05-21  Bruno Haible  <bruno@clisp.org>
18714
18715         strerror_r: Fix comments.
18716         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
18717
18718 2011-05-21  Bruno Haible  <bruno@clisp.org>
18719
18720         relocatable-prog-wrapper: Fix possible link error.
18721         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
18722         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
18723         (gl_FUNC_SETENV): ... to here.
18724         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
18725         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
18726
18727 2011-05-21  Bruno Haible  <bruno@clisp.org>
18728
18729         relocatable-prog-wrapper: Assume strerror() exists.
18730         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
18731         m4/strerror.m4.
18732         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
18733         * lib/relocwrapper.c: Remove mention of strerror module.
18734         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
18735         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
18736         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
18737         C macro.
18738
18739 2011-05-21  Bruno Haible  <bruno@clisp.org>
18740
18741         select: Simplify replacement idiom.
18742         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
18743         Win32 platforms.
18744         * lib/sys_select.in.h (select): Simplify accordingly.
18745         * modules/select (Depends-on): Likewise.
18746
18747 2011-05-21  Bruno Haible  <bruno@clisp.org>
18748
18749         mkdir-p: Simplify autoconf macro.
18750         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
18751         gl_FUNC_LCHOWN.
18752
18753 2011-05-21  Eric Blake  <eblake@redhat.com>
18754
18755         strerror_r: avoid clobbering strerror on cygwin
18756         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
18757         fall back instead to sys_errlist.
18758         * modules/strerror (configure.ac): Add witness.
18759         * tests/test-strerror_r.c (main): Enhance test.
18760         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18761         * tests/test-perror2.c (main): Free memory before exit.
18762
18763 2011-05-21  Bruno Haible  <bruno@clisp.org>
18764
18765         mkdtemp: Use gnulib naming conventions.
18766         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
18767         * modules/mkdtemp (configure.ac): Update.
18768
18769 2011-05-20  Eric Blake  <eblake@redhat.com>
18770
18771         strerror_r: avoid corrupting errno on Solaris
18772         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
18773         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18774
18775         strerror_r: avoid compiler warning
18776         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
18777
18778         strerror_r: simplify AIX code
18779         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
18780
18781         test-perror: avoid spurious failure on FreeBSD
18782         * modules/perror-tests (Depends-on): Add strerror, now that
18783         strerror_r no longer pulls it in.
18784
18785 2011-05-20  Bruno Haible  <bruno@clisp.org>
18786
18787         strerror_r-posix: Remove unused dependencies.
18788         * modules/strerror_r-posix (Depends-on): Remove strerror.
18789         Reported by Eric Blake.
18790
18791 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18792
18793         intprops: remove assumption about A|B representation
18794         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
18795         is a valid integer if both A and B are.  Although this is true for
18796         all known practical hosts, the C standard doesn't guarantee it,
18797         and the code need not assume it.  Also, this change may work around
18798         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
18799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
18800
18801 2011-05-20  Eric Blake  <eblake@redhat.com>
18802
18803         perror: work around FreeBSD bug
18804         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
18805         is broken.  Move AC_LIBOBJ...
18806         * modules/perror (configure.ac): Here.
18807         * doc/posix-functions/perror.texi (perror): Document this.
18808         * tests/test-perror2.c (main): Enhance test.
18809
18810         test-perror: check for strerror interactions
18811         * tests/macros.h (STREQ): Add macro.
18812         * modules/perror-tests (Files): Add second test.
18813         * tests/test-perror2.c (main): New file.
18814         * doc/posix-functions/perror.texi (perror): Document glibc bug.
18815
18816         test-perror: rewrite to use init script
18817         * modules/perror-tests (Files): Add init.sh.
18818         * tests/test-perror.sh: Use temporary directory.
18819
18820 2011-05-20  Jim Meyering  <meyering@redhat.com>
18821
18822         maint: replace misused "a" with "an"
18823         * doc/intprops.texi: "a integer"
18824         * doc/regex.texi: "a explanation"
18825         * lib/alignof.h: "a object"
18826         * lib/argmatch.h: "a explanation"
18827         * lib/argp-help.c: "a option" and "a OPTION_DOC"
18828         * lib/stdint.in.h: "a integer"
18829         * lib/userspec.c: "a owner"
18830         * doc/gnulib.texi: Fix "a idea", and reword.
18831
18832 2011-05-19  Jim Meyering  <meyering@redhat.com>
18833
18834         maint: correct misuse of "a" and "an"
18835         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
18836         * lib/argp-help.c: "an docum...": s/an/a/
18837         * lib/argp-parse.c: "An vector": s/An/A/
18838         * lib/execute.c: "an native": s/an/a/
18839         * lib/spawn-pipe.c: Likewise.
18840         * lib/gc.h: "an Gc_rc": s/an/a/
18841         * lib/unigbrk.in.h: "an grapheme": s/an/a/
18842         * lib/fts.c: "an stat.st_dev": s/an/a/
18843
18844 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18845
18846         intprops-tests: work around HP-UX 11.23 cc bug with constants
18847         * tests/test-intprops.c (VERIFY): New macro.
18848         (main): Use it, instead of verify, to work around the compiler bug; see
18849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18850
18851         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
18852         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
18853         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
18854         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
18855         (_GL_REMAINDER_OVERFLOW): Use it.
18856
18857         intprops-tests: revert unsigned part of previous change
18858         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
18859         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
18860         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
18861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
18862
18863 2011-05-19  Bruno Haible  <bruno@clisp.org>
18864
18865         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
18866         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
18867         strerror_r() returned without filling the buffer.
18868         Reported by Eric Blake.
18869
18870 2011-05-19  Eric Blake  <eblake@redhat.com>
18871
18872         strerror_r: guarantee unchanged errno
18873         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
18874         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
18875         failure.
18876         * tests/test-strerror_r.c (main): Enhance test.
18877
18878 2011-05-19  Bruno Haible  <bruno@clisp.org>
18879
18880         strerror_r: Reorder #if blocks.
18881         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
18882         for consistency with the previous commit.
18883
18884 2011-05-19  Bruno Haible  <bruno@clisp.org>
18885
18886         perror: Avoid clobbering the strerror buffer when possible.
18887         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
18888         * lib/strerror.c: Include it.
18889         * modules/strerror (Files): Add lib/strerror-impl.h.
18890         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
18891         (my_strerror): New function, defined through lib/strerror-impl.h.
18892         (perror): Use it instead of strerror.
18893         * modules/perror (Files): Add lib/strerror-impl.h.
18894         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
18895
18896 2011-05-19  Eric Blake  <eblake@redhat.com>
18897
18898         strerror_r: fix on newer cygwin
18899         * lib/strerror_r.c (strerror_r): Cygwin now has
18900         __xpg_strerror_r, use it.
18901
18902 2011-05-19  Bruno Haible  <bruno@clisp.org>
18903
18904         strerror_r: Avoid clobbering the strerror buffer when possible.
18905         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
18906         (sys_nerr, sys_errlist): New declarations.
18907         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
18908         HP-UX, native Win32, IRIX, and 32-bit Solaris.
18909         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
18910
18911 2011-05-19  Bruno Haible  <bruno@clisp.org>
18912
18913         strerror_r: Fix test failure on mingw.
18914         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
18915         EXTEND_STRERROR_R.
18916         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
18917         macros from errno.in.h instead.
18918
18919 2011-05-19  Eric Blake  <eblake@redhat.com>
18920
18921         strerror: relax test for Solaris
18922         * tests/test-strerror.c (main): Permit Solaris behavior.
18923         * tests/test-strerror_r.c (main): Likewise.
18924
18925         strerror: enforce POSIX ruling on strerror(0)
18926         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
18927         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18928         * lib/strerror_r.c (rpl_strerror_r): Work around it.
18929         * doc/posix-functions/strerror.texi (strerror): Document it.
18930         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
18931         * tests/test-strerror.c (main): Strengthen test.
18932         * tests/test-strerror_r.c (main): Likewise.
18933
18934 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18935
18936         intprop-tests: port to older and more-pedantic compilers
18937         * modules/intprops-tests (Files): Add tests/macros.h.
18938         * tests/test-intprops.c: Include macros.h.
18939         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
18940         it's no longer documented to expand to an integer constant expression.
18941         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
18942         argument is floating point, as it's no longer documented to expand
18943         to an integer constant expression in that case.
18944         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
18945         compiler bugs reported by Bruno Haible.  See
18946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18947         (U0, U1): New constants, to work around the same bugs.  Also,
18948         in tests, use e.g., "(unsigned int) 39" rather than "39u".
18949
18950         intprops: work around C compiler bugs
18951         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
18952         bug in Sun C 5.11 2010/08/13 and other compilers; see
18953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18954
18955         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
18956         * doc/intprops.texi (Integer Type Determination): Fix
18957         documentation for TYPE_IS_INTEGER: it returns an constant
18958         expression, not an integer constant expression.  Fix doc for
18959         TYPE_SIGNED: it returns an integer constant expression only if its
18960         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
18961         hardly worth documented that way....)
18962
18963 2011-05-18  Bruno Haible  <bruno@clisp.org>
18964
18965         strerror_r: Avoid clobbering the strerror buffer when possible.
18966         * lib/strerror_r.c (strerror_r): Merge the three implementations.
18967         Handle gnulib defined errno values here. When strerror() returns NULL
18968         or an empty string, return EINVAL.
18969         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
18970         gnulib defined errno values here.
18971         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
18972
18973 2011-05-18  Eric Blake  <eblake@redhat.com>
18974
18975         fnmatch: avoid compiler warning
18976         * lib/fnmatch_loop.c (FCT): Use correct type.
18977         Reported by Matthias Bolte.
18978
18979 2011-05-13  Jim Meyering  <meyering@redhat.com>
18980
18981         maint.mk: three new prohibit_<HDR>_without_use rules
18982         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
18983         (sc_prohibit_stdio-safer_without_use): Likewise.
18984         (sc_prohibit_xfreopen_without_use): Likewise.
18985
18986 2011-05-17  Jim Meyering  <meyering@redhat.com>
18987
18988         announce-gen: fail if the NEWS delta is empty
18989         If there's nothing noteworthy in NEWS, then either you forgot
18990         or you shouldn't be releasing.
18991         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
18992
18993 2011-05-17  Pádraig Brady <P@draigBrady.com>
18994
18995         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
18996         reserved symbols starting with double underscore from the check.
18997
18998 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18999
19000         intprops: add doc
19001         * doc/intprops.texi: New file, documenting intprops.
19002         * doc/gnulib.texi (Particular Modules): Include it.
19003
19004         verify: add doc to gnulib manual and fix example
19005         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19006         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19007         (Compile-time Assertions): Fix example so it can't overflow.
19008
19009 2011-05-17  Jim Meyering  <meyering@redhat.com>
19010
19011         warnings.m4: don't usurp save_CPPFLAGS variable name
19012         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19013
19014         doc: fix typo
19015         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19016
19017 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19018             Bruno Haible  <bruno@clisp.org>
19019
19020         doc: Tweak recent change.
19021         * README (Portability guidelines): Tweak new text.
19022         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19023         Interix 6.1.
19024
19025 2011-05-16  Eric Blake  <eblake@redhat.com>
19026
19027         inttypes: avoid autoconf warning
19028         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19029         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19030
19031 2011-05-16  Sam Steingold <sds@gnu.org>
19032         and Eric Blake  <eblake@redhat.com>
19033
19034         vc-list-files: accept multiple directory operands
19035         * build-aux/vc-list-files: Iterate over all remaining operands.
19036
19037 2011-05-16  Bruno Haible  <bruno@clisp.org>
19038
19039         Fix confusion regarding deprecated modules.
19040         * modules/calloc (Status, Notice): Mark module as deprecated, not
19041         obsolete.
19042         * modules/fnmatch-posix (Status, Notice): Likewise.
19043         * modules/getdate (Status, Notice): Likewise.
19044         * modules/getopt (Status, Notice): Likewise.
19045         * modules/malloc (Status, Notice): Likewise.
19046         * modules/pipe (Status, Notice): Likewise.
19047         * modules/realloc (Status, Notice): Likewise.
19048         * modules/rename-dest-slash (Status, Notice): Likewise.
19049         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19050         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19051         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19052         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19053         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19054
19055 2011-05-16  Bruno Haible  <bruno@clisp.org>
19056
19057         doc: List the target platforms.
19058         * doc/gnulib-intro.texi (Target Platforms): New section.
19059         * doc/gnulib.texi (Introduction): Update menu.
19060         * README (Portability guidelines): Refer to the new section. Update
19061         statement about oldest supported environment. Remove rationale why
19062         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19063         unportable C89 function.
19064         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19065         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19066
19067 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19068
19069         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19070
19071 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19072
19073         intprops-tests: new module
19074         * modules/intprops-tests, tests/test-intprops.c: New files.
19075
19076         intprops: add safe, portable integer overflow checking
19077         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19078         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19079         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19080         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19081         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19082         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19083         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19084         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19085         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19086         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19087         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19088
19089 2011-05-12  James Youngman  <jay@gnu.org>
19090
19091         Add a test for glibc's Bugzilla bug #12378.
19092         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19093         doesn't allow the literal matching of a lone "[" (which is
19094         required by POSIX).
19095         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19096
19097 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19098
19099         Sync glibc change fixing Bugzilla bug #12378.
19100         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19101         beginning and fall back to matching as normal character if the
19102         string ends before the matching ']' is found.  This is what POSIX
19103         requires.
19104
19105 2011-05-13  Eric Blake  <eblake@redhat.com>
19106
19107         getcwd-lgpl: relax test for FreeBSD
19108         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19109         issue.
19110         * tests/test-getcwd-lgpl.c (main): Relax test.
19111         Reported by Matthias Bolte.
19112
19113 2011-05-11  Eric Blake  <eblake@redhat.com>
19114
19115         test-fflush: silence compiler warning
19116         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19117
19118 2011-05-11  Bruno Haible  <bruno@clisp.org>
19119
19120         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19121         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19122         * modules/canonicalize (Depends-on): Add 'nocrash'.
19123         * modules/canonicalize-lgpl (Depends-on): Likewise.
19124         * doc/posix-functions/realpath.texi: Update platforms list.
19125         Reported by Ryan Schmidt <ryandesign@macports.org>.
19126
19127 2011-05-11  Bruno Haible  <bruno@clisp.org>
19128
19129         group-member: Declare function in <unistd.h>.
19130         * lib/unistd.in.h (group_member): New declaration.
19131         * lib/group-member.h: Remove file.
19132         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19133         * tests/test-unistd-c++.cc: Check signature of group_member.
19134         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19135         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19136         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19137         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19138         HAVE_GROUP_MEMBER.
19139         * modules/group-member (Files): Remove lib/group-member.h.
19140         (Depends-on): Add unistd. Specify conditions.
19141         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19142         (Include): Change to <unistd.h>.
19143         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19144         HAVE_GROUP_MEMBER.
19145         * NEWS: Mention the change.
19146         * lib/euidaccess.c: Don't include group-member.h.
19147
19148 2011-05-11  Bruno Haible  <bruno@clisp.org>
19149
19150         group-member: Document module.
19151         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19152         module.
19153
19154 2011-05-11  Bruno Haible  <bruno@clisp.org>
19155
19156         fclose: Fix mistake earlier today.
19157         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19158
19159 2011-05-11  Eric Blake  <eblake@redhat.com>
19160
19161         fclose: preserve fflush errors
19162         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19163         Reported by Jim Meyering.
19164
19165         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19166         * build-aux/bootstrap (check_versions): When no specific version
19167         is required, merely check that the app produces an exit status
19168         that indicates its existence.
19169
19170         maint.mk: drop redundant check
19171         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19172         the same but better.
19173
19174 2011-05-11  Bruno Haible  <bruno@clisp.org>
19175
19176         fclose: Fix possible link error.
19177         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19178         unregister_shadow_fd. Improve comments.
19179         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19180         Eric Blake.
19181
19182 2011-05-11  Jim Meyering  <meyering@redhat.com>
19183
19184         maint.mk: improve "can not" detection and generalize rule name
19185         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19186         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19187         Use the same technique as in sc_prohibit_doubled_word, so that
19188         we recognize "can not" also when the words are separated by a newline.
19189         Suggested by Eric Blake.
19190         (perl_filename_lineno_text_): Define.  Factored out of...
19191         (prohibit_doubled_word_): ...here.  Use the new definition.
19192         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19193         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19194         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19195
19196 2011-05-10  Eric Blake  <eblake@redhat.com>
19197
19198         fclose: avoid double close race when possible
19199         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19200         all but WINDOWS_SOCKETS.
19201
19202 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19203
19204         openat: correct new comment
19205         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19206
19207 2011-05-10  Jim Meyering  <meyering@redhat.com>
19208
19209         openat: add comments
19210         * lib/openat-proc.c (openat_proc_name): Add comments,
19211         mostly from Eric Blake.
19212
19213 2011-05-09  Eric Blake  <eblake@redhat.com>
19214
19215         openat: reduce syscalls in first probe of /proc
19216         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19217         be a directory.  Simplify the probe for .. bugs.
19218         * modules/openat (Depends-on): Drop same-inode.
19219         Reported by Bastien ROUCARIES.
19220
19221 2011-05-09  Jim Meyering  <meyering@redhat.com>
19222
19223         maint.mk: change semantics/name of tight_scope variables
19224         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19225         Rename variables to align with semantics that make them more useful.
19226
19227         maint.mk: tweak new rule's name not to impinge
19228         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19229         (sc_tight_scope): Use new rule name rather than $@-0.
19230
19231         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19232         * top/maint.mk (sc_tight_scope): New rule.
19233         (sc_tight_scope-0): New rule, ifdef'd out.
19234         (_gl_TS_dir): Default.
19235         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19236         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19237
19238 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19239
19240         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19241         Haible <bruno@clisp.org>.
19242
19243 2011-05-08  Bruno Haible  <bruno@clisp.org>
19244
19245         Comments.
19246         * m4/isnanf.m4: Add comment.
19247         * m4/isnanl.m4: Likewise.
19248
19249 2011-05-08  Bruno Haible  <bruno@clisp.org>
19250
19251         glob: Remove obsolete macro.
19252         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19253
19254 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19255
19256         intprops: Sun C 5.11 supports __typeof__
19257         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19258         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19259         which is new.
19260         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19261
19262         intprops: switch to usual gnulib indenting and naming
19263         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19264         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19265
19266         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19267
19268 2011-05-08  Jim Meyering  <meyering@redhat.com>
19269
19270         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19271         * top/maint.mk (release-prep): Use make's --no-print-directory
19272         option when generating the announcement.  This eliminates the
19273         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19274         generated announcement template.
19275
19276 2011-05-08  Bruno Haible  <bruno@clisp.org>
19277
19278         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19279         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19280         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19281
19282 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19283
19284         ignore-value, verify: Omit include files from lib_SOURCES.
19285         * modules/ignore-value, modules/verify (Makefile.am):
19286         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19287         that leads Automake to duplicate use of am__objects_... variables
19288         in Makefile.in.  See
19289         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19290
19291 2011-05-07  Bruno Haible  <bruno@clisp.org>
19292
19293         fclose: Simplify autoconf macro.
19294         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19295         defined.
19296
19297 2011-05-07  Bruno Haible  <bruno@clisp.org>
19298
19299         canonicalize-lgpl: Fix autoconf macro ordering bug.
19300         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19301         gl_STDLIB_H_DEFAULTS.
19302
19303 2011-05-06  Eric Blake  <eblake@redhat.com>
19304
19305         maintainer-makefile: make sc_po_check easier to tune
19306         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19307         to probe for strings, such as an alternate location for gnulib.
19308
19309         fclose: guarantee behavior on seekable stdin
19310         * modules/fclose (Depends-on): Add fflush.
19311         * doc/posix-functions/fclose.texi (fclose): Document this.
19312         * tests/test-fclose.c (main): Make test for this unconditional.
19313
19314 2011-05-06  Bruno Haible  <bruno@clisp.org>
19315
19316         fflush, fpurge: Relicense under LGPLv2+.
19317         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19318         * modules/fpurge (License): Likewise.
19319         With permission from Eric Blake and Jim Meyering.
19320         Suggested by Eric Blake.
19321
19322 2011-05-06  Karl Berry  <karl@gnu.org>
19323
19324         * MODULES.html.sh (func_all_modules): remove exit.
19325
19326 2011-05-06  Jim Meyering  <meyering@redhat.com>
19327
19328         maint.mk: use info-gnu@ as the default only for a stable release
19329         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19330         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19331         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19332         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19333
19334 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19335
19336         assert-h: new module, which supports C1X-style static_assert
19337         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19338         * lib/verify.h: Revamp so that this can be copied into assert.h,
19339         while retaining the ability to use it standalone as before.
19340         Rename private identifiers so as not to encroach on the
19341         standard C namespace, since this is now used by assert.h.
19342         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19343         the old verify_true.
19344         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19345         the old verify_true.  Use _GL_VERIFY_TYPE.
19346         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19347         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19348         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19349         defined when this file is copied into the replacement assert.h.
19350         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19351         and _Static_assert is not built in.
19352         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19353         defined, and use the new macros mentioned above.
19354         * doc/posix-headers/assert.texi: Document this.
19355
19356 2011-05-05  Bruno Haible  <bruno@clisp.org>
19357
19358         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19359         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19360         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19361         gl_REPLACE_FCLOSE here.
19362         * modules/fflush (Depends-on): Remove fclose.
19363         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19364         combination with module 'fclose'.
19365
19366 2011-05-05  Bruno Haible  <bruno@clisp.org>
19367
19368         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19369         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19370         gl_FUNC_FFLUSH.
19371         (gl_FUNC_FFLUSH): Use it.
19372         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19373         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19374         gl_REPLACE_FSEEKO here.
19375
19376 2011-05-05  Bruno Haible  <bruno@clisp.org>
19377
19378         tzset: Relicense under LGPL.
19379         * modules/tzset (License): Change to LGPL.
19380         No agreement needed; it's a no-op.
19381
19382         strtoimax, strtoumax: Relicense under LGPL.
19383         * modules/strtoimax (License): Change to LGPL.
19384         * modules/strtoumax (License): Likewise.
19385         With permission from Jim Meyering, Paul Eggert:
19386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19388
19389         getgroups: Relicense under LGPL.
19390         * modules/getgroups (License): Change to LGPL.
19391         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19395
19396         nanosleep: Relicense under LGPL.
19397         * modules/nanosleep (License): Change to LGPL.
19398         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19399         Haible:
19400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19404
19405         futimens: Relicense under LGPL.
19406         * modules/futimens (License): Change to LGPL.
19407         With permission from Eric Blake:
19408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19409
19410         fflush: Relicense under LGPL.
19411         * modules/fflush (License): Change to LGPL.
19412         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19415         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19416
19417         tmpfile: Relicense under LGPL.
19418         * modules/tmpfile (License): Change to LGPL.
19419         With permission from Ben Pfaff:
19420         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19421
19422         isfinite: Relicense under LGPL.
19423         * modules/isfinite (License): Change to LGPL.
19424         With permission from Ben Pfaff, Bruno Haible:
19425         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19427
19428         acosl..tanl: Relicense under LGPL.
19429         * modules/acosl (License): Change to LGPL.
19430         * modules/asinl (License): Likewise.
19431         * modules/atanl (License): Likewise.
19432         * modules/cosl (License): Likewise.
19433         * modules/expl (License): Likewise.
19434         * modules/logl (License): Likewise.
19435         * modules/sinl (License): Likewise.
19436         * modules/sqrtl (License): Likewise.
19437         * modules/tanl (License): Likewise.
19438         Source code originally from glibc and Paolo Bonzini. Agreements:
19439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19441
19442 2011-05-05  Bruno Haible  <bruno@clisp.org>
19443
19444         signal: Define sighandler_t.
19445         * lib/signal.in.h (sighandler_t): New type.
19446         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19447         whether sighandler_t is defined.
19448         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19449         * modules/signal (Depends-on): Add extensions.
19450         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19451         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19452         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19453
19454 2011-05-05  Eric Blake  <eblake@redhat.com>
19455
19456         maint: remove useless REPLACE_*_H macros
19457         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19458         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19459         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19460         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19461         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19462         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19463         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19464         * m4/btowc.m4: Update callers.
19465         * m4/dirfd.m4: Likewise.
19466         * m4/duplocale.m4: Likewise.
19467         * m4/fchdir.m4: Likewise.
19468         * m4/fdopendir.m4: Likewise.
19469         * m4/inet_ntop.m4: Likewise.
19470         * m4/inet_pton.m4: Likewise.
19471         * m4/ioctl.m4: Likewise.
19472         * m4/mbrlen.m4: Likewise.
19473         * m4/mbrtowc.m4: Likewise.
19474         * m4/mbsinit.m4: Likewise.
19475         * m4/mbsnrtowcs.m4: Likewise.
19476         * m4/mbsrtowcs.m4: Likewise.
19477         * m4/poll.m4: Likewise.
19478         * m4/setlocale.m4: Likewise.
19479         * m4/wcrtomb.m4: Likewise.
19480         * m4/wcsnrtombs.m4: Likewise.
19481         * m4/wcsrtombs.m4: Likewise.
19482         * m4/wctob.m4: Likewise.
19483         * m4/wcwidth.m4: Likewise.
19484         * modules/posix_spawn: Likewise.
19485         * modules/posix_spawn_file_actions_addclose: Likewise.
19486         * modules/posix_spawn_file_actions_adddup2: Likewise.
19487         * modules/posix_spawn_file_actions_addopen: Likewise.
19488         * modules/posix_spawn_file_actions_destroy: Likewise.
19489         * modules/posix_spawn_file_actions_init: Likewise.
19490         * modules/posix_spawnattr_destroy: Likewise.
19491         * modules/posix_spawnattr_getflags: Likewise.
19492         * modules/posix_spawnattr_getpgroup: Likewise.
19493         * modules/posix_spawnattr_getschedparam: Likewise.
19494         * modules/posix_spawnattr_getschedpolicy: Likewise.
19495         * modules/posix_spawnattr_getsigdefault: Likewise.
19496         * modules/posix_spawnattr_getsigmask: Likewise.
19497         * modules/posix_spawnattr_init: Likewise.
19498         * modules/posix_spawnattr_setflags: Likewise.
19499         * modules/posix_spawnattr_setpgroup: Likewise.
19500         * modules/posix_spawnattr_setschedparam: Likewise.
19501         * modules/posix_spawnattr_setschedpolicy: Likewise.
19502         * modules/posix_spawnattr_setsigdefault: Likewise.
19503         * modules/posix_spawnattr_setsigmask: Likewise.
19504         * modules/posix_spawnp: Likewise.
19505
19506 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19507
19508         Add option to do-release-commit-and-tag to specify branch.
19509         * build-aux/do-release-commit-and-tag: Add --branch.
19510
19511 2011-05-03  Bruno Haible  <bruno@clisp.org>
19512
19513         Avoid unnecessary compilation units, through conditional dependencies.
19514         * modules/accept (Depends-on): Add conditions to the dependencies.
19515         * modules/acosl (Depends-on): Likewise.
19516         * modules/argz (Depends-on): Likewise.
19517         * modules/asinl (Depends-on): Likewise.
19518         * modules/atanl (Depends-on): Likewise.
19519         * modules/atoll (Depends-on): Likewise.
19520         * modules/bind (Depends-on): Likewise.
19521         * modules/btowc (Depends-on): Likewise.
19522         * modules/canonicalize-lgpl (Depends-on): Likewise.
19523         * modules/ceil (Depends-on): Likewise.
19524         * modules/ceilf (Depends-on): Likewise.
19525         * modules/ceill (Depends-on): Likewise.
19526         * modules/chdir-long (Depends-on): Likewise.
19527         * modules/chown (Depends-on): Likewise.
19528         * modules/close (Depends-on): Likewise.
19529         * modules/connect (Depends-on): Likewise.
19530         * modules/cosl (Depends-on): Likewise.
19531         * modules/dirfd (Depends-on): Likewise.
19532         * modules/dprintf (Depends-on): Likewise.
19533         * modules/dprintf-posix (Depends-on): Likewise.
19534         * modules/error (Depends-on): Likewise.
19535         * modules/euidaccess (Depends-on): Likewise.
19536         * modules/expl (Depends-on): Likewise.
19537         * modules/faccessat (Depends-on): Likewise.
19538         * modules/fchdir (Depends-on): Likewise.
19539         * modules/fclose (Depends-on): Likewise.
19540         * modules/fcntl (Depends-on): Likewise.
19541         * modules/fdopendir (Depends-on): Likewise.
19542         * modules/fflush (Depends-on): Likewise.
19543         * modules/floor (Depends-on): Likewise.
19544         * modules/floorf (Depends-on): Likewise.
19545         * modules/floorl (Depends-on): Likewise.
19546         * modules/fnmatch (Depends-on): Likewise.
19547         * modules/fopen (Depends-on): Likewise.
19548         * modules/fprintf-posix (Depends-on): Likewise.
19549         * modules/frexp (Depends-on): Likewise.
19550         * modules/frexp-nolibm (Depends-on): Likewise.
19551         * modules/frexpl (Depends-on): Likewise.
19552         * modules/frexpl-nolibm (Depends-on): Likewise.
19553         * modules/fseek (Depends-on): Likewise.
19554         * modules/fsusage (Depends-on): Likewise.
19555         * modules/ftell (Depends-on): Likewise.
19556         * modules/ftello (Depends-on): Likewise.
19557         * modules/futimens (Depends-on): Likewise.
19558         * modules/getcwd (Depends-on): Likewise.
19559         * modules/getcwd-lgpl (Depends-on): Likewise.
19560         * modules/getdelim (Depends-on): Likewise.
19561         * modules/getdomainname (Depends-on): Likewise.
19562         * modules/getgroups (Depends-on): Likewise.
19563         * modules/gethostname (Depends-on): Likewise.
19564         * modules/getline (Depends-on): Likewise.
19565         * modules/getlogin_r (Depends-on): Likewise.
19566         * modules/getopt-posix (Depends-on): Likewise.
19567         * modules/getpeername (Depends-on): Likewise.
19568         * modules/getsockname (Depends-on): Likewise.
19569         * modules/getsockopt (Depends-on): Likewise.
19570         * modules/getsubopt (Depends-on): Likewise.
19571         * modules/getusershell (Depends-on): Likewise.
19572         * modules/glob (Depends-on): Likewise.
19573         * modules/grantpt (Depends-on): Likewise.
19574         * modules/iconv_open (Depends-on): Likewise.
19575         * modules/iconv_open-utf (Depends-on): Likewise.
19576         * modules/inet_ntop (Depends-on): Likewise.
19577         * modules/inet_pton (Depends-on): Likewise.
19578         * modules/ioctl (Depends-on): Likewise.
19579         * modules/isapipe (Depends-on): Likewise.
19580         * modules/isfinite (Depends-on): Likewise.
19581         * modules/isinf (Depends-on): Likewise.
19582         * modules/lchown (Depends-on): Likewise.
19583         * modules/ldexpl (Depends-on): Likewise.
19584         * modules/link (Depends-on): Likewise.
19585         * modules/linkat (Depends-on): Likewise.
19586         * modules/listen (Depends-on): Likewise.
19587         * modules/logl (Depends-on): Likewise.
19588         * modules/lstat (Depends-on): Likewise.
19589         * modules/mbrlen (Depends-on): Likewise.
19590         * modules/mbrtowc (Depends-on): Likewise.
19591         * modules/mbsinit (Depends-on): Likewise.
19592         * modules/mbsnrtowcs (Depends-on): Likewise.
19593         * modules/mbsrtowcs (Depends-on): Likewise.
19594         * modules/mbtowc (Depends-on): Likewise.
19595         * modules/memcmp (Depends-on): Likewise.
19596         * modules/mkdir (Depends-on): Likewise.
19597         * modules/mkdtemp (Depends-on): Likewise.
19598         * modules/mkfifo (Depends-on): Likewise.
19599         * modules/mkfifoat (Depends-on): Likewise.
19600         * modules/mknod (Depends-on): Likewise.
19601         * modules/mkostemp (Depends-on): Likewise.
19602         * modules/mkostemps (Depends-on): Likewise.
19603         * modules/mkstemp (Depends-on): Likewise.
19604         * modules/mkstemps (Depends-on): Likewise.
19605         * modules/mktime (Depends-on): Likewise.
19606         * modules/nanosleep (Depends-on): Likewise.
19607         * modules/open (Depends-on): Likewise.
19608         * modules/openat (Depends-on): Likewise.
19609         * modules/perror (Depends-on): Likewise.
19610         * modules/poll (Depends-on): Likewise.
19611         * modules/popen (Depends-on): Likewise.
19612         * modules/posix_spawn (Depends-on): Likewise.
19613         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
19614         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19615         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19616         * modules/posix_spawnp (Depends-on): Likewise.
19617         * modules/pread (Depends-on): Likewise.
19618         * modules/printf-posix (Depends-on): Likewise.
19619         * modules/ptsname (Depends-on): Likewise.
19620         * modules/putenv (Depends-on): Likewise.
19621         * modules/pwrite (Depends-on): Likewise.
19622         * modules/readline (Depends-on): Likewise.
19623         * modules/readlink (Depends-on): Likewise.
19624         * modules/readlinkat (Depends-on): Likewise.
19625         * modules/recv (Depends-on): Likewise.
19626         * modules/recvfrom (Depends-on): Likewise.
19627         * modules/regex (Depends-on): Likewise.
19628         * modules/remove (Depends-on): Likewise.
19629         * modules/rename (Depends-on): Likewise.
19630         * modules/renameat (Depends-on): Likewise.
19631         * modules/rmdir (Depends-on): Likewise.
19632         * modules/round (Depends-on): Likewise.
19633         * modules/roundf (Depends-on): Likewise.
19634         * modules/roundl (Depends-on): Likewise.
19635         * modules/rpmatch (Depends-on): Likewise.
19636         * modules/select (Depends-on): Likewise.
19637         * modules/send (Depends-on): Likewise.
19638         * modules/sendto (Depends-on): Likewise.
19639         * modules/setenv (Depends-on): Likewise.
19640         * modules/setlocale (Depends-on): Likewise.
19641         * modules/setsockopt (Depends-on): Likewise.
19642         * modules/shutdown (Depends-on): Likewise.
19643         * modules/sigaction (Depends-on): Likewise.
19644         * modules/signbit (Depends-on): Likewise.
19645         * modules/sigprocmask (Depends-on): Likewise.
19646         * modules/sinl (Depends-on): Likewise.
19647         * modules/sleep (Depends-on): Likewise.
19648         * modules/snprintf (Depends-on): Likewise.
19649         * modules/snprintf-posix (Depends-on): Likewise.
19650         * modules/socket (Depends-on): Likewise.
19651         * modules/sprintf-posix (Depends-on): Likewise.
19652         * modules/sqrtl (Depends-on): Likewise.
19653         * modules/stat (Depends-on): Likewise.
19654         * modules/strchrnul (Depends-on): Likewise.
19655         * modules/strdup-posix (Depends-on): Likewise.
19656         * modules/strerror (Depends-on): Likewise.
19657         * modules/strerror_r-posix (Depends-on): Likewise.
19658         * modules/strndup (Depends-on): Likewise.
19659         * modules/strnlen (Depends-on): Likewise.
19660         * modules/strptime (Depends-on): Likewise.
19661         * modules/strsep (Depends-on): Likewise.
19662         * modules/strsignal (Depends-on): Likewise.
19663         * modules/strstr-simple (Depends-on): Likewise.
19664         * modules/strtod (Depends-on): Likewise.
19665         * modules/strtoimax (Depends-on): Likewise.
19666         * modules/strtok_r (Depends-on): Likewise.
19667         * modules/strtoumax (Depends-on): Likewise.
19668         * modules/symlink (Depends-on): Likewise.
19669         * modules/symlinkat (Depends-on): Likewise.
19670         * modules/tanl (Depends-on): Likewise.
19671         * modules/tcgetsid (Depends-on): Likewise.
19672         * modules/tmpfile (Depends-on): Likewise.
19673         * modules/trunc (Depends-on): Likewise.
19674         * modules/truncf (Depends-on): Likewise.
19675         * modules/truncl (Depends-on): Likewise.
19676         * modules/uname (Depends-on): Likewise.
19677         * modules/unlink (Depends-on): Likewise.
19678         * modules/unlockpt (Depends-on): Likewise.
19679         * modules/unsetenv (Depends-on): Likewise.
19680         * modules/usleep (Depends-on): Likewise.
19681         * modules/utimensat (Depends-on): Likewise.
19682         * modules/vasprintf (Depends-on): Likewise.
19683         * modules/vdprintf (Depends-on): Likewise.
19684         * modules/vdprintf-posix (Depends-on): Likewise.
19685         * modules/vfprintf-posix (Depends-on): Likewise.
19686         * modules/vprintf-posix (Depends-on): Likewise.
19687         * modules/vsnprintf (Depends-on): Likewise.
19688         * modules/vsnprintf-posix (Depends-on): Likewise.
19689         * modules/vsprintf-posix (Depends-on): Likewise.
19690         * modules/wcrtomb (Depends-on): Likewise.
19691         * modules/wcscasecmp (Depends-on): Likewise.
19692         * modules/wcscspn (Depends-on): Likewise.
19693         * modules/wcsdup (Depends-on): Likewise.
19694         * modules/wcsncasecmp (Depends-on): Likewise.
19695         * modules/wcsnrtombs (Depends-on): Likewise.
19696         * modules/wcspbrk (Depends-on): Likewise.
19697         * modules/wcsrtombs (Depends-on): Likewise.
19698         * modules/wcsspn (Depends-on): Likewise.
19699         * modules/wcsstr (Depends-on): Likewise.
19700         * modules/wcstok (Depends-on): Likewise.
19701         * modules/wcswidth (Depends-on): Likewise.
19702         * modules/wctob (Depends-on): Likewise.
19703         * modules/wctomb (Depends-on): Likewise.
19704         * modules/wctype (Depends-on): Likewise.
19705         * modules/wcwidth (Depends-on): Likewise.
19706         * modules/write (Depends-on): Likewise.
19707
19708 2011-05-03  Bruno Haible  <bruno@clisp.org>
19709
19710         Support for conditional dependencies.
19711         * doc/gnulib.texi (Module description): Document the syntax of
19712         conditional dependencies.
19713         * gnulib-tool: New option --conditional-dependencies.
19714         (func_usage): Document it.
19715         (cond_dependencies): New variable.
19716         (func_get_automake_snippet_conditional,
19717         func_get_automake_snippet_unconditional): New functions, extracted from
19718         func_get_automake_snippet.
19719         (func_get_automake_snippet): Use them.
19720         (sed_first_32_chars): New variable.
19721         (func_module_shellfunc_name): New function.
19722         (func_module_shellvar_name): New function.
19723         (func_module_conditional_name): New function.
19724         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
19725         func_cond_module_condition): New functions.
19726         (func_modules_transitive_closure): Add support for conditional
19727         dependencies.
19728         (func_emit_lib_Makefile_am): For a conditional module, enclose the
19729         conditional automake snippet in an automake conditional.
19730         (func_emit_autoconf_snippets): Emit shell functions that contain the
19731         code for conditional modules.
19732         (func_import, func_create_testdir): Update specification.
19733
19734 2011-05-03  Eric Blake  <eblake@redhat.com>
19735
19736         test-getaddrinfo: report error information
19737         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
19738
19739 2011-05-03  Jim Meyering  <meyering@redhat.com>
19740
19741         bootstrap: avoid build failure when $GZIP is set
19742         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
19743         program name.  If defined at all, it is supposed to list gzip options.
19744         Reported by Alan Curry in http://debbugs.gnu.org/8609
19745
19746 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
19747
19748         readme-release: new module with release instructions
19749         * modules/readme-release: New module.
19750         * top/README-release: New file, from coreutils, grep, diffutils.
19751         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19752
19753 2011-05-02  Eric Blake  <eblake@redhat.com>
19754
19755         fflush: also replace fclose when fixing fflush
19756         * modules/fflush (Depends-on): Add fclose.
19757         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
19758         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
19759         memstreams with no backing fd.
19760         * doc/posix-functions/fclose.texi (fclose): Document the use of
19761         fflush module to fix the bug.
19762         * tests/test-fclose.c (main): Relax test when fclose is used in
19763         isolation.
19764
19765         fclose: add some tests
19766         * modules/fclose-tests: New test module.
19767         * tests/test-fclose.c: New file.
19768         * doc/posix-functions/fclose.texi (fclose): Document the bug.
19769
19770         fclose: reduced dependencies
19771         * modules/fclose (Depends-on): Switch from fflush/fseeko to
19772         simpler lseek.
19773         * lib/fclose.c (rpl_fclose): Likewise.
19774         Reported by Simon Josefsson.
19775
19776         exit: drop remaining clients
19777         * modules/argmatch (Depends-on): Replace exit with stdlib.
19778         * modules/copy-file (Depends-on): Likewise.
19779         * modules/execute (Depends-on): Likewise.
19780         * modules/exitfail (Depends-on): Likewise.
19781         * modules/obstack (Depends-on): Likewise.
19782         * modules/pagealign_alloc (Depends-on): Likewise.
19783         * modules/pipe-filter-gi (Depends-on): Likewise.
19784         * modules/pipe-filter-ii (Depends-on): Likewise.
19785         * modules/savewd (Depends-on): Likewise.
19786         * modules/spawn-pipe (Depends-on): Likewise.
19787         * modules/wait-process (Depends-on): Likewise.
19788         * modules/xsetenv (Depends-on): Likewise.
19789         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
19790         * modules/git-merge-changelog (Depends-on): Likewise.
19791         * modules/long-options (Depends-on): Likewise.
19792         * modules/pt_chown (Depends-on): Likewise.
19793         * modules/sysexits (Depends-on): Likewise.
19794
19795         freading: relax license from LGPLv3+ to LGPLv2+
19796         * modules/freading (License): Relax LGPL version.
19797
19798 2011-05-02  Bruno Haible  <bruno@clisp.org>
19799
19800         fchdir: Remove unused dependencies.
19801         * modules/fchdir (Depends-on): Remove include_next.
19802
19803 2011-05-02  Bruno Haible  <bruno@clisp.org>
19804
19805         gnulib-tool: Refactor.
19806         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
19807         from func_emit_autoconf_snippets.
19808         (func_emit_autoconf_snippets): Use it.
19809
19810 2011-05-02  Simon Josefsson  <simon@josefsson.org>
19811
19812         * NEWS: Document removal of 'exit'.
19813         * modules/exit: Remove file.
19814
19815 2011-05-01  Bruno Haible  <bruno@clisp.org>
19816
19817         Update DEPENDENCIES.
19818         * DEPENDENCIES (gettext): Recommend the newest release.
19819         Reported by Simon Josefsson.
19820
19821 2011-05-01  Bruno Haible  <bruno@clisp.org>
19822
19823         gnulib-tool: Reduce code duplication.
19824         * gnulib-tool (func_emit_autoconf_snippets): New function.
19825         (func_import, func_create_testdir): Use it.
19826
19827 2011-04-30  Eric Blake  <eblake@redhat.com>
19828
19829         fclose: don't fail on non-seekable input stream
19830         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
19831         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
19832         since fflush is allowed to fail in that case.
19833
19834 2011-04-30  Bruno Haible  <bruno@clisp.org>
19835
19836         dup3: cleanup
19837         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
19838
19839 2011-04-30  Bruno Haible  <bruno@clisp.org>
19840
19841         netdb: Make it work in C++ mode.
19842         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
19843         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
19844         module.
19845         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
19846         gl_MODULE_INDICATOR_FOR_TESTS.
19847         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
19848         * modules/netdb-c++-tests: New file.
19849         * tests/test-netdb-c++.cc: New file.
19850
19851 2011-04-30  Bruno Haible  <bruno@clisp.org>
19852
19853         New modules 'vfscanf', 'vscanf'.
19854         * modules/vfscanf: New file.
19855         * modules/vscanf: New file.
19856         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
19857         here.
19858         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
19859         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
19860
19861 2011-04-30  Bruno Haible  <bruno@clisp.org>
19862
19863         passfd: Add comments.
19864         * lib/passfd.c: Add comments about platforms.
19865
19866 2011-04-30  Bruno Haible  <bruno@clisp.org>
19867
19868         sys_uio: Make <sys/uio.h> self-contained.
19869         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
19870         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
19871
19872 2011-04-30  Bruno Haible  <bruno@clisp.org>
19873
19874         sys_socket: Ensure 'struct iovec' definition.
19875         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
19876         <sys/socket.h>.
19877         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
19878
19879 2011-04-30  Bruno Haible  <bruno@clisp.org>
19880
19881         sys_uio: Protect definition of 'struct iovec'.
19882         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
19883         it as a C struct.
19884
19885 2011-04-30  Bruno Haible  <bruno@clisp.org>
19886
19887         manywarnings: fix indentation
19888         * m4/manywarnings.m4: Indent by 2 spaces consistently.
19889
19890 2011-04-30  Pádraig Brady <P@draigBrady.com>
19891
19892         manywarnings: add -Wno-missing-field-initializers if needed.
19893         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
19894         option if it's needed to allow initialization with { 0, }
19895
19896 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
19897
19898         announce-gen: cosmetic improvement
19899         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
19900
19901 2011-04-29  Jim Meyering  <meyering@redhat.com>
19902
19903         vc-list-files: indent with spaces, not TABs
19904         * build-aux/vc-list-files: Convert leading TABs to spaces,
19905         to match the style of most other files in gnulib.
19906
19907         announce-gen: indent with spaces, not TABs
19908         * build-aux/announce-gen: Convert all TABs to spaces, to match
19909         the style of most other files in gnulib.
19910
19911 2011-04-29  Eric Blake  <eblake@redhat.com>
19912
19913         quotearg: avoid uninitialized variable use
19914         * lib/quotearg.c (quoting_options_from_style): Initialize
19915         remaining fields, and ensure that custom styles are only used via
19916         quoting_options rather than quoting_style.
19917
19918 2011-04-29  Jim Meyering  <meyering@redhat.com>
19919
19920         maint.mk: remove unused VC-tag variable
19921         * top/maint.mk (VC-tag): Remove unused variable.
19922
19923 2011-04-29  Bruno Haible  <bruno@clisp.org>
19924
19925         netdb: fix gai_strerror replacements
19926         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
19927         * modules/netdb: Substitute it.
19928
19929 2011-04-29  Jim Meyering  <meyering@redhat.com>
19930
19931         test-getcwd.c: avoid new set-but-not-used warning
19932         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
19933         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
19934         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
19935         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
19936
19937         test-hash.c: avoid a new shadowing warning
19938         * tests/test-hash.c (main): Don't shadow "dup".
19939
19940 2011-04-28  Eric Blake  <eblake@redhat.com>
19941
19942         getaddrinfo: fix gai_strerror signature
19943         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
19944         and work around mingw with UNICODE defined.
19945         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
19946         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
19947         * modules/netdb (Makefile.am): Substitute it.
19948         * lib/netdb.in.h (gai_strerror): Declare replacement.
19949         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
19950         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
19951         the fix.
19952
19953         getsockopt: avoid compiler warning
19954         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
19955         Reported by Matthias Bolte.
19956
19957         tests: drop unused link dependency
19958         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
19959         * modules/dirent-safer-tests (Makefile.am): Likewise.
19960         * modules/fdopendir-tests (Makefile.am): Likewise.
19961         * modules/mkfifoat-tests (Makefile.am): Likewise.
19962         * modules/openat-safer-tests (Makefile.am): Likewise.
19963         * modules/openat-tests (Makefile.am): Likewise.
19964         * modules/readlinkat-tests (Makefile.am): Likewise.
19965         * modules/symlinkat-tests (Makefile.am): Likewise.
19966         * modules/linkat-tests (Makefile.am): Likewise.
19967         (Depends-on): Switch to filenamecat-lgpl.
19968         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
19969         LIBINTL.
19970         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
19971         * tests/test-linkat.c (main): Don't require xalloc.
19972
19973         hash, mgetgroups: drop xalloc dependency
19974         * lib/hash.c (includes): Adjust includes.
19975         * lib/mgetgroups.c (includes): Likewise.
19976         (xgetgroups): Move...
19977         * lib/xgetgroups.c: ...to new file.
19978         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
19979         * modules/xgetgroups: New file, split from...
19980         * modules/mgetgroups: ...here.
19981         (Depends-on): Add xalloc-oversized.
19982         * modules/hash (Depends-on): Likewise.
19983         * modules/hash-tests (Depends-on): Drop xalloc.
19984         (test_hash_LDADD): Drop unused library.
19985         * tests/test-hash.c (main): Break xalloc dependency.
19986         (includes): Drop unused include.
19987
19988         xalloc-oversized: new module
19989         * modules/xalloc-oversized: New module.
19990         * modules/xalloc (Depends-on): Add it.
19991         * lib/xalloc.h (xalloc_oversized): Move...
19992         * lib/xalloc-oversized.h: ...into new file.
19993
19994         utimecmp: drop dependency on xmalloc
19995         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
19996         due to memory pressure.
19997         * modules/utimecmp (Depends-on): Drop xalloc.
19998
19999 2011-04-27  Eric Blake  <eblake@redhat.com>
20000
20001         getcwd: fix mingw bugs
20002         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20003         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20004         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20005
20006 2011-04-27  Bruno Haible  <bruno@clisp.org>
20007
20008         mkstemps: Ensure declaration on MacOS X 10.5.
20009         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20010         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20011         MacOS X.
20012
20013 2011-04-27  Bruno Haible  <bruno@clisp.org>
20014
20015         mkstemp: More documentation.
20016         * doc/posix-functions/mkstemp.texi: Document header file problem on
20017         MacOS X.
20018
20019 2011-04-27  Bruno Haible  <bruno@clisp.org>
20020
20021         mkstemp: Tweak configure message when cross-compiling.
20022         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20023         result as a guess.
20024
20025 2011-04-27  Bruno Haible  <bruno@clisp.org>
20026
20027         clean-temp: Clarify what it does.
20028         * lib/clean-temp.h: Add more comments.
20029         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20030         module.
20031         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20032         * doc/glibc-functions/mkstemps.texi: Likewise.
20033         * doc/glibc-functions/mkostemps.texi: Likewise.
20034
20035 2011-04-27  Eric Blake  <eblake@redhat.com>
20036
20037         fchdir: avoid extra chdir and fix test
20038         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20039         getcwd-lgpl.
20040         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20041         have to be canonical.
20042         (canonicalize_file_name): Drop unused macro.
20043         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20044
20045         filenamecat-lgpl: fix licence
20046         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20047         when it was first created.
20048
20049         linkat, renameat: add missing dependency
20050         * modules/linkat (Depends-on): Require getcwd-lgpl.
20051         * modules/renameat (Depends-on): Likewise.
20052
20053         tests: reduce dependencies
20054         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20055         * tests/test-renameat.c (main): Likewise.
20056         * modules/linkat-tests (Depends-on): Relax dependency.
20057         * modules/renameat-tests (Depends-on): Likewise.
20058         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20059         dependency explicit.
20060
20061         save-cwd: reduce default dependency
20062         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20063         * lib/save-cwd.c: Update comments.
20064         * NEWS: Document the semantic change.
20065
20066         getcwd: enhance tests
20067         * tests/test-getcwd-lgpl.c: New file, taken from...
20068         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20069         repeat long path stress tests from m4 probe.
20070         * modules/getcwd-lgpl-tests: New module.
20071         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20072         * m4/getcwd-abort-bug.m4: Update comment.
20073         * m4/getcwd-path-max.m4: Likewise.
20074
20075         getcwd-lgpl: new module
20076         * modules/getcwd-lgpl: New module.
20077         * lib/getcwd-lgpl.c: New file.
20078         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20079         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20080         * modules/getcwd (configure.ac): Set C witness.
20081         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20082
20083         getcwd: tweak comments
20084         * m4/getcwd-abort-bug.m4: Fix comments.
20085         * m4/getcwd-path-max.m4: Likewise.
20086         * m4/getcwd.m4: Likewise.
20087
20088 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20089         and Eric Blake  <eblake@redhat.com>
20090
20091         mkstemp: replace if system version uses wrong permissions
20092         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20093         read/write mode bits set in file created by mkstemp.
20094         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20095
20096 2011-04-27  Eric Blake  <eblake@redhat.com>
20097
20098         passfd: avoid compiler warning
20099         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20100         Reported by Laine Stump.
20101
20102 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20103
20104         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20105         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20106
20107 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20108         and Eric Blake  <eblake@redhat.com>
20109
20110         mkstemp: mention clean-temp module
20111         * lib/mkstemp.c: Add comment.
20112         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20113
20114 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20115
20116         inttypes: also provide default values for 32-bit tests
20117         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20118         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20119
20120 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20121
20122         strtoumax: remove dependency on strtoimax
20123         This is like the strtoull change of yesterday.
20124         * modules/strtoumax (Files): Add lib/strtoimax.c.
20125         (Depends-on): Remove strtoimax and add verify.
20126
20127         inttypes-incomplete: new module
20128         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20129         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20130         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20131         of gl_INTTYPES_H.
20132         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20133         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20134         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20135         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20136         * modules/strtoumax, modules/xstrtol (Depends-on):
20137         Depend on inttypes-incomplete, not inttypes.
20138         * modules/inttypes-incomplete: New module, containing the contents
20139         of the old modules/inttypes module, except that the Files: section
20140         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20141         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20142         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20143         (Depends-on): Depend only on inttypes-incomplete.
20144         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20145
20146         inttypes: omit now-redundant strtoimax and strtoumax work
20147         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20148         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20149
20150         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20151         This supports apps that need pointers to strtoimax and strtoumax,
20152         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20153         nonexistent functions.  See
20154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20155         et seq.
20156         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20157         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20158         a macro.
20159         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20160
20161 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20162
20163         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20164
20165 2011-04-25  Bruno Haible  <bruno@clisp.org>
20166
20167         strtol, strtoul: Mark modules as obsolete.
20168         * modules/strtol (Status, Notice): New sections.
20169         * modules/strtoul (Status, Notice): New sections.
20170
20171 2011-04-25  Bruno Haible  <bruno@clisp.org>
20172
20173         strtod: Remove check for strtod, unless supporting old platforms.
20174         * modules/strtod-obsolete: New file.
20175         * m4/strtod-obsolete.m4: New file.
20176         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20177         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20178         * modules/strtod (Depends-on): Add strtod-obsolete.
20179         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20180
20181 2011-04-25  Bruno Haible  <bruno@clisp.org>
20182
20183         strcase: Make module obsolete.
20184         * modules/strcase (Status, Notice): New sections.
20185
20186 2011-04-25  Bruno Haible  <bruno@clisp.org>
20187
20188         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20189         * modules/dup2-obsolete: New file.
20190         * m4/dup2-obsolete.m4: New file.
20191         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20192         gl_FUNC_DUP2_OBSOLETE is not also defined.
20193         * modules/dup2 (Depends-on): Add dup2-obsolete.
20194         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20195
20196 2011-04-25  Bruno Haible  <bruno@clisp.org>
20197
20198         strnlen: Avoid memchr related link error on old obsolete platforms.
20199         * modules/memchr-obsolete: New file.
20200         * m4/memchr-obsolete.m4: New file.
20201         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20202         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20203         * modules/memchr (Depends-on): Add memchr-obsolete.
20204         * modules/strnlen (Depends-on): Likewise.
20205         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20206
20207 2011-04-25  Jim Meyering  <meyering@redhat.com>
20208
20209         maint.mk: makefile_at_at_check extend and clean up
20210         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20211         in addition to */Makefile.am.
20212         Exempt legitimate uses of @VAR@ notation, e.g.,
20213         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20214         Remove obsolete coreutils-specific comment.
20215         Prompted by discussion here:
20216         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20217
20218 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20219
20220         strtoul: remove dependency on strtol
20221         This is so that 'configure' need not check for strtol merely because
20222         the application needs strtoul.
20223         * modules/strtoul (Files): Add lib/strtol.c.
20224         (Depends-on): Remove strtol.
20225
20226         strtoull: remove dependency on strtoul
20227         This is like the strtoll change.
20228         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20229         (Depends-on): Remove strtoul.
20230
20231         strtoll: remove dependency on strtol
20232         This is so that 'configure' need not check for strtol merely because
20233         the application needs strtoll.
20234         * modules/strtoll (Files): Add lib/strtol.c.
20235         (Depends-on): Remove strtol.
20236
20237 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20238
20239         inttypes: Move some configure check to module 'imaxdiv'.
20240         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20241         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20242         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20243
20244 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20245
20246         inttypes: Move some configure check to module 'imaxabs'.
20247         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20248         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20249         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20250
20251 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20252
20253         inttypes: Remove configure tests that are not needed since 2009-12-31.
20254         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20255         gl_cv_header_working_inttypes_h.
20256
20257 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20258
20259         * modules/strnlen (Depends-on): Remove memchr.
20260         The strnlen implementation doesn't need the memchr module's fixes; see
20261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20262
20263         strtol: remove dependency on wchar
20264         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20265         * modules/strtol (Depends-on): Remove wchar.
20266
20267 2011-04-21  Eric Blake  <eblake@redhat.com>
20268
20269         passfd: fix test regression on Linux
20270         * modules/passfd-tests (configure.ac): Correct socketpair check.
20271
20272         passfd: speed up configure and drop unused code
20273         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20274         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20275         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20276         Instead of probing at configure for unix_scm_rights_bsd44_way,
20277         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20278         check to a struct member probe.
20279         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20280         (sendfd, recvfd): Update preprocessor checks.
20281         * modules/passfd (Files): Reflect rename, and drop unused file.
20282         (Depends-on): Drop unused dependency.
20283
20284         passfd: allow compilation on mingw
20285         * modules/sys_socket (Depends-on): Add sys_uio.
20286         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20287         iovec and a minimal struct msghdr.
20288         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20289         * tests/test-sys_socket.c (main): Enhance test.
20290         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20291         guaranteed to provide what we need.
20292         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20293         * modules/passfd-tests (Depends-on): Add sys_wait.
20294         * tests/test-passfd.c (main): Skip test on mingw, for now.
20295         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20296         partial 'struct msghdr' implementation.
20297
20298         sys_uio: new module
20299         * modules/sys_uio: New module.
20300         * modules/sys_uio-tests: Likewise.
20301         * lib/sys_uio.in.h: New file.
20302         * m4/sys_uio_h.m4: Likewise.
20303         * tests/test-sys_uio.c: Likewise.
20304         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20305         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20306
20307 2011-04-20  Jim Meyering  <meyering@redhat.com>
20308
20309         useless-if-before-free: avoid false-positive
20310         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20311         disjunct so that it too requires a terminating ";".  Without that,
20312         this script would identify as useless one statement from gcc that
20313         was not:
20314           if (aligned_ptr)
20315             free (((void **) aligned_ptr) [-1]);
20316
20317 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20318
20319         doc: update users.txt.
20320         * users.txt: Add barcode.
20321
20322 2011-04-19  Bruno Haible  <bruno@clisp.org>
20323
20324         ioctl: Remove link dependency on native Windows.
20325         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20326         (gl_close_fn, gl_ioctl_fn): New types.
20327         (struct fd_hook): Renamed from struct close_hook. Change type of
20328         private_close_fn field. Add private_ioctl_fn field.
20329         (close_hook_fn): Add parameter for primary close method.
20330         (execute_close_hooks, execute_all_close_hooks): Likewise.
20331         (ioctl_hook_fn): New type.
20332         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20333         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20334         argument.
20335         (unregister_fd_hook): Renamed from unregister_close_hook.
20336         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20337         Don't include <unistd.h>.
20338         (close): Remove undef.
20339         (anchor): Update.
20340         (execute_close_hooks): Add argument for primary close method.
20341         (execute_all_close_hooks): Likewise.
20342         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20343         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20344         argument. Allow each argument to be NULL.
20345         (unregister_fd_hook): Renamed from unregister_close_hook.
20346         * lib/close.c (rpl_close): Pass 'close' function pointer to
20347         execute_all_close_hooks.
20348         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20349         (primary_ioctl): New function.
20350         (ioctl): Don't call ioctlsocket here. Instead, call
20351         execute_all_ioctl_hooks.
20352         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20353         close method.
20354         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20355         (fd_sockets_hook): Renamed from close_sockets_hook.
20356         (gl_sockets_startup, gl_sockets_cleanup): Update.
20357         * modules/fd-hook: Renamed from modules/close-hook. Update.
20358         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20359         * modules/sockets (Depends-on): Likewise.
20360         * modules/ioctl (Depends-on): Add fd-hook.
20361         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20362         GNULIB_SOCKET.
20363
20364 2011-04-19  Bruno Haible  <bruno@clisp.org>
20365
20366         Move the support of O_NONBLOCK in open() to the 'open' module.
20367         * modules/nonblocking (Depends-on): Remove 'open'.
20368         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20369         gl_cv_have_open_O_NONBLOCK.
20370         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20371         O_NONBLOCK support.
20372         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20373
20374 2011-04-17  Bruno Haible  <bruno@clisp.org>
20375
20376         pipe2: Simplify code.
20377         * lib/pipe2.c (pipe2): Reduce code duplication.
20378
20379 2011-04-17  Bruno Haible  <bruno@clisp.org>
20380
20381         nonblocking: Add comment.
20382         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20383
20384 2011-04-17  Bruno Haible  <bruno@clisp.org>
20385
20386         nonblocking: Add tests for sockets.
20387         * tests/test-nonblocking-socket.sh: New file.
20388         * tests/test-nonblocking-socket-main.c: New file.
20389         * tests/test-nonblocking-socket-child.c: New file.
20390         * tests/test-nonblocking-socket.h: New file.
20391         * tests/socket-server.h: New file.
20392         * tests/socket-client.h: New file.
20393         * modules/nonblocking-socket-tests: New file.
20394         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20395
20396 2011-04-17  Bruno Haible  <bruno@clisp.org>
20397
20398         nonblocking: Add tests for pipes.
20399         * tests/test-nonblocking-pipe.sh: New file.
20400         * tests/test-nonblocking-pipe-main.c: New file.
20401         * tests/test-nonblocking-pipe-child.c: New file.
20402         * tests/test-nonblocking-pipe.h: New file.
20403         * tests/test-nonblocking-writer.h: New file.
20404         * tests/test-nonblocking-reader.h: New file.
20405         * tests/test-nonblocking-misc.h: New file.
20406         * modules/nonblocking-pipe-tests: New file.
20407         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20408
20409 2011-04-16  Bruno Haible  <bruno@clisp.org>
20410
20411         gettext: Clarify the needed programmer actions.
20412         * modules/gettext (Notice): New field.
20413         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20414
20415 2011-04-16  Bruno Haible  <bruno@clisp.org>
20416
20417         strchrnul: Tweak last commit.
20418         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20419         bug.
20420         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20421         as in _GL_FUNCDECL_SYS.
20422         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20423         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20424
20425 2011-04-15  Eric Blake  <eblake@redhat.com>
20426
20427         strchrnul: work around cygwin bug
20428         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20429         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20430         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20431         * modules/string (Makefile.am): Substitute it.
20432         * lib/string.in.h (strchrnul): Use it.
20433
20434 2011-04-15  Bruno Haible  <bruno@clisp.org>
20435
20436         Don't require lib/stdio-write.c when only module 'stdio' is used.
20437         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20438         invocation.
20439         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20440
20441 2011-04-14  Bruno Haible  <bruno@clisp.org>
20442
20443         Support non-blocking pipe I/O in read() on native Windows.
20444         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20445         (read): New declaration.
20446         * lib/read.c: New file.
20447         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20448         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20449         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20450         vscanf): New declarations.
20451         * lib/stdio-read.c: New file.
20452         * m4/read.m4: New file.
20453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20454         REPLACE_READ.
20455         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20456         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20457         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20458         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20459         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20460         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20461         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20462         * modules/read: New file.
20463         * modules/nonblocking (Files): Add lib/stdio-read.c.
20464         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20465         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20466         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20467         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20468         * modules/pread (Depends-on): Add read.
20469         * modules/safe-read (Depends-on): Likewise.
20470         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20471         gets, scanf, vfscanf, vscanf): Verify signatures.
20472         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20473         problem with non-blocking pipes.
20474         * doc/posix-functions/fgetc.texi: Likewise.
20475         * doc/posix-functions/fgets.texi: Likewise.
20476         * doc/posix-functions/fread.texi: Likewise.
20477         * doc/posix-functions/fscanf.texi: Likewise.
20478         * doc/posix-functions/getc.texi: Likewise.
20479         * doc/posix-functions/getchar.texi: Likewise.
20480         * doc/posix-functions/gets.texi: Likewise.
20481         * doc/posix-functions/scanf.texi: Likewise.
20482         * doc/posix-functions/vfscanf.texi: Likewise.
20483         * doc/posix-functions/vscanf.texi: Likewise.
20484
20485 2011-04-14  Bruno Haible  <bruno@clisp.org>
20486
20487         Support non-blocking pipe I/O in write() on native Windows.
20488         * lib/write.c (rpl_write): Split a write request that failed merely
20489         because the byte count was larger than the pipe buffer's size.
20490         * doc/posix-functions/write.texi: Mention the problem with large byte
20491         counts.
20492
20493 2011-04-14  Bruno Haible  <bruno@clisp.org>
20494
20495         wchar: Ensure that wchar_t gets defined on uClibc.
20496         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20497         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20498
20499 2011-04-13  Bruno Haible  <bruno@clisp.org>
20500
20501         safe-write, full-read: Avoid unnecessary compilation units.
20502         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20503         (Depends-on): Remove safe-read. Add ssize_t.
20504         * modules/full-read (Files): Add lib/full-write.c.
20505         (Depends-on): Add full-write.
20506
20507 2011-04-13  Bruno Haible  <bruno@clisp.org>
20508
20509         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20510         * modules/pwrite (Depends-on): Add 'write'.
20511
20512 2011-04-13  Bruno Haible  <bruno@clisp.org>
20513
20514         Support non-blocking pipe I/O in write() on native Windows.
20515         * lib/unistd.in.h (write): Enable replacement also if
20516         GNULIB_UNISTD_H_NONBLOCKING is 1.
20517         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20518         (rpl_write): When failing to write on a non-blocking pipe, change
20519         errno from ENOSPC to EAGAIN.
20520         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20521         putchar, puts, vfprintf, vprintf): Enable replacement also if
20522         GNULIB_STDIO_H_NONBLOCKING is 1.
20523         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20524         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20525         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20526         CALL_WITH_SIGPIPE_EMULATION.
20527         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20528         * m4/nonblocking.m4: New file.
20529         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20530         for non-blocking I/O support.
20531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20532         GNULIB_UNISTD_H_NONBLOCKING.
20533         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20534         required for non-blocking I/O support.
20535         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20536         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20537         lib/stdio-write.c, m4/asm-underscore.m4.
20538         (Depends-on): Add stdio, unistd.
20539         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20540         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20541         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20542         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20543         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20544         problem with non-blocking pipes.
20545         * doc/posix-functions/fputc.texi: Likewise.
20546         * doc/posix-functions/fputs.texi: Likewise.
20547         * doc/posix-functions/fwrite.texi: Likewise.
20548         * doc/posix-functions/printf.texi: Likewise.
20549         * doc/posix-functions/putc.texi: Likewise.
20550         * doc/posix-functions/putchar.texi: Likewise.
20551         * doc/posix-functions/puts.texi: Likewise.
20552         * doc/posix-functions/vfprintf.texi: Likewise.
20553         * doc/posix-functions/vprintf.texi: Likewise.
20554         * doc/posix-functions/write.texi: Likewise.
20555
20556 2011-04-10  Jim Meyering  <meyering@redhat.com>
20557
20558         maint.mk: prohibit doubled words
20559         Detect them also when they're separated by a newline.
20560         There are 3 ways to customize it:
20561           - disable the test on a per file basis, as usual with rules using
20562             $(VC_LIST_EXCEPT)
20563           - replace the default doubled-word-selecting regexp (affects all files)
20564           - ignore a particular file-vs-doubled-word match
20565         I nearly used that last one to ignore the "is is" match in
20566         coreutils' NEWS file, since the text was "ls -is is ..."
20567         To do that, I would have added this line to cfg.mk:
20568           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20569         but it would have ignored any "is is" match in NEWS.
20570         Low probability, but still...
20571         Instead, I changed the text, slightly:
20572           -  ls -is is now consistent with ls -lis in ignoring values returned
20573           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20574         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20575         (prohibit_doubled_word_): Define.
20576         (sc_prohibit_doubled_word): New rule.
20577         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20578
20579 2011-04-10  Jim Meyering  <meyering@redhat.com>
20580
20581         maint: fix doubled-word typo in comment
20582         * m4/gethostname.m4: s/is is/it is/
20583         * m4/getdomainname.m4: Likewise.
20584
20585 2011-04-10  Jim Meyering  <meyering@redhat.com>
20586
20587         maint: remove doubled word: s/it it/it/
20588         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20589
20590 2011-04-10  Jim Meyering  <meyering@redhat.com>
20591
20592         maint.mk: remove useless semicolon and backslash
20593         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20594         semicolon and backslash.
20595
20596 2011-04-10  Bruno Haible  <bruno@clisp.org>
20597
20598         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20599         * modules/stdint-tests (Depends-on): Add wchar.
20600
20601 2011-04-10  Jim Meyering  <meyering@redhat.com>
20602
20603         maint: remove doubled words in comments, e.g., s/a a/a/
20604         * lib/strptime.c (day_of_the_week): s/the the/the/
20605         * tests/test-chown.h (test_chown): s/a a/a/
20606
20607         test-chown.h: correct a cast
20608         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
20609         when the destination is a stat.st_gid.
20610
20611 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
20612
20613         getaddrinfo: Fix test for sa_len member.
20614         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
20615         include <sys/types.h> before <sys/socket.h>.
20616
20617 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20618
20619         maint: change "can not" to "cannot"
20620         * doc/posix-functions/iconv.texi (iconv): This one crossed line
20621         boundaries.
20622
20623 2011-04-09  Jim Meyering  <meyering@redhat.com>
20624
20625         maint: change "a a" to "a"
20626         * tests/test-lchown.h (test_lchown): s/a a/a/
20627
20628         maint.mk: prohibit \<the the\>
20629         * top/maint.mk (sc_prohibit_the_the): New rule.
20630
20631         maint: fix "the the" in comment
20632         * lib/count-one-bits.h: s/the the/the/
20633
20634         maint: change "can not" to "cannot"
20635         But do not change the occurrences in maintain.texi or in
20636         build-aux/po/Makefile.in.in, which I presume comes from gettext.
20637         * doc/gnulib-tool.texi: s/can not/cannot/
20638         * doc/posix-functions/accept.texi (accept): Likewise.
20639         * doc/posix-functions/socket.texi (socket): Likewise.
20640         * lib/mbrtowc.c: Likewise.
20641
20642         maint.mk: prohibit use of "can not"
20643         * top/maint.mk (sc_prohibit_can_not): New rule.
20644         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
20645
20646 2011-04-09  Bruno Haible  <bruno@clisp.org>
20647
20648         careadlinkat: Guard against misuse of careadlinkatcwd.
20649         * lib/careadlinkat.c: Include <stdlib.h>.
20650         (careadlinkatcwd): Check that the fd argument is as expected.
20651
20652 2011-04-09  Bruno Haible  <bruno@clisp.org>
20653
20654         careadlinkat: Use common coding style.
20655         * lib/careadlinkat.c: Move gnulib includes after system includes.
20656
20657 2011-04-09  Bruno Haible  <bruno@clisp.org>
20658
20659         careadlinkat: Clarify specification.
20660         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
20661         (careadlinkatcwd): Add comment.
20662         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
20663
20664 2011-04-09  Bruno Haible  <bruno@clisp.org>
20665
20666         areadlinkat: Avoid link error on many platforms.
20667         * modules/areadlinkat (Depends-on): Add areadlink.
20668
20669 2011-04-09  Bruno Haible  <bruno@clisp.org>
20670
20671         allocator, careadlinkat: Fix double-inclusion guard.
20672         * lib/allocator.h: Fix double-inclusion guard.
20673         * lib/careadlinkat.h: Likewise.
20674
20675 2011-04-09  Bruno Haible  <bruno@clisp.org>
20676
20677         relocatable-prog-wrapper: Update after module 'areadlink' changed.
20678         * lib/relocwrapper.c: Update dependencies hierarchy.
20679         * build-aux/install-reloc: Update list of files to be compiled.
20680         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
20681         lib/allocator.[hc].
20682
20683 2011-04-08  Eric Blake  <eblake@redhat.com>
20684
20685         strftime: silence gnulib-tool warning
20686         * modules/strftime-tests (Depends-on): Drop automatic dependency.
20687
20688 2011-04-08  Bruno Haible  <bruno@clisp.org>
20689
20690         verify: Fix syntax error with GCC 4.6 in C++ mode.
20691         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
20692         (HAVE_STATIC_ASSERT): New macro.
20693         (verify_true, verify): Use 'static_assert' if it is supported and
20694         '_Static_assert' is not supported.
20695
20696 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20697
20698         allocator: New module.
20699         * modules/allocator, lib/allocator.c: New files.
20700         * lib/allocator.h (stdlib_allocator): New decl.
20701         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
20702         Remove.  Do not include <stdlib.h>.
20703         (careadlinkat): Use stdlib_allocator instead of rolling our own.
20704         * modules/careadlinkat (Files): Remove lib/allocator.h.
20705         (Depends-on): Add allocator.
20706
20707         stdlib: let modules use system malloc, realloc
20708         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
20709         if !_GL_USE_STDLIB_ALLOC.
20710         (malloc, realloc): Limit this change to a smaller scope.
20711
20712         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
20713         (malloc, realloc): Don't #undef; no longer needed.
20714         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20715         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20716         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20717         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20718         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20719         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20720         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20721         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20722
20723         careadlinkat: rename members to avoid problem
20724         * lib/allocator.h (struct allocator): Rename members from
20725         malloc/realloc to allocate/reallocate, to avoid problems if malloc
20726         and realloc are #define'd.  Reported by Eric Blake in
20727         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
20728         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
20729
20730 2011-04-08  Eric Blake  <eblake@redhat.com>
20731
20732         nonblocking: reduce dependency
20733         * tests/test-nonblocking.c: Only test sockets when in use.
20734         * modules/nonblocking-tests (Depends-on): Drop socket.
20735         (Makefile.am): Link even if sockets are not present.
20736         * modules/pipe2-tests (Makefile.am): Likewise.
20737         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
20738
20739         pipe2: fix O_NONBLOCK support on mingw
20740         * modules/pipe2 (Depends-on): Add nonblocking.
20741         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
20742         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
20743         * tests/test-nonblocking.c (main): Likewise.
20744         * modules/pipe2-tests (Makefile.am): Avoid link failure.
20745
20746         fcntl-h: fix O_ACCMODE on cygwin
20747         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
20748         * lib/fcntl.in.h (O_ACCMODE): Fix it.
20749
20750         pipe-filter: drop O_NONBLOCK workarounds
20751         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
20752         * modules/pipe-filter-ii (Depends-on): Likewise.
20753         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
20754
20755         nonblocking: provide O_NONBLOCK for mingw
20756         * modules/nonblocking (Depends-on): Add open.
20757         (configure.ac): Set new witness macro.
20758         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
20759         * modules/fcntl-h (Makefile.am): Substitute it.
20760         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
20761         nonblocking module is in use.
20762         * lib/nonblocking.c: Adjust portability test.
20763         * lib/open.c (open): Don't let native open see gnulib flag.
20764         * tests/test-fcntl-h.c (main): Enhance test.
20765         * tests/test-open.h (test_open): Likewise.
20766         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
20767
20768         careadlinkat: fix compilation error on mingw
20769         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
20770         within struct allocator.
20771
20772 2011-04-06  Eric Blake  <eblake@redhat.com>
20773
20774         binary-io: relicense under LGPLv2+
20775         * modules/binary-io (License): Relax to LGPLv2+.
20776         Requested for libvirt, and required by pipe2.
20777
20778 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20779
20780         verify: use _Static_assert if available
20781         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
20782         (verify_true, verify): Use it if available.  This generates better
20783         diagnostics with GCC 4.6.0 and later.
20784
20785 2011-04-05  Bruno Haible  <bruno@clisp.org>
20786
20787         Remove leftover generated .h files after config.status changed.
20788
20789         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
20790         GL_GENERATE_ALLOCA_H.
20791         * modules/alloca-opt (Makefile.am): Remove alloca.h if
20792         GL_GENERATE_ALLOCA_H evaluates to false.
20793
20794         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
20795         GL_GENERATE_ARGZ_H.
20796         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
20797         evaluates to false.
20798
20799         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
20800         GL_GENERATE_BYTESWAP_H.
20801         * modules/byteswap (Makefile.am): Remove byteswap.h if
20802         GL_GENERATE_BYTESWAP_H evaluates to false.
20803
20804         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
20805         GL_GENERATE_ERRNO_H.
20806         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
20807         evaluates to false.
20808
20809         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
20810         GL_GENERATE_FLOAT_H.
20811         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
20812         evaluates to false.
20813
20814         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
20815         GL_GENERATE_FNMATCH_H.
20816         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
20817         GL_GENERATE_FNMATCH_H evaluates to false.
20818
20819         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
20820         GL_GENERATE_GLOB_H.
20821         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
20822         evaluates to false.
20823
20824         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
20825         automake conditional GL_GENERATE_ICONV_H.
20826         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
20827         evaluates to false.
20828
20829         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
20830         GL_GENERATE_NETINET_IN_H.
20831         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
20832         GL_GENERATE_NETINET_IN_H evaluates to false.
20833
20834         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
20835         conditional GL_GENERATE_PTHREAD_H.
20836         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
20837         * modules/pthread (Makefile.am): Remove pthread.h if
20838         GL_GENERATE_PTHREAD_H evaluates to false.
20839
20840         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
20841         GL_GENERATE_SCHED_H.
20842         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
20843         evaluates to false.
20844
20845         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
20846         conditional GL_GENERATE_SELINUX_CONTEXT_H.
20847         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
20848         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
20849
20850         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
20851         GL_GENERATE_STDARG_H.
20852         * modules/stdarg (Makefile.am): Remove stdarg.h if
20853         GL_GENERATE_STDARG_H evaluates to false.
20854
20855         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
20856         GL_GENERATE_STDBOOL_H.
20857         * modules/stdbool (Makefile.am): Remove stdbool.h if
20858         GL_GENERATE_STDBOOL_H evaluates to false.
20859
20860         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
20861         conditional GL_GENERATE_STDDEF_H.
20862         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
20863         * modules/stddef (Makefile.am): Remove stddef.h if
20864         GL_GENERATE_STDDEF_H evaluates to false.
20865
20866         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
20867         GL_GENERATE_STDINT_H.
20868         * modules/stdint (Makefile.am): Remove stdint.h if
20869         GL_GENERATE_STDINT_H evaluates to false.
20870
20871         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
20872         GL_GENERATE_SYSEXITS_H.
20873         * modules/sysexits (Makefile.am): Remove sysexits.h if
20874         GL_GENERATE_SYSEXITS_H evaluates to false.
20875
20876         Reported by Karl Berry and Ralf Wildenhues.
20877
20878 2011-04-05  Bruno Haible  <bruno@clisp.org>
20879
20880         Ensure to rebuild generated .h files when config.status has changed.
20881         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
20882         config.status.
20883         * modules/ctype (Makefile.am): Likewise.
20884         * modules/dirent (Makefile.am): Likewise.
20885         * modules/errno (Makefile.am): Likewise.
20886         * modules/fcntl-h (Makefile.am): Likewise.
20887         * modules/float (Makefile.am): Likewise.
20888         * modules/getopt-posix (Makefile.am): Likewise.
20889         * modules/glob (Makefile.am): Likewise.
20890         * modules/iconv-h (Makefile.am): Likewise.
20891         * modules/inttypes (Makefile.am): Likewise.
20892         * modules/langinfo (Makefile.am): Likewise.
20893         * modules/locale (Makefile.am): Likewise.
20894         * modules/math (Makefile.am): Likewise.
20895         * modules/netdb (Makefile.am): Likewise.
20896         * modules/netinet_in (Makefile.am): Likewise.
20897         * modules/poll-h (Makefile.am): Likewise.
20898         * modules/pthread (Makefile.am): Likewise.
20899         * modules/pty (Makefile.am): Likewise.
20900         * modules/sched (Makefile.am): Likewise.
20901         * modules/search (Makefile.am): Likewise.
20902         * modules/selinux-h (Makefile.am): Likewise.
20903         * modules/signal (Makefile.am): Likewise.
20904         * modules/spawn (Makefile.am): Likewise.
20905         * modules/stdarg (Makefile.am): Likewise.
20906         * modules/stdbool (Makefile.am): Likewise.
20907         * modules/stddef (Makefile.am): Likewise.
20908         * modules/stdint (Makefile.am): Likewise.
20909         * modules/stdio (Makefile.am): Likewise.
20910         * modules/stdlib (Makefile.am): Likewise.
20911         * modules/string (Makefile.am): Likewise.
20912         * modules/strings (Makefile.am): Likewise.
20913         * modules/sys_file (Makefile.am): Likewise.
20914         * modules/sys_ioctl (Makefile.am): Likewise.
20915         * modules/sys_select (Makefile.am): Likewise.
20916         * modules/sys_socket (Makefile.am): Likewise.
20917         * modules/sys_stat (Makefile.am): Likewise.
20918         * modules/sys_time (Makefile.am): Likewise.
20919         * modules/sys_times (Makefile.am): Likewise.
20920         * modules/sys_utsname (Makefile.am): Likewise.
20921         * modules/sys_wait (Makefile.am): Likewise.
20922         * modules/sysexits (Makefile.am): Likewise.
20923         * modules/termios (Makefile.am): Likewise.
20924         * modules/time (Makefile.am): Likewise.
20925         * modules/unistd (Makefile.am): Likewise.
20926         * modules/wchar (Makefile.am): Likewise.
20927         * modules/wctype-h (Makefile.am): Likewise.
20928         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
20929
20930 2011-04-05  Bruno Haible  <bruno@clisp.org>
20931
20932         pipe2: Relicense under LGPLv2+.
20933         * modules/pipe2 (License): Change to LGPLv2+.
20934         Requested by Eric Blake, for libvirt.
20935
20936 2011-04-05  Bruce Korb  <bkorb@gnu.org>
20937
20938         bootstrap: compute gnulib_extra_files after updating build_aux
20939         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
20940         change build_aux or also supply gnulib_extra_files.  Handle correctly.
20941
20942 2011-04-05  Eric Blake  <eblake@redhat.com>
20943
20944         bootstrap: preserve git whitelist item sorting
20945         * build-aux/bootstrap (sort_patterns): New function.
20946         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
20947
20948 2011-04-05  Simon Josefsson  <simon@josefsson.org>
20949
20950         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
20951         sc_space_tab check.
20952
20953 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20954
20955         areadlink, areadlinkat: rewrite in terms of careadlinkat
20956         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
20957         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
20958         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
20959         (malloc, realloc): Remove #undefs.
20960         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
20961         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
20962         readlink, ssize_t, stdint, unistd.
20963         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
20964         areadlink, stdint.
20965
20966         careadlinkat: new module
20967         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
20968         * modules/careadlinkat: New files, written by me with
20969         a review and feedback from Ben Pfaff in
20970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
20971
20972 2011-04-01  Bruno Haible  <bruno@clisp.org>
20973
20974         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
20975         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
20976         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
20977         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
20978         Reported by Bruce Korb <bruce.korb@gmail.com>.
20979
20980 2011-04-01  Bruno Haible  <bruno@clisp.org>
20981
20982         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
20983         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
20984         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
20985         * modules/wcpcpy (Depends-on): Add extensions.
20986         * modules/wcpncpy (Depends-on): Likewise.
20987         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
20988         systems.
20989         * doc/posix-functions/wcpncpy.texi: Likewise.
20990         * doc/posix-functions/wcwidth.texi: Likewise.
20991
20992 2011-03-31  Eric Blake  <eblake@redhat.com>
20993
20994         nonblocking: fix mingw test failures
20995         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
20996         non-blocking flag on regular file.
20997         (get_nonblocking_flag): Set errno on invalid fd.
20998         * tests/test-nonblocking.c (main): Avoid test failure on
20999         directories if fchdir is not active.
21000         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21001
21002 2011-03-31  Bruno Haible  <bruno@clisp.org>
21003
21004         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21005         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21006         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21007         Reported by Simon Josefsson <simon@josefsson.org>.
21008
21009 2011-03-31  Bruno Haible  <bruno@clisp.org>
21010         and Eric Blake  <eblake@redhat.com>
21011
21012         nonblocking: new module
21013         * modules/nonblocking: New module.
21014         * modules/nonblocking-tests: Likewise.
21015         * lib/nonblocking.h: New file.
21016         * lib/nonblocking.c: Likewise.
21017         * tests/test-nonblocking.c: New test.
21018         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21019
21020 2011-03-30  Bruno Haible  <bruno@clisp.org>
21021
21022         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21023         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21024         instead of 'printf' format for GCC >= 4.4.
21025         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21026         (fprintf, printf, vfprintf, vprintf): Declare with
21027         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21028         the system's vfprintf() function.
21029         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21030
21031 2011-03-30  Eric Blake  <eblake@redhat.com>
21032
21033         passfd: fix scoping bug
21034         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21035         before sendmsg/recvmsg.
21036
21037         passfd: standardize coding conventions
21038         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21039         can be learned at compile time.
21040         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21041         ifdefs.
21042         (sendfd, recvfd): Follow gnulib code conventions.
21043
21044         passfd: fix incorrect sendmsg arguments
21045         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21046         incorrect msg_controllen value.
21047         * modules/passfd-tests (Depends-on): Check for alarm.
21048         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21049         Reported by Bastien ROUCARIES.
21050
21051 2011-03-30  Bruno Haible  <bruno@clisp.org>
21052
21053         c-strcasestr: Relicense under LGPLv2+.
21054         * modules/c-strcasestr (License): Change to LGPLv2+.
21055         Requested by Eric Blake, for libvirt.
21056
21057 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21058
21059         * users.txt: Add libidn2.  Fix libtasn1 link.
21060
21061 2011-03-30  Jim Meyering  <meyering@redhat.com>
21062
21063         tests: readlink* ("",... fails with EINVAL on newer kernels
21064         readlink and readlinkat have typically failed with ENOENT for
21065         the invalid, empty file name,  "".  However, with the advent
21066         of linux-2.6.39, they fail with EINVAL.
21067         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21068         when operating on the empty file name.
21069         * tests/test-readlink.h (test_readlink): Likewise.
21070
21071 2011-03-29  Bruno Haible  <bruno@clisp.org>
21072
21073         Relicense some modules under LGPLv2+, for libidn2.
21074         * modules/array-mergesort (License): Change to LGPLv2+.
21075         * modules/c-strcaseeq (License): Likewise.
21076         * modules/striconveh (License): Likewise.
21077         * modules/striconveha (License): Likewise.
21078         * modules/uniconv/base (License): Likewise.
21079         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21080         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21081         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21082         * modules/unictype/base (License): Likewise.
21083         * modules/unictype/bidiclass-of (License): Likewise.
21084         * modules/unictype/category-M (License): Likewise.
21085         * modules/unictype/category-none (License): Likewise.
21086         * modules/unictype/category-of (License): Likewise.
21087         * modules/unictype/category-test (License): Likewise.
21088         * modules/unictype/category-test-withtable (License): Likewise.
21089         * modules/unictype/combining-class (License): Likewise.
21090         * modules/unictype/joiningtype-of (License): Likewise.
21091         * modules/unictype/scripts (License): Likewise.
21092         * modules/uninorm/base (License): Likewise.
21093         * modules/uninorm/canonical-decomposition (License): Likewise.
21094         * modules/uninorm/composition (License): Likewise.
21095         * modules/uninorm/decompose-internal (License): Likewise.
21096         * modules/uninorm/decomposition-table (License): Likewise.
21097         * modules/uninorm/nfc (License): Likewise.
21098         * modules/uninorm/nfd (License): Likewise.
21099         * modules/uninorm/u32-normalize (License): Likewise.
21100         * modules/unistr/base (License): Likewise.
21101         * modules/unistr/u32-cpy (License): Likewise.
21102         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21103         * modules/unistr/u32-to-u8 (License): Likewise.
21104         * modules/unistr/u32-uctomb (License): Likewise.
21105         * modules/unistr/u8-check (License): Likewise.
21106         * modules/unistr/u8-mblen (License): Likewise.
21107         * modules/unistr/u8-mbtouc (License): Likewise.
21108         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21109         * modules/unistr/u8-mbtoucr (License): Likewise.
21110         * modules/unistr/u8-prev (License): Likewise.
21111         * modules/unistr/u8-strlen (License): Likewise.
21112         * modules/unistr/u8-to-u32 (License): Likewise.
21113         * modules/unistr/u8-uctomb (License): Likewise.
21114         * modules/unitypes (License): Likewise.
21115         Requested by Simon Josefsson.
21116
21117 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21118
21119         lib-symbol-visibility: Add a notice.
21120         * modules/lib-symbol-visibility (Notice): New field.
21121
21122 2011-03-29  Bruno Haible  <bruno@clisp.org>
21123
21124         getaddrinfo: Doc fix.
21125         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21126         section "fixed in Gnulib".
21127
21128 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21129
21130         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21131         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21132
21133 2011-03-26  Bruno Haible  <bruno@clisp.org>
21134
21135         unictype/property-byname: Reduce the number of load-time relocations.
21136         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21137         (UC_PROPERTY_INDEX_*): New enumeration values.
21138         (uc_property_byname): Convert an index from the lookup table to an
21139         uc_property_t.
21140         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21141         values.
21142
21143 2011-03-26  Bruno Haible  <bruno@clisp.org>
21144
21145         unictype/property-byname: Allow omitted word separators and aliases.
21146         * lib/unictype/pr_byname.gperf: Add property names without word
21147         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21148         for 'space'.
21149
21150 2011-03-26  Bruno Haible  <bruno@clisp.org>
21151
21152         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21153         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21154         also hyphens to space.
21155         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21156         without spaces.
21157         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21158
21159 2011-03-26  Bruno Haible  <bruno@clisp.org>
21160
21161         unictype/joiningtype-byname: Recognize long names as well.
21162         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21163         a long name.
21164         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21165         unictype/joiningtype_byname.h.
21166         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21167         * lib/unictype/joiningtype_byname.gperf: New file.
21168         * modules/unictype/joiningtype-byname (Files): Add
21169         lib/unictype/joiningtype_byname.gperf.
21170         (Depends-on): Add gperf.
21171         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21172         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21173         long names.
21174
21175         Tests for module 'unictype/joiningtype-longname'.
21176         * modules/unictype/joiningtype-longname-tests: New file.
21177         * tests/unictype/test-joiningtype_longname.c: New file.
21178
21179         New module 'unictype/joiningtype-longname'.
21180         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21181         * lib/unictype/joiningtype_longname.c: New file.
21182         * modules/unictype/joiningtype-longname: New file.
21183         * modules/unictype/joiningtype-all (Depends-on): Add
21184         unictype/joiningtype-longname.
21185
21186 2011-03-26  Bruno Haible  <bruno@clisp.org>
21187
21188         unictype/bidiclass-byname: Recognize long names as well.
21189         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21190         name.
21191         * lib/unictype/bidi_byname.c: Include <string.h>,
21192         unictype/bidi_byname.h.
21193         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21194         * lib/unictype/bidi_byname.gperf: New file.
21195         * modules/unictype/bidiclass-byname (Files): Add
21196         lib/unictype/bidi_byname.gperf.
21197         (Depends-on): Add gperf.
21198         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21199         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21200         long names.
21201
21202         Tests for module 'unictype/bidiclass-longname'.
21203         * modules/unictype/bidiclass-longname-tests: New file.
21204         * tests/unictype/test-bidi_longname.c: New file.
21205
21206         New module 'unictype/bidiclass-longname'.
21207         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21208         * lib/unictype/bidi_longname.c: New file.
21209         * modules/unictype/bidiclass-longname: New file.
21210         * modules/unictype/bidiclass-all (Depends-on): Add
21211         unictype/bidiclass-longname.
21212
21213 2011-03-26  Bruno Haible  <bruno@clisp.org>
21214
21215         unictype/bidi*: Rename modules.
21216         * modules/unictype/bidiclass-all: Renamed from
21217         modules/unictype/bidicategory-all.
21218         * modules/unictype/bidiclass-name: Renamed from
21219         modules/unictype/bidiclass-name.
21220         (Description): Update.
21221         * modules/unictype/bidiclass-name-tests: Renamed from
21222         modules/unictype/bidicategory-name-tests.
21223         * modules/unictype/bidiclass-byname: Renamed from
21224         modules/unictype/bidicategory-byname.
21225         (Description): Update.
21226         * modules/unictype/bidiclass-byname-tests: Renamed from
21227         modules/unictype/bidicategory-byname-tests.
21228         * modules/unictype/bidiclass-of: Renamed from
21229         modules/unictype/bidicategory-of.
21230         (Description): Update.
21231         * modules/unictype/bidiclass-of-tests: Renamed from
21232         modules/unictype/bidicategory-of-tests.
21233         * modules/unictype/bidiclass-test: Renamed from
21234         modules/unictype/bidicategory-test.
21235         (Description): Update.
21236         * modules/unictype/bidiclass-test-tests: Renamed from
21237         modules/unictype/bidicategory-test-tests.
21238         * modules/unictype/bidicategory-all: New file, a simple redirection.
21239         * modules/unictype/bidicategory-name: Likewise.
21240         * modules/unictype/bidicategory-byname: Likewise.
21241         * modules/unictype/bidicategory-of: Likewise.
21242         * modules/unictype/bidicategory-test: Likewise.
21243         * modules/unictype/property-bidi-* (Dependencies): Update.
21244         * lib/unictype/bidi_*.c: Update comment.
21245
21246 2011-03-26  Bruno Haible  <bruno@clisp.org>
21247
21248         unictype/bidi*: Rename functions, part 2.
21249         * modules/unictype/bidicategory-name (configure.ac): Update required
21250         libunistring version.
21251         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21252
21253 2011-03-25  Bruno Haible  <bruno@clisp.org>
21254
21255         New module 'unictype/combining-class-all'.
21256         * modules/unictype/combining-class-all: New file.
21257
21258         Tests for module 'unictype/combining-class-byname'.
21259         * modules/unictype/combining-class-byname-tests: New file.
21260         * tests/unictype/test-combiningclass_byname.c: New file.
21261
21262         New module 'unictype/combining-class-byname'.
21263         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21264         * lib/unictype/combiningclass_byname.c: New file.
21265         * lib/unictype/combiningclass_byname.gperf: New file.
21266         * modules/unictype/combining-class-byname: New file.
21267
21268         Tests for module 'unictype/combining-class-longname'.
21269         * modules/unictype/combining-class-longname-tests: New file.
21270         * tests/unictype/test-combiningclass_longname.c: New file.
21271
21272         New module 'unictype/combining-class-longname'.
21273         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21274         * lib/unictype/combiningclass_longname.c: New file.
21275         * modules/unictype/combining-class-longname: New file.
21276
21277         Tests for module 'unictype/combining-class-name'.
21278         * modules/unictype/combining-class-name-tests: New file.
21279         * tests/unictype/test-combiningclass_name.c: New file.
21280
21281         New module 'unictype/combining-class-name'.
21282         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21283         * lib/unictype/combiningclass_name.c: New file.
21284         * modules/unictype/combining-class-name: New file.
21285
21286 2011-03-25  Bruno Haible  <bruno@clisp.org>
21287
21288         unictype/combining-class: Rename source files.
21289         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21290         of unictype/combining.h.
21291         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21292         Update.
21293         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21294         * modules/unictype/combining-class (Description): Fix.
21295         (Files, Makefile.am): Update.
21296         * tests/unictype/test-combiningclass.c: Renamed from
21297         tests/unictype/test-combining.c.
21298         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21299
21300 2011-03-25  Bruno Haible  <bruno@clisp.org>
21301
21302         unictype: Update list of canonical combining classes.
21303         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21304
21305 2011-03-25  Bruno Haible  <bruno@clisp.org>
21306
21307         unictype/category-byname: Recognize long names as well.
21308         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21309         a long name.
21310         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21311         unictype/categ_byname.h.
21312         (UC_CATEGORY_INDEX_*): New enumeration values.
21313         (uc_general_category_byname): Use uc_general_category_lookup and
21314         convert from index to value.
21315         * lib/unictype/categ_byname.gperf: New file.
21316         * modules/unictype/category-byname (Files): Add
21317         lib/unictype/categ_byname.gperf.
21318         (Depends-on): Add gperf.
21319         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21320         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21321         long names.
21322
21323         Tests for module 'unictype/category-longname'.
21324         * modules/unictype/category-longname-tests: New file.
21325         * tests/unictype/test-categ_longname.c: New file.
21326
21327         New module 'unictype/category-longname'.
21328         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21329         * lib/unictype/categ_longname.c: New file.
21330         * modules/unictype/category-longname: New file.
21331         * modules/unictype/category-all (Depends-on): Add it.
21332
21333 2011-03-25  Bruno Haible  <bruno@clisp.org>
21334
21335         Tests for module 'unictype/category-LC'.
21336         * modules/unictype/category-LC-tests: New file.
21337         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21338
21339         New module 'unictype/category-LC'.
21340         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21341         (UC_CATEGORY_LC): New declaration.
21342         (UC_CASED_LETTER): New macro.
21343         * lib/gen-uni-tables.c (is_category_LC): New function.
21344         (output_categories): Also handle category LC.
21345         (UC_CATEGORY_MASK_LC): New enumeration value.
21346         (general_category_byname): Also handle category LC.
21347         * lib/unictype/categ_LC.c: New file.
21348         * lib/unictype/categ_LC.h: New file, automatically generated.
21349         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21350         category LC.
21351         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21352         * modules/unictype/category-LC: New file.
21353         * modules/unictype/category-byname (Depends-on): Add
21354         unictype/category-LC.
21355         * modules/unictype/category-all (Depends-on): Likewise.
21356
21357 2011-03-25  Eric Blake  <eblake@redhat.com>
21358
21359         xmalloc: revert yesterday's regression
21360         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21361         realloc's underlying behavior (allowing allocation of zero-size
21362         objects, especially if malloc-gnu is also in use).
21363
21364 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21365
21366         maint.mk: add missing version to VC-tag
21367         * top/maint.mk: git tag was missing actual tag name; add it.
21368
21369         valgrind: do leak checking, and exit with code 1 on error (not 0)
21370         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21371         to VALGRIND.
21372
21373 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21374
21375         posix-modules: say what it does.
21376         * posix-modules: Add a line to the --help output saying what it does.
21377
21378 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21379
21380         xmalloc: Do not leak if underlying realloc is C99 compatible.
21381         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21382         This avoids a leak on C99-based systems.  See
21383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21384
21385 2011-03-24  Eric Blake  <eblake@redhat.com>
21386
21387         realloc: document portability problem
21388         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21389         passing 0 size to realloc.
21390
21391 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21392
21393         doc: update users.txt
21394         * users.txt: Add cvsps, tmpwatch
21395
21396 2011-03-23  Matt Rice  <ratmice@gmail.com>
21397
21398         doc: update users.txt
21399         * users.txt: Add gdb.
21400
21401 2011-03-23  Jim Meyering  <meyering@redhat.com>
21402
21403         doc: update users.txt
21404         Looking through matches up to the following URL (there are still
21405         several more pages), I found several projects that use gnulib:
21406         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21407         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21408         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21409
21410 2011-03-22  Bruno Haible  <bruno@clisp.org>
21411
21412         unictype/bidi*: Rename functions.
21413         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21414         uc_bidi_class, uc_is_bidi_class): New declarations.
21415         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21416         uc_bidi_category_byname.
21417         (uc_bidi_category_byname): New function.
21418         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21419         u_bidi_category_name.
21420         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21421         (uc_bidi_category_name): New function.
21422         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21423         uc_bidi_category.
21424         (uc_bidi_category): New function.
21425         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21426         uc_is_bidi_category. Invoke uc_bidi_class.
21427         (uc_is_bidi_category): New function.
21428         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21429         instead of uc_bidi_category_byname.
21430         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21431         instead of uc_bidi_category_name.
21432         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21433         uc_bidi_category.
21434         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21435         instead of uc_is_bidi_category.
21436
21437 2011-03-21  Bruno Haible  <bruno@clisp.org>
21438
21439         New module 'unictype/joininggroup-all'.
21440         * modules/unictype/joininggroup-all: New file.
21441
21442         Tests for module 'unictype/joininggroup-of'.
21443         * modules/unictype/joininggroup-of-tests: New file.
21444         * tests/unictype/test-joininggroup_of.c: New file.
21445         * tests/unictype/test-joininggroup_of.h: New file, automatically
21446         generated by gen-uni-tables.
21447
21448         New module 'unictype/joininggroup-of'.
21449         * modules/unictype/joininggroup-of: New file.
21450         * lib/unictype/joininggroup_of.c: New file.
21451         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21452         gen-uni-tables.
21453
21454         Tests for module 'unictype/joininggroup-byname'.
21455         * modules/unictype/joininggroup-byname-tests: New file.
21456         * tests/unictype/test-joininggroup_byname.c: New file.
21457
21458         New module 'unictype/joininggroup-byname'.
21459         * modules/unictype/joininggroup-byname: New file.
21460         * lib/unictype/joininggroup_byname.c: New file.
21461         * lib/unictype/joininggroup_byname.gperf: New file.
21462
21463         Tests for module 'unictype/joininggroup-name'.
21464         * modules/unictype/joininggroup-name-tests: New file.
21465         * tests/unictype/test-joininggroup_name.c: New file.
21466
21467         New module 'unictype/joininggroup-name'.
21468         * modules/unictype/joininggroup-name: New file.
21469         * lib/unictype/joininggroup_name.c: New file.
21470         * lib/unictype/joininggroup_name.h: New file.
21471
21472         New module 'unictype/joiningtype-all'.
21473         * modules/unictype/joiningtype-all: New file.
21474
21475         Tests for module 'unictype/joiningtype-of'.
21476         * modules/unictype/joiningtype-of-tests: New file.
21477         * tests/unictype/test-joiningtype_of.c: New file.
21478         * tests/unictype/test-joiningtype_of.h: New file, automatically
21479         generated by gen-uni-tables.
21480
21481         New module 'unictype/joiningtype-of'.
21482         * modules/unictype/joiningtype-of: New file.
21483         * lib/unictype/joiningtype_of.c: New file.
21484         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21485         gen-uni-tables.
21486
21487         Tests for module 'unictype/joiningtype-byname'.
21488         * modules/unictype/joiningtype-byname-tests: New file.
21489         * tests/unictype/test-joiningtype_byname.c: New file.
21490
21491         New module 'unictype/joiningtype-byname'.
21492         * modules/unictype/joiningtype-byname: New file.
21493         * lib/unictype/joiningtype_byname.c: New file.
21494
21495         Tests for module 'unictype/joiningtype-name'.
21496         * modules/unictype/joiningtype-name-tests: New file.
21497         * tests/unictype/test-joiningtype_name.c: New file.
21498
21499         New module 'unictype/joiningtype-name'.
21500         * modules/unictype/joiningtype-name: New file.
21501         * lib/unictype/joiningtype_name.c: New file.
21502
21503         unictype: Add support for Arabic shaping properties.
21504         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21505         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21506         declarations.
21507         (UC_JOINING_GROUP_*): New enumeration values.
21508         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21509         declarations.
21510         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21511         (unicode_joining_type): New variable.
21512         (UC_JOINING_GROUP_*): New enumeration values.
21513         (unicode_joining_group): New variable.
21514         (fill_arabicshaping, joining_type_as_c_identifier,
21515         output_joining_type_test, output_joining_type,
21516         joining_group_as_c_identifier, output_joining_group_test,
21517         output_joining_group): New functions.
21518         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21519         fill_arabicshaping and output_joining_type_test, output_joining_type,
21520         output_joining_group_test, output_joining_group.
21521         Reported by Simon Josefsson.
21522
21523 2011-03-21  Jim Meyering  <meyering@redhat.com>
21524
21525         strftime: fix a bug in yesterday's change
21526         * lib/strftime.c (add): Accommodate width's initial value of -1.
21527         Otherwise, nstrftime would copy uninitialized data into
21528         the result buffer.
21529
21530 2011-03-21  Jim Meyering  <meyering@redhat.com>
21531
21532         tests: add strftime-tests module
21533         * tests/test-strftime.c: New file.
21534         * modules/strftime-tests: New module.
21535
21536 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21537
21538         strftime: don't assume a byte count fits in 'int'
21539         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21540         found this problem by static analysis, using gcc -Wstrict-overflow
21541         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21542         on an integer overflow having undefined behavior, but it turns out
21543         that the argument is a size, which might not fit in 'int' anyway,
21544
21545 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21546
21547         stdio: don't require ignore_value around fwrite
21548
21549         This patch works around libc bug 11959
21550         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21551         Without this patch, applications must often write
21552         ignore_value (fwrite (...)) even though the ignore_value is
21553         not helpful here.  It's common to write many objects, using
21554         fwrite/printf/etc., and then use ferror to detect output error.
21555
21556         I considered making this patch optional, but decided against it,
21557         because libc is obviously being inconsistent here: there is no
21558         reason libc should insist that user code must inspect fwrite
21559         return's value without also insisting that it inspect printf's,
21560         putchar's, etc.  If user code wants to have a strict style where
21561         all these functions' values are checked (so that ferror need not
21562         be checked), we could add support for that style in a new gnulib
21563         module, but in the meantime it's better to be consistent and to
21564         support common usage.
21565
21566         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21567         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21568         that we are compiling in checking mode, and if not C++, and
21569         if not already wrapping fwrite for some other reason.
21570         (fwrite): #define to rpl_fwrite if the latter is defined.
21571
21572 2011-03-20  Bruno Haible  <bruno@clisp.org>
21573
21574         verror: Fix compilation error introduced on 2011-02-13.
21575         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21576         instead of __attribute__.
21577         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21578
21579 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21580             Bruno Haible  <bruno@clisp.org>
21581
21582         socklen: do not depend on sys_socket
21583         While trying to modify Emacs to use gnulib's socklen module,
21584         I discovered a circular dependency: socklen depends on sys_socket
21585         and vice versa.  Emacs can use socklen, but it does not need
21586         sys_socket because it has its own substitute for sys/socket.h.
21587         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21588         gl_TYPE_SOCKLEN_T.
21589         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21590         gl_PREREQ_SYS_H_SOCKET.
21591         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21592         gl_PREREQ_SYS_H_SOCKET.
21593         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21594         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21595         * modules/socklen (Depends-on): Do not depend on sys_socket.
21596         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21597
21598 2011-03-20  Jim Meyering  <meyering@redhat.com>
21599
21600         maint.mk: sort file names *after* new transformation
21601         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21602         prefix would have led to an unwarranted failure in GNU parted.
21603         Sort after that transformation.
21604
21605 2011-03-19  Jim Meyering  <meyering@redhat.com>
21606
21607         maint.mk: fix po-file syntax-check rule
21608         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
21609         Patch by Bruno Haible.
21610
21611 2011-03-19  Bruno Haible  <bruno@clisp.org>
21612
21613         socklen: Update comment.
21614         * m4/socklen.m4: Update comment about platforms.
21615
21616 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21617             Bruno Haible  <bruno@clisp.org>
21618
21619         inet_ntop, inet_pton: Simplify.
21620         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
21621         documented to provide socklen_t and we already depend on sys_socket.
21622         * modules/inet_pton (Depends-on): Likewise.
21623         * lib/arpa_inet.in.h: Adjust comment.
21624
21625 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21626             Bruno Haible  <bruno@clisp.org>
21627
21628         netdb: Simplify.
21629         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
21630         documented to provide socklen_t and we already depend on sys_socket.
21631         * lib/netdb.in.h: Adjust comment.
21632
21633 2011-03-19  Bruno Haible  <bruno@clisp.org>
21634
21635         sys_socket, netdb: Document problem with socklen_t.
21636         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
21637         platforms.
21638         * doc/posix-headers/netdb.texi: Likewise.
21639
21640 2011-03-18  Eric Blake  <eblake@redhat.com>
21641
21642         maint.mk: let po check work in VPATH build
21643         * top/maint.mk (po_file): Allow cfg.mk override.
21644         (sc_po_check): Allow VPATH use.
21645         Reported by Jiri Denemark.
21646
21647 2011-03-16  Jim Meyering  <meyering@redhat.com>
21648
21649         maint.mk: allow fine-grained syntax-check exclusion via Make variables
21650         Before, you would have had to create one .x-sc_ file per rule in order
21651         to exempt offending files.  Now, you may instead use a Make variable --
21652         usually defined in cfg.mk -- whose name identifies the affected rule.
21653         * top/maint.mk (_sc_excl): Define.
21654         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
21655         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
21656
21657 2011-03-13  Bruno Haible  <bruno@clisp.org>
21658
21659         ignore-value tests: Avoid warnings.
21660         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
21661         empty for gcc < 3.4.
21662
21663 2011-03-13  Bruno Haible  <bruno@clisp.org>
21664
21665         passfd: Fix link error on Solaris.
21666         * modules/passfd (Description): Correct.
21667         (Depends-on): Add socketlib.
21668         (Link): New section.
21669         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
21670
21671 2011-03-13  Bruno Haible  <bruno@clisp.org>
21672
21673         passfd: Fix link error on AIX 5.2.
21674         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
21675
21676 2011-03-13  Bruno Haible  <bruno@clisp.org>
21677
21678         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
21679         * lib/sys_socket.in.h: Include <stddef.h>.
21680         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
21681         CMSG_FIRSTHDR. Remove unused variable.
21682
21683 2011-03-13  Bruno Haible  <bruno@clisp.org>
21684
21685         passfd: Fix compilation error on OpenBSD.
21686         * lib/passfd.c: Include <sys/uio.h>.
21687
21688 2011-03-13  Bruno Haible  <bruno@clisp.org>
21689
21690         passfd test: Fix warnings.
21691         * tests/test-passfd.c: Include <sys/wait.h>.
21692         (main): Fix typo.
21693
21694 2011-03-13  Bruno Haible  <bruno@clisp.org>
21695
21696         passfd module, part 4, tweaks.
21697         * tests/test-passfd.c: Reorder includes.
21698         (main): Fix perror and printf calls.
21699
21700 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21701
21702         passfd module, part 4.
21703         * modules/passfd-tests: New file.
21704         * tests/test-passfd.c: New file.
21705
21706 2011-03-13  Jim Meyering  <meyering@redhat.com>
21707
21708         Makefile: rely on GNU make; derive syntax-check rule names
21709         Rather than requiring that each sc_ rule be listed as a dependent
21710         of "check", use features of GNU make to derive the list.
21711         * Makefile (syntax-check-rules): Define.
21712         (check): Depend on the new variable, not the hard-coded list.
21713
21714 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
21715             Bruno Haible  <bruno@clisp.org>
21716
21717         passfd module, part 3.
21718         * lib/passfd.h (recvfd): Add a flags argument.
21719         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
21720         (recvfd): Add a flags argument.
21721         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
21722         exists.
21723         * modules/passfd (Depends-on): Add cloexec.
21724         Suggested by Eric Blake.
21725
21726 2011-03-13  Bruno Haible  <bruno@clisp.org>
21727
21728         passfd module, part 2, tweaks.
21729         * modules/passfd (Files): Reorder.
21730         (Depends-on): Remove errno.
21731         (Include): Remove <sys/socket.h>, <sys/un.h>.
21732         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
21733         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21734         specification header. Include <sys/socket.h> always. Don't include
21735         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
21736         (sendfd): Clarify that it sets errno when it fails.
21737         (recvfd): Fix specification.
21738
21739 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21740
21741         passfd module, part 2.
21742         * modules/passfd: New file.
21743         * lib/passfd.h: New file.
21744         * lib/passfd.c: New file.
21745
21746 2011-03-12  Bruno Haible  <bruno@clisp.org>
21747
21748         wcswidth, mbswidth: Avoid integer overflow.
21749         * lib/wcswidth.c: Include <limits.h>.
21750         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
21751         * lib/mbswidth.c: Include <limits.h>.
21752         (mbsnwidth): Avoid 'int' overflow.
21753         Reported by Jim Meyering.
21754
21755 2011-03-12  Bruno Haible  <bruno@clisp.org>
21756
21757         futimens, utimensat: Avoid endless recursion on Solaris 10.
21758         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
21759         Solaris.
21760         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
21761         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
21762
21763 2011-03-11  Jim Meyering  <meyering@redhat.com>
21764
21765         maint.mk: relax a regexp to accommodate other formatting styles
21766         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
21767         between "ngettext" and the following "(".
21768
21769 2011-03-11  Pádraig Brady <P@draigBrady.com>
21770
21771         maint.mk: suppress a false positive warning
21772         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
21773         diagnostics are marked with ngettext.
21774
21775 2011-03-10  Eric Blake  <eblake@redhat.com>
21776
21777         wchar: add explicit dependencies, for Tru64
21778         * modules/mbmemcasecoll (Depends-on): Add wchar.
21779         * modules/mbtowc (Depends-on): Likewise.
21780         * modules/vasnprintf (Depends-on): Likewise.
21781         * modules/unistdio/u-printf-args (Depends-on): Likewise.
21782         * modules/wctomb (Depends-on): Likewise.
21783         Reported by Peter O'Gorman.
21784
21785 2011-03-08  Bruno Haible  <bruno@clisp.org>
21786
21787         passfd module, part 1, tweaks.
21788         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
21789         Improve indentation. Improve AC_MSG_CHECKING messages.
21790         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
21791         gl_SOCKET_FAMILIES.
21792
21793 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21794
21795         passfd module, part 1.
21796         * m4/afunix.m4: New file.
21797         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
21798         sockets.
21799
21800 2011-03-08  Bruno Haible  <bruno@clisp.org>
21801
21802         regex-quote: New API.
21803         * lib/regex-quote.h: Include <stdbool.h>.
21804         (struct regex_quote_spec): New type.
21805         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21806         New declarations.
21807         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21808         'const struct regex_quote_spec *' argument.
21809         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
21810         (pcre_special): New constant.
21811         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21812         New functions.
21813         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21814         'const struct regex_quote_spec *' argument.
21815         * modules/regex-quote (Depends-on): Add stdbool.
21816         * tests/test-regex-quote.c (check): Update for new API. Add test for
21817         anchored results.
21818         * NEWS: Mention the API change.
21819         Reported by Reuben Thomas and Eric Blake.
21820
21821 2011-03-06  Bruno Haible  <bruno@clisp.org>
21822
21823         regex-quote: Fix creation of POSIX extended regular expressions.
21824         * lib/regex-quote.c (ere_special): Add grouping and alternation
21825         operators.
21826
21827 2011-03-05  Bruno Haible  <bruno@clisp.org>
21828
21829         doc: Improve doc regarding autopoint vs. gnulib.
21830         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
21831         disable autopoint while running autoreconf.
21832         Suggested by Ralf Wildenhues.
21833
21834 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21835
21836         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
21837         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
21838
21839 2011-03-03  Bruce Korb  <bkorb@gnu.org>
21840
21841         parse-duration: remove xalloc.h dependency
21842         * lib/parse-duration.c (parse_period): handle NULL return from
21843         strdup instead of calling xstrdup().
21844         * modules/parse-duration: remove "xalloc" dependency
21845
21846 2011-03-03  Matthew Booth  <mbooth@redhat.com>
21847
21848         bootstrap: honor m4_base when running aclocal
21849         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
21850
21851 2011-03-02  Jim Meyering  <meyering@redhat.com>
21852
21853         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
21854         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
21855         on request from Matt Booth.
21856
21857 2011-03-01  Eric Blake  <eblake@redhat.com>
21858
21859         test-link: work on Hurd
21860         * tests/test-link.h (test_link): Hurd rejects linking directories
21861         with EISDIR instead of the POSIX-mandated EPERM.
21862
21863 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
21864
21865         stdio: simplify by moving files to printf-posix, sigpipe
21866         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
21867         since this symbol is needed only if printf is replaced.
21868         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
21869         Require gl_ASM_SYMBOL_PREFIX.
21870         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
21871         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
21872         (Depends-on): Add 'raise'.
21873         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
21874         * modules/stdio (Files): Remove lib/stdio-write.c,
21875         m4/asm-underscore.m4.
21876         (Depends-on): Remove 'raise'.
21877
21878         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
21879         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
21880         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
21881         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
21882
21883 2011-02-28  Bruno Haible  <bruno@clisp.org>
21884
21885         localcharset: Assume ANSI C behaviour of free().
21886         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
21887         calling free().
21888         Suggested by Simon Josefsson <simon@josefsson.org>.
21889
21890 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
21891             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
21892             Bruno Haible  <bruno@clisp.org>  (tiny change)
21893
21894         On Cygwin, use /proc file system instead of win32 API.
21895         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
21896         Win32 file names.
21897         (DllMain): Simplify by removing Cygwin specific code.
21898         (find_shared_library_fullname): Use Linux specific implementation also
21899         for Cygwin.
21900         (get_shared_library_fullname): Update accordingly.
21901         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
21902         Win32 file names.
21903         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
21904         Cygwin specific code.
21905
21906 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
21907             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
21908
21909         Fix OpenMP flag detection for various Fortran compilers.
21910         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
21911         OpenMP-conditional compilation construct, to force compile
21912         failure with missing OpenMP flag.
21913         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
21914
21915 2011-02-25  Eric Blake  <eblake@redhat.com>
21916
21917         strstr: expand test coverage
21918         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
21919         compilation.
21920         * tests/test-memmem.c (main): Duplicate tests.
21921         * tests/test-strcasestr.c (main): Likewise.
21922         * tests/test-c-strcasestr.c (main): Likewise.
21923
21924 2011-02-25  Jim Meyering  <meyering@redhat.com>
21925
21926         maint.mk: detect missing-NL-at-EOF, too
21927         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
21928         it also detects when a file lacks a newline at EOF.
21929         (require_exactly_one_NL_at_EOF_): Renamed from
21930         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
21931         since people may well have .x-sc_... file names tied to the
21932         existing name.  Suggested by Eric Blake.
21933
21934 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21935
21936         dirname: move m4/dos.m4 functionality into lib/dosname.h
21937
21938         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
21939         extracts symbols from it, puts them into config.h; but it's much
21940         easier to use the symbols directly.  filename.h already does this,
21941         but it disagrees with dos.m4 in some respects.  This patch
21942         introduces a different include file dosname.h that packages up
21943         dos.m4, and then later we can work on merging filename.h and
21944         dosname.h.  Applications that need only the easy-to-configure
21945         symbols should consider including dosname.h rather than dirname.h.
21946         * NEWS: Mention incompatible changes.
21947         * m4/dos.m4: Remove.
21948         * lib/dosname.h, modules/dosname: New files.
21949         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
21950         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
21951         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
21952         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
21953         Include dosname.h, not dirname.h.
21954         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
21955         Include dosname.h, for definitions of symbols like ISSLASH
21956         that used to be in config.h.
21957         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
21958         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21959         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21960         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21961         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
21962         * modules/rmdir (Files): Likewise.
21963         * modules/stat (Files): Likewise.
21964         * modules/unlink (Files): Likewise.
21965         * modules/dirname-lgpl (Depends-on): Add dosname.
21966         * modules/lstat (Depends-on): Likewise.
21967         * modules/openat (Depends-on): Likewise.
21968         * modules/rmdir (Depends-on): Likewise.
21969         * modules/savewd (Depends-on): Likewise.
21970         * modules/stat (Depends-on): Likewise.
21971         * modules/unlink (Depends-on): Likewise.
21972         * modules/openat (Depends-on): Remove dirname-lgpl.
21973         * modules/savewd (Depends-on): Likewise.
21974         * tests/test-dirname.c: Do not use removed symbols like
21975         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
21976         the remaining symbols, e.g., ISSLASH ('\\').
21977
21978 2011-02-25  Eric Blake  <eblake@redhat.com>
21979
21980         strstr: revert patches that introduced bug and pessimization
21981         * lib/str-two-way.h: Add another reference.
21982         (two_way_short_needle, two_way_long_needle): Revert changes from
21983         2011-02-24; they pessimize search speed.
21984         (critical_factorization): Partially revert changes from
21985         2010-06-22; they violate the requirement that the left half of the
21986         needle be smaller than the period of the needle.
21987
21988 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21989
21990         filenamecat: remove unnecessary dependency on dirname-lgpl
21991         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
21992         is no direct dependency, just an indirect one via filenamecat-lgpl.
21993
21994         remove: remove unnecessary use of m4/dos.m4
21995         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
21996         * modules/remove (FILES): Remove m4/dos.m4.
21997
21998         * lib/openat-proc.c: Don't include dirname.h; not needed.
21999
22000         backupfile: remove unnecessary use of m4/dos.m4
22001         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22002         of its symbols are used by the backupfile code.  backupfile.c does
22003         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22004         for the rare case of programs that want all their backup file
22005         names to live within 8+3 limits, and dos.m4 doesn't address that.
22006         * modules/backupfile (Files): Remove m4/dos.m4.
22007
22008 2011-02-24  Jim Meyering  <meyering@redhat.com>
22009
22010         strstr: fix a bug whereby strstr would mistakenly return NULL
22011         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22012         in period calculation.
22013         (two_way_long_needle): Likewise.
22014         The original problem was reported by Mike Stump in
22015         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22016         Ralf Wildenhues provided the short needle and haystack.
22017         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22018         Add a more involved test to trigger the bug in two_way_long_needle.
22019
22020 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22021
22022         gnulib-tool: remove use of bold display in help screen
22023         * gnulib-tool (func_usage): Do not use bold display anymore in the
22024         help screen.  That was just meant to be a temporary emphasis for a
22025         backward-incompatible change.
22026
22027 2011-02-23  Bruno Haible  <bruno@clisp.org>
22028
22029         Fix misindentation of preprocessor directives.
22030         * lib/argp-namefrob.h: Reindent preprocessor directives.
22031         * lib/getopt_int.h (struct _getopt_data): Likewise.
22032         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22033         * lib/vasnprintf.c (decode_long_double): Likewise.
22034         * tests/test-argmatch.c: Insert blank lines, for clarity.
22035         * tests/test-exclude.c: Likewise.
22036
22037 2011-02-22  Bruno Haible  <bruno@clisp.org>
22038
22039         ioctl: Fix for MacOS X in 64-bit mode.
22040         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22041         value.
22042         Suggested by Eric Blake.
22043         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22044
22045 2011-02-22  Jim Meyering  <meyering@redhat.com>
22046
22047         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22048         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22049         in lib/.
22050
22051 2011-02-22  Eric Blake  <eblake@redhat.com>
22052
22053         maint: avoid any CDPATH issue
22054         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22055
22056         maint: adjust cpp indentation for my modules, as well
22057         * Makefile (sc_cpp_indent_check): Add my name.
22058         * lib/fbufmode.c: Filter through cppi.
22059         * lib/fpurge.c: Likewise.
22060         * lib/freadable.c: Likewise.
22061         * lib/freading.c: Likewise.
22062         * lib/fwritable.c: Likewise.
22063         * lib/fwriting.c: Likewise.
22064         * lib/sigaction.c: Likewise.
22065
22066 2011-02-22  Jim Meyering  <meyering@redhat.com>
22067
22068         maint: adjust cpp indentation to reflect nesting depth
22069         I.e., in a block of code that begins with an unnested "#if",
22070         put one space between the "#" in column 1 and following token.
22071         For example,
22072         -#include <sys/vfs.h>
22073         +# include <sys/vfs.h>
22074         Do this only in .c files that are part of a module I maintain.
22075         * lib/linkat.c: Filter through cppi.
22076         * lib/nanosleep.c: Likewise.
22077         * lib/openat.c: Likewise.
22078         * lib/openat-die.c: Likewise.
22079         * lib/dup3.c: Likewise.
22080         * lib/fchownat.c: Likewise.
22081         * lib/flock.c: Likewise.
22082         * lib/fsync.c: Likewise.
22083         * lib/fts.c: Likewise.
22084         * lib/getpass.c: Likewise.
22085         * lib/gettimeofday.c: Likewise.
22086         * lib/userspec.c: Likewise.
22087         * Makefile (sc_cpp_indent_check): New rule, to check this.
22088
22089 2011-02-22  Bruno Haible  <bruno@clisp.org>
22090
22091         New module 'wctomb'.
22092         * lib/stdlib.in.h (wctomb): New declaration.
22093         * lib/wctomb.c: New file.
22094         * lib/wctomb-impl.h: New file.
22095         * m4/wctomb.m4: New file.
22096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22097         REPLACE_WCTOMB.
22098         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22099         REPLACE_WCTOMB.
22100         * modules/wctomb: New file.
22101         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22102         * doc/posix-functions/wctomb.texi: Mention the new module.
22103         * modules/wctob (Depends-on): Add wctomb.
22104
22105 2011-02-22  Bruno Haible  <bruno@clisp.org>
22106
22107         New module 'mbtowc'.
22108         * lib/stdlib.in.h (mbtowc): New declaration.
22109         * lib/mbtowc.c: New file.
22110         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22111         * m4/mbtowc.m4: New file.
22112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22113         REPLACE_MBTOWC.
22114         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22115         REPLACE_MBTOWC.
22116         * modules/mbtowc: New file.
22117         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22118         * doc/posix-functions/mbtowc.texi: Mention the new module.
22119         * modules/btowc (Depends-on): Add mbtowc.
22120
22121 2011-02-22  Bruno Haible  <bruno@clisp.org>
22122
22123         wcrtomb: Add more tests for native Windows platforms.
22124         * tests/test-wcrtomb-w32-1.sh: New file.
22125         * tests/test-wcrtomb-w32-2.sh: New file.
22126         * tests/test-wcrtomb-w32-3.sh: New file.
22127         * tests/test-wcrtomb-w32-4.sh: New file.
22128         * tests/test-wcrtomb-w32-5.sh: New file.
22129         * tests/test-wcrtomb-w32.c: New file.
22130         * modules/wcrtomb-tests (Files): Add them.
22131         (Makefile.am): Arrange to run these tests.
22132         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22133         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22134
22135 2011-02-20  Bruno Haible  <bruno@clisp.org>
22136
22137         wcrtomb: Enhance test.
22138         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22139
22140 2011-02-20  Bruno Haible  <bruno@clisp.org>
22141
22142         mbrtowc: Tiny optimization.
22143         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22144
22145 2011-02-20  Jim Meyering  <meyering@redhat.com>
22146
22147         test-exclude.c: remove unmatched #endif
22148         * tests/test-exclude.c: Remove stray #endif, left over from
22149         the change of a week ago.
22150
22151 2011-02-19  Jim Meyering  <meyering@redhat.com>
22152
22153         git-version-gen: skip "-dirty" check when appropriate
22154         * build-aux/git-version-gen: Don't run any git commands when the
22155         version string comes from .tarball-version.  Prior to this, we
22156         would run git update-index --refresh even from a just-unpacked
22157         tarball directory, and that could affect a .git/ directory in a
22158         parent of the build directory.  Reported by Mike Frysinger.
22159
22160 2011-02-19  Bruno Haible  <bruno@clisp.org>
22161
22162         unictype/property-byname: Reduce the size of the 'data' segment.
22163         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22164
22165 2011-02-19  Bruno Haible  <bruno@clisp.org>
22166
22167         unictype/scripts: Reduce the size of the 'data' segment.
22168         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22169         '%pic'.
22170         * lib/unictype/scripts_byname.gperf: Regenerated.
22171
22172 2011-02-19  Bruno Haible  <bruno@clisp.org>
22173
22174         stdint: Update documentation.
22175         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22176
22177 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22178
22179         stdint: omit redundant check for wchar.h
22180         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22181         always tests whether wchar.h exists, so remove the now-redundant test.
22182
22183 2011-02-18  Bruno Haible  <bruno@clisp.org>
22184
22185         stdint: Cut dependency to module 'wchar'.
22186         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22187         include the necessary prerequisites.
22188         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22189         * modules/stdint (Depends-on): Remove wchar.
22190         (Makefile.am): Substitute HAVE_WCHAR_H.
22191         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22192
22193 2011-02-18  Eric Blake  <eblake@redhat.com>
22194
22195         longlong: skip, rather than fail, on cross-compilation
22196         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22197         when cross-compiling; regression from 2011-02-16.
22198
22199 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22200
22201         * NEWS: Mention 2011-02-08 change to stdlib.
22202
22203 2011-02-17  Bruno Haible  <bruno@clisp.org>
22204
22205         getloadavg: Add comments about platforms.
22206         * m4/getloadavg.m4: Add comment.
22207         * lib/getloadavg.c: Likewise.
22208
22209 2011-02-17  Bruno Haible  <bruno@clisp.org>
22210
22211         getloadavg: Fix link error on Solaris 2.6.
22212         * modules/getloadavg (Link): New section.
22213         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22214         linking test-getloadavg.
22215         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22216         getloadavg.
22217
22218 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22219
22220         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22221         It was 'int', but this doesn't match the IRIX 6.5 manual.
22222         Suggested by Bruno Haible in
22223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22224
22225 2011-02-17  Bruno Haible  <bruno@clisp.org>
22226
22227         havelib: Fix comments.
22228         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22229         change.
22230
22231 2011-02-17  Bruno Haible  <bruno@clisp.org>
22232
22233         havelib: Update config.rpath.
22234         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22235
22236 2011-02-17  Bruno Haible  <bruno@clisp.org>
22237
22238         getloadavg test: Add some plausibility checks.
22239         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22240         is improbable.
22241
22242 2011-02-16  Eric Blake  <eblake@redhat.com>
22243
22244         maintainer-makefile: make syntax-check a no-op from tarballs
22245         * top/maint.mk (no-vc-detected): New rule.
22246         (local-checks-available): Use it to avoid hanging if someone tries
22247         'make syntax-check' from a tarball.  Also append to any non-syntax
22248         checks already defined in cfg.mk.
22249
22250 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22251
22252         longlong: tune, particularly for common case of c99
22253
22254         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22255         or running anything if c99, or if unsigned long long int does not
22256         work.  In either case, we know the answer without further tests.
22257         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22258         it at most once, and use its results for both long long int and
22259         unsigned long long int.  This is more likely to be efficient in
22260         the common case where the program wants to check for both long
22261         long int and unsigned long long int.
22262         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22263         since the answer is already known.
22264
22265 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22266
22267         getloadavg: set errno
22268         * lib/getloadavg.c: Set errno when returning -1.  If no other
22269         error number looks appropriate, set it to ENOSYS if the getloadavg
22270         looks like it can't possibly ever work, ENOTSUP otherwise.
22271         Suggested by Bruno Haible in
22272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22273
22274         getloadavg: trim unused parts and speed up 'configure'
22275         * NEWS: Document this.
22276         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22277         always compiled if getloadavg is absent.
22278         Move test code to ...
22279         * tests/test-getloadavg.c: New file, containing previous
22280         contents of test from lib/getloadavg.c.  It also contains
22281         suggestions by Bruno Haible in
22282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22283         * modules/getloadavg-tests: New file.
22284         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22285         Do tests in the same order as they're needed for getloadavg.c.
22286         Omit setgid-related tests that generate symbols KMEM_GROUP,
22287         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22288         Do only the tests that are needed to see whether the system has
22289         getloadavg, moving the other tests into ...
22290         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22291         NLIST_NAME_UNION; nobody should be using it.  Do not define
22292         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22293         relevant, as the user of this module shouldn't care how getloadavg
22294         is implemented.
22295
22296         getloadavg: omit unused var
22297         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22298
22299 2011-02-15  Jim Meyering  <meyering@redhat.com>
22300
22301         doc: update users.txt
22302         * users.txt: Update iwhd's URL.
22303
22304 2011-02-13  Bruno Haible  <bruno@clisp.org>
22305
22306         Consistent macro naming for macros that use GCC __attribute__.
22307         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22308         _ATTRIBUTE_NONNULL_.
22309         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22310         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22311         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22312         ATTRIBUTE_DEPRECATED.
22313         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22314         ATTRIBUTE_NORETURN.
22315         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22316         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22317         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22318         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22319         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22320         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22321         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22322         ATTRIBUTE_SENTINEL.
22323         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22324         ATTRIBUTE_RETURN_CHECK.
22325         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22326         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22327         ATTRIBUTE_NORETURN.
22328         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22329         Reported by Paul Eggert.
22330
22331 2011-02-13  Bruno Haible  <bruno@clisp.org>
22332
22333         Don't interfere with a program's definition of __attribute__.
22334         * lib/argp.h (__attribute__): Remove definition.
22335         (_GL_ATTRIBUTE_FORMAT): New macro.
22336         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22337         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22338         (_GL_ATTRIBUTE_FORMAT): New macro.
22339         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22340         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22341         GCC 3 or newer.
22342         * lib/error.h (__attribute__): Remove definition.
22343         (_GL_ATTRIBUTE_FORMAT): New macro.
22344         (error, error_at_line): Use it.
22345         * lib/hash.h (__attribute__): Remove definition.
22346         (ATTRIBUTE_WUR): Update definition. Define always.
22347         * lib/openat.h (__attribute__): Remove definition.
22348         (ATTRIBUTE_NORETURN): Update definition. Define always.
22349         * lib/sigpipe-die.h (__attribute__): Remove definition.
22350         (ATTRIBUTE_NORETURN): Update definition. Define always.
22351         * lib/vasnprintf.h (__attribute__): Remove definition.
22352         (_GL_ATTRIBUTE_FORMAT): New macro.
22353         (asnprintf, vasnprintf): Use it.
22354         * lib/xalloc.h (__attribute__): Remove definition.
22355         (ATTRIBUTE_NORETURN): Update definition. Define always.
22356         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22357         * lib/xmemdup0.h (__attribute__): Remove definition.
22358         (ATTRIBUTE_NORETURN): Update definition. Define always.
22359         * lib/xprintf.h (__attribute__): Remove definition.
22360         (_GL_ATTRIBUTE_FORMAT): New macro.
22361         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22362         * lib/xstrtol.h (__attribute__): Remove definition.
22363         (ATTRIBUTE_NORETURN): Update definition. Define always.
22364         * lib/xvasprintf.h (__attribute__): Remove definition.
22365         (_GL_ATTRIBUTE_FORMAT): New macro.
22366         (xasprintf, xvasprintf): Use it.
22367         * tests/test-argmatch.c (__attribute__): Remove definition.
22368         (ATTRIBUTE_NORETURN): Update definition. Define always.
22369         * tests/test-exclude.c (__attribute__): Remove definition.
22370         (ATTRIBUTE_NORETURN): Update definition. Define always.
22371         Reported by Paul Eggert.
22372
22373 2011-02-13  Bruno Haible  <bruno@clisp.org>
22374
22375         mbrtowc: Add more tests for native Windows platforms.
22376         * tests/test-mbrtowc-w32-1.sh: New file.
22377         * tests/test-mbrtowc-w32-2.sh: New file.
22378         * tests/test-mbrtowc-w32-3.sh: New file.
22379         * tests/test-mbrtowc-w32-4.sh: New file.
22380         * tests/test-mbrtowc-w32-5.sh: New file.
22381         * tests/test-mbrtowc-w32.c: New file.
22382         * modules/mbrtowc-tests (Files): Add them.
22383         (Makefile.am): Arrange to run these tests.
22384         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22385         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22386
22387 2011-02-13  Bruno Haible  <bruno@clisp.org>
22388
22389         mbrtowc: Work around native Windows bug.
22390         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22391         guess when no suitable locale for testing was found.
22392         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22393
22394 2011-02-13  Bruno Haible  <bruno@clisp.org>
22395
22396         mbsinit: Work around mingw bug.
22397         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22398         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22399         Windows.
22400         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22401
22402 2011-02-13  Bruno Haible  <bruno@clisp.org>
22403
22404         mbsinit: Don't crash for a NULL argument.
22405         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22406         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22407
22408 2011-02-13  Bruno Haible  <bruno@clisp.org>
22409
22410         Don't interfere with a program's definition of __attribute__.
22411         * lib/stdio.in.h (__attribute__): Remove definition.
22412         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22413         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22414         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22415         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22416         * lib/string.in.h (__attribute__): Remove definition.
22417         Reported by Paul Eggert.
22418
22419 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22420
22421         stdlib: don't get in the way of non-GCC __attribute__
22422         See thread starting at
22423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22424         Revert previous stdlib change, installing the following instead:
22425         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22426         to get in the way of a non-GCC compiler that supports __attribute__.
22427         (_GL_ATTRIBUTE_RETURN): New macro.
22428         (_Exit): Use it instead of __attribute__.
22429
22430 2011-02-12  Bruno Haible  <bruno@clisp.org>
22431
22432         quotearg test: Avoid test failure on mingw.
22433         * tests/test-quotearg.sh: Convert the locale identifier from native
22434         Windows syntax to Unix syntax.
22435
22436 2011-02-12  Bruno Haible  <bruno@clisp.org>
22437
22438         setlocale: Prefer gnulib's override over libintl's override.
22439         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22440         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22441         GNULIB_defined_setlocale is set.
22442
22443 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22444
22445         stdlib: support non-GCC __attribute__
22446
22447         Fix a serious and tricky problem encountered when attempting to
22448         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22449         5.5, but it crashed due to memory corruption on Solaris 10 with
22450         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22451         bits that are otherwise zero.  This tagging is optional inside
22452         Emacs but is preferred and is used when __attribute__ ((__aligned
22453         (8))) works, as it does with both recent-enough GCC and with Sun C
22454         5.11.  However, Sun C 5.11 is not GCC and does not #define
22455         __GNUC__ and __GNUC_MINOR__.
22456
22457         When I added the getloadavg module to Emacs, it brought in
22458         stdlib.in.h, which contained this fragment:
22459
22460            #ifndef __attribute__
22461            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22462            #  define __attribute__(Spec)   /* empty */
22463            # endif
22464            #endif
22465
22466         When files that include <stdlib.h> were compiled with Sun C 5.11,
22467         the above code disabled __attribute__ ((__aligned (8))), which
22468         caused variables to not be properly aligned, which eventually led
22469         to the pointer corruption mentioned above.  (This was a bit hard
22470         to diagnose, unfortunately.)
22471
22472         Several "#define __attribute__(X) /* empty */" code snippets need
22473         to be eradicated from Gnulib to work with non-GCC compilers that
22474         support __attribute__.  The Autoconf way to do this is to test for
22475         each kind of attribute that we want support for, and selectively
22476         enable that in source code.
22477
22478         Fix this problem just for stdlib.h, by adding a test for the
22479         __noreturn__ attribute, and change stdlib.in.h to use that test
22480         when needed.  This technique can be easily generalized to the
22481         other *.in.h files and attributes, and a similar technique can be
22482         used for *.h and *.c files.  This patch is enough to solve the
22483         problem for Emacs + getloadavg, and I thought I'd publish it for
22484         feedback before undertaking further, similar fixes in other
22485         modules.
22486
22487         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22488         because it's not needed for stdlib.h.  It merely substitutes the
22489         value directly into stdlib.h.  We may well need to #define it, or
22490         similar symbols, for other modules, but it's nice to also have an
22491         option to not #define it for applications like Emacs that do not
22492         need it.
22493
22494         * lib/stdlib.in.h (__attribute__): Do not #define.
22495         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22496         be defined only if the _Exit module is also used.
22497         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22499         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22500         platforms.
22501         * modules/_Exit (Files): Add m4/attribute.m4.
22502         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22503         * m4/attribute.m4: New file.
22504
22505 2011-02-12  Bruno Haible  <bruno@clisp.org>
22506
22507         wcsrtombs: Work around bug on native Windows.
22508         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22509         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22510         instead of len.
22511         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22512
22513 2011-02-12  Bruno Haible  <bruno@clisp.org>
22514
22515         mbsrtowcs: Work around bug on native Windows.
22516         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22517         against mingw bug.
22518         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22519
22520 2011-02-12  Bruno Haible  <bruno@clisp.org>
22521
22522         Avoid setlocale bugs in tests.
22523         * modules/btowc (Dependencies): Add setlocale.
22524         * modules/c-strcase (Dependencies): Likewise.
22525         * modules/mbmemcasecmp (Dependencies): Likewise.
22526         * modules/mbmemcasecoll (Dependencies): Likewise.
22527         * modules/mbrtowc (Dependencies): Likewise.
22528         * modules/mbscasecmp (Dependencies): Likewise.
22529         * modules/mbscasestr (Dependencies): Likewise.
22530         * modules/mbschr (Dependencies): Likewise.
22531         * modules/mbscspn (Dependencies): Likewise.
22532         * modules/mbsinit (Dependencies): Likewise.
22533         * modules/mbsncasecmp (Dependencies): Likewise.
22534         * modules/mbsnrtowcs (Dependencies): Likewise.
22535         * modules/mbspbrk (Dependencies): Likewise.
22536         * modules/mbspcasecmp (Dependencies): Likewise.
22537         * modules/mbsrchr (Dependencies): Likewise.
22538         * modules/mbsrtowcs (Dependencies): Likewise.
22539         * modules/mbsspn (Dependencies): Likewise.
22540         * modules/mbsstr (Dependencies): Likewise.
22541         * modules/nl_langinfo (Dependencies): Likewise.
22542         * modules/quotearg (Dependencies): Likewise.
22543         * modules/unicase/locale-language (Dependencies): Likewise.
22544         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22545         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22546         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22547         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22548         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22549         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22550         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22551         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22552         * modules/vasnprintf-posix (Dependencies): Likewise.
22553         * modules/wcrtomb (Dependencies): Likewise.
22554         * modules/wcsnrtombs (Dependencies): Likewise.
22555         * modules/wcsrtombs (Dependencies): Likewise.
22556
22557 2011-02-12  Bruno Haible  <bruno@clisp.org>
22558
22559         setlocale: Workaround native Windows bug.
22560         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22561         succeeds but sets LC_CTYPE to "C", report a failure.
22562         * tests/test-setlocale2.sh: New file.
22563         * tests/test-setlocale2.c: New file.
22564         * modules/setlocale-tests (Files): Add the new files.
22565         (Makefile.am): Enable test-setlocale2.sh test.
22566         * doc/posix-functions/setlocale.texi: Mention workaround.
22567
22568 2011-02-11  Bruno Haible  <bruno@clisp.org>
22569
22570         Tests for module 'setlocale'.
22571         * modules/setlocale-tests: New file.
22572         * tests/test-setlocale1.sh: New file.
22573         * tests/test-setlocale1.c: New file.
22574
22575         New module 'setlocale'.
22576         * lib/locale.in.h (setlocale): New declaration.
22577         * lib/setlocale.c: New file, based on
22578         gettext/gettext-runtime/intl/setlocale.c.
22579         * m4/setlocale.m4: New file.
22580         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22581         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22582         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22583         REPLACE_SETLOCALE.
22584         * modules/setlocale: New file.
22585         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22586         * doc/posix-functions/setlocale.texi: Mention the new module.
22587
22588 2011-02-11  Bruno Haible  <bruno@clisp.org>
22589
22590         Prepare for locale dependent tests on mingw.
22591         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22592         because it has the wrong locale encoding.
22593         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22594         French_France.1252 instead of "fr".
22595         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22596         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22597         because it has the wrong locale encoding.
22598         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22599         native Windows, try Turkish_Turkey.65001.
22600         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22601         Chinese_China.54936.
22602
22603         Prepare for locale dependent tests on mingw.
22604         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
22605         differently.
22606         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
22607         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
22608         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22609         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22610
22611 2011-02-11  Eric Blake  <eblake@redhat.com>
22612
22613         strptime: avoid compiler warnings
22614         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
22615         compiler warnings about dead code.
22616         Reported by Daniel P. Berrange.
22617
22618 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
22619
22620         doc: update users.txt
22621         * users.txt: Add rcs.
22622
22623 2011-02-10  John W. Eaton  <jwe@gnu.org>
22624
22625         doc: update users.txt
22626         * users.txt: Add octave.
22627
22628 2011-02-10  Jim Meyering  <meyering@redhat.com>
22629
22630         doc: update users.txt
22631         * users.txt: Add iwhd.
22632
22633 2011-02-09  Bruno Haible  <bruno@clisp.org>
22634
22635         gnulib-tool: Make copyright notice adjustment more robust.
22636         * gnulib-tool (func_import): In sed_transform_main_lib_file,
22637         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
22638         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
22639         License".
22640         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
22641
22642 2011-02-06  Bruno Haible  <bruno@clisp.org>
22643
22644         New module 'towctrans'.
22645         * modules/towctrans: New file.
22646         * lib/wctype.in.h (towctrans): New declaration.
22647         * lib/towctrans.c: New file.
22648         * lib/towctrans-impl.h: New file.
22649         * m4/towctrans.m4: New file.
22650         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
22651         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
22652         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
22653         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
22654         * doc/posix-functions/towctrans.texi: Mention the new module.
22655
22656 2011-02-06  Bruno Haible  <bruno@clisp.org>
22657
22658         New module 'wctrans'.
22659         * modules/wctrans: New file.
22660         * lib/wctype.in.h (wctrans): New declaration.
22661         * lib/wctrans.c: New file.
22662         * lib/wctrans-impl.h: New file.
22663         * m4/wctrans.m4: New file.
22664         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
22665         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
22666         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
22667         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
22668         * doc/posix-functions/wctrans.texi: Mention the new module.
22669
22670 2011-02-06  Bruno Haible  <bruno@clisp.org>
22671
22672         New module 'iswctype'.
22673         * modules/iswctype: New file.
22674         * lib/wctype.in.h (iswctype): New declaration.
22675         * lib/iswctype.c: New file.
22676         * lib/iswctype-impl.h: New file.
22677         * m4/iswctype.m4: New file.
22678         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
22679         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
22680         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
22681         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
22682         * doc/posix-functions/iswctype.texi: Mention the new module and the
22683         HP-UX 11.00 problem.
22684
22685 2011-02-06  Bruno Haible  <bruno@clisp.org>
22686
22687         New module 'wctype'.
22688         * modules/wctype: Change to represent the wctype() substitute.
22689         * lib/wctype.in.h (wctype): New declaration.
22690         * lib/wctype.c: New file.
22691         * lib/wctype-impl.h: New file.
22692         * m4/wctype.m4: New file.
22693         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
22694         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
22695         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
22696         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
22697         * doc/posix-functions/wctype.texi: Mention the new module and the
22698         HP-UX 11.00 problem.
22699
22700 2011-02-06  Bruno Haible  <bruno@clisp.org>
22701
22702         wctype-h: Ensure wctype_t and wctrans_t are defined.
22703         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
22704         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22705         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22706         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
22707         HAVE_WCTRANS_T.
22708         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
22709
22710 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22711
22712         flock: fix license typo
22713
22714         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
22715         omitted.
22716
22717 2011-02-08  Bruno Haible  <bruno@clisp.org>
22718
22719         Split large sed scripts, for HP-UX sed.
22720         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
22721         to avoid HP-UX limit of 99 commands, in the near future.
22722         * modules/stdlib (Makefile.am): Likewise.
22723         * modules/unistd (Makefile.am): Likewise.
22724         * modules/wchar (Makefile.am): Likewise.
22725         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22726         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
22727         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
22728
22729 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22730             Bruno Haible  <bruno@clisp.org>
22731
22732         stdlib: improve random_r modularization
22733         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
22734         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
22735         you also need the random_r module to get this material right.
22736         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
22737         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
22738         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
22739
22740 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22741
22742         stdlib: don't depend on stdint
22743         * lib/stdlib.in.h: Don't include <stdint.h> merely because
22744         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
22745         be independent of whether stdint.h is needed.
22746         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
22747         here, instead of ...
22748         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
22749         struct random_data should be using the random_r module, not just
22750         the stdlib module (which wouldn't make sense: what package needs
22751         just struct random_data without also needing random_r?).
22752         * modules/stdlib (Depends-on): Remove stdint.
22753
22754         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
22755         See the thread rooted at
22756         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
22757         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
22758         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
22759         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
22760         __VMS)); previously it was always included (via fcntl--.h).
22761         (getloadavg): Do not use c_strtod.  Instead, approximate it by
22762         hand; this is good enough for load averages.  Also, do not use
22763         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
22764         flags directly if available and don't bother otherwise.  (Packages
22765         that need the extra reliability should use the modules that define
22766         these flags on older platforms that lack them.)
22767         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
22768         fcntl-safer.
22769
22770 2011-02-08  Jim Meyering  <meyering@redhat.com>
22771
22772         di-set.h, ino-map.h: add multiple-inclusion guard
22773         Technically, the guard is required only for ino-map.h, due to its
22774         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
22775         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
22776         * lib/ino-map.h: Likewise.
22777
22778 2011-02-06  Bruno Haible  <bruno@clisp.org>
22779
22780         iswblank: Ensure declaration on glibc systems.
22781         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
22782         * modules/iswblank (Dependencies): Add 'extensions'.
22783         * doc/posix-functions/iswblank.texi: Document the glibc problem.
22784
22785 2011-02-06  Bruno Haible  <bruno@clisp.org>
22786
22787         New module 'iswblank'.
22788         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
22789         * modules/iswblank: New file.
22790         * modules/wctype-h (Files): Remove lib/iswblank.c.
22791         (Makefile.am): Substitute GNULIB_ISWBLANK.
22792         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
22793         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
22794         (gl_WCTYPE_H_DEFAULTS): New macro.
22795         (gl_WCTYPE_H): Require it. Remove iswblank related code.
22796         * modules/iswblank-tests: New file.
22797         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
22798         * tests/test-wctype-h.c (main): Remove iswblank tests.
22799         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
22800         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
22801         of 'wctype-h'.
22802         * NEWS: Mention the change.
22803         * modules/mbchar (Depends-on): Add iswblank.
22804
22805 2011-02-08  Bruno Haible  <bruno@clisp.org>
22806
22807         di-set tests: Refactor.
22808         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
22809         unnecessary includes.
22810         (ASSERT): Remove macro.
22811         (main): Make C90 compliant by avoiding variable declaration after
22812         statement.
22813         * modules/di-set-tests (Files): Add tests/macros.h.
22814
22815 2011-02-08  Bruno Haible  <bruno@clisp.org>
22816
22817         ino-map tests: Refactor.
22818         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
22819         unnecessary includes.
22820         (ASSERT): Remove macro.
22821         (main): Make C90 compliant by avoiding variable declaration after
22822         statement.
22823         * modules/ino-map-tests (Files): Add tests/macros.h.
22824
22825 2011-02-08  Jim Meyering  <meyering@redhat.com>
22826
22827         di-set: add "const" to a cast
22828         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
22829         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
22830
22831 2011-02-06  Bruno Haible  <bruno@clisp.org>
22832
22833         Rename module 'wctype' to 'wctype-h'.
22834         * modules/wctype-h: Renamed from modules/wctype.
22835         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
22836         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
22837         (Files, Depends-on, Makefile.am): Update.
22838         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
22839         (Files, Makefile.am): Update.
22840         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
22841         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
22842         * doc/posix-headers/wctype.texi: Update.
22843         * doc/posix-functions/iswalnum.texi: Update.
22844         * doc/posix-functions/iswalpha.texi: Update.
22845         * doc/posix-functions/iswblank.texi: Update.
22846         * doc/posix-functions/iswcntrl.texi: Update.
22847         * doc/posix-functions/iswdigit.texi: Update.
22848         * doc/posix-functions/iswgraph.texi: Update.
22849         * doc/posix-functions/iswlower.texi: Update.
22850         * doc/posix-functions/iswprint.texi: Update.
22851         * doc/posix-functions/iswpunct.texi: Update.
22852         * doc/posix-functions/iswspace.texi: Update.
22853         * doc/posix-functions/iswupper.texi: Update.
22854         * doc/posix-functions/iswxdigit.texi: Update.
22855         * doc/posix-functions/towlower.texi: Update.
22856         * doc/posix-functions/towupper.texi: Update.
22857         * NEWS: Mention the change.
22858         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
22859         * modules/mbchar (Dependencies): Likewise.
22860         * modules/mbswidth (Dependencies): Likewise.
22861         * modules/quotearg (Dependencies): Likewise.
22862         * modules/regex (Dependencies): Likewise.
22863         * modules/wcscasecmp (Dependencies): Likewise.
22864         * modules/wcsncasecmp (Dependencies): Likewise.
22865         * modules/wcwidth (Dependencies): Likewise.
22866
22867 2011-02-06  Bruno Haible  <bruno@clisp.org>
22868
22869         New module 'wcswidth'.
22870         * modules/wcswidth: New file.
22871         * lib/wchar.in.h (wcswidth): New declaration.
22872         * lib/wcswidth.c: New file.
22873         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
22874         * m4/wcswidth.m4: New file.
22875         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
22876         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
22877         REPLACE_WCSWIDTH.
22878         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
22879         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
22880         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
22881         * doc/posix-functions/wcswidth.texi: Mention the new module.
22882
22883 2011-02-06  Bruno Haible  <bruno@clisp.org>
22884
22885         New module 'wcstok'.
22886         * modules/wcstok: New file.
22887         * lib/wchar.in.h (wcstok): New declaration.
22888         * lib/wcstok.c: New file.
22889         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
22890         * m4/wcstok.m4: New file.
22891         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
22892         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
22893         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
22894         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
22895         * doc/posix-functions/wcstok.texi: Mention the new module.
22896
22897 2011-02-06  Bruno Haible  <bruno@clisp.org>
22898
22899         New module 'wcsstr'.
22900         * modules/wcsstr: New file.
22901         * lib/wchar.in.h (wcsstr): New declaration.
22902         * lib/wcsstr.c: New file.
22903         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
22904         * m4/wcsstr.m4: New file.
22905         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
22906         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
22907         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
22908         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
22909         * doc/posix-functions/wcsstr.texi: Mention the new module.
22910
22911 2011-02-06  Bruno Haible  <bruno@clisp.org>
22912
22913         New module 'wcspbrk'.
22914         * modules/wcspbrk: New file.
22915         * lib/wchar.in.h (wcspbrk): New declaration.
22916         * lib/wcspbrk.c: New file.
22917         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
22918         * m4/wcspbrk.m4: New file.
22919         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
22920         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
22921         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
22922         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
22923         * doc/posix-functions/wcspbrk.texi: Mention the new module.
22924
22925 2011-02-06  Bruno Haible  <bruno@clisp.org>
22926
22927         New module 'wcsspn'.
22928         * modules/wcsspn: New file.
22929         * lib/wchar.in.h (wcsspn): New declaration.
22930         * lib/wcsspn.c: New file.
22931         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
22932         * m4/wcsspn.m4: New file.
22933         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
22934         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
22935         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
22936         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
22937         * doc/posix-functions/wcsspn.texi: Mention the new module.
22938
22939 2011-02-06  Bruno Haible  <bruno@clisp.org>
22940
22941         New module 'wcscspn'.
22942         * modules/wcscspn: New file.
22943         * lib/wchar.in.h (wcscspn): New declaration.
22944         * lib/wcscspn.c: New file.
22945         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
22946         * m4/wcscspn.m4: New file.
22947         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
22948         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
22949         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
22950         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
22951         * doc/posix-functions/wcscspn.texi: Mention the new module.
22952
22953 2011-02-06  Bruno Haible  <bruno@clisp.org>
22954
22955         New module 'wcsrchr'.
22956         * modules/wcsrchr: New file.
22957         * lib/wchar.in.h (wcsrchr): New declaration.
22958         * lib/wcsrchr.c: New file.
22959         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
22960         * m4/wcsrchr.m4: New file.
22961         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
22962         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
22963         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
22964         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
22965         * doc/posix-functions/wcsrchr.texi: Mention the new module.
22966
22967 2011-02-06  Bruno Haible  <bruno@clisp.org>
22968
22969         New module 'wcschr'.
22970         * modules/wcschr: New file.
22971         * lib/wchar.in.h (wcschr): New declaration.
22972         * lib/wcschr.c: New file.
22973         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
22974         * m4/wcschr.m4: New file.
22975         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
22976         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
22977         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
22978         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
22979         * doc/posix-functions/wcschr.texi: Mention the new module.
22980
22981 2011-02-06  Bruno Haible  <bruno@clisp.org>
22982
22983         New module 'wcsdup'.
22984         * modules/wcsdup: New file.
22985         * lib/wchar.in.h (wcsdup): New declaration.
22986         * lib/wcsdup.c: New file.
22987         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
22988         * m4/wcsdup.m4: New file.
22989         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
22990         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
22991         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
22992         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
22993         * doc/posix-functions/wcsdup.texi: Mention the new module.
22994
22995 2011-02-06  Bruno Haible  <bruno@clisp.org>
22996
22997         New module 'wcsxfrm'.
22998         * modules/wcsxfrm: New file.
22999         * lib/wchar.in.h (wcsxfrm): New declaration.
23000         * lib/wcsxfrm.c: New file.
23001         * lib/wcsxfrm-impl.h: New file.
23002         * m4/wcsxfrm.m4: New file.
23003         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23004         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23005         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23006         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23007         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23008
23009 2011-02-06  Bruno Haible  <bruno@clisp.org>
23010
23011         New module 'wcscoll'.
23012         * modules/wcscoll: New file.
23013         * lib/wchar.in.h (wcscoll): New declaration.
23014         * lib/wcscoll.c: New file.
23015         * lib/wcscoll-impl.h: New file.
23016         * m4/wcscoll.m4: New file.
23017         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23018         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23019         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23020         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23021         * doc/posix-functions/wcscoll.texi: Mention the new module.
23022
23023 2011-02-06  Bruno Haible  <bruno@clisp.org>
23024
23025         New module 'wcsncasecmp'.
23026         * modules/wcsncasecmp: New file.
23027         * lib/wchar.in.h (wcsncasecmp): New declaration.
23028         * lib/wcsncasecmp.c: New file.
23029         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23030         * m4/wcsncasecmp.m4: New file.
23031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23034         HAVE_WCSNCASECMP.
23035         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23036         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23037
23038 2011-02-06  Bruno Haible  <bruno@clisp.org>
23039
23040         New module 'wcscasecmp'.
23041         * modules/wcscasecmp: New file.
23042         * lib/wchar.in.h (wcscasecmp): New declaration.
23043         * lib/wcscasecmp.c: New file.
23044         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23045         * m4/wcscasecmp.m4: New file.
23046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23048         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23049         HAVE_WCSCASECMP.
23050         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23051         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23052
23053 2011-02-05  Bruno Haible  <bruno@clisp.org>
23054
23055         New module 'wcsncmp'.
23056         * modules/wcsncmp: New file.
23057         * lib/wchar.in.h (wcsncmp): New declaration.
23058         * lib/wcsncmp.c: New file.
23059         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23060         * m4/wcsncmp.m4: New file.
23061         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23062         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23063         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23064         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23065         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23066
23067 2011-02-05  Bruno Haible  <bruno@clisp.org>
23068
23069         New module 'wcscmp'.
23070         * modules/wcscmp: New file.
23071         * lib/wchar.in.h (wcscmp): New declaration.
23072         * lib/wcscmp.c: New file.
23073         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23074         * m4/wcscmp.m4: New file.
23075         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23076         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23077         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23078         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23079         * doc/posix-functions/wcscmp.texi: Mention the new module.
23080
23081 2011-02-05  Bruno Haible  <bruno@clisp.org>
23082
23083         New module 'wcsncat'.
23084         * modules/wcsncat: New file.
23085         * lib/wchar.in.h (wcsncat): New declaration.
23086         * lib/wcsncat.c: New file.
23087         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23088         * m4/wcsncat.m4: New file.
23089         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23090         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23091         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23092         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23093         * doc/posix-functions/wcsncat.texi: Mention the new module.
23094
23095 2011-02-05  Bruno Haible  <bruno@clisp.org>
23096
23097         New module 'wcscat'.
23098         * modules/wcscat: New file.
23099         * lib/wchar.in.h (wcscat): New declaration.
23100         * lib/wcscat.c: New file.
23101         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23102         * m4/wcscat.m4: New file.
23103         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23104         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23105         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23106         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23107         * doc/posix-functions/wcscat.texi: Mention the new module.
23108
23109 2011-02-05  Bruno Haible  <bruno@clisp.org>
23110
23111         New module 'wcpncpy'.
23112         * modules/wcpncpy: New file.
23113         * lib/wchar.in.h (wcpncpy): New declaration.
23114         * lib/wcpncpy.c: New file.
23115         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23116         * m4/wcpncpy.m4: New file.
23117         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23118         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23119         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23120         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23121         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23122
23123 2011-02-05  Bruno Haible  <bruno@clisp.org>
23124
23125         New module 'wcsncpy'.
23126         * modules/wcsncpy: New file.
23127         * lib/wchar.in.h (wcsncpy): New declaration.
23128         * lib/wcsncpy.c: New file.
23129         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23130         * m4/wcsncpy.m4: New file.
23131         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23132         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23133         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23134         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23135         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23136
23137 2011-02-05  Bruno Haible  <bruno@clisp.org>
23138
23139         New module 'wcpcpy'.
23140         * modules/wcpcpy: New file.
23141         * lib/wchar.in.h (wcpcpy): New declaration.
23142         * lib/wcpcpy.c: New file.
23143         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23144         * m4/wcpcpy.m4: New file.
23145         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23146         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23147         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23148         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23149         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23150
23151 2011-02-05  Bruno Haible  <bruno@clisp.org>
23152
23153         New module 'wcscpy'.
23154         * modules/wcscpy: New file.
23155         * lib/wchar.in.h (wcscpy): New declaration.
23156         * lib/wcscpy.c: New file.
23157         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23158         * m4/wcscpy.m4: New file.
23159         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23160         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23161         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23162         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23163         * doc/posix-functions/wcscpy.texi: Mention the new module.
23164
23165 2011-02-05  Bruno Haible  <bruno@clisp.org>
23166
23167         New module 'wcsnlen'.
23168         * modules/wcsnlen: New file.
23169         * lib/wchar.in.h (wcsnlen): New declaration.
23170         * lib/wcsnlen.c: New file.
23171         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23172         * m4/wcsnlen.m4: New file.
23173         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23174         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23175         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23176         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23177         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23178
23179 2011-02-05  Bruno Haible  <bruno@clisp.org>
23180
23181         New module 'wcslen'.
23182         * modules/wcslen: New file.
23183         * lib/wchar.in.h (wcslen): New declaration.
23184         * lib/wcslen.c: New file.
23185         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23186         * m4/wcslen.m4: New file.
23187         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23188         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23189         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23190         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23191         * doc/posix-functions/wcslen.texi: Mention the new module.
23192
23193 2011-02-05  Bruno Haible  <bruno@clisp.org>
23194
23195         New module 'wmemset'.
23196         * modules/wmemset: New file.
23197         * lib/wchar.in.h (wmemset): New declaration.
23198         * lib/wmemset.c: New file.
23199         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23200         * m4/wmemset.m4: New file.
23201         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23202         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23203         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23204         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23205         * doc/posix-functions/wmemset.texi: Mention the new module.
23206
23207 2011-02-05  Bruno Haible  <bruno@clisp.org>
23208
23209         New module 'wmemmove'.
23210         * modules/wmemmove: New file.
23211         * lib/wchar.in.h (wmemmove): New declaration.
23212         * lib/wmemmove.c: New file.
23213         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23214         * m4/wmemmove.m4: New file.
23215         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23216         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23217         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23218         HAVE_WMEMMOVE.
23219         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23220         * doc/posix-functions/wmemmove.texi: Mention the new module.
23221
23222 2011-02-05  Bruno Haible  <bruno@clisp.org>
23223
23224         New module 'wmemcpy'.
23225         * modules/wmemcpy: New file.
23226         * lib/wchar.in.h (wmemcpy): New declaration.
23227         * lib/wmemcpy.c: New file.
23228         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23229         * m4/wmemcpy.m4: New file.
23230         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23231         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23232         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23233         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23234         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23235
23236 2011-02-05  Bruno Haible  <bruno@clisp.org>
23237
23238         New module 'wmemcmp'.
23239         * modules/wmemcmp: New file.
23240         * lib/wchar.in.h (wmemcmp): New declaration.
23241         * lib/wmemcmp.c: New file.
23242         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23243         * m4/wmemcmp.m4: New file.
23244         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23245         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23246         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23247         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23248         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23249
23250 2011-02-07  Jim Meyering  <meyering@redhat.com>
23251
23252         di-set, ino-map: new modules, from coreutils
23253         * lib/di-set.c: New file.
23254         * lib/di-set.h: Likewise.
23255         * lib/ino-map.c: Likewise.
23256         * lib/ino-map.h: Likewise.
23257         * modules/di-set: Likewise.
23258         * modules/di-set-tests: Likewise.
23259         * modules/ino-map: Likewise.
23260         * modules/ino-map-tests: Likewise.
23261         * tests/test-di-set.c: Likewise.
23262         * tests/test-ino-map.c: Likewise.
23263
23264 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23265
23266         getloadavg: merge minor changes from Emacs
23267
23268         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23269         (getloadavg): Use memset, not bzero.
23270
23271         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23272         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23273         clash (bug#86).
23274
23275 2010-11-14  Bruno Haible  <bruno@clisp.org>
23276
23277         Allow multiple gnulib generated replacements to coexist.
23278         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23279         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23280         * lib/langinfo.in.h (nl_item): Likewise.
23281         * lib/math.in.h (_NaN, NAN): Likewise.
23282         * lib/netdb.in.h (struct addrinfo): Likewise.
23283         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23284         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23285         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23286         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23287         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23288         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23289         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23290         pthread_mutexattr_init, pthread_mutexattr_settype,
23291         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23292         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23293         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23294         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23295         * lib/sched.in.h (struct sched_param): Likewise.
23296         * lib/se-selinux.in.h (security_class_t, security_context_t,
23297         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23298         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23299         lsetfilecon, fsetfilecon, security_check_context,
23300         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23301         Likewise.
23302         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23303         Likewise.
23304         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23305         _gl_function_taking_int_returning_void_t, union sigval,
23306         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23307         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23308         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23309         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23310         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23311         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23312         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23313         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23314         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23315         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23316         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23317         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23318         socklen_t, rpl_fd_isset): Likewise.
23319         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23320         * lib/sys_time.in.h (struct timeval): Likewise.
23321         * lib/sys_times.in.h (struct tms): Likewise.
23322         * lib/sys_utsname.in.h (struct utsname):
23323         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23324         * lib/unistd.in.h (getpagesize): Likewise.
23325         * lib/wchar.in.h (mbstate_t): Likewise.
23326         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23327         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23328         towlower, towupper): Likewise.
23329         Reported by Sam Steingold <sds@gnu.org>.
23330
23331 2011-02-05  Eric Blake  <eblake@redhat.com>
23332
23333         unsetenv: work around Haiku issues
23334         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23335         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23336
23337 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23338
23339         libposix: avoid calling error() within libposix
23340         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23341         is defined.
23342
23343 2011-02-05  Eric Blake  <eblake@redhat.com>
23344
23345         strerror_r-posix: port to cygwin
23346         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23347         implementation.
23348         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23349         * tests/test-strerror_r.c (main): Fix test.
23350         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23351         issue.
23352
23353 2011-02-05  Bruno Haible  <bruno@clisp.org>
23354
23355         New module 'wmemchr'.
23356         * modules/wmemchr: New file.
23357         * lib/wchar.in.h (wmemchr): New declaration.
23358         * lib/wmemchr.c: New file.
23359         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23360         * m4/wmemchr.m4: New file.
23361         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23362         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23363         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23364         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23365         * doc/posix-functions/wmemchr.texi: Mention the new module.
23366
23367 2011-02-04  Eric Blake  <eblake@redhat.com>
23368
23369         fdopendir: detect FreeBSD bug
23370         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23371         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23372
23373 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23374
23375         stdbool: do not define HAVE_STDBOOL_H
23376         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23377         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23378         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23379         imported from the latest Autoconf git.  It was motivated by Emacs,
23380         which uses gnulib but does not need HAVE_STDBOOL_H.
23381
23382 2011-02-04  Bruno Haible  <bruno@clisp.org>
23383
23384         wcsnrtombs: Prepare for new module wwcsnrtombs.
23385         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23386         * lib/wcsnrtombs.c: Include it.
23387         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23388
23389         wcsrtombs: Prepare for new module wwcsrtombs.
23390         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23391         * lib/wcsrtombs.c: Include it.
23392         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23393
23394         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23395         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23396         * lib/mbsnrtowcs.c: Include it.
23397         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23398
23399         mbsrtowcs: Prepare for new module mbsrtowwcs.
23400         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23401         * lib/mbsrtowcs.c: Include it.
23402         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23403
23404 2011-02-04  Bruno Haible  <bruno@clisp.org>
23405
23406         vasnprintf: Reduce use of malloc for small format strings.
23407         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23408         (arguments): Add room for the first 7 arguments.
23409         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23410         (char_directives, u8_directives, u16_directives, u32_directives): Add
23411         room for the first 7 directives.
23412         * lib/printf-parse.c: Include <string.h>.
23413         (PRINTF_PARSE): Change memory handling code so that it uses the first
23414         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23415         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23416         Reported by Pádraig Brady <P@draigbrady.com>.
23417
23418 2011-01-31  Eric Blake  <eblake@redhat.com>
23419
23420         dup2: work around Haiku bug
23421         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23422         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23423         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23424         * tests/test-dup2.c (main): Enhance test.
23425
23426 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23427
23428         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23429         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23430         declared by eglibc 2.11.2.
23431         * lib/stdio.in.h: Likewise.
23432
23433 2011-01-31  Eric Blake  <eblake@redhat.com>
23434
23435         ignore-value: add missing test dependency
23436         * tests/test-ignore-value.c: Revert previous change; stdio.h
23437         provides off_t.
23438         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23439
23440 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23441
23442         mktime: clarify long_int width checking
23443         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23444         the top level, to make it clearer that the assumption about
23445         long_int width is being checked.  See
23446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23447
23448 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23449
23450         ignore-value: Fix self-test.
23451         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23452
23453 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23454
23455         TYPE_MAXIMUM: avoid theoretically undefined behavior
23456         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23457         negative number, which the C Standard says has undefined behavior.
23458         In practice this is not a problem, but might as well do it by the book.
23459         Reported by Rich Felker and Eric Blake; see
23460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23461         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23462         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23463         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23464         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23465         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23466         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23467
23468         mktime: #undef mktime before #defining it
23469         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23470
23471         mktime: systematically normalize tm_isdst comparisons
23472         * lib/mktime.c (isdst_differ): New function.
23473         (__mktime_internal): Use it systematically for all isdst comparisons.
23474         This completes the fix for libc BZ #6723, and removes the need for
23475         normalizing tm_isdst.  See
23476         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23477         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23478
23479         mktime: fix some integer overflow issues and sidestep the rest
23480
23481         This was prompted by a bug report by Benjamin Lindner for MinGW
23482         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23483         His bug is due to signed integer overflow (0 - INT_MIN), and I
23484         I scanned through mktime.c looking for other integer overflow
23485         problems, fixing all the bugs I found.
23486
23487         Although the C Standard says the resulting code is still not safe
23488         in the presence of integer overflow, in practice it should be good
23489         enough for all real-world two's-complement implementations, except
23490         for debugging environments that deliberately trap on integer
23491         overflow (e.g., gcc -ftrapv).
23492
23493         * lib/mktime.c (WRAPV): New macro.
23494         (SHR): Also check that long_int and time_t shift right in the
23495         usual way, before using the fast-but-unportable method.
23496         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23497         used.  The code already assumed two's complement, so there's
23498         no need to test for alternatives.  All uses removed.
23499         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23500         the C standard.  Problem reported by Rich Felker in
23501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23502         (twos_complement_arithmetic): Also check long_int and time_t.
23503         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23504         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23505         (__mktime_internal): Avoid integer overflow with unary subtraction
23506         in two instances where -1 - X is an adequate replacement for -X,
23507         since the calculations are approximate.
23508
23509 2011-01-29  Eric Blake  <eblake@redhat.com>
23510
23511         mktime: avoid infinite loop
23512         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23513         type; behavior is still undefined but portable to all known targets.
23514         Reported by Rich Felker.
23515
23516 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23517
23518         rename, unlink, same-inode: Relicense.
23519         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23520         * modules/unlink (License): Likewise.
23521         * modules/same-inode (License): Likewise.
23522
23523 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23524
23525         mktime: avoid problems on NetBSD 5 / i386
23526         * lib/mktime.c (long_int): New type.  This works around a problem
23527         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23528         but time_t is 64 bits, and where I expect the existing code is
23529         wrong in some cases.
23530         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23531         (ydhms_diff): Bring back the compile-time check for wide-enough
23532         year and yday.
23533
23534         mktime: fix misspelling in comment
23535         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23536         This merges all recent glibc changes of importance.
23537
23538 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23539
23540         move-if-change: cope with concurrent mv of identical file.
23541         * build-aux/move-if-change (CMPPROG): Accept environment
23542         variable as an override for `cmp'.
23543         (usage): Document CMPPROG.
23544         Adjust comparison to drop stdout.  Cope with failure of mv if
23545         the target file exists and is identical to the source, for
23546         parallel builds.
23547         Report from H.J. Lu against binutils in PR binutils/12283.
23548
23549 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23550
23551         * users.txt: Mention sharutils.
23552
23553 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23554
23555         * users.txt: Mention OATH Toolkit.
23556
23557 2011-01-27  Bruno Haible  <bruno@clisp.org>
23558
23559         Prepare for supporting FreeBSD 10.
23560         * build-aux/config.libpath: Remove handling of freebsd1*.
23561
23562 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23563
23564         Prepare for supporting FreeBSD 10.
23565         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23566         match FreeBSD 10.0.
23567
23568 2011-01-27  Bruno Haible  <bruno@clisp.org>
23569
23570         vma-iter, get-rusage-as: Add OpenBSD support.
23571         * modules/vma-iter (configure.ac): Test for mquery.
23572         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23573         * lib/vma-iter.c: Include <sys/mman.h>.
23574         (vma_iterate): Add an implementation based on mquery().
23575         * lib/resource-ext.h (get_rusage_as): Update comments.
23576         * lib/get-rusage-as.c: Likewise.
23577         * lib/get-rusage-data.c: Likewise.
23578
23579 2011-01-26  Karl Berry  <karl@gnu.org>
23580
23581         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23582         variables to make it easier to override the makeinfo program used.
23583
23584 2011-01-26  Eric Blake  <eblake@redhat.com>
23585
23586         fcntl: work around Haiku F_DUPFD bugs
23587         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23588         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23589         cloexec bit on duplication.
23590         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23591
23592 2011-01-26  Bruno Haible  <bruno@clisp.org>
23593
23594         Enable memory leak tests on AIX.
23595         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23596         * tests/test-fprintf-posix3.c (main): Likewise.
23597
23598 2011-01-26  Bruno Haible  <bruno@clisp.org>
23599
23600         Tests for module 'get-rusage-data'.
23601         * modules/get-rusage-data-tests: New file.
23602         * tests/test-get-rusage-data.c: New file.
23603
23604         New module 'get-rusage-data'.
23605         * lib/resource-ext.h (get_rusage_data): New declaration.
23606         * lib/get-rusage-data.c: New file.
23607         * modules/get-rusage-data: New file.
23608
23609 2011-01-25  Bruno Haible  <bruno@clisp.org>
23610
23611         get-rusage-as: Allow for easier testing.
23612         * lib/resource-ext.h (get_rusage_as): Add comment.
23613         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
23614         (main): New function for interactive testing.
23615
23616 2011-01-25  Bruno Haible  <bruno@clisp.org>
23617
23618         vma-iter: Treat Haiku like BeOS.
23619         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
23620         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
23621
23622 2011-01-25  Eric Blake  <eblake@redhat.com>
23623
23624         c-stack: fix regression on cygwin when libsigsegv is present
23625         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
23626
23627 2011-01-24  Bruno Haible  <bruno@clisp.org>
23628
23629         vma-iter: Avoid empty intervals.
23630         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
23631         on an empty interval.
23632
23633 2011-01-24  Jim Meyering  <meyering@redhat.com>
23634
23635         u64: remove unnecessary #include
23636         * lib/u64.h: Don't include <stddef.h>.  It was not used.
23637
23638 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23639
23640         Allow the user to avoid the HAVE_RAW_DECL_* macros.
23641         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
23642
23643 2011-01-23  Bruno Haible  <bruno@clisp.org>
23644
23645         New module 'vma-iter'.
23646         * lib/vma-iter.h: New file.
23647         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
23648         * modules/vma-iter: New file.
23649         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
23650         for get_rusage_as_via_iterator.
23651         (vma_iterate_callback): New function.
23652         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
23653         * modules/get-rusage-as (Depends-on): Add vma-iter.
23654
23655 2011-01-23  Bruno Haible  <bruno@clisp.org>
23656
23657         uninorm: Tweak includes.
23658         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
23659         Reported by Jim Meyering.
23660
23661 2011-01-23  Bruno Haible  <bruno@clisp.org>
23662
23663         get-rusage-as: Improve on NetBSD.
23664         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
23665         /proc, like on FreeBSD.
23666
23667 2011-01-23  Jim Meyering  <meyering@redhat.com>
23668
23669         xreadlink.h: remove unnecessary #include
23670         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
23671
23672         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
23673         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
23674
23675 2011-01-23  Bruno Haible  <bruno@clisp.org>
23676
23677         get-rusage-as: Fix bug.
23678         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
23679         original limit when aborting the first loop.
23680
23681 2011-01-23  Bruno Haible  <bruno@clisp.org>
23682
23683         wctype: Ensure valid C syntax.
23684         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
23685         unconditionally, instead of gl_NEXT_HEADERS conditionally.
23686
23687 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
23688
23689         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
23690         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
23691         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
23692         as they are needed only for configure's test case.
23693         This removes two unnecessary symbols from config.h.
23694
23695         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
23696         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
23697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
23698         AC_CHECK_HEADERS_ONCE on a header that we also invoke
23699         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
23700         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
23701         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
23702         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23703         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23704         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23705         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23706         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23707         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23708         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23709         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23710         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23711         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23712         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23713
23714 2011-01-21  Eric Blake  <eblake@redhat.com>
23715
23716         maintainer-makefile: work with older git for submodule check
23717         * top/maint.mk (public-submodule-commit): Rewrite to avoid
23718         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
23719         Reported by Matthias Bolte.
23720
23721         bootstrap: minor portability fixes
23722         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
23723         (usage): Omit leading capital and trailing . on help phrases, per
23724         GNU Coding Standards.
23725         (check_versions, top level): Prefix messages with script name.
23726
23727 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
23728
23729         bootstrap: support --no-git option
23730         * build-aux/bootstrap: Add --no-git option, to be used when
23731         --gnulib-srcdir points to the exact desired checkout.
23732
23733 2011-01-21  Eric Blake  <eblake@redhat.com>
23734
23735         strerror_r-posix: work with glibc 2.13
23736         * lib/strerror_r.c (strerror_r): Fix return type.
23737
23738 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23739             Bruno Haible  <bruno@clisp.org>
23740
23741         uN_strstr: New unit tests.
23742         * modules/unistr/u8-strstr-tests: New file.
23743         * modules/unistr/u16-strstr-tests: New file.
23744         * modules/unistr/u32-strstr-tests: New file.
23745         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
23746         * tests/unistr/test-u8-strstr.c: New file.
23747         * tests/unistr/test-u16-strstr.c: New file.
23748         * tests/unistr/test-u32-strstr.c: New file.
23749
23750 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23751             Bruno Haible  <bruno@clisp.org>
23752
23753         Make uN_strstr functions O(n) worst-case.
23754         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
23755         16-bit and 32-bit unit cases, use the unibyte algorithm from
23756         lib/mbsstr.c.
23757         * lib/unistr/u8-strstr.c: Include <string.h>.
23758         (UNIT_IS_UINT8_T): New macro.
23759         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
23760         (U_STRLEN, U_STRNLEN): New macros.
23761         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
23762         (U_STRLEN, U_STRNLEN): New macros.
23763         * modules/unistr/u8-strstr (Depends-on): Add strstr.
23764         (configure.ac): Update required libunistring version.
23765         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
23766         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
23767         malloca.
23768         (configure.ac): Update required libunistring version.
23769         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
23770         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
23771         malloca.
23772         (configure.ac): Update required libunistring version.
23773
23774 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23775             Bruno Haible  <bruno@clisp.org>
23776
23777         Prepare for faster uN_strstr functions.
23778         * lib/str-kmp.h: Support definable UNITs.
23779         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
23780         needle_len argument.
23781         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
23782         * lib/mbscasestr.c (mbscasestr): Likewise.
23783
23784 2011-01-21  Pádraig Brady <P@draigBrady.com>
23785
23786         malloca-tests: make faster by unsetting MALLOC_PERTURB_
23787         * tests/test-malloca.c (main): Unset the environment variable
23788         to greatly speed up the test.
23789         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
23790         * modules/malloca-tests: Depend on unsetenv.
23791
23792 2011-01-21  Pádraig Brady <P@draigBrady.com>
23793
23794         ignore-value: remove stdint dependency
23795         * lib/ignore-value.h: Remove <stdint.h>
23796         * modules/ignore-value: Remove stdint dependency.
23797
23798 2011-01-21  Jim Meyering  <meyering@redhat.com>
23799
23800         maint.mk: adjust variable name to be consistent with other gl_ vars
23801         * top/maint.mk (gl_public_submodule_commit): Rename the variable
23802         to be lower case.
23803
23804 2011-01-20  Jim Meyering  <meyering@redhat.com>
23805
23806         maint.mk: make "check" depend on public-submodule-commit by default
23807         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
23808
23809 2011-01-20  Bruno Haible  <bruno@clisp.org>
23810
23811         mbfile, mbiter: Complete change from 2008-12-21.
23812         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
23813         * m4/mbiter.m4 (gl_MBITER): Likewise.
23814
23815 2011-01-20  Jim Meyering  <meyering@redhat.com>
23816
23817         init.sh: insert space between each function name and "()"
23818         * tests/init.sh: Make it a little easier to see that a function's
23819         name is "warn_", and not "warn" when looking at the first part of
23820         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
23821
23822 2011-01-20  Jim Meyering  <meyering@redhat.com>
23823
23824         mountlist: clean up code formatting
23825         * lib/mountlist.c (read_file_system_list): Split a long line,
23826         correct bracing style, use NULL in place of "(struct statfs *)0",
23827         don't parenthesize return value, add spaces around "=" and after
23828         ";-in-for-stmt".
23829
23830 2011-01-14  Markus Duft <mduft@gentoo.org>
23831
23832         mountlist: add support for Interix
23833         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
23834         Apply statvfs to all entries of /dev/fs.
23835         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
23836         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
23837
23838 2011-01-20  Jim Meyering  <meyering@redhat.com>
23839
23840         maint.mk: improve the public-submodule-commit rule
23841         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
23842         to suppress printing of its commands... unless V=1.
23843         Add git submodule's --quiet option to suppress printing of e.g.,
23844         "Entering gnulib" output.
23845         "cd" into $(srcdir) before running git submodule.
23846
23847 2011-01-20  Bruno Haible  <bruno@clisp.org>
23848
23849         include_next: Fix bug introduced on 2011-01-18.
23850         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
23851         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
23852         ac_cv_header_... variable if the second argument is not 'check'.
23853         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
23854         gl_NEXT_HEADERS_INTERNAL.
23855
23856 2011-01-20  Bruno Haible  <bruno@clisp.org>
23857
23858         Allow the user to avoid the GNULIB_TEST_* macros.
23859         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
23860         Suggested by Paul Eggert.
23861
23862 2011-01-14  Jim Meyering  <meyering@redhat.com>
23863
23864         bootstrap: avoid failure when there is no .gitmodules file
23865         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
23866         has been assigned to, even when its value is the empty string.
23867         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
23868         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
23869         Reported by John W. Eaton <jwe@gnu.org>.
23870
23871 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23872
23873         assume <ctype.h>, ..., <time.h> exist
23874         For years gnulib has been assuming the existence of the headers
23875         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
23876         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
23877         them, since they don't appear to be needed.
23878         * README (Portability guidelines): Document this.
23879         * lib/flock.c: Assume <fcntl.h> exists.
23880         * lib/regex_internal.h: Assume <locale.h> exists.
23881         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
23882         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
23883         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
23884         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
23885         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
23886         * m4/regex.m4 (gl_REGEX): Likewise.
23887         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
23888         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
23889         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
23890         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
23891         * tests/test-argp.c: Likewise.
23892         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
23893
23894         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
23895         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
23896         AA_APPLE_UNIVERSAL_BUILD.  See
23897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
23898         * NEWS: Document this.
23899
23900 2011-01-19  Eric Blake  <eblake@redhat.com>
23901
23902         c-stack: assume stack overflow if SA_SIGINFO unsupported
23903         * lib/c-stack.c (SIGACTION_WORKS): Rename...
23904         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
23905         sigaction will work.
23906         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
23907         behavior match Linux.
23908         * tests/test-c-stack.c (main): Prefer NULL for pointers.
23909
23910         stdbool-tests: accommodate Haiku
23911         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
23912
23913         binary-io: fix O_TEXT on Haiku
23914         * modules/binary-io (Depends-on): Add fcntl-h.
23915         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
23916         than blindly undefining O_TEXT.
23917         Reported by Scott McCreary.
23918
23919 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23920
23921         include_next: do not check for standard headers like stddef.h
23922
23923         I found this problem when modifying Emacs to use gnulib.
23924         I noticed that it added HAVE_STDDEF_H to config.h, even though
23925         gnulib always assumes <stddef.h> exists as per README and this
23926         symbol is unnecessary.
23927         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
23928         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
23929         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
23930         faster for headers like stddef.h that are known to exist.
23931         (gl_CHECK_NEXT_HEADERS): Use it.
23932         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
23933         rather than gl_CHECK_NEXT_HEADERS.
23934         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
23935         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
23936
23937 2011-01-18  Eric Blake  <eblake@redhat.com>
23938
23939         ansi-c++-opt: skip C++ dependency style if C++ is unused
23940         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
23941         tests when we know C++ compilation is not desired.
23942         Reported by Scott McCreary.
23943
23944 2011-01-18  Bruno Haible  <bruno@clisp.org>
23945
23946         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
23947         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
23948         (main): Perform test also when getrlimit and setrlimit don't exist or
23949         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
23950         limiting the address space size using setrlimit, compare the address
23951         space size before and after the the test.
23952         * tests/test-dprintf-posix2.c: Likewise.
23953         * tests/test-fprintf-posix3.sh: Update skip messages.
23954         * tests/test-dprintf-posix2.sh: Likewise.
23955         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
23956         * modules/dprintf-posix-tests (Depends-on): Likewise.
23957         Reported by Bruce Korb <bkorb@gnu.org> and
23958         Gary V. Vaughan <gary@gnu.org>.
23959
23960 2011-01-18  Bruno Haible  <bruno@clisp.org>
23961
23962         get-rusage-as: Improvement for Cygwin.
23963         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
23964         areas that are merely reserved.
23965
23966 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23967
23968         strftime: remove dependencies on multibyte modules
23969
23970         strftime depended on mbrlen, mbsinit, and wchar, but these modules
23971         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
23972         only if __osf__ is defined, and I suspect OSF doesn't need these
23973         other modules.  If my guess is wrong, we'll need to come up with a
23974         variant of strftime that doesn't need the multibyte modules.
23975
23976         I discovered this problem when attempting modify Emacs to use the
23977         strftime module.  With the previous gnulib, this caused Emacs to
23978         need 31 new files, ranging from lib/config.charset to
23979         m4/wint_t.m4.  This was overkill and I expect would be offputting
23980         to the Emacs maintainers.  After this change, only 6 new files are
23981         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
23982         stdbool.m4, and tm_gmtoff.m4.
23983
23984         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
23985         Suggested by Bruno Haible in
23986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
23987         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
23988         and do not check for wchar.h.
23989         * modules/strftime (Files): Remove m4/mbstate_t.m4.
23990         (Depends-on): Remove mbrlen, mbsinit, wchar.
23991
23992 2011-01-18  Bruno Haible  <bruno@clisp.org>
23993
23994         Tests for module 'get-rusage-as'.
23995         * modules/get-rusage-as-tests: New file.
23996         * tests/test-get-rusage-as.c: New file.
23997
23998         New module 'get-rusage-as'.
23999         * modules/get-rusage-as: New file.
24000         * lib/resource-ext.h: New file.
24001         * lib/get-rusage-as.c: New file.
24002
24003 2011-01-17  Eric Blake  <eblake@redhat.com>
24004
24005         sigaction: relax license from LGPLv3+ to LGPLv2+
24006         * modules/sigaction (License): Relax to LGPLv2+.
24007
24008 2011-01-14  Bruno Haible  <bruno@clisp.org>
24009
24010         filemode: Make function declarations usable in C++ mode.
24011         * lib/filemode.h: Enclose function declarations in extern "C" block.
24012         Reported by John W. Eaton <jwe@gnu.org>.
24013
24014 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24015
24016         save-cwd: no longer include "xgetcwd.h"
24017         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24018         This avoids a compilation failure in projects that use save-cwd
24019         without also using the xgetcwd module.
24020
24021 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24022
24023         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24024         This is so that a program like Emacs, which needs only dtoastr,
24025         does not have to bother with distributing and compiling ftoastr
24026         and ldtoastr.
24027         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24028         * modules/dtoastr, modules/ldtoastr: New files.
24029         * modules/ftoastr: Now works just for 'float'.
24030         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24031         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24032         dtoastr.c, ldtoastr.c.
24033
24034 2011-01-11  Jim Meyering  <meyering@redhat.com>
24035
24036         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24037         There is no need to work around the lack of the fchdir function,
24038         since gnulib can now provide a replacement when required.
24039         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24040         * modules/save-cwd (Depends-on): Add fchdir.
24041
24042 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24043
24044         openat, save-cwd: avoid xmalloc
24045
24046         This removes a direct (but undocumented) dependency of openat on
24047         xalloc, along with an indirect dependency via save-cwd.  It also
24048         removes a dependency of save-cwd on xgetcwd, and thereby
24049         indirectly on xalloc.  This change causes the openat substitute
24050         to fall back on save_cwd when memory is tight, and for save_cwd to
24051         fail instead of dying when memory is tight, but that's good enough.
24052         Problem and initial idea for fix reported by Bastien Roucaries in
24053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24054
24055         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24056         xalloc.h (for xmalloc).
24057         (openat_proc_name): Use malloc, not xmalloc.
24058         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24059         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24060
24061         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24062         This avoids heap allocation for file names whose lengths are in
24063         the range 512..1023, with the upper bound increasing to at most
24064         4031 depending on the platform's PATH_MAX.  (We do not want
24065         pathmax.h here as it might supply a non-constant PATH_MAX.)
24066         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24067         Perhaps they should be moved to malloca.h?
24068         (OPENAT_BUFFER_SIZE): Use them.
24069
24070 2011-01-10  Bruno Haible  <bruno@clisp.org>
24071
24072         doc: Update users.txt.
24073         * users.txt: Add recutils.
24074
24075 2011-01-09  Karl Berry  <karl@gnu.org>
24076
24077         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24078
24079         * doc/configmake.texi: New file.
24080         * doc/gnulib.texi: Include it.
24081         * modules/configmake: Move documentation from here.
24082
24083 2011-01-09  Bruno Haible  <bruno@clisp.org>
24084
24085         Update to Unicode 6.0.0.
24086         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24087         (get_lbp): Update for Unicode 6.0.0.
24088         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24089         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24090         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24091         U+11001, U+11038..U+11046. Remove U+06DE.
24092         (uc_width): Fix bounds of planes.
24093         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24094         lib/uniwidth/width.c.
24095         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24096         trailing whitespace removed.
24097         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24098         without comments, but with the original copyright notice.
24099         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24100         * lib/unicase/ignorable.h: Likewise.
24101         * lib/unicase/tocasefold.h: Likewise.
24102         * lib/unicase/tolower.h: Likewise.
24103         * lib/unicase/totitle.h: Likewise.
24104         * lib/unicase/toupper.h: Likewise.
24105         * lib/unictype/bidi_of.h: Likewise.
24106         * lib/unictype/blocks.h: Likewise.
24107         * lib/unictype/categ_C.h: Likewise.
24108         * lib/unictype/categ_Cn.h: Likewise.
24109         * lib/unictype/categ_L.h: Likewise.
24110         * lib/unictype/categ_Ll.h: Likewise.
24111         * lib/unictype/categ_Lm.h: Likewise.
24112         * lib/unictype/categ_Lo.h: Likewise.
24113         * lib/unictype/categ_Lu.h: Likewise.
24114         * lib/unictype/categ_M.h: Likewise.
24115         * lib/unictype/categ_Mc.h: Likewise.
24116         * lib/unictype/categ_Me.h: Likewise.
24117         * lib/unictype/categ_Mn.h: Likewise.
24118         * lib/unictype/categ_N.h: Likewise.
24119         * lib/unictype/categ_Nd.h: Likewise.
24120         * lib/unictype/categ_No.h: Likewise.
24121         * lib/unictype/categ_P.h: Likewise.
24122         * lib/unictype/categ_Po.h: Likewise.
24123         * lib/unictype/categ_S.h: Likewise.
24124         * lib/unictype/categ_Sc.h: Likewise.
24125         * lib/unictype/categ_Sk.h: Likewise.
24126         * lib/unictype/categ_Sm.h: Likewise.
24127         * lib/unictype/categ_So.h: Likewise.
24128         * lib/unictype/categ_of.h: Likewise.
24129         * lib/unictype/combining.h: Likewise.
24130         * lib/unictype/ctype_alnum.h: Likewise.
24131         * lib/unictype/ctype_alpha.h: Likewise.
24132         * lib/unictype/ctype_graph.h: Likewise.
24133         * lib/unictype/ctype_lower.h: Likewise.
24134         * lib/unictype/ctype_print.h: Likewise.
24135         * lib/unictype/ctype_punct.h: Likewise.
24136         * lib/unictype/ctype_upper.h: Likewise.
24137         * lib/unictype/decdigit.h: Likewise.
24138         * lib/unictype/digit.h: Likewise.
24139         * lib/unictype/numeric.h: Likewise.
24140         * lib/unictype/pr_alphabetic.h: Likewise.
24141         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24142         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24143         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24144         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24145         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24146         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24147         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24148         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24149         * lib/unictype/pr_case_ignorable.h: Likewise.
24150         * lib/unictype/pr_cased.h: Likewise.
24151         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24152         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24153         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24154         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24155         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24156         * lib/unictype/pr_combining.h: Likewise.
24157         * lib/unictype/pr_composite.h: Likewise.
24158         * lib/unictype/pr_currency_symbol.h: Likewise.
24159         * lib/unictype/pr_decimal_digit.h: Likewise.
24160         * lib/unictype/pr_deprecated.h: Likewise.
24161         * lib/unictype/pr_format_control.h: Likewise.
24162         * lib/unictype/pr_grapheme_base.h: Likewise.
24163         * lib/unictype/pr_grapheme_extend.h: Likewise.
24164         * lib/unictype/pr_grapheme_link.h: Likewise.
24165         * lib/unictype/pr_id_continue.h: Likewise.
24166         * lib/unictype/pr_id_start.h: Likewise.
24167         * lib/unictype/pr_ideographic.h: Likewise.
24168         * lib/unictype/pr_lowercase.h: Likewise.
24169         * lib/unictype/pr_math.h: Likewise.
24170         * lib/unictype/pr_numeric.h: Likewise.
24171         * lib/unictype/pr_other_alphabetic.h: Likewise.
24172         * lib/unictype/pr_other_id_continue.h: Likewise.
24173         * lib/unictype/pr_other_math.h: Likewise.
24174         * lib/unictype/pr_punctuation.h: Likewise.
24175         * lib/unictype/pr_sentence_terminal.h: Likewise.
24176         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24177         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24178         * lib/unictype/pr_unified_ideograph.h: Likewise.
24179         * lib/unictype/pr_uppercase.h: Likewise.
24180         * lib/unictype/pr_xid_continue.h: Likewise.
24181         * lib/unictype/pr_xid_start.h: Likewise.
24182         * lib/unictype/scripts.h: Likewise.
24183         * lib/unictype/scripts_byname.gperf: Likewise.
24184         * lib/unictype/sy_java_ident.h: Likewise.
24185         * lib/unigbrk/gbrkprop.h: Likewise.
24186         * lib/unilbrk/lbrkprop1.h: Likewise.
24187         * lib/unilbrk/lbrkprop2.h: Likewise.
24188         * lib/uninorm/decomposition-table2.h: Likewise.
24189         * lib/uniwbrk/wbrkprop.h: Likewise.
24190         * tests/unicase/test-cased.c: Likewise.
24191         * tests/unicase/test-ignorable.c: Likewise.
24192         * tests/unicase/test-uc_tolower.c: Likewise.
24193         * tests/unicase/test-uc_totitle.c: Likewise.
24194         * tests/unicase/test-uc_toupper.c: Likewise.
24195         * tests/unictype/test-categ_C.c: Likewise.
24196         * tests/unictype/test-categ_Cn.c: Likewise.
24197         * tests/unictype/test-categ_L.c: Likewise.
24198         * tests/unictype/test-categ_Ll.c: Likewise.
24199         * tests/unictype/test-categ_Lm.c: Likewise.
24200         * tests/unictype/test-categ_Lo.c: Likewise.
24201         * tests/unictype/test-categ_Lu.c: Likewise.
24202         * tests/unictype/test-categ_M.c: Likewise.
24203         * tests/unictype/test-categ_Mc.c: Likewise.
24204         * tests/unictype/test-categ_Me.c: Likewise.
24205         * tests/unictype/test-categ_Mn.c: Likewise.
24206         * tests/unictype/test-categ_N.c: Likewise.
24207         * tests/unictype/test-categ_Nd.c: Likewise.
24208         * tests/unictype/test-categ_No.c: Likewise.
24209         * tests/unictype/test-categ_P.c: Likewise.
24210         * tests/unictype/test-categ_Po.c: Likewise.
24211         * tests/unictype/test-categ_S.c: Likewise.
24212         * tests/unictype/test-categ_Sc.c: Likewise.
24213         * tests/unictype/test-categ_Sk.c: Likewise.
24214         * tests/unictype/test-categ_Sm.c: Likewise.
24215         * tests/unictype/test-categ_So.c: Likewise.
24216         * tests/unictype/test-ctype_alnum.c: Likewise.
24217         * tests/unictype/test-ctype_alpha.c: Likewise.
24218         * tests/unictype/test-ctype_graph.c: Likewise.
24219         * tests/unictype/test-ctype_lower.c: Likewise.
24220         * tests/unictype/test-ctype_print.c: Likewise.
24221         * tests/unictype/test-ctype_punct.c: Likewise.
24222         * tests/unictype/test-ctype_upper.c: Likewise.
24223         * tests/unictype/test-decdigit.h: Likewise.
24224         * tests/unictype/test-digit.h: Likewise.
24225         * tests/unictype/test-numeric.h: Likewise.
24226         * tests/unictype/test-pr_alphabetic.c: Likewise.
24227         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24228         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24229         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24230         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24231         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24232         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24233         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24234         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24235         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24236         * tests/unictype/test-pr_cased.c: Likewise.
24237         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24238         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24239         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24240         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24241         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24242         * tests/unictype/test-pr_combining.c: Likewise.
24243         * tests/unictype/test-pr_composite.c: Likewise.
24244         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24245         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24246         * tests/unictype/test-pr_deprecated.c: Likewise.
24247         * tests/unictype/test-pr_format_control.c: Likewise.
24248         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24249         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24250         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24251         * tests/unictype/test-pr_id_continue.c: Likewise.
24252         * tests/unictype/test-pr_id_start.c: Likewise.
24253         * tests/unictype/test-pr_ideographic.c: Likewise.
24254         * tests/unictype/test-pr_lowercase.c: Likewise.
24255         * tests/unictype/test-pr_math.c: Likewise.
24256         * tests/unictype/test-pr_numeric.c: Likewise.
24257         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24258         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24259         * tests/unictype/test-pr_other_math.c: Likewise.
24260         * tests/unictype/test-pr_punctuation.c: Likewise.
24261         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24262         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24263         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24264         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24265         * tests/unictype/test-pr_uppercase.c: Likewise.
24266         * tests/unictype/test-pr_xid_continue.c: Likewise.
24267         * tests/unictype/test-pr_xid_start.c: Likewise.
24268         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24269         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24270         changes.
24271         * lib/unictype/categ_Cc.h: Likewise.
24272         * lib/unictype/categ_Cf.h: Likewise.
24273         * lib/unictype/categ_Co.h: Likewise.
24274         * lib/unictype/categ_Cs.h: Likewise.
24275         * lib/unictype/categ_Lt.h: Likewise.
24276         * lib/unictype/categ_Nl.h: Likewise.
24277         * lib/unictype/categ_Pc.h: Likewise.
24278         * lib/unictype/categ_Pd.h: Likewise.
24279         * lib/unictype/categ_Pe.h: Likewise.
24280         * lib/unictype/categ_Pf.h: Likewise.
24281         * lib/unictype/categ_Pi.h: Likewise.
24282         * lib/unictype/categ_Ps.h: Likewise.
24283         * lib/unictype/categ_Z.h: Likewise.
24284         * lib/unictype/categ_Zl.h: Likewise.
24285         * lib/unictype/categ_Zp.h: Likewise.
24286         * lib/unictype/categ_Zs.h: Likewise.
24287         * lib/unictype/ctype_blank.h: Likewise.
24288         * lib/unictype/ctype_cntrl.h: Likewise.
24289         * lib/unictype/ctype_digit.h: Likewise.
24290         * lib/unictype/ctype_space.h: Likewise.
24291         * lib/unictype/ctype_xdigit.h: Likewise.
24292         * lib/unictype/mirror.h: Likewise.
24293         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24294         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24295         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24296         * lib/unictype/pr_bidi_control.h: Likewise.
24297         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24298         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24299         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24300         * lib/unictype/pr_bidi_pdf.h: Likewise.
24301         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24302         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24303         * lib/unictype/pr_dash.h: Likewise.
24304         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24305         * lib/unictype/pr_diacritic.h: Likewise.
24306         * lib/unictype/pr_extender.h: Likewise.
24307         * lib/unictype/pr_hex_digit.h: Likewise.
24308         * lib/unictype/pr_hyphen.h: Likewise.
24309         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24310         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24311         * lib/unictype/pr_ignorable_control.h: Likewise.
24312         * lib/unictype/pr_iso_control.h: Likewise.
24313         * lib/unictype/pr_join_control.h: Likewise.
24314         * lib/unictype/pr_left_of_pair.h: Likewise.
24315         * lib/unictype/pr_line_separator.h: Likewise.
24316         * lib/unictype/pr_logical_order_exception.h: Likewise.
24317         * lib/unictype/pr_non_break.h: Likewise.
24318         * lib/unictype/pr_not_a_character.h: Likewise.
24319         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24320         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24321         * lib/unictype/pr_other_id_start.h: Likewise.
24322         * lib/unictype/pr_other_lowercase.h: Likewise.
24323         * lib/unictype/pr_other_uppercase.h: Likewise.
24324         * lib/unictype/pr_paired_punctuation.h: Likewise.
24325         * lib/unictype/pr_paragraph_separator.h: Likewise.
24326         * lib/unictype/pr_pattern_syntax.h: Likewise.
24327         * lib/unictype/pr_pattern_white_space.h: Likewise.
24328         * lib/unictype/pr_private_use.h: Likewise.
24329         * lib/unictype/pr_quotation_mark.h: Likewise.
24330         * lib/unictype/pr_radical.h: Likewise.
24331         * lib/unictype/pr_soft_dotted.h: Likewise.
24332         * lib/unictype/pr_space.h: Likewise.
24333         * lib/unictype/pr_titlecase.h: Likewise.
24334         * lib/unictype/pr_variation_selector.h: Likewise.
24335         * lib/unictype/pr_white_space.h: Likewise.
24336         * lib/unictype/pr_zero_width.h: Likewise.
24337         * lib/unictype/sy_c_ident.h: Likewise.
24338         * lib/unictype/sy_c_whitespace.h: Likewise.
24339         * lib/unictype/sy_java_whitespace.h: Likewise.
24340         * lib/uninorm/composition-table.gperf: Likewise.
24341         * lib/uninorm/decomposition-table1.h: Likewise.
24342         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24343         LB8.
24344         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24345         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24346         * modules/unictype/*: Bump version number of expected libunistring
24347         version.
24348
24349 2011-01-09  Bruno Haible  <bruno@clisp.org>
24350
24351         Update to Unicode 5.2.0.
24352         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24353         trailing whitespace removed.
24354
24355 2011-01-09  Bruno Haible  <bruno@clisp.org>
24356
24357         New Unicode character properties, from Unicode 5.2.0.
24358         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24359         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24360         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24361         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24362         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24363         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24364         uc_is_property_cased, uc_is_property_case_ignorable,
24365         uc_is_property_changes_when_lowercased,
24366         uc_is_property_changes_when_uppercased,
24367         uc_is_property_changes_when_titlecased,
24368         uc_is_property_changes_when_casefolded,
24369         uc_is_property_changes_when_casemapped): New declarations.
24370         * lib/unictype/pr_byname.gperf: Add the new properties.
24371         * modules/unictype/property-byname (Depends-on): Depend on the new
24372         properties modules.
24373         * modules/unictype/property-all (Depends-on): Likewise.
24374         * MODULES.html.sh (Unicode string functions): Add
24375         unictype/property-case-ignorable, unictype/property-cased,
24376         unictype/property-changes-when-casefolded,
24377         unictype/property-changes-when-casemapped,
24378         unictype/property-changes-when-lowercased,
24379         unictype/property-changes-when-titlecased,
24380         unictype/property-changes-when-uppercased.
24381
24382         New module 'unictype/property-changes-when-casemapped'.
24383         * modules/unictype/property-changes-when-casemapped: New file.
24384         * lib/unictype/pr_changes_when_casemapped.c: New file.
24385         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24386         generated by gen-uni-tables.
24387         * modules/unictype/property-changes-when-casemapped-tests: New file.
24388         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24389         automatically generated by gen-uni-tables.
24390
24391         New module 'unictype/property-changes-when-casefolded'.
24392         * modules/unictype/property-changes-when-casefolded: New file.
24393         * lib/unictype/pr_changes_when_casefolded.c: New file.
24394         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24395         generated by gen-uni-tables.
24396         * modules/unictype/property-changes-when-casefolded-tests: New file.
24397         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24398         automatically generated by gen-uni-tables.
24399
24400         New module 'unictype/property-changes-when-titlecased'.
24401         * modules/unictype/property-changes-when-titlecased: New file.
24402         * lib/unictype/pr_changes_when_titlecased.c: New file.
24403         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24404         generated by gen-uni-tables.
24405         * modules/unictype/property-changes-when-titlecased-tests: New file.
24406         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24407         automatically generated by gen-uni-tables.
24408
24409         New module 'unictype/property-changes-when-uppercased'.
24410         * modules/unictype/property-changes-when-uppercased: New file.
24411         * lib/unictype/pr_changes_when_uppercased.c: New file.
24412         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24413         generated by gen-uni-tables.
24414         * modules/unictype/property-changes-when-uppercased-tests: New file.
24415         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24416         automatically generated by gen-uni-tables.
24417
24418         New module 'unictype/property-changes-when-lowercased'.
24419         * modules/unictype/property-changes-when-lowercased: New file.
24420         * lib/unictype/pr_changes_when_lowercased.c: New file.
24421         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24422         generated by gen-uni-tables.
24423         * modules/unictype/property-changes-when-lowercased-tests: New file.
24424         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24425         automatically generated by gen-uni-tables.
24426
24427         New module 'unictype/property-case-ignorable'.
24428         * modules/unictype/property-case-ignorable: New file.
24429         * lib/unictype/pr_case_ignorable.c: New file.
24430         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24431         by gen-uni-tables.
24432         * modules/unictype/property-case-ignorable-tests: New file.
24433         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24434         generated by gen-uni-tables.
24435
24436         New module 'unictype/property-cased'.
24437         * modules/unictype/property-cased: New file.
24438         * lib/unictype/pr_cased.c: New file.
24439         * lib/unictype/pr_cased.h: New file, automatically generated by
24440         gen-uni-tables.
24441         * modules/unictype/property-cased-tests: New file.
24442         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24443         gen-uni-tables.
24444
24445 2011-01-09  Bruno Haible  <bruno@clisp.org>
24446
24447         Update to Unicode 5.2.0.
24448         * lib/gen-uni-tables.c (output_predicate, output_category,
24449         output_combclass, output_bidi_category, output_decimal_digit_test,
24450         output_decimal_digit, output_digit_test, output_digit,
24451         output_numeric_test, output_numeric, output_mirror, output_scripts,
24452         output_scripts_byname, output_blocks, output_ident_category): Fix
24453         comment header.
24454         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24455         get_wbp.
24456         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24457         items.
24458         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24459         Changes_When_Lowercased, Changes_When_Uppercased,
24460         Changes_When_Titlecased, Changes_When_Casefolded,
24461         Changes_When_Casemapped.
24462         (is_property_alphabetic, is_property_default_ignorable_code_point):
24463         Update for Unicode 5.2.0.
24464         (is_property_cased, is_property_case_ignorable,
24465         is_property_changes_when_lowercased,
24466         is_property_changes_when_uppercased,
24467         is_property_changes_when_titlecased,
24468         is_property_changes_when_casefolded,
24469         is_property_changes_when_casemapped): New functions.
24470         (output_properties): Output also the properties cased, case_ignorable,
24471         changes_when_lowercased, changes_when_uppercased,
24472         changes_when_titlecased, changes_when_casefolded,
24473         changes_when_casemapped.
24474         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24475         Unicode TR#11 revision 17 -> 19.
24476         (LBP_CP): New enumeration value.
24477         (LBP_*): Adjust values accordingly.
24478         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24479         TR#14 revision 22 -> 24.
24480         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24481         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24482         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24483         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24484         is_WBP_MIDLETTER.
24485         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24486         the code1 and code2 of each composition rule.
24487         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24488         * lib/unicase/ignorable.h: Likewise.
24489         * lib/unicase/tocasefold.h: Likewise.
24490         * lib/unicase/tolower.h: Likewise.
24491         * lib/unicase/totitle.h: Likewise.
24492         * lib/unicase/toupper.h: Likewise.
24493         * lib/unictype/bidi_of.h: Likewise.
24494         * lib/unictype/blocks.h: Likewise.
24495         * lib/unictype/categ_C.h: Likewise.
24496         * lib/unictype/categ_Cf.h: Likewise.
24497         * lib/unictype/categ_Cn.h: Likewise.
24498         * lib/unictype/categ_L.h: Likewise.
24499         * lib/unictype/categ_Ll.h: Likewise.
24500         * lib/unictype/categ_Lm.h: Likewise.
24501         * lib/unictype/categ_Lo.h: Likewise.
24502         * lib/unictype/categ_Lu.h: Likewise.
24503         * lib/unictype/categ_M.h: Likewise.
24504         * lib/unictype/categ_Mc.h: Likewise.
24505         * lib/unictype/categ_Mn.h: Likewise.
24506         * lib/unictype/categ_N.h: Likewise.
24507         * lib/unictype/categ_Nd.h: Likewise.
24508         * lib/unictype/categ_Nl.h: Likewise.
24509         * lib/unictype/categ_No.h: Likewise.
24510         * lib/unictype/categ_P.h: Likewise.
24511         * lib/unictype/categ_Pd.h: Likewise.
24512         * lib/unictype/categ_Po.h: Likewise.
24513         * lib/unictype/categ_S.h: Likewise.
24514         * lib/unictype/categ_Sc.h: Likewise.
24515         * lib/unictype/categ_So.h: Likewise.
24516         * lib/unictype/categ_of.h: Likewise.
24517         * lib/unictype/combining.h: Likewise.
24518         * lib/unictype/ctype_alnum.h: Likewise.
24519         * lib/unictype/ctype_alpha.h: Likewise.
24520         * lib/unictype/ctype_graph.h: Likewise.
24521         * lib/unictype/ctype_lower.h: Likewise.
24522         * lib/unictype/ctype_print.h: Likewise.
24523         * lib/unictype/ctype_punct.h: Likewise.
24524         * lib/unictype/ctype_upper.h: Likewise.
24525         * lib/unictype/decdigit.h: Likewise.
24526         * lib/unictype/digit.h: Likewise.
24527         * lib/unictype/numeric.h: Likewise.
24528         * lib/unictype/pr_alphabetic.h: Likewise.
24529         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24530         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24531         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24532         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24533         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24534         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24535         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24536         * lib/unictype/pr_combining.h: Likewise.
24537         * lib/unictype/pr_composite.h: Likewise.
24538         * lib/unictype/pr_currency_symbol.h: Likewise.
24539         * lib/unictype/pr_dash.h: Likewise.
24540         * lib/unictype/pr_decimal_digit.h: Likewise.
24541         * lib/unictype/pr_deprecated.h: Likewise.
24542         * lib/unictype/pr_diacritic.h: Likewise.
24543         * lib/unictype/pr_extender.h: Likewise.
24544         * lib/unictype/pr_grapheme_base.h: Likewise.
24545         * lib/unictype/pr_grapheme_extend.h: Likewise.
24546         * lib/unictype/pr_grapheme_link.h: Likewise.
24547         * lib/unictype/pr_id_continue.h: Likewise.
24548         * lib/unictype/pr_id_start.h: Likewise.
24549         * lib/unictype/pr_ideographic.h: Likewise.
24550         * lib/unictype/pr_ignorable_control.h: Likewise.
24551         * lib/unictype/pr_logical_order_exception.h: Likewise.
24552         * lib/unictype/pr_lowercase.h: Likewise.
24553         * lib/unictype/pr_numeric.h: Likewise.
24554         * lib/unictype/pr_other_alphabetic.h: Likewise.
24555         * lib/unictype/pr_punctuation.h: Likewise.
24556         * lib/unictype/pr_sentence_terminal.h: Likewise.
24557         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24558         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24559         * lib/unictype/pr_unified_ideograph.h: Likewise.
24560         * lib/unictype/pr_uppercase.h: Likewise.
24561         * lib/unictype/pr_xid_continue.h: Likewise.
24562         * lib/unictype/pr_xid_start.h: Likewise.
24563         * lib/unictype/pr_zero_width.h: Likewise.
24564         * lib/unictype/scripts.h: Likewise.
24565         * lib/unictype/scripts_byname.gperf: Likewise.
24566         * lib/unictype/sy_java_ident.h: Likewise.
24567         * lib/unigbrk/gbrkprop.h: Likewise.
24568         * lib/unilbrk/lbrkprop1.h: Likewise.
24569         * lib/unilbrk/lbrkprop2.h: Likewise.
24570         * lib/unilbrk/lbrktables.h: Likewise.
24571         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24572         LBP_CP. Implement rule LB30.
24573         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24574         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24575         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24576         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24577         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24578         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24579         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24580         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24581         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24582         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24583         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24584         bits instead of 16 bits in the code1 and code2 of each composition
24585         rule.
24586         (uc_composition): Update for Unicode 5.2.0.
24587         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24588         * lib/uninorm/decomposition-table2.h: Likewise.
24589         * lib/uniwbrk/wbrkprop.h: Likewise.
24590         * tests/unicase/test-cased.c: Likewise.
24591         * tests/unicase/test-ignorable.c: Likewise.
24592         * tests/unicase/test-uc_tolower.c: Likewise.
24593         * tests/unicase/test-uc_totitle.c: Likewise.
24594         * tests/unicase/test-uc_toupper.c: Likewise.
24595         * tests/unictype/test-categ_C.c: Likewise.
24596         * tests/unictype/test-categ_Cf.c: Likewise.
24597         * tests/unictype/test-categ_Cn.c: Likewise.
24598         * tests/unictype/test-categ_L.c: Likewise.
24599         * tests/unictype/test-categ_Ll.c: Likewise.
24600         * tests/unictype/test-categ_Lm.c: Likewise.
24601         * tests/unictype/test-categ_Lo.c: Likewise.
24602         * tests/unictype/test-categ_Lu.c: Likewise.
24603         * tests/unictype/test-categ_M.c: Likewise.
24604         * tests/unictype/test-categ_Mc.c: Likewise.
24605         * tests/unictype/test-categ_Mn.c: Likewise.
24606         * tests/unictype/test-categ_N.c: Likewise.
24607         * tests/unictype/test-categ_Nd.c: Likewise.
24608         * tests/unictype/test-categ_Nl.c: Likewise.
24609         * tests/unictype/test-categ_No.c: Likewise.
24610         * tests/unictype/test-categ_P.c: Likewise.
24611         * tests/unictype/test-categ_Pd.c: Likewise.
24612         * tests/unictype/test-categ_Po.c: Likewise.
24613         * tests/unictype/test-categ_S.c: Likewise.
24614         * tests/unictype/test-categ_Sc.c: Likewise.
24615         * tests/unictype/test-categ_So.c: Likewise.
24616         * tests/unictype/test-ctype_alnum.c: Likewise.
24617         * tests/unictype/test-ctype_alpha.c: Likewise.
24618         * tests/unictype/test-ctype_graph.c: Likewise.
24619         * tests/unictype/test-ctype_lower.c: Likewise.
24620         * tests/unictype/test-ctype_print.c: Likewise.
24621         * tests/unictype/test-ctype_punct.c: Likewise.
24622         * tests/unictype/test-ctype_upper.c: Likewise.
24623         * tests/unictype/test-decdigit.h: Likewise.
24624         * tests/unictype/test-digit.h: Likewise.
24625         * tests/unictype/test-numeric.h: Likewise.
24626         * tests/unictype/test-pr_alphabetic.c: Likewise.
24627         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24628         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24629         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24630         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24631         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24632         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24633         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24634         * tests/unictype/test-pr_combining.c: Likewise.
24635         * tests/unictype/test-pr_composite.c: Likewise.
24636         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24637         * tests/unictype/test-pr_dash.c: Likewise.
24638         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24639         * tests/unictype/test-pr_deprecated.c: Likewise.
24640         * tests/unictype/test-pr_diacritic.c: Likewise.
24641         * tests/unictype/test-pr_extender.c: Likewise.
24642         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24643         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24644         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24645         * tests/unictype/test-pr_id_continue.c: Likewise.
24646         * tests/unictype/test-pr_id_start.c: Likewise.
24647         * tests/unictype/test-pr_ideographic.c: Likewise.
24648         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24649         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24650         * tests/unictype/test-pr_lowercase.c: Likewise.
24651         * tests/unictype/test-pr_numeric.c: Likewise.
24652         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24653         * tests/unictype/test-pr_punctuation.c: Likewise.
24654         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24655         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24656         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24657         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24658         * tests/unictype/test-pr_uppercase.c: Likewise.
24659         * tests/unictype/test-pr_xid_continue.c: Likewise.
24660         * tests/unictype/test-pr_xid_start.c: Likewise.
24661         * tests/unictype/test-pr_zero_width.c: Likewise.
24662         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24663         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
24664         changed behaviour: line breaking is now disallowed between a letter
24665         or '=' and '('.
24666         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24667         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24668         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24669         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
24670         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24671         lib/uniwidth/width.c.
24672         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
24673         without comments, but with the original copyright notice.
24674         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24675         changes.
24676         * lib/unictype/categ_Cc.h: Likewise.
24677         * lib/unictype/categ_Co.h: Likewise.
24678         * lib/unictype/categ_Cs.h: Likewise.
24679         * lib/unictype/categ_Lt.h: Likewise.
24680         * lib/unictype/categ_Me.h: Likewise.
24681         * lib/unictype/categ_Pc.h: Likewise.
24682         * lib/unictype/categ_Pe.h: Likewise.
24683         * lib/unictype/categ_Pf.h: Likewise.
24684         * lib/unictype/categ_Pi.h: Likewise.
24685         * lib/unictype/categ_Ps.h: Likewise.
24686         * lib/unictype/categ_Sk.h: Likewise.
24687         * lib/unictype/categ_Sm.h: Likewise.
24688         * lib/unictype/categ_Z.h: Likewise.
24689         * lib/unictype/categ_Zl.h: Likewise.
24690         * lib/unictype/categ_Zp.h: Likewise.
24691         * lib/unictype/categ_Zs.h: Likewise.
24692         * lib/unictype/ctype_blank.h: Likewise.
24693         * lib/unictype/ctype_cntrl.h: Likewise.
24694         * lib/unictype/ctype_digit.h: Likewise.
24695         * lib/unictype/ctype_space.h: Likewise.
24696         * lib/unictype/ctype_xdigit.h: Likewise.
24697         * lib/unictype/mirror.h: Likewise.
24698         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24699         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24700         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24701         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24702         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24703         * lib/unictype/pr_bidi_control.h: Likewise.
24704         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24705         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24706         * lib/unictype/pr_bidi_pdf.h: Likewise.
24707         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24708         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24709         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24710         * lib/unictype/pr_format_control.h: Likewise.
24711         * lib/unictype/pr_hex_digit.h: Likewise.
24712         * lib/unictype/pr_hyphen.h: Likewise.
24713         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24714         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24715         * lib/unictype/pr_iso_control.h: Likewise.
24716         * lib/unictype/pr_join_control.h: Likewise.
24717         * lib/unictype/pr_left_of_pair.h: Likewise.
24718         * lib/unictype/pr_line_separator.h: Likewise.
24719         * lib/unictype/pr_math.h: Likewise.
24720         * lib/unictype/pr_non_break.h: Likewise.
24721         * lib/unictype/pr_not_a_character.h: Likewise.
24722         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24723         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24724         * lib/unictype/pr_other_id_continue.h: Likewise.
24725         * lib/unictype/pr_other_id_start.h: Likewise.
24726         * lib/unictype/pr_other_lowercase.h: Likewise.
24727         * lib/unictype/pr_other_math.h: Likewise.
24728         * lib/unictype/pr_other_uppercase.h: Likewise.
24729         * lib/unictype/pr_paired_punctuation.h: Likewise.
24730         * lib/unictype/pr_paragraph_separator.h: Likewise.
24731         * lib/unictype/pr_pattern_syntax.h: Likewise.
24732         * lib/unictype/pr_pattern_white_space.h: Likewise.
24733         * lib/unictype/pr_private_use.h: Likewise.
24734         * lib/unictype/pr_quotation_mark.h: Likewise.
24735         * lib/unictype/pr_radical.h: Likewise.
24736         * lib/unictype/pr_soft_dotted.h: Likewise.
24737         * lib/unictype/pr_space.h: Likewise.
24738         * lib/unictype/pr_titlecase.h: Likewise.
24739         * lib/unictype/pr_variation_selector.h: Likewise.
24740         * lib/unictype/pr_white_space.h: Likewise.
24741         * lib/unictype/sy_c_ident.h: Likewise.
24742         * lib/unictype/sy_c_whitespace.h: Likewise.
24743         * lib/unictype/sy_java_whitespace.h: Likewise.
24744         * modules/uni*/*: Bump version number of expected libunistring version.
24745         Reported by Simon Josefsson.
24746
24747 2011-01-09  Karl Heuer  <kwzh@gnu.org>
24748
24749         useless-if-before-free: fix typo in --help and make the internal,
24750         automatic version date update process work once again.
24751         --help output contained a NUL character instead of the
24752         backslash-zero that was intended.  Also, the "must lie within
24753         the first 8 lines" line is on line 9, and hence not getting
24754         automatically updated.
24755         * build-aux/useless-if-before-free: Fix the former by adding a
24756         backslash, and the latter by condensing the three lines of what-it-does
24757         to a single line, leaving one line of slack for the future.
24758
24759 2011-01-09  Bruno Haible  <bruno@clisp.org>
24760
24761         uniwidth/width: Fix width of U+1D173..U+1D17A.
24762         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
24763         symbolic_width, output_width_property_test): New functions.
24764         (main): Invoke output_nonspacing_property, output_width_property_test.
24765         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
24766         U+1D173..U+1D17A.
24767         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
24768         1.
24769         * modules/uniwidth/*: Bump version number of expected libunistring
24770         version.
24771         * modules/unilbrk/*: Likewise.
24772
24773 2011-01-08  Bruno Haible  <bruno@clisp.org>
24774
24775         uninorm tests: Preserve copyright of Unicode data file.
24776         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
24777         Mention modifications.
24778
24779 2011-01-08  Bruno Haible  <bruno@clisp.org>
24780
24781         gen-uni-tables: Prepare for Unicode 5.2.0.
24782         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
24783         (debug_output_lbp, output_lbp): Update.
24784
24785 2011-01-08  Bruno Haible  <bruno@clisp.org>
24786
24787         unilbrk: Clarify gen-uni-tables.c code.
24788         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
24789         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
24790         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
24791
24792 2011-01-07  Bruno Haible  <bruno@clisp.org>
24793
24794         strtod: Restore errno when successfully parsing Infinity or NaN.
24795         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
24796         restore the original errno.
24797
24798 2011-01-07  Bruno Haible  <bruno@clisp.org>
24799
24800         remove test: Avoid failure on HP-UX 11.
24801         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
24802
24803 2011-01-07  Bruno Haible  <bruno@clisp.org>
24804
24805         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
24806         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
24807         error code.
24808
24809 2011-01-07  Pádraig Brady <P@draigBrady.com>
24810
24811         ignore-value: fixup comments, and add Eric Blake
24812         as an author since he rewrote the macros.
24813         * lib/ignore-value.h (ignore_value):  State that
24814         we now support aggregates.  Also specify exactly
24815         when the GCC warn_unused_result feature was added.
24816
24817 2011-01-06  Eric Blake  <eblake@redhat.com>
24818
24819         ignore-value: support aggregate types
24820         * lib/ignore-value.h (ignore_value): Provide separate gcc
24821         definition.
24822         * modules/ignore-value-tests: New test module.
24823         * tests/test-ignore-value.c: New test.
24824
24825         maint.mk: improve sc_prohibit_strcmp regex
24826         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
24827         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
24828         definition of STRNEQ.
24829
24830         signal: work around Haiku issue with SIGBUS
24831         * lib/siglist.h: Add comment.
24832         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
24833         strsignal's favoring of SIGSEGV.
24834         * tests/test-signal.c (main): Avoid test failure.
24835         * doc/posix-headers/signal.texi (signal.h): Document the issue.
24836         Reported by Scott McCreary.
24837
24838         maint.mk: add pre-release check to ensure submodule commits are public
24839         * top/maint.mk (public-submodule-commit): New rule.
24840         (submodule-checks): New variable.
24841         (alpha beta stable): Depend on the variable.
24842
24843 2011-01-05  Pádraig Brady <P@draigBrady.com>
24844         and Jim Meyering  <meyering@redhat.com>
24845
24846         ignore-value: make ignore_value more generic; deprecate ignore_ptr
24847         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
24848         (ATTRIBUTE_DEPRECATED): Define.
24849         (_ignore_case): New function.
24850         (ignore_value): New macro, to replace the old function.
24851         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
24852         * modules/ignore-value (Depends-on): Add stdint.
24853
24854 2011-01-04  Eric Blake  <eblake@redhat.com>
24855
24856         doc: regenerate INSTALL
24857         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
24858         @firstparagraphindent support, now that autoconf dropped it.
24859         (INSTALL_PRELUDE): Reinstate old macro.
24860         * doc/install.texi: Resync from autoconf.
24861         * doc/INSTALL: Reflect recent autoconf update.
24862         * doc/INSTALL.ISO: Likewise.
24863         * doc/INSTALL.UTF-8: Likewise.
24864         Reported by Karl Berry.
24865
24866 2011-01-04  Bruce Korb  <address@hidden>
24867
24868         git-version-gen: avoid a sub-shell
24869         * build-aux/git-version-gen: Redirect stderr in `...` via
24870         "exec 2>...", rather than via an added sub-shell.
24871
24872 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
24873
24874         git-version-gen: use (...) rather than sh -c '...'
24875         * build-aux/git-version-gen: Rather than hard-coding a shell's name
24876         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
24877
24878 2011-01-03  Jim Meyering  <meyering@redhat.com>
24879
24880         git-version-gen: convert leading TABs to spaces
24881         * build-aux/git-version-gen: Expand leading TABs.
24882
24883         git-version-gen: handle failed "git rev-list"
24884         * build-aux/git-version-gen: Rather than leaking a "fatal" error
24885         from git and proceeding as if it had succeeded but printed no SHA1
24886         checksums, suppress the diagnostic and handle the failure.
24887         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
24888
24889         git-version-gen: include command name in one more diagnostic
24890         * build-aux/git-version-gen: When the required .tarball-version file
24891         was missing or unreadable, you might see the diagnostic from "cat",
24892         but no trace of the name of the invoking script.  Now, you still see
24893         the diagnostic from cat, but also get one from "git-version-gen: ".
24894         Inspired by a patch from Bruce Korb.
24895
24896         update-copyright: adjust test to match changed code
24897         * tests/test-update-copyright.sh: Change test's expected output
24898         to match new actual output.
24899
24900 2011-01-02  Bruno Haible  <bruno@clisp.org>
24901
24902         getlogin_r: Avoid test failure on HP-UX 11.
24903         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
24904         ERANGE when the second argument is zero.
24905         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
24906         portability problem.
24907
24908 2011-01-02  Bruce Korb  <bkorb@gnu.org>
24909
24910         * build-aux/update-copyright: doc Simon's changes
24911
24912 2011-01-02  Simon Josefsson  <simon@josefsson.org>
24913
24914         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
24915         environment variable.
24916
24917 2011-01-02  Bruno Haible  <bruno@clisp.org>
24918
24919         unigbrk: Avoid gcc warnings.
24920         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
24921         unused variable.
24922         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
24923         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
24924         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
24925         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
24926         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
24927         Change type of first argument to 'const char *'.
24928         (main): Remove unused variable.
24929         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
24930         type of first argument to 'const char *'.
24931         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
24932         Likewise.
24933         (main): Change type of variable 's'.
24934         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
24935         to 'int'.
24936
24937 2011-01-02  Bruno Haible  <bruno@clisp.org>
24938
24939         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
24940         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
24941         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
24942         bug.
24943         * lib/pwrite.c: Undo 2010-12-31 patch.
24944         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
24945
24946 2011-01-02  Bruno Haible  <bruno@clisp.org>
24947
24948         pread: Fix test whether it works.
24949         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
24950
24951 2011-01-02  Bruno Haible  <bruno@clisp.org>
24952
24953         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
24954         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
24955         ends in "6". Don't require a specific month name. Try also the locale
24956         names found on HP-UX 11 and Solaris 7.
24957
24958 2011-01-02  Bruno Haible  <bruno@clisp.org>
24959
24960         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
24961         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
24962         C linkage.
24963         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
24964
24965 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24966
24967         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
24968         for consistency, since the "cluster" term is not used elsewhere.
24969         * lib/unigbrk.in.h: Update name.
24970         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
24971         * lib/unigbrk/u16-grapheme-next.c: Update name.
24972         * lib/unigbrk/u16-grapheme-prev.c: Update name.
24973         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
24974         * lib/unigbrk/u32-grapheme-next.c: Update name.
24975         * lib/unigbrk/u32-grapheme-prev.c: Update name.
24976         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
24977         * lib/unigbrk/u8-grapheme-next.c: Update name.
24978         * lib/unigbrk/u8-grapheme-prev.c: Update name.
24979         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
24980         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
24981         Suggested by Bruno Haible.
24982
24983 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24984
24985         Remove module 'u8-grapheme-len' as too redundant with
24986         'u8-grapheme-next'.
24987         * modules/unigbrk/u8-grapheme-len: Delete file.
24988         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
24989         * lib/unigbrk.in.h: Remove prototype for deleted function.
24990         * lib/unigbrk/u8-grapheme-len.c: Delete file.
24991         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
24992
24993         Remove module 'u16-grapheme-len' as too redundant with
24994         'u16-grapheme-next'.
24995         * modules/unigbrk/u16-grapheme-len: Delete file.
24996         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
24997         * lib/unigbrk.in.h: Remove prototype for deleted function.
24998         * lib/unigbrk/u16-grapheme-len.c: Delete file.
24999         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25000
25001         Remove module 'u32-grapheme-len' as too redundant with
25002         'u32-grapheme-next'.
25003         * modules/unigbrk/u32-grapheme-len: Delete file.
25004         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25005         * lib/unigbrk.in.h: Remove prototype for deleted function.
25006         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25007         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25008
25009         Suggested by Bruno Haible.
25010
25011 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25012
25013         * unigbrk.in.h: Fix typo: "ben" => "been".
25014         Reported by Bruno Haible.
25015
25016 2011-01-01  Jim Meyering  <meyering@redhat.com>
25017
25018         maint: update almost all copyright ranges to include 2011
25019         Run the new "make update-copyright" rule.
25020
25021 2011-01-01  Jim Meyering  <meyering@redhat.com>
25022
25023         maint: update-copyright: exempt doc/INSTALL*
25024         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25025         since they are generated.  Suggested by Bruno Haible.
25026
25027 2011-01-01  Jim Meyering  <meyering@redhat.com>
25028
25029         maint: refine the update-copyright rule
25030         * Makefile (update-copyright): Also exclude any file that includes
25031         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25032         code that merely generates the comment.
25033
25034 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25035
25036         New module 'u8-grapheme-len'.
25037         * modules/unigbrk/u8-grapheme-len: New file.
25038         * modules/unigbrk/u8-grapheme-len-tests: New file.
25039         * lib/unigbrk.in.h: Add prototype for new function.
25040         * lib/unigbrk/u8-grapheme-len.c: New file.
25041         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25042
25043         New module 'u16-grapheme-len'.
25044         * modules/unigbrk/u16-grapheme-len: New file.
25045         * modules/unigbrk/u16-grapheme-len-tests: New file.
25046         * lib/unigbrk.in.h: Add prototype for new function.
25047         * lib/unigbrk/u16-grapheme-len.c: New file.
25048         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25049
25050         New module 'u32-grapheme-len'.
25051         * modules/unigbrk/u32-grapheme-len: New file.
25052         * modules/unigbrk/u32-grapheme-len-tests: New file.
25053         * lib/unigbrk.in.h: Add prototype for new function.
25054         * lib/unigbrk/u32-grapheme-len.c: New file.
25055         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25056
25057         New module 'u8-grapheme-next'.
25058         * modules/unigbrk/u8-grapheme-next: New file.
25059         * modules/unigbrk/u8-grapheme-next-tests: New file.
25060         * lib/unigbrk.in.h: Add prototype for new function.
25061         * lib/unigbrk/u8-grapheme-next.c: New file.
25062         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25063
25064         New module 'u16-grapheme-next'.
25065         * modules/unigbrk/u16-grapheme-next: New file.
25066         * modules/unigbrk/u16-grapheme-next-tests: New file.
25067         * lib/unigbrk.in.h: Add prototype for new function.
25068         * lib/unigbrk/u16-grapheme-next.c: New file.
25069         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25070
25071         New module 'u32-grapheme-next'.
25072         * modules/unigbrk/u32-grapheme-next: New file.
25073         * modules/unigbrk/u32-grapheme-next-tests: New file.
25074         * lib/unigbrk.in.h: Add prototype for new function.
25075         * lib/unigbrk/u32-grapheme-next.c: New file.
25076         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25077
25078         New module 'u8-grapheme-prev'.
25079         * modules/unigbrk/u8-grapheme-prev: New file.
25080         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25081         * lib/unigbrk.in.h: Add prototype for new function.
25082         * lib/unigbrk/u8-grapheme-prev.c: New file.
25083         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25084
25085         New module 'u16-grapheme-prev'.
25086         * modules/unigbrk/u16-grapheme-prev: New file.
25087         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25088         * lib/unigbrk.in.h: Add prototype for new function.
25089         * lib/unigbrk/u16-grapheme-prev.c: New file.
25090         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25091
25092         New module 'u32-grapheme-prev'.
25093         * modules/unigbrk/u32-grapheme-prev: New file.
25094         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25095         * lib/unigbrk.in.h: Add prototype for new function.
25096         * lib/unigbrk/u32-grapheme-prev.c: New file.
25097         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25098
25099         New module 'u8-grapheme-breaks'.
25100         * modules/unigbrk/u8-grapheme-breaks: New file.
25101         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25102         * lib/unigbrk.in.h: Add prototype for new function.
25103         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25104         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25105
25106         New module 'u16-grapheme-breaks'.
25107         * modules/unigbrk/u16-grapheme-breaks: New file.
25108         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25109         * lib/unigbrk.in.h: Add prototype for new function.
25110         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25111         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25112
25113         New module 'u32-grapheme-breaks'.
25114         * modules/unigbrk/u32-grapheme-breaks: New file.
25115         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25116         * lib/unigbrk.in.h: Add prototype for new function.
25117         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25118         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25119
25120         New module 'ulc-grapheme-breaks'.
25121         * modules/unigbrk/ulc-grapheme-breaks: New file.
25122         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25123         * m4/locale-ar.m4: New file.
25124         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25125         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25126         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25127
25128 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25129
25130         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25131         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25132         modified how this file was generated before I initially submitted
25133         the module, but failed to regenerate it.  This meant that several
25134         of the level2 entries were wrong.
25135         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25136         Remove the division-by-2 that is folded into the table now that
25137         gbrkprop.h has been regenerated properly.  Now -1 entries are
25138         handled correctly.
25139
25140         New module 'unigbrk/uc-gbrk-prop-tests'.
25141         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25142         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25143         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25144         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25145
25146 2011-01-01  Bruno Haible  <bruno@clisp.org>
25147
25148         Avoid use of hexadecimal escapes.
25149         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25150         instead of hexadecimal escapes.
25151
25152 2011-01-01  Jim Meyering  <meyering@redhat.com>
25153
25154         maint: new rule to update copyright year ranges
25155         * Makefile (update-copyright): New rule.
25156
25157         maint: indent with TABs in Makefile
25158         * Makefile: Expand leading sequences of spaces to TABs
25159
25160         version-etc: update the copyright year it reports
25161         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25162
25163 2010-12-31  Bruno Haible  <bruno@clisp.org>
25164
25165         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25166         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25167         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25168         zero.
25169
25170 2010-12-31  Bruno Haible  <bruno@clisp.org>
25171
25172         pwrite: Work around HP-UX 11.11 bug.
25173         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25174         works and set REPLACE_PWRITE if not.
25175         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25176         function.
25177         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25178
25179 2010-12-31  Bruno Haible  <bruno@clisp.org>
25180
25181         pread: Work around HP-UX 11 bugs.
25182         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25183         and set REPLACE_PREAD if not.
25184         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25185
25186 2010-12-31  Eric Blake  <eblake@redhat.com>
25187
25188         nl_langinfo: fix YESEXPR on Irix 6.5
25189         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25190         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25191         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25192         it.
25193
25194 2010-12-31  Bruno Haible  <bruno@clisp.org>
25195
25196         iconv: Document HP-UX 11 bug.
25197         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25198
25199 2010-12-31  Bruno Haible  <bruno@clisp.org>
25200
25201         ldexpl: Fix link error on HP-UX 11.
25202         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25203         LDEXPL_LIBM, using $ISNANL_LIBM.
25204
25205 2010-12-31  Eric Blake  <eblake@redhat.com>
25206
25207         ftello: avoid compilation failure with SunStudio c89
25208         * lib/ftello.c (ftello): Use lseek, not llseek.
25209
25210         tests: avoid failing coreutils tests on cygwin
25211         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25212         (create_exe_shims_): Return 0 when skipping.
25213
25214 2010-12-31  Bruno Haible  <bruno@clisp.org>
25215
25216         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25217         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25218
25219 2010-12-31  Bruno Haible  <bruno@clisp.org>
25220
25221         waitpid: Fix link error in C++ mode.
25222         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25223
25224 2010-12-31  Bruno Haible  <bruno@clisp.org>
25225
25226         isnan: Use GCC built-ins when possible.
25227         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25228         __builtin_isnan.
25229         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25230         (isnan): Define using GCC built-ins for GCC >= 4.0.
25231
25232 2010-12-31  Bruno Haible  <bruno@clisp.org>
25233
25234         isnand: Fix mistake.
25235         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25236         __builtin_isnand.
25237
25238 2010-12-31  Bruno Haible  <bruno@clisp.org>
25239
25240         open: Avoid C++ error on HP-UX 11.
25241         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25242
25243 2010-12-31  Bruno Haible  <bruno@clisp.org>
25244
25245         time_r: Add missing declarations on HP-UX 11.
25246         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25247         instead of HAVE_LOCALTIME_R.
25248         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25249         HAVE_LOCALTIME_R always.
25250         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25251         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25252         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25253         HAVE_LOCALTIME_R.
25254         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25255         * doc/posix-functions/localtime_r.texi: Likewise.
25256
25257 2010-12-29  Eric Blake  <eblake@redhat.com>
25258
25259         mountlist: tweak previous commit
25260         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25261         Reported by Paul Eggert.
25262
25263         mountlist: fix local drive detection on cygwin
25264         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25265         that works for cygwin.
25266
25267 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25268
25269         ftoastr, snprintf: ftoastr + snprintf module
25270         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25271         since the snprintf module now should be good enough here.
25272         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25273         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25274         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25275         GNULIB_SNPRINTF only for the test directory, and the latter
25276         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25277         seems to suffice by itself.
25278
25279 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25280
25281         alloca: one step towards thread-safety
25282         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25283         need for a static variable.  All callers changed.  This does not
25284         make the alloca replacement thread-safe, but it's one step.
25285
25286         tests: minor indenting change
25287         * tests/init.sh: Sync from coreutils housekeeping patch
25288         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25289         to keep lines within 80 columns.
25290
25291 2010-12-28  Jim Meyering  <meyering@redhat.com>
25292
25293         regex: don't infloop on persistent failing calloc
25294         * lib/regexec.c (build_trtable): Return failure indication upon
25295         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25296         In glibc, this was fixed for version 2.13:
25297         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25298
25299 2010-12-28  Bruno Haible  <bruno@clisp.org>
25300             Paul Eggert <eggert@cs.ucla.edu>
25301
25302         linkat: Make implementation robust against system behaviour variations.
25303         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25304         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25305         way, and to -2 if it needs a generic runtime test.
25306         * lib/linkat.c (solaris_optimized_link_immediate,
25307         solaris_optimized_link_follow): New functions.
25308         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25309         (check_same_link): Use it.
25310
25311 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25312
25313         New module 'unigbrk/base'.
25314         * modules/unigbrk/base: New file.
25315         * lib/unigbrk.in.h: New file.
25316
25317         New module 'unigbrk/uc-gbrk-prop'.
25318         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25319         * modules/unigbrk/uc-gbrk-prop: New file.
25320         * lib/unigbrk/gbrkprop.h: New file.
25321         * lib/unigbrk/uc-gbrk-prop.c: New file.
25322
25323         New module 'unigbrk/uc-is-grapheme-break'.
25324         * modules/unigbrk/uc-is-grapheme-break: New file.
25325         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25326         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25327         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25328         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25329         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25330
25331         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25332
25333 2010-12-27  Bruno Haible  <bruno@clisp.org>
25334
25335         linkat test: Avoid failure on Solaris 11 2010-11.
25336         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25337
25338 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25339
25340         utimens: work around glibc rounding bug on more platforms
25341         * lib/utimens.c (fdutimens): Work around rounding bug even if
25342         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25343         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25344
25345 2010-12-27  Bruno Haible  <bruno@clisp.org>
25346
25347         select tests: Improve comments.
25348         * tests/test-select.c (do_select): Add comments.
25349
25350 2010-12-27  Bruno Haible  <bruno@clisp.org>
25351
25352         select tests: Safer way of handling timeout.
25353         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25354         at every invocation.
25355
25356 2010-12-27  Bruno Haible  <bruno@clisp.org>
25357
25358         select tests: Use 'bool' where appropriate.
25359         * tests/test-select.c (connect_to_socket): Change argument type to
25360         'bool'.
25361
25362 2010-12-27  Bruno Haible  <bruno@clisp.org>
25363
25364         select tests: Use existing modules.
25365         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25366         (configure.ac): Don't test for unistd.h.
25367         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25368         declared in <unistd.h>.
25369
25370 2010-12-27  Bruno Haible  <bruno@clisp.org>
25371
25372         mbrtowc: Work around a Solaris 7 bug.
25373         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25374         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25375         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25376         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25377         MBRTOWC_NULL_ARG1_BUG.
25378         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25379         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25380         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25381         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25382
25383 2010-12-27  Jim Meyering  <meyering@redhat.com>
25384
25385         read-file.c: tweak syntax
25386         * lib/read-file.c (fread_file): Remove space after "*" in function
25387         definitions.
25388
25389 2010-12-27  Bruno Haible  <bruno@clisp.org>
25390
25391         times test: Avoid gcc warnings on OSF/1.
25392         * tests/test-times.c (main): Cast printf arguments from clock_t to
25393         'long int'.
25394
25395 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25396
25397         utimens: work around glibc rounding bug on older Linux kernels
25398         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25399         on Linux with a glibc whose utimes might not work, then work
25400         around a longstanding glibc bug involving rounding rather than
25401         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25402         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25403
25404 2010-12-26  Bruno Haible  <bruno@clisp.org>
25405
25406         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25407         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25408         _GL_CXXALIAS_SYS.
25409         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25410
25411 2010-12-26  Bruno Haible  <bruno@clisp.org>
25412
25413         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25414         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25415         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25416         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25417         looking for the declaration.
25418         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25419         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25420         problem.
25421         * doc/posix-functions/inet_pton.texi: Likewise.
25422
25423 2010-12-26  Bruno Haible  <bruno@clisp.org>
25424
25425         arpa_inet: Use the common idioms with C++ support.
25426         * lib/arpa_inet.in.h: Include c++defs.h.
25427         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25428         support.
25429         * modules/arpa_inet (Depends-on): Add c++defs.
25430         (Makefile.am): Substitute the contents of c++defs.h.
25431         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25432         * modules/arpa_inet-c++-tests: New file.
25433         * tests/test-arpa_inet-c++.cc: New file.
25434
25435 2010-12-25  Bruno Haible  <bruno@clisp.org>
25436
25437         Fix more C++ link errors on Solaris 8.
25438         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25439         $(LIB_EACCESS).
25440         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25441         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25442         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25443         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25444         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25445
25446 2010-12-25  Bruno Haible  <bruno@clisp.org>
25447
25448         printf-posix: Fix link error when a non-GCC compiler is used.
25449         * lib/stdio.in.h (printf): When not using GCC, override printf
25450         correctly.
25451         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25452
25453 2010-12-25  Bruno Haible  <bruno@clisp.org>
25454
25455         strerror_r-posix: Update doc.
25456         * doc/posix-functions/strerror_r.texi: Update doc about the return
25457         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25458
25459 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25460
25461         utimens: simplify the logic of the previous change
25462         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25463         This should not affect whether the test succeeds or fails.
25464
25465         utimens: configure better on hosts with NFS clock skew
25466         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25467         uses the clock of the local host.  It might use the clock of the
25468         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25469         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25470
25471 2010-12-25  Bruno Haible  <bruno@clisp.org>
25472
25473         ptsname test: Avoid failure on Solaris.
25474         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25475         open a pseudo-terminal; don't use BSD-style ptys.
25476         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25477
25478 2010-12-25  Bruno Haible  <bruno@clisp.org>
25479
25480         ptsname: Avoid ERANGE failure on some systems.
25481         * lib/ptsname.c (buffer): Increase size.
25482
25483 2010-12-25  Bruno Haible  <bruno@clisp.org>
25484
25485         rename, renameat: Avoid test failures at NFS mounted locations.
25486         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25487         so that subsequent mkdir calls succeed.
25488
25489 2010-12-25  Bruno Haible  <bruno@clisp.org>
25490
25491         iswblank: Fix C++ link error on Solaris 8.
25492         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25493         _GL_FUNCDECL_SYS.
25494
25495 2010-12-25  Bruno Haible  <bruno@clisp.org>
25496
25497         unistd: Fix C++ link error on Solaris 8.
25498         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25499
25500 2010-12-25  Bruno Haible  <bruno@clisp.org>
25501
25502         readlink doc: Mention an old glibc bug.
25503         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25504
25505 2010-12-25  Bruno Haible  <bruno@clisp.org>
25506
25507         fcntl-h: Fix for use of C++ on glibc systems.
25508         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25509         also on glibc systems in C++ mode.
25510         Reported by Gary V. Vaughan <gary@gnu.org>.
25511
25512 2010-12-25  Bruno Haible  <bruno@clisp.org>
25513
25514         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25515         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25516
25517 2010-12-25  Bruno Haible  <bruno@clisp.org>
25518
25519         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25520         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25521         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25522         test whether truncl works according to ISO C 99 with IEC 60559.
25523         * m4/truncl-ieee.m4: New file.
25524         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25525         m4/signbit.m4.
25526         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25527
25528 2010-12-25  Bruno Haible  <bruno@clisp.org>
25529
25530         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25531         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25532         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25533         test whether ceill works according to ISO C 99 with IEC 60559.
25534         * m4/ceill-ieee.m4: New file.
25535         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25536         m4/signbit.m4.
25537         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25538
25539 2010-12-25  Bruno Haible  <bruno@clisp.org>
25540
25541         Ensure all prerequisites of <wchar.h> are included.
25542         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25543         before <wchar.h>.
25544         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25545         gl_MBRLEN_NUL_RETVAL): Likewise.
25546         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25547         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25548         AC_FUNC_MBRTOWC): Likewise.
25549         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25550         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25551         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25552         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25553         Likewise.
25554         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25555         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25556         (gl_WCHAR_H): Improve comments.
25557         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25558
25559 2010-12-25  Bruno Haible  <bruno@clisp.org>
25560
25561         strtok_r: Fix C syntax error in autoconf macro.
25562         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25563         characters in test program.
25564
25565 2010-12-24  Bruno Haible  <bruno@clisp.org>
25566
25567         ceil, trunc, round: Fix gcc warnings.
25568         * lib/ceil.c (MIN): Undefine before redefining.
25569         * lib/trunc.c (MIN): Likewise.
25570         * lib/round.c (MIN): Likewise.
25571         Include <math.h> first.
25572
25573 2010-12-24  Bruno Haible  <bruno@clisp.org>
25574
25575         select tests: Avoid failures on OSF/1 5.1.
25576         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25577         failure of closing the last socket; it may fail with ECONNRESET.
25578
25579 2010-12-24  Eric Blake  <eblake@redhat.com>
25580
25581         stdint: avoid HP-UX 10.20 preprocessor bug
25582         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25583         than #if.
25584         * tests/test-floor2.c (main): Likewise.
25585         Reported by Peter O'Gorman.
25586
25587         pipe: make obsoletion transition easier
25588         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25589         * modules/pipe (Files): Include revived file.
25590         (Include): Drop reference, to mirror getdate's behavior.
25591
25592 2010-12-24  Bruno Haible  <bruno@clisp.org>
25593
25594         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25595         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25596         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25597         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25598
25599 2010-12-24  Bruno Haible  <bruno@clisp.org>
25600
25601         gethostname: Ensure declaration on NonStop Kernel.
25602         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
25603         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25604
25605 2010-12-24  Bruno Haible  <bruno@clisp.org>
25606
25607         sys_select: Ensure all necessary types on NonStop Kernel.
25608         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
25609         include <sys/time.h>.
25610         * doc/posix-headers/sys_select.texi: Mention that it's missing on
25611         NonStop Kernel.
25612         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25613
25614 2010-12-24  Bruno Haible  <bruno@clisp.org>
25615
25616         sys_select: Remove unneeded include.
25617         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
25618         have <sys/select.h>.
25619
25620 2010-12-24  Bruno Haible  <bruno@clisp.org>
25621
25622         gethostname: Provide a fallback for HOST_NAME_MAX.
25623         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
25624         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
25625         instead.
25626         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25627
25628 2010-12-24  Bruno Haible  <bruno@clisp.org>
25629
25630         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
25631         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
25632         (SA_RESTART): Likewise.
25633         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25634
25635 2010-12-24  Bruno Haible  <bruno@clisp.org>
25636
25637         signal: Define NSIG.
25638         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
25639         * tests/test-signal.c (nsig): New variable.
25640         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25641
25642 2010-12-24  Bruno Haible  <bruno@clisp.org>
25643
25644         rename, renameat: Avoid test failures on OSF/1 5.1.
25645         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
25646         alternative error codes.
25647         * tests/test-renameat.c (main): Likewise.
25648
25649 2010-12-24  Bruno Haible  <bruno@clisp.org>
25650
25651         *printf: Detect large precisions bug on Solaris 10/SPARC.
25652         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
25653         by Paul Eggert.
25654         * tests/test-snprintf-posix.h (test_function): Add this test code here
25655         too.
25656         * tests/test-sprintf-posix.h (test_function): Likewise.
25657         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25658         * tests/test-vasprintf-posix.c (test_function): Likewise.
25659         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
25660         around by gnulib.
25661         * doc/posix-functions/printf.texi: Likewise.
25662         * doc/posix-functions/snprintf.texi: Likewise.
25663         * doc/posix-functions/sprintf.texi: Likewise.
25664         * doc/posix-functions/vfprintf.texi: Likewise.
25665         * doc/posix-functions/vprintf.texi: Likewise.
25666         * doc/posix-functions/vsnprintf.texi: Likewise.
25667         * doc/posix-functions/vsprintf.texi: Likewise.
25668         * doc/posix-functions/dprintf.texi: Undo last commit.
25669         * doc/posix-functions/vdprintf.texi: Likewise.
25670
25671 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25672
25673         tests: port test-fdutimensat.c to Solaris 8
25674         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
25675         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
25676         On Solaris 8, it fails with errno == ENOSYS, because there is no
25677         futimens (so it can't use the fd), and there is no lutimens (so it
25678         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
25679
25680         vsnprintf: make more consistent with snprintf; doc fixes
25681
25682         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
25683         the byte count return problem was promoted from the snprintf-posix
25684         to the snprintf module.
25685         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25686         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
25687         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
25688         * tests/test-snprintf.c (main): Check the byte count returned.
25689         * tests/test-vsnprintf.c (main): Likewise.
25690
25691 2010-12-23  Eric Blake  <eblake@redhat.com>
25692
25693         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
25694         * modules/sigpipe (License): Relax license.
25695
25696 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25697
25698         doc: document Solaris printf bug with large float precisions
25699         * doc/posix-functions/dprintf.texi (dprintf):
25700         * doc/posix-functions/fprintf.texi (fprintf):
25701         * doc/posix-functions/printf.texi (printf):
25702         * doc/posix-functions/snprintf.texi (snprintf):
25703         * doc/posix-functions/sprintf.texi (sprintf):
25704         * doc/posix-functions/vdprintf.texi (vdprintf):
25705         * doc/posix-functions/vfprintf.texi (vfprintf):
25706         * doc/posix-functions/vprintf.texi (vprintf):
25707         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25708         * doc/posix-functions/vsprintf.texi (vsprintf):
25709         Mention that these functions mishandle large floating point
25710         precisions on Solaris 10.  The same bug is also present in Solaris
25711         8, and I assume earlier.  This causes "cd gnulib-tests; make
25712         check" to fail on Solaris 8 (and I assume, later) when building
25713         the latest coreutils, in test-vasprintf-posix's call to
25714         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
25715         the wide flavors (e.g., wprintf) so this patch just updates the
25716         documentation for the narrow ones.
25717
25718         test-posixtm.c: add two tests
25719         * tests/test-posixtm.c: Add two tests, to highlight the
25720         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
25721         around this bug; this is merely to document it.
25722
25723 2010-12-22  Bruno Haible  <bruno@clisp.org>
25724
25725         getlogin_r: Work around portability problem on OSF/1.
25726         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
25727         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
25728         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
25729         test for a truncated result.
25730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
25731         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
25732         * modules/getlogin_r (Depends-on): Add memchr.
25733         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
25734
25735 2010-12-22  Bruno Haible  <bruno@clisp.org>
25736
25737         ptsname: Avoid test failure on OSF/1 5.1.
25738         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
25739         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
25740         (same_slave): New function.
25741         (main): Use it to compare ptsname's result with the expected file name.
25742
25743 2010-12-22  Bruno Haible  <bruno@clisp.org>
25744
25745         Port extended stdio modules to HP NonStop Kernel.
25746         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
25747         macros.
25748         * lib/fbufmode.c: Update comments.
25749         * lib/fflush.c: Likewise.
25750         * lib/fpurge.c: Likewise.
25751         * lib/freadable.c: Likewise.
25752         * lib/freadahead.c: Likewise.
25753         * lib/freading.c: Likewise.
25754         * lib/freadptr.c: Likewise.
25755         * lib/freadseek.c: Likewise.
25756         * lib/fseeko.c: Likewise.
25757         * lib/fseterr.c: Likewise.
25758         * lib/fwritable.c: Likewise.
25759         * lib/fwriting.c: Likewise.
25760         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25761
25762 2010-12-22  Bruno Haible  <bruno@clisp.org>
25763
25764         ttyname_r: Work around bug on OSF/1 5.1.
25765         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
25766         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
25767         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
25768         present.
25769         * lib/ttyname_r.c (ttyname_r): Update comments.
25770
25771 2010-12-22  Bruno Haible  <bruno@clisp.org>
25772
25773         round: Implement result sign according to IEEE 754.
25774         * lib/round.c (MIN, MINUS_ZERO): New macros.
25775         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
25776         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
25777         * tests/test-round-ieee.c (main): Likewise.
25778         * tests/test-roundl-ieee.c (main): Likewise.
25779
25780         trunc: Implement result sign according to IEEE 754.
25781         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
25782         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
25783         * tests/test-trunc2.c: Include minus-zero.h.
25784         (MINUS_ZERO): New macro.
25785         (trunc_reference): Keep in sync with lib/trunc.c.
25786         * tests/test-truncf2.c: Include minus-zero.h.
25787         (MINUS_ZERO): New macro.
25788         (truncf_reference): Keep in sync with lib/trunc.c.
25789         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
25790         * tests/test-trunc-ieee.c (main): Likewise.
25791         * tests/test-truncl-ieee.c (main): Likewise.
25792
25793         ceil: Implement result sign according to IEEE 754.
25794         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
25795         (FUNC): Return -0.0 for -1 < x < 0.
25796         * tests/test-ceil2.c: Include minus-zero.h.
25797         (MINUS_ZERO): New macro.
25798         (ceil_reference): Keep in sync with lib/ceil.c.
25799         * tests/test-ceilf2.c: Include minus-zero.h.
25800         (MINUS_ZERO): New macro.
25801         (ceilf_reference): Keep in sync with lib/ceil.c.
25802         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
25803         * tests/test-ceil-ieee.c (main): Likewise.
25804         * tests/test-ceill-ieee.c (main): Likewise.
25805
25806         floor: Implement result sign according to IEEE 754.
25807         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
25808         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
25809         * tests/test-floorf2.c (floorf_reference): Likewise.
25810         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
25811         * tests/test-floor-ieee.c (main): Likewise.
25812         * tests/test-floorl-ieee.c (main): Likewise.
25813
25814 2010-12-22  Bruno Haible  <bruno@clisp.org>
25815
25816         getaddrinfo: Update doc.
25817         * doc/posix-functions/gai_strerror.texi: Return type is also different
25818         on AIX and HP-UX.
25819
25820 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25821
25822         getaddrinfo, inet_ntop: Update doc for Solaris.
25823         * doc/posix-functions/gai_strerror.texi: Return type is also an
25824         issue on Solaris 9 and earlier.
25825         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
25826         on Solaris 10 and earlier.
25827
25828 2010-12-21  Bruno Haible  <bruno@clisp.org>
25829
25830         New module 'roundl-ieee'.
25831         * modules/roundl-ieee: New file.
25832         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
25833         test whether roundl works according to ISO C 99 with IEC 60559.
25834         * m4/roundl-ieee.m4: New file.
25835         * modules/roundl-ieee-tests: New file.
25836         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
25837         * tests/test-roundl.c (main): Remove signbit tests.
25838         * modules/roundl-tests (Depends-on): Remove signbit.
25839         * doc/posix-functions/roundl.texi: Mention the new module.
25840
25841 2010-12-21  Bruno Haible  <bruno@clisp.org>
25842
25843         New module 'truncl-ieee'.
25844         * modules/truncl-ieee: New file.
25845         * modules/truncl-ieee-tests: New file.
25846         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
25847         * tests/test-truncl.c (main): Remove signbit tests.
25848         * modules/truncl-tests (Depends-on): Remove signbit.
25849         * doc/posix-functions/truncl.texi: Mention the new module.
25850
25851 2010-12-21  Bruno Haible  <bruno@clisp.org>
25852
25853         New module 'ceill-ieee'.
25854         * modules/ceill-ieee: New file.
25855         * modules/ceill-ieee-tests: New file.
25856         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
25857         * tests/test-ceill.c (main): Remove signbit tests.
25858         * modules/ceill-tests (Depends-on): Remove signbit.
25859         * doc/posix-functions/ceill.texi: Mention the new module.
25860
25861 2010-12-21  Bruno Haible  <bruno@clisp.org>
25862
25863         New module 'floorl-ieee'.
25864         * modules/floorl-ieee: New file.
25865         * modules/floorl-ieee-tests: New file.
25866         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
25867         * tests/test-floorl.c (main): Remove signbit tests.
25868         * modules/floorl-tests (Depends-on): Remove signbit.
25869         * doc/posix-functions/floorl.texi: Mention the new module.
25870
25871 2010-12-21  Bruno Haible  <bruno@clisp.org>
25872
25873         New module 'round-ieee'.
25874         * modules/round-ieee: New file.
25875         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
25876         whether round works according to ISO C 99 with IEC 60559.
25877         * m4/round-ieee.m4: New file.
25878         * modules/round-ieee-tests: New file.
25879         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
25880         * tests/test-round1.c (main): Remove signbit tests.
25881         * modules/round-tests (Depends-on): Remove 'signbit'.
25882         * doc/posix-functions/round.texi: Mention the new module.
25883
25884 2010-12-21  Bruno Haible  <bruno@clisp.org>
25885
25886         New module 'trunc-ieee'.
25887         * modules/trunc-ieee: New file.
25888         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
25889         whether trunc works according to ISO C 99 with IEC 60559.
25890         * m4/trunc-ieee.m4: New file.
25891         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
25892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
25893         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
25894         * modules/trunc-ieee-tests: New file.
25895         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
25896         * tests/test-trunc1.c (main): Remove signbit tests.
25897         * modules/trunc-tests (Depends-on): Remove 'signbit'.
25898         * doc/posix-functions/trunc.texi: Mention the new module.
25899
25900 2010-12-21  Bruno Haible  <bruno@clisp.org>
25901
25902         New module 'ceil-ieee'.
25903         * modules/ceil-ieee: New file.
25904         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
25905         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
25906         ISO C 99 with IEC 60559.
25907         * m4/ceil-ieee.m4: New file.
25908         * modules/ceil (Files): Add lib/ceil.c.
25909         (Depends-on): Add 'float'.
25910         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25911         * lib/math.in.h (ceil): New declaration.
25912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
25913         REPLACE_CEIL.
25914         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
25915         * modules/ceil-ieee-tests: New file.
25916         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
25917         * tests/test-math-c++.cc: Check the signature of 'ceil'.
25918         * doc/posix-functions/ceil.texi: Mention the new module.
25919
25920 2010-12-21  Bruno Haible  <bruno@clisp.org>
25921
25922         New module 'floor-ieee'.
25923         * modules/floor-ieee: New file.
25924         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
25925         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
25926         ISO C 99 with IEC 60559.
25927         * m4/floor-ieee.m4: New file.
25928         * modules/floor (Files): Add lib/floor.c.
25929         (Depends-on): Add 'float'.
25930         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25931         * lib/math.in.h (floor): New declaration.
25932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
25933         REPLACE_FLOOR.
25934         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
25935         * modules/floor-ieee-tests: New file.
25936         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
25937         * tests/test-math-c++.cc: Check the signature of 'floor'.
25938         * doc/posix-functions/floor.texi: Mention the new module.
25939
25940 2010-12-21  Bruno Haible  <bruno@clisp.org>
25941
25942         New module 'roundf-ieee'.
25943         * modules/roundf-ieee: New file.
25944         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
25945         test whether roundf works according to ISO C 99 with IEC 60559.
25946         * m4/roundf-ieee.m4: New file.
25947         * modules/roundf-ieee-tests: New file.
25948         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
25949         * tests/test-roundf1.c (main): Remove signbit tests.
25950         * modules/roundf-tests (Depends-on): Remove 'signbit'.
25951         * doc/posix-functions/roundf.texi: Mention the new module.
25952
25953 2010-12-21  Bruno Haible  <bruno@clisp.org>
25954
25955         New module 'truncf-ieee'.
25956         * modules/truncf-ieee: New file.
25957         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
25958         test whether truncf works according to ISO C 99 with IEC 60559.
25959         * m4/truncf-ieee.m4: New file.
25960         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
25961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
25962         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
25963         * modules/truncf-ieee-tests: New file.
25964         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
25965         * tests/test-truncf1.c (main): Remove signbit tests.
25966         * modules/truncf-tests (Depends-on): Remove 'signbit'.
25967         * doc/posix-functions/truncf.texi: Mention the new module.
25968
25969 2010-12-21  Bruno Haible  <bruno@clisp.org>
25970
25971         New module 'ceilf-ieee'.
25972         * modules/ceilf-ieee: New file.
25973         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
25974         test whether ceilf works according to ISO C 99 with IEC 60559.
25975         * m4/ceilf-ieee.m4: New file.
25976         * modules/ceilf-ieee-tests: New file.
25977         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
25978         * tests/test-ceilf1.c (main): Remove signbit tests.
25979         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
25980         * doc/posix-functions/ceilf.texi: Mention the new module.
25981
25982 2010-12-21  Bruno Haible  <bruno@clisp.org>
25983
25984         New module 'floorf-ieee'.
25985         * modules/floorf-ieee: New file.
25986         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
25987         test whether floorf works according to ISO C 99 with IEC 60559.
25988         * m4/floorf-ieee.m4: New file.
25989         * modules/floorf-ieee-tests: New file.
25990         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
25991         * tests/test-floorf1.c (main): Remove signbit tests.
25992         * modules/floorf-tests (Depends-on): Remove 'signbit'.
25993         * doc/posix-functions/floorf.texi: Mention the new module.
25994
25995 2010-12-21  Bruno Haible  <bruno@clisp.org>
25996
25997         Support for minus zero in autoconf macros.
25998         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
25999         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26000         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26001         * tests/minus-zero.h: Update comments.
26002
26003 2010-12-21  Bruno Haible  <bruno@clisp.org>
26004
26005         Tests for module 'ceil'.
26006         * modules/ceil-tests: New file.
26007         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26008         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26009
26010 2010-12-21  Bruno Haible  <bruno@clisp.org>
26011
26012         Tests for module 'floor'.
26013         * modules/floor-tests: New file.
26014         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26015         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26016
26017 2010-12-21  Bruno Haible  <bruno@clisp.org>
26018
26019         math: Fix indentation.
26020         * lib/math.in.h (floorf): Fix indentation.
26021
26022 2010-12-21  Bruno Haible  <bruno@clisp.org>
26023
26024         Fix cross-compilation guesses on Solaris.
26025         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26026         not match "solaris2.10".
26027         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26028         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26029         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26030
26031 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26032
26033         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26034         This fixes a problem observed with the latest coreutils snapshot
26035         that caused a test to fail on Solaris 8.  src/csplit.c's call
26036         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26037         earlier, instead of returning the number of bytes that would have
26038         been generated; this causes csplit to incorrectly report memory
26039         exhaustion.
26040         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26041         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26042         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26043         comments to match.
26044         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26045         Fix typo in matching older versions of Solaris: "solaris2.10"
26046         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26047         only for guessing while cross-compiling.
26048         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26049
26050 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26051
26052         ftoastr: fix comment again
26053         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26054         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26055         Also, simplify example a bit by using flags = 0.
26056
26057 2010-12-20  Bruno Haible  <bruno@clisp.org>
26058
26059         round*, trunc*: Update documentation regarding glibc.
26060         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26061         * doc/posix-functions/round.texi: Likewise.
26062         * doc/posix-functions/roundl.texi: Likewise.
26063         * doc/posix-functions/truncf.texi: Likewise.
26064         * doc/posix-functions/trunc.texi: Likewise.
26065         * doc/posix-functions/truncl.texi: Likewise.
26066
26067 2010-12-20  Bruno Haible  <bruno@clisp.org>
26068
26069         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26070         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26071         * doc/posix-functions/round.texi: Likewise.
26072         * doc/posix-functions/roundl.texi: Likewise.
26073
26074 2010-12-20  Bruno Haible  <bruno@clisp.org>
26075
26076         ttyname_r: Add missing declaration on HP-UX 11.
26077         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26078         HAVE_TTYNAME_R.
26079         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26080         declared. Set HAVE_TTYNAME_R always.
26081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26082         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26083         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26084         HAVE_TTYNAME_R.
26085         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26086
26087 2010-12-20  Bruno Haible  <bruno@clisp.org>
26088
26089         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26090         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26091         * doc/posix-functions/getlogin_r.texi: Likewise.
26092         * tests/test-getlogin.c: Include <errno.h>.
26093         (main): Avoid test failure on HP-UX 11.11.
26094         * tests/test-getlogin_r.c (main): Likewise.
26095
26096 2010-12-20  Bruno Haible  <bruno@clisp.org>
26097
26098         getlogin_r: Add missing declaration on HP-UX 11.
26099         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26100         declared also when it exists as a function.
26101         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26102
26103 2010-12-20  Bruno Haible  <bruno@clisp.org>
26104
26105         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26106         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26107         through wcrtomb.
26108
26109 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26110
26111         ftoastr: fix comment
26112         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26113         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26114
26115 2010-12-19  Bruno Haible  <bruno@clisp.org>
26116
26117         isnan: Ensure it is a macro.
26118         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26119         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26120         Solaris.
26121
26122 2010-12-19  Bruno Haible  <bruno@clisp.org>
26123
26124         ldexpl test: Fix link error on OSF/1 5.1.
26125         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26126
26127 2010-12-19  Bruno Haible  <bruno@clisp.org>
26128
26129         wctype: Make it work in C++ mode on OSF/1 5.1.
26130         * lib/wctype.in.h (iswblank): Declare but not define here.
26131         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26132         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26133         * modules/wctype (Files): Add lib/iswblank.c.
26134
26135 2010-12-19  Bruno Haible  <bruno@clisp.org>
26136
26137         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26138         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26139         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26140
26141 2010-12-19  Bruno Haible  <bruno@clisp.org>
26142
26143         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26144         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26145         _POSIX_PII_SOCKET.
26146         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26147         * doc/posix-functions/recvfrom.texi: Likewise.
26148         * doc/posix-functions/send.texi: Likewise.
26149         * doc/posix-functions/sendto.texi: Likewise.
26150
26151 2010-12-19  Bruno Haible  <bruno@clisp.org>
26152
26153         tcgetsid: Add missing declaration on OSF/1 5.1.
26154         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26155         HAVE_TCGETSID.
26156         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26157         Don't set HAVE_TCGETSID.
26158         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26159         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26160         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26161         HAVE_TCGETSID.
26162         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26163
26164 2010-12-19  Bruno Haible  <bruno@clisp.org>
26165
26166         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26167         * lib/stdio.in.h: During the include_next statement, let recursive
26168         includes of this file include only the system header file.
26169
26170 2010-12-19  Bruno Haible  <bruno@clisp.org>
26171
26172         iconv_open: Fix regression from 2010-12-04.
26173         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26174         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26175
26176 2010-12-19  Bruno Haible  <bruno@clisp.org>
26177
26178         stdbool test: Avoid a gcc warning.
26179         * tests/test-stdbool.c (main): Fail if e1 is false.
26180         Reported by Jim Meyering.
26181
26182 2010-12-19  Jim Meyering  <meyering@redhat.com>
26183
26184         setenv: restore to working order
26185         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26186         mistakenly removed.
26187         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26188         HAVE_SETENV.
26189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26190         HAVE_SETENV.
26191
26192 2010-12-19  Bruno Haible  <bruno@clisp.org>
26193
26194         Document some different function declarations on OSF/1 5.1.
26195         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26196         * doc/posix-functions/inet_ntop.texi: Likewise.
26197         * doc/posix-functions/gethostname.texi: Likewise.
26198         * lib/unistd.in.h (gethostname): Update comment.
26199
26200 2010-12-19  Bruno Haible  <bruno@clisp.org>
26201
26202         doc: Mention vasprintf-posix module.
26203         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26204         the 'vasprintf-posix' module.
26205         * doc/glibc-functions/vasprintf.texi: Likewise.
26206
26207 2010-12-19  Bruno Haible  <bruno@clisp.org>
26208
26209         unsetenv: Add missing declaration on OSF/1 5.1.
26210         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26211         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26212         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26214         not HAVE_UNSETENV.
26215         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26216         HAVE_UNSETENV.
26217         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26218
26219 2010-12-19  Bruno Haible  <bruno@clisp.org>
26220
26221         setenv: Add missing declaration on OSF/1 5.1.
26222         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26223         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26224         declared. Don't set HAVE_SETENV.
26225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26226         not HAVE_SETENV.
26227         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26228         HAVE_SETENV.
26229         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26230
26231 2010-12-19  Bruno Haible  <bruno@clisp.org>
26232
26233         nl_langinfo tests: Avoid gcc warning.
26234         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26235
26236 2010-12-19  Bruno Haible  <bruno@clisp.org>
26237
26238         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26239         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26240         _GL_CXXALIAS_SYS.
26241
26242 2010-12-19  Bruno Haible  <bruno@clisp.org>
26243
26244         stdbool: Relax test.
26245         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26246         address to 'bool' work in static initializer, for compilers other than
26247         GCC.
26248
26249 2010-12-19  Bruno Haible  <bruno@clisp.org>
26250
26251         ftello: Add missing declaration on OSF/1 5.1.
26252         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26253         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26255         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26256         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26257
26258 2010-12-19  Bruno Haible  <bruno@clisp.org>
26259
26260         fseeko: Add missing declaration on OSF/1 5.1.
26261         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26262         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26264         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26265         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26266
26267 2010-12-19  Bruno Haible  <bruno@clisp.org>
26268
26269         fchdir: Add missing declaration on OSF/1 5.1.
26270         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26273         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26274         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26275
26276 2010-12-19  Bruno Haible  <bruno@clisp.org>
26277
26278         relocatable-prog-wrapper: Separate from relocatable-prog.
26279         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26280         uninstall-relocwrapper rule here.
26281         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26282         Reported by Ian Beckwith <ianb@erislabs.net>.
26283
26284 2010-12-19  Bruno Haible  <bruno@clisp.org>
26285
26286         unistr/u8-mbsnlen: Add missing dependency.
26287         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26288         Reported by Ian Beckwith <ianb@erislabs.net>.
26289
26290 2010-12-19  Bruno Haible  <bruno@clisp.org>
26291
26292         iconv: Make it possible again to use this module without 'iconv-h'.
26293         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26294         if it is not defined.
26295         Reported by Ian Beckwith <ianb@erislabs.net>.
26296
26297 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26298
26299         acl: port to Solaris 8 when copying from tmpfs to ufs
26300         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26301         error number.  Problem observed on Solaris 8 with latest
26302         coreutils, with "mv A B", where A is on a tmpfs file system and B
26303         is on a ufs file system.  This caused coreutils' mv/part-symlink
26304         test to fail.
26305
26306         tests: set fail=0 at start
26307         * tests/init.sh (setup_): Move fail=0 initialization here ...
26308         (mktempd_): ... from here, so that tests can rely on fail being
26309         set to 0 initially.  This fixes a problem in coreutils; see:
26310         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26311
26312 2010-12-18  Bruno Haible  <bruno@clisp.org>
26313
26314         memmem-simple: Stylistic changes.
26315         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26316         Fix preprocessor directive indentation.
26317
26318 2010-12-15  Pádraig Brady <P@draigBrady.com>
26319
26320         memmem, memmem-simple: reorganize and expand empty needle check
26321         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26322         functional checks to memmem-simple so that one has a fully functional
26323         memmem by using just this module.
26324         Restrict the performance only check to the memmem module.
26325         Also expand the empty needle check to ensure the correct
26326         pointer is returned, not just a non NULL pointer.
26327         * doc/glibc-functions/memmem.texi: Rearrange the portability
26328         documentation to correlate with the rearranged checks.
26329         Clarify exactly how the memmem and memmem-simple modules
26330         relate to each other.
26331
26332 2010-12-15  Pádraig Brady <P@draigBrady.com>
26333             Bruno Haible  <bruno@clisp.org>
26334
26335         Improve cross-compilation guesses for uClibc.
26336         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26337         that uClibc does not have the glibc bug.
26338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26339         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26340
26341 2010-12-14  Eric Blake  <eblake@redhat.com>
26342
26343         configmake: provide fallbacks for oldest supported autotools
26344         * m4/configmake.m4: New file.
26345         * modules/configmake (Files): Ship it.
26346         (configure.ac): Use it to guarantee fallbacks.
26347
26348 2010-12-13  Pádraig Brady <P@draigBrady.com>
26349
26350         read-file: Improve handling of large files
26351         * lib/read-file.c (fread_file): Minimize realloc()s
26352         for regular files, and better manage sizes around SIZE_MAX.
26353
26354 2010-12-13  Eric Blake  <eblake@redhat.com>
26355
26356         cloexec, fcntl: relax license
26357         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26358         consent from all contributors.
26359         * modules/fcntl (License): Likewise.
26360
26361 2010-12-10  Bruno Haible  <bruno@clisp.org>
26362
26363         Tests for module 'pipe-posix'.
26364         * modules/pipe-posix-tests: New file.
26365         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26366
26367 2010-12-10  Bruno Haible  <bruno@clisp.org>
26368
26369         pipe-posix: Make it work in C++ mode.
26370         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26371         (pipe): Use common idiom, not a macro definition.
26372         * lib/pipe.c: New file.
26373         * m4/pipe.m4: New file.
26374         * modules/pipe-posix (Description): Enhance.
26375         (Files): Add lib/pipe.c, m4/pipe.m4.
26376         (configure.ac): Invoke gl_FUNC_PIPE.
26377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26378         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26379         * tests/test-unistd-c++.cc: Check the signature of pipe.
26380
26381 2010-12-10  Bruno Haible  <bruno@clisp.org>
26382
26383         Rename module 'pipe' to 'spawn-pipe'.
26384         * modules/spawn-pipe: New file, renamed from modules/pipe.
26385         (Files, configure.ac, Makefile.am): Update.
26386         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26387         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26388         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26389         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26390         "spawn-pipe.h" instead of "pipe.h".
26391         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26392         to gl_SPAWN_PIPE.
26393         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26394         (Files, Makefile.am): Update.
26395         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26396         Update.
26397         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26398         Include "spawn-pipe.h" instead of "pipe.h".
26399         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26400         * lib/javacomp.c: Likewise.
26401         * lib/javaversion.c: Likewise.
26402         * lib/pipe-filter-gi.c: Likewise.
26403         * lib/pipe-filter-ii.c: Likewise.
26404         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26405         * modules/javacomp (Depends-on): Likewise.
26406         * modules/javaversion (Depends-on): Likewise.
26407         * modules/pipe-filter-gi (Depends-on): Likewise.
26408         * modules/pipe-filter-ii (Depends-on): Likewise.
26409         * MODULES.html.sh (Executing programs): Update.
26410         * NEWS: Mention the change.
26411
26412 2010-12-10  Eric Blake  <eblake@redhat.com>
26413
26414         pipe-posix: new module
26415         * modules/pipe-posix: New file.
26416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26417         (gl_UNISTD_H): Check for declaration.
26418         * modules/unistd (Makefile.am): Substitute it.
26419         * lib/unistd.in.h (pipe): Provide it for mingw.
26420         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26421         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26422
26423 2010-12-07  Bruno Haible  <bruno@clisp.org>
26424
26425         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26426         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26427         u8_strcmp_gnu.
26428         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26429
26430 2010-12-06  Bruno Haible  <bruno@clisp.org>
26431
26432         Update internal documentation.
26433         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26434
26435 2010-12-04  Bruno Haible  <bruno@clisp.org>
26436
26437         Put more information about failed tests into the test return codes.
26438         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26439         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26440         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26441         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26442         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26443         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26444         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26445         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26446         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26447         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26448         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26449         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26450         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26451         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26452         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26453         returns a bit mask.
26454         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26455         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26456         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26457         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26458         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26459         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26460         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26461         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26462         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26463         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26464         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26465         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26466         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26467         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26468         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26469         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26470         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26471         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26472         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26473         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26474         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26475         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26476         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26477         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26478         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26479         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26480         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26481         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26482         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26483         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26484         gl_PRINTF_PRECISION): Likewise.
26485         * m4/regex.m4 (gl_REGEX): Likewise.
26486         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26487         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26488         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26489         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26490         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26491         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26492         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26493         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26494         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26495         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26496         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26497         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26498         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26499         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26500         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26501         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26502         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26503         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26504         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26505         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26506         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26507         enumerated value.
26508         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26509
26510 2010-12-04  Bruno Haible  <bruno@clisp.org>
26511
26512         Update for Solaris 11 2010-11.
26513         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26514         Express, released in November 2010.
26515
26516 2010-12-04  Bruno Haible  <bruno@clisp.org>
26517
26518         nproc: Relax license.
26519         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26520         and Paul Eggert.
26521         Requested by Ludovic Courtès <ludo@gnu.org>.
26522
26523 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26524
26525         utimecmp: fine-grained src to nearby coarse-grained dest
26526
26527         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26528         and the source is on a file system with higher-resolution time
26529         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26530         not work, and the time stamps are close together, the algorithm to
26531         determine the exact resolution from the read-back mtime was buggy:
26532         it had a "!=" where it should have had an "==".  This bug has been
26533         in the code ever since it was introduced to gnulib.
26534         Problem reported by Dan Jacobson in
26535         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26536
26537 2010-11-30  Bruno Haible  <bruno@clisp.org>
26538
26539         strerror_r-posix: Fix autoconf test.
26540         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26541
26542 2010-11-28  Bruno Haible  <bruno@clisp.org>
26543             Paul Eggert  <eggert@cs.ucla.edu>
26544
26545         Tests for module 'getdomainname'.
26546         * modules/getdomainname-tests: New file.
26547         * tests/test-getdomainname.c: New file, based on
26548         tests/test-gethostname.c.
26549
26550 2010-11-28  Bruno Haible  <bruno@clisp.org>
26551             Paul Eggert  <eggert@cs.ucla.edu>
26552
26553         getdomainname: Use the system function when possible.
26554         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26555         (getdomainname): Replace if needed. Provide the declaration if it is
26556         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26557         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26558         (getdomainname): When the system has getdomainname, call the system
26559         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26560         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26561         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26562         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26563         the function if its second argument is of type 'int' or if it is found
26564         in libnsl.
26565         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26566         <sys/systeminfo.h> and sysinfo().
26567         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26569         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26570         HAVE_GETDOMAINNAME.
26571         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26572         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26573         * doc/glibc-functions/getdomainname.texi: Document the problems with
26574         the getdomainname declaration.
26575
26576 2010-11-28  Bruno Haible  <bruno@clisp.org>
26577
26578         sys_socket: Ensure ss_family field on AIX.
26579         * lib/sys_socket.in.h (ss_family): New macro definition.
26580         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26581         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26582         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26583         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26584         * modules/sys_socket (Makefile.am): Substitute
26585         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26586         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26587
26588 2010-11-27  Bruno Haible  <bruno@clisp.org>
26589
26590         readline: Improve configure output.
26591         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26592         "checking for readline..." result understandable.
26593
26594 2010-11-27  Bruno Haible  <bruno@clisp.org>
26595
26596         *printf-posix: Detect a bug on Solaris 10/x86.
26597         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26598         for floating-point output.
26599         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26600         directive.
26601         * tests/test-snprintf-posix.h (test_function): Likewise.
26602         * tests/test-sprintf-posix.h (test_function): Likewise.
26603         * tests/test-vasprintf-posix.c (test_function): Likewise.
26604         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
26605         * doc/posix-functions/printf.texi: Likewise.
26606         * doc/posix-functions/snprintf.texi: Likewise.
26607         * doc/posix-functions/sprintf.texi: Likewise.
26608         * doc/posix-functions/vfprintf.texi: Likewise.
26609         * doc/posix-functions/vprintf.texi: Likewise.
26610         * doc/posix-functions/vsnprintf.texi: Likewise.
26611         * doc/posix-functions/vsprintf.texi: Likewise.
26612         * doc/glibc-functions/obstack_printf.texi: Likewise.
26613         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26614
26615 2010-11-27  Bruno Haible  <bruno@clisp.org>
26616
26617         Fix link error when module libunistring-optional is in use.
26618         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
26619         * modules/striconveha-tests (Makefile.am): Likewise.
26620
26621 2010-11-27  Bruno Haible  <bruno@clisp.org>
26622
26623         regex: Mention link dependencies.
26624         * modules/regex (Link): New section.
26625         * modules/rpmatch (Link): Likewise.
26626         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
26627
26628 2010-11-27  Bruno Haible  <bruno@clisp.org>
26629
26630         ftoastr: Fix compilation error on Solaris.
26631         * lib/ftoastr.c: Include <config.h>.
26632
26633 2010-11-27  Bruno Haible  <bruno@clisp.org>
26634
26635         getloadavg: Update documentation.
26636         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
26637
26638 2010-11-27  Bruno Haible  <bruno@clisp.org>
26639
26640         sys_socket: Fix test whether the functions are declared.
26641         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
26642         not <sys/select.h>.
26643
26644 2010-11-27  Bruno Haible  <bruno@clisp.org>
26645
26646         getpass: Make sure to get system declaration on some platforms.
26647         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
26648         gl_USE_SYSTEM_EXTENSIONS.
26649         * modules/getpass (Depends-on): Add extensions.
26650
26651 2010-11-26  Bruno Haible  <bruno@clisp.org>
26652
26653         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
26654         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
26655         'iconv' module is present.
26656         (ICONV_CONST): New macro.
26657         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26658         ICONV_CONST.
26659         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
26660         set ICONV_CONST.
26661         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
26662         here.
26663         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
26664         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
26665         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
26666         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
26667         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
26668         present.
26669
26670 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26671
26672         ftoastr: comment fix
26673         * lib/ftoastr.c: "little" -> "little or no" in comment
26674
26675 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
26676
26677         stdint: port to GCC 4.3 + OSX + Octave
26678         On this platform, stdint.h is buggy and defines int64_t to long
26679         long int.  The replacement defined it to long int, causing
26680         problems with C++ style name mangling.  Instead, trust the system
26681         definition if INT64_MAX is defined, and likewise for the unsigned
26682         variant.   Problem reported by Jarno Rajahalme in
26683         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
26684         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
26685         and don't mess with int64_t and INT64_MAX in this case.
26686         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
26687
26688 2010-11-24  Bruno Haible  <bruno@clisp.org>
26689
26690         doc: Corrections regarding MacOS X 10.4 and 10.5.
26691         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
26692         MacOS X.
26693         Reported by Simon Josefsson.
26694
26695 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
26696
26697         Uninstall ".bin" files installed by relocwrapper.
26698         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
26699         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
26700         unless it is already there.
26701
26702 2010-11-21  Bruno Haible  <bruno@clisp.org>
26703
26704         Update for NetBSD 5.0.
26705         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26706         NetBSD; the test fails on NetBSD 5.0.
26707         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26708         about NetBSD.
26709
26710 2010-11-21  Bruno Haible  <bruno@clisp.org>
26711
26712         Update for HP-UX 11.23 and HP-UX 11.31.
26713         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
26714         HP-UX.
26715
26716 2010-11-21  Bruno Haible  <bruno@clisp.org>
26717
26718         Update for MacOS X 10.5.
26719         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26720         MacOS X; the test fails on MacOS X 10.5.8.
26721         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26722         about MacOS X.
26723
26724 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
26725
26726         bootstrap: add bootstrap_sync option.
26727         See discussion at
26728         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
26729         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
26730         * build-aux/bootstrap: Accept --bootstrap-sync to update
26731         bootstrap if it is not identical to the local gnulib's
26732         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
26733         enable this by default.  Accept --no-bootstrap-sync to disable
26734         it.
26735
26736 2010-11-20  Bruno Haible  <bruno@clisp.org>
26737
26738         Ensure that <features.h> is included before __GLIBC__ is tested.
26739         * lib/printf-parse.h: Include <features.h>.
26740         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
26741         Reported by Mike Frysinger <vapier@gentoo.org>.
26742
26743         Ensure that <features.h> is included before __GLIBC__ is tested.
26744         * lib/wchar.in.h: Include <features.h>.
26745         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
26746         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
26747         Reported by Mike Frysinger <vapier@gentoo.org>.
26748
26749         Ensure that <features.h> is included before __GLIBC__ is tested.
26750         * lib/arpa_inet.in.h: Include <features.h>.
26751         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
26752         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
26753         Reported by Mike Frysinger <vapier@gentoo.org>.
26754
26755         Ensure that <features.h> is included before __GLIBC__ is tested.
26756         * build-aux/link-warning.h: Include <features.h>.
26757         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
26758         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
26759         Reported by Mike Frysinger <vapier@gentoo.org>.
26760
26761         Ensure that <features.h> is included before __GLIBC__ is tested.
26762         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
26763         Reported by Mike Frysinger <vapier@gentoo.org>.
26764
26765 2010-11-20  Bruno Haible  <bruno@clisp.org>
26766
26767         memmem: Fix autoconf test.
26768         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
26769
26770 2010-11-20  Bruno Haible  <bruno@clisp.org>
26771
26772         Port to uClibc.
26773         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
26774         * lib/fcntl.in.h: Likewise.
26775         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
26776         * lib/mbrtowc.c (mbrtowc): Likewise.
26777         * lib/relocatable.c (find_shared_library_fullname): Likewise.
26778         * lib/strerror_r.c: Likewise.
26779         * lib/unistr/u8-strnlen.c: Likewise.
26780         * lib/vasnprintf.c (decimal_point_char): Likewise.
26781         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26782         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26783         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26784         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26785         * tests/test-sigaction.c (handler, main): Likewise.
26786         * lib/freading.h: Treat uClibc like a non-glibc platform.
26787         * lib/freading.c: Likewise.
26788         * lib/gettext.h: Likewise.
26789         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
26790         Likewise.
26791         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
26792         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
26793         * lib/propername.c (proper_name_utf8): Likewise.
26794         * lib/spawn.in.h: Likewise.
26795         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
26796         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
26797         mem_cd_iconveh_internal): Likewise.
26798         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
26799         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26800         strstr, strcasestr): Likewise.
26801         * lib/unicodeio.c (unicode_to_mb): Likewise.
26802         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
26803         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
26804         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
26805         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
26806         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
26807         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
26808         * lib/unistr/u8-stpncpy.c: Likewise.
26809         * lib/vasnprintf.c (VASNPRINTF): Likewise.
26810         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
26811         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26812         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26813         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26814         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
26815         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
26816         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
26817         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
26818         Likewise.
26819         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26820         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26821         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26822         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26823         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26824         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26825         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26826         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26827         * tests/test-getopt.h (OPTIND_MIN): Likewise.
26828         * tests/test-striconveha.c (main): Likewise.
26829         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26830         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
26831         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
26832         * doc/posix-functions/getline.texi: Likewise.
26833         Reported by Mike Frysinger <vapier@gentoo.org>.
26834
26835 2010-11-20  Bruno Haible  <bruno@clisp.org>
26836
26837         nproc: Fix condition.
26838         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
26839         HAVE_PTHREAD_AFFINITY_NP.
26840
26841 2010-11-20  Bruno Haible  <bruno@clisp.org>
26842
26843         Fix a comment.
26844         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
26845
26846 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
26847
26848         ftoastr: don't assume snprintf
26849         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
26850         Implement a subset of snprintf here, by using sprintf safely.
26851         * modules/ftoastr (Depends-on): Remove snprintf.
26852
26853 2010-11-19  Jim Meyering  <meyering@redhat.com>
26854
26855         test-rename.h: fix compilation failure
26856         * tests/test-rename.h (test_rename): Add omitted "}".
26857
26858 2010-11-17  Jim Meyering  <meyering@redhat.com>
26859
26860         maint.mk: add a URL discussing the no-@acronym policy
26861         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
26862
26863 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26864
26865         ftoastr: depend on snprintf, improve comments
26866         * lib/ftoastr.c: Also mention Loitsch's draft.
26867         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
26868         needed in the current implementation, but it might simplify
26869         speeding up the code later.
26870         * modules/ftoastr: Depend on snprintf; this improves portability.
26871         Suggested by Bruno Haible in the same email.
26872
26873         ftoastr: port to hosts lacking strtof and strtold
26874         Problem reported by Bruno Haible in
26875         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
26876         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
26877         environment and strtold (and presumably strtof) are not available.
26878         * modules/ftoastr (Files): Add m4/c-strtod.m4.
26879         (configure.ac): Require gl_C99_STRTOLD.
26880
26881 2010-11-18  Bruno Haible  <bruno@clisp.org>
26882
26883         c-strtold: Avoid link error on AIX 7.
26884         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
26885         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
26886         (gl_C_STRTOLD): Test whether strtold_l exists.
26887         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26888
26889 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26890
26891         intprops: new macro INT_BITS_STRLEN_BOUND
26892         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
26893         ftoastr.h.  This exposes an internal of intprops.h that was formerly
26894         not exposed.  Also, it uses a slightly tighter bound than before;
26895         though this makes no practical difference, we might as well be as
26896         tight as we easily can.
26897
26898         ftoastr: new module, for lossless conversion of floats to short strings
26899         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
26900         * modules/ftoastr: New files.
26901
26902 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26903
26904         bootstrap: port to Solaris sed
26905         * build-aux/bootstrap (get_version): Port to Solaris sed.
26906         See Ralf Wildenhues's note in
26907         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
26908
26909 2010-11-14  Jim Meyering  <meyering@redhat.com>
26910
26911         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
26912         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
26913         and move definition closer to sole use.
26914
26915 2010-11-13  Jim Meyering  <meyering@redhat.com>
26916
26917         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
26918         Now we require at least autoconf-2.59, which means the work-around
26919         is no longer needed.
26920         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
26921         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26922         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26923         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26924         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26925
26926 2010-11-13  Bruno Haible  <bruno@clisp.org>
26927
26928         rename, renameat: Avoid test failures at NFS mounted locations.
26929         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
26930         functions.
26931         (test_rename): Use assert_nonexistent.
26932         * tests/test-rename.c: Include <dirent.h>.
26933         * tests/test-renameat.c: Likewise.
26934         Reported by Gary V. Vaughan <gary@gnu.org>.
26935
26936         rename, renameat: Document Linux bug with NFS
26937         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
26938         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
26939         * doc/posix-functions/renameat.texi: Likewise.
26940         Suggested by Eric Blake.
26941
26942 2010-11-13  Bruno Haible  <bruno@clisp.org>
26943
26944         rename test: Add comments.
26945         * tests/test-rename.h (test_rename): Add structure and comments.
26946
26947 2010-11-13  Eric Blake  <eblake@redhat.com>
26948
26949         maintainer-makefile: cover a few more files
26950         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
26951         scripts generated within C files, for libvirt.
26952
26953 2010-11-13  Bruno Haible  <bruno@clisp.org>
26954
26955         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
26956         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
26957         character, return the number of bytes that belong together, not always
26958         1.
26959         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26960         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26961         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26962         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
26963         number of bytes of an invalid character.
26964         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
26965         (main): Invoke it.
26966         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
26967         results.
26968         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
26969         malformed byte sequences.
26970         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
26971         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
26972         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
26973         Reported by Ben Pfaff and Paolo Bonzini.
26974
26975 2010-11-13  Bruno Haible  <bruno@clisp.org>
26976
26977         openat: Work around glibc bug with fchownat() and empty file names.
26978         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
26979         (gl_FUNC_FCHOWNAT): Invoke it.
26980         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
26981         * doc/posix-functions/fchownat.texi: Document the glibc bug.
26982         Reported by Gary V. Vaughan <gary@gnu.org>.
26983
26984 2010-11-13  Bruno Haible  <bruno@clisp.org>
26985
26986         openat: Ensure autoconf macro ordering.
26987         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
26988         gl_USE_SYSTEM_EXTENSIONS.
26989         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
26990
26991 2010-11-13  Bruno Haible  <bruno@clisp.org>
26992
26993         Update comments.
26994         * lib/unistr/u8-check.c: Update file name in comments.
26995         * lib/unistr/u8-mblen.c: Likewise.
26996         * lib/unistr/u8-prev.c: Likewise.
26997         * lib/unistr/u8-strmblen.c: Likewise.
26998         * lib/unistr/u8-strmbtouc.c: Likewise.
26999
27000 2010-11-13  Jim Meyering  <meyering@redhat.com>
27001
27002         tests: avoid test failure on Solaris 10 due to lack of PATH export
27003         * tests/test-update-copyright.sh: Don't forget to export PATH.
27004
27005         init.sh: ensure that IFS is defined, just in case...
27006         * tests/init.sh (setup_): Ensure that IFS is defined,
27007         so that saving and restoring it works as expected.  This
27008         appears to be useful at least for an old version of dash
27009         from a long time ago (RH 6).  See here for details:
27010         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27011
27012         maint.mk: tighten "test a == b" check
27013         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27014         test to files that contain something like #!/bin/sh.
27015         Without this, coreutils would get two false positives in
27016         the comments of C source files.
27017
27018 2010-11-12  Eric Blake  <eblake@redhat.com>
27019
27020         bootstrap: fix typo in previous attempt
27021         * build-aux/bootstrap (buildreq): Correct the grouping.
27022         Reported by Paul Eggert.
27023
27024         maintainer-makefile: prohibit test x == x
27025         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27026         Based on a report by Matthias Bolte.
27027
27028         bootstrap: allow FreeBSD gzip
27029         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27030         which has no '.' and goes to stderr.
27031         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27032         Reported by Matthias Bolte.
27033
27034         maintainer-makefile: check for i18n setup
27035         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27036         will likely work.
27037
27038 2010-11-12  Bruno Haible  <bruno@clisp.org>
27039
27040         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27041         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27042         * lib/nanosleep.c (nanosleep): Likewise.
27043
27044 2010-11-11  Bruno Haible  <bruno@clisp.org>
27045
27046         fcntl-h: Fix for use of C++ on glibc systems.
27047         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27048         also on glibc systems in C++ mode.
27049         Reported by Gary V. Vaughan <gary@gnu.org>.
27050
27051 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27052
27053         mknod: avoid false failure with dash
27054         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27055
27056 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27057
27058         unlink: Fix "is it should" typo in diagnostic.
27059         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27060         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27061
27062 2010-11-11  Bruno Haible  <bruno@clisp.org>
27063
27064         Tests for module 'strerror_r-posix'.
27065         * modules/strerror_r-posix-tests: New file.
27066         * tests/test-strerror_r.c: New file.
27067         * tests/test-string-c++.cc: Check the signature of strerror_r.
27068
27069         New module 'strerror_r-posix'.
27070         * lib/string.in.h (strerror_r): New declaration.
27071         * lib/strerror_r.c: New file.
27072         * m4/strerror_r.m4: New file.
27073         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27074         of strerror_r.
27075         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27076         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27077         * modules/strerror_r-posix: New file.
27078         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27079         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27080         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27081         portability problems.
27082
27083 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27084
27085         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27086         line is also considered for output. Quoted function name in shell
27087         command, so temporary files for functions like MyClass::operator()
27088         are removed correctly without errors.
27089
27090 2010-11-09  Bruno Haible  <bruno@clisp.org>
27091
27092         * doc/posix-functions/strerror.texi: List more failing platforms.
27093
27094         * doc/posix-functions/strerror.texi: Add a comment.
27095
27096 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27097
27098         fdopendir: fix bug on MacOS X when low on file descriptors
27099
27100         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27101         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27102         All callers changed.
27103         (fdopendir): Invoke save_cwd at the top level, not after using
27104         multiple dup() calls to use up file descriptors.  Then retry
27105         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27106         less than the maximum number of open file descriptors, because
27107         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27108         on Mac OS X 10.6.4 for tar 1.24
27109         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27110         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27111         and for tar 1.25
27112         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27113
27114 2010-11-07  Bruno Haible  <bruno@clisp.org>
27115
27116         vasnprintf: Support I flag on glibc systems.
27117         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27118         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27119         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27120         snprintf function.
27121         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27122         glibc systems.
27123         * tests/test-vasnprintf-posix3.c: New file.
27124         * modules/vasnprintf-posix-tests (Files): Add it.
27125         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27126
27127 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27128
27129         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27130         * MODULES.html.sh: For compiler warnings, use name
27131         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27132
27133 2010-11-05  Eric Blake  <eblake@redhat.com>
27134
27135         ceil, floor: avoid spurious failure with icc
27136         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27137         [denormals-as-zero] when optimizing without -mieee-fp option.
27138         * tests/test-floorf2.c (floorf_reference): Likewise.
27139         * tests/test-ceilf1.c (dummy): New function.
27140         (main): Use it to outsmart icc's optimization.
27141         * tests/test-floorf1.c (dummy, main): Likewise.
27142
27143         tests: require working signbit
27144         * modules/ceilf-tests (Depends-on): Add signbit.
27145         * modules/ceill-tests (Depends-on): Likewise.
27146         * modules/floorf-tests (Depends-on): Likewise.
27147         * modules/floorl-tests (Depends-on): Likewise.
27148         * modules/round-tests (Depends-on): Likewise.
27149         * modules/roundf-tests (Depends-on): Likewise.
27150         * modules/roundl-tests (Depends-on): Likewise.
27151         * modules/trunc-tests (Depends-on): Likewise.
27152         * modules/truncf-tests (Depends-on): Likewise.
27153         * modules/truncl-tests (Depends-on): Likewise.
27154
27155         strtod: work around icc bug
27156         * lib/strtod.c (minus_zero): Define to working value.
27157         (strtod): Use it to avoid icc bug.
27158
27159         copysign: enhance tests
27160         * modules/copysign-tests (Files): Add minus-zero.h.
27161         * tests/test-copysign.c (main): Also test zeros.
27162
27163 2010-11-04  Eric Blake  <eblake@redhat.com>
27164
27165         ceil, floor, round, trunc: enhance tests of -0
27166         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27167         * tests/test-ceill.c (main): Likewise.
27168         * tests/test-floorf1.c (main): Likewise.
27169         * tests/test-floorl.c (main): Likewise.
27170         * tests/test-round1.c (main): Likewise.
27171         * tests/test-roundf1.c (main): Likewise.
27172         * tests/test-roundl.c (main): Likewise.
27173         * tests/test-trunc1.c (main): Likewise.
27174         * tests/test-truncf1.c (main): Likewise.
27175         * tests/test-truncl.c (main): Likewise.
27176
27177 2010-11-04  Eric Blake  <eblake@redhat.com>
27178
27179         frexp, tests: work around ICC bug with -zero
27180         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27181         works with more compilers.
27182         * tests/minus-zero.h: New file.
27183         * modules/ceilf-tests (Files): Include it.
27184         * modules/ceill-tests (Files): Likewise.
27185         * modules/floorf-tests (Files): Likewise.
27186         * modules/floorl-tests (Files): Likewise.
27187         * modules/frexp-nolibm-tests (Files): Likewise.
27188         * modules/frexp-tests (Files): Likewise.
27189         * modules/frexpl-nolibm-tests (Files): Likewise.
27190         * modules/frexpl-tests (Files): Likewise.
27191         * modules/isnan-tests (Files): Likewise.
27192         * modules/isnand-nolibm-tests (Files): Likewise.
27193         * modules/isnand-tests (Files): Likewise.
27194         * modules/isnanf-nolibm-tests (Files): Likewise.
27195         * modules/isnanf-tests (Files): Likewise.
27196         * modules/isnanl-nolibm-tests (Files): Likewise.
27197         * modules/isnanl-tests (Files): Likewise.
27198         * modules/round-tests (Files): Likewise.
27199         * modules/roundf-tests (Files): Likewise.
27200         * modules/roundl-tests (Files): Likewise.
27201         * modules/ldexpl-tests (Files): Likewise.
27202         * modules/signbit-tests (Files): Likewise.
27203         * modules/snprintf-posix-tests (Files): Likewise.
27204         * modules/sprintf-posix-tests (Files): Likewise.
27205         * modules/strtod-tests (Files): Likewise.
27206         * modules/trunc-tests (Files): Likewise.
27207         * modules/truncf-tests (Files): Likewise.
27208         * modules/truncl-tests (Files): Likewise.
27209         * modules/vsnprintf-posix-tests (Files): Likewise.
27210         * modules/vsprintf-posix-tests (Files): Likewise.
27211         * modules/vasnprintf-posix-tests (Files): Likewise.
27212         * modules/vasprintf-posix-tests (Files): Likewise.
27213         * tests/test-ceilf1.c (main): Use it.
27214         * tests/test-ceill.c (main): Likewise.
27215         * tests/test-floorf1.c (main): Likewise.
27216         * tests/test-floorl.c (main): Likewise.
27217         * tests/test-frexp.c (main): Likewise.
27218         * tests/test-frexpl.c (main): Likewise.
27219         * tests/test-isnan.c (main): Likewise.
27220         * tests/test-isnand.h (main): Likewise.
27221         * tests/test-isnanf.h (main): Likewise.
27222         * tests/test-isnanl.h (main): Likewise.
27223         * tests/test-ldexpl.c (main): Likewise.
27224         * tests/test-round.c (main): Likewise.
27225         * tests/test-roundf.c (main): Likewise.
27226         * tests/test-roundl.c (main): Likewise.
27227         * tests/test-signbit.c (test_signbitf, test_signbitd)
27228         (test_signbitl): Likewise.
27229         * tests/test-snprintf-posix.h (test_function): Likewise.
27230         * tests/test-sprintf-posix.h (test_function): Likewise.
27231         * tests/test-strtod.c (main): Likewise.
27232         * tests/test-trunc1.c (main): Likewise.
27233         * tests/test-truncf1.c (main): Likewise.
27234         * tests/test-truncl.c (main): Likewise.
27235
27236         isnanl: work around icc bug
27237         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27238
27239 2010-11-03  Eric Blake  <eblake@redhat.com>
27240
27241         tests: fix compiler warnings
27242         * tests/test-getopt.h (test_getopt): Fix condition.
27243         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27244         * tests/test-pipe2.c (main): Likewise.
27245         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27246
27247         utimens: fix broken m4 test
27248         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27249
27250 2010-10-28  Bruno Haible  <bruno@clisp.org>
27251
27252         posix_spawn*, getdtablesize: Relax license.
27253         * modules/posix_spawn (License): Change to LGPLv2+.
27254         * modules/posix_spawnp (License): Likewise.
27255         * modules/posix_spawn-internal (License): Likewise.
27256         * modules/posix_spawnattr_init (License): Likewise.
27257         * modules/posix_spawnattr_getflags (License): Likewise.
27258         * modules/posix_spawnattr_setflags (License): Likewise.
27259         * modules/posix_spawnattr_getpgroup (License): Likewise.
27260         * modules/posix_spawnattr_setpgroup (License): Likewise.
27261         * modules/posix_spawnattr_getschedparam (License): Likewise.
27262         * modules/posix_spawnattr_setschedparam (License): Likewise.
27263         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27264         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27265         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27266         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27267         * modules/posix_spawnattr_getsigmask (License): Likewise.
27268         * modules/posix_spawnattr_setsigmask (License): Likewise.
27269         * modules/posix_spawnattr_destroy (License): Likewise.
27270         * modules/posix_spawn_file_actions_init (License): Likewise.
27271         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27272         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27273         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27274         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27275         * modules/getdtablesize (License): Likewise.
27276         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27277
27278 2010-10-26  Bruno Haible  <bruno@clisp.org>
27279
27280         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27281         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27282         Cygwin and mingw.
27283         Suggested by Eric Blake.
27284
27285 2010-10-26  Bruno Haible  <bruno@clisp.org>
27286
27287         stdio: Work around compilation error due to renameat() on Solaris 10.
27288         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27289         * lib/renameat.c: Don't include <unistd.h> here.
27290         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27291         Reported by Paul Eggert and Eric Blake.
27292
27293 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27294
27295         renameat: port to Solaris 10, which declares renameat in unistd.h
27296
27297         * lib/renameat.c: Include unistd.h before stdio.h, because
27298         Solaris 10 declares renameat in unistd.h.  Problem encountered
27299         when building GNU tar 1.24 on Solaris 10.
27300
27301 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27302
27303         fdopendir: fix C89 compilation
27304         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27305         compilers.
27306
27307 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27308
27309         inttostr: simplify by removing unnecessary redundancy
27310         * lib/anytostr.c: Don't include verify.h.
27311         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27312         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27313         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27314         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27315         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27316         Likewise.
27317         * modules/inttostr (Depends-on): Remove 'verify'.
27318
27319 2010-10-23  Bruno Haible  <bruno@clisp.org>
27320
27321         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27322         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27323         Reported by Eric Blake.
27324
27325 2010-10-23  Bruno Haible  <bruno@clisp.org>
27326
27327         Tests: Fix LOCALE_JA on MirBSD 10.
27328         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27329         to an UTF-8 locale.
27330         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27331         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27332         Reported by Eric Blake.
27333
27334 2010-10-21  Bruno Haible  <bruno@clisp.org>
27335
27336         nl_langinfo test: Avoid test failure on NetBSD 5.
27337         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27338         Reported by Eric Blake.
27339
27340 2010-10-21  Eric Blake  <eblake@redhat.com>
27341
27342         c-stack: work around libsigsegv 2.8 bug
27343         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27344         overflow on at least PowerPC64.
27345
27346 2010-10-17  Bruno Haible  <bruno@clisp.org>
27347
27348         userspec: Drop redundant file.
27349         * modules/userspec (Files): Remove lib/inttostr.h.
27350
27351 2010-10-17  Bruno Haible  <bruno@clisp.org>
27352
27353         nl_langinfo tests: Silence some warnings.
27354         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27355         Reported by Jim Meyering.
27356
27357 2010-10-17  Bruno Haible  <bruno@clisp.org>
27358
27359         Make use of GCC's attribute __alloc_size__.
27360         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27361         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27362         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27363         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27364         __alloc_size__.
27365         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27366         Suggested by Jim Meyering.
27367
27368 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27369
27370         bootstrap: anchor .gitignore entries.
27371         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27372         with...
27373         (insert_vc_ignore): ... this new function, which prepends `/' to
27374         all .gitignore entries before passing them to
27375         insert_sorted_if_absent.
27376
27377 2010-10-16  Bruno Haible  <bruno@clisp.org>
27378
27379         nextafter: Fix configure check.
27380         * modules/nextafter (configure.ac): Correct expected prototype.
27381
27382 2010-10-16  Bruno Haible  <bruno@clisp.org>
27383
27384         termios: Update documentation.
27385         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27386
27387 2010-10-16  Bruno Haible  <bruno@clisp.org>
27388
27389         tests: Make them compile with TinyCC.
27390         * tests/test-strstr.c (main): Remove parentheses around array
27391         initializer.
27392
27393 2010-10-15  Eric Blake  <eblake@redhat.com>
27394
27395         ignore-value: make header idempotent
27396         * lib/ignore-value.h: Add double-inclusion guards.
27397         Reported by Stefan Berger.
27398
27399 2010-10-15  Jim Meyering  <meyering@redhat.com>
27400
27401         GNUmakefile: handle "stable" target, not "major"
27402         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27403         lists in maint.mk and announce-gen.  Without this, "make stable"
27404         would fail to ensure that $(VERSION) is up to date.
27405
27406 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27407
27408         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27409         & co.
27410
27411 2010-10-14  Bruno Haible  <bruno@clisp.org>
27412
27413         vasnprintf: Don't set errno to 0.
27414         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27415         block that sets it to 0.
27416         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27417
27418 2010-10-14  Bruno Haible  <bruno@clisp.org>
27419
27420         socketlib: Fix.
27421         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27422         gl_PREREQ_SYS_H_WINSOCK2.
27423         Reported by Ian Beckwith <ianb@erislabs.net>.
27424
27425 2010-10-13  Jim Meyering  <meyering@redhat.com>
27426
27427         test-select-stdin.c: avoid warn_unused_result warnings
27428         * tests/test-select-stdin.c: Include "macros.h".
27429         ASSERT that read and fflush succeed.
27430
27431 2010-10-13  Jim Meyering  <meyering@redhat.com>
27432
27433         git-version-gen: do require git-VC'd files in cwd
27434         * build-aux/git-version-gen: Reject a git version string
27435         if there are no commits associated with the current directory.
27436         This avoids an unlikely false-positive (unrelated dir whose parent
27437         repository also contains a tag matching v*), as pointed out
27438         by Giuseppe Scrivano in
27439         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27440
27441 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27442
27443         argv-iter: omit nonconforming declaration
27444         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27445         enum arg_iter_err declaration, which doesn't conform to C99.
27446         Solaris 10 cc warns about this.
27447
27448 2010-10-13  Eric Blake  <eblake@redhat.com>
27449
27450         termios: fix compilation on mingw
27451         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27452         (gl_TERMIOS_H): Adjust it on mingw.
27453         * modules/termios (Makefile.am): Substitute new key.
27454         * lib/termios.in.h (includes): Make include_next conditional.
27455         * doc/posix-headers/termios.texi (termios.h): Update
27456         documentation.
27457         Reported by Daniel P. Berrange.
27458
27459 2010-10-13  Jim Meyering  <meyering@redhat.com>
27460
27461         git-version-gen: don't require that .git/ be in the current dir
27462         * build-aux/git-version-gen: Adjust this script so that it works
27463         when run from any working directory beneath the top-level .git/-
27464         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27465         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27466
27467         test-select: avoid warn_unused_result warnings
27468         * tests/test-select.c: Include "macros.h".
27469         ASSERT that each call to read, write, and pipe succeeds.
27470         While not technically required, also check each "close".
27471         * modules/select-tests (Files): Add tests/macros.h.
27472
27473         test-symlinkat: remove declaration of unused local
27474         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27475
27476         test-inttostr: avoid shadowing warnings
27477         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27478         and use malloc rather than the stack for the same reason as
27479         mentioned in the comment justifying the other allocation.
27480
27481 2010-10-11  Bruno Haible  <bruno@clisp.org>
27482
27483         stdlib: Allow multiple gnulib generated replacements to coexist.
27484         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27485         Reported by Sam Steingold <sds@gnu.org>.
27486
27487 2010-10-11  Jim Meyering  <meyering@redhat.com>
27488
27489         fix a documentation typo
27490         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27491
27492 2010-10-11  Eric Blake  <eblake@redhat.com>
27493
27494         futimens: work around Solaris 11 bug
27495         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27496         * tests/test-futimens.h (test_futimens): Enhance, rather than
27497         weaken test.
27498         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27499
27500 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27501
27502         Indentation.
27503         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27504         higher-level operators more to the left.
27505
27506 2010-10-11  Jim Meyering  <meyering@redhat.com>
27507
27508         test-futimens: avoid unwarranted test failure on Solaris 5.11
27509         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27510         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27511         because it tries to dereference the NULL name argument.
27512
27513 2010-10-11  Bruno Haible  <bruno@clisp.org>
27514
27515         Indentation.
27516         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27517         indentation.
27518
27519 2010-10-11  Jim Meyering  <meyering@redhat.com>
27520
27521         spawn.in.h: make indentation consistent with parentheses
27522         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27523         Make indentation consistent with parentheses.
27524
27525 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27526
27527         Fix mismatched parens in previous commit
27528         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27529         parens.
27530
27531 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27532
27533         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27534
27535         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27536         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27537         * lib/malloca.c: Include "verify.h".
27538         (verify1): Remove, replacing with a verify call.
27539         * lib/relocwrapper.c (verify1): Likewise.
27540         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27541         Likewise.
27542         * modules/malloca (Depends-on): Add 'verify'.
27543         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27544         * modules/vasnprintf (Depends-on): Add 'verify'.
27545         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27546         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27547         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27548         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27549         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27550         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27551         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27552
27553         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27554
27555         Formerly the style was sometimes 2*X - 1, because the C standard
27556         was wrongly thought to disallow ?: in integral constant expressions.
27557         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27558         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27559         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27560         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27561         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27562         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27563         verify that time_t cannot be floating.
27564
27565 2010-10-08  Eric Blake  <eblake@redhat.com>
27566
27567         time: enforce recent POSIX ruling that time_t is integral
27568         * lib/time.in.h (__time_t_must_be_integral): Detect any
27569         problematic systems, allowing the rest of gnulib to assume POSIX.
27570
27571 2010-10-08  Jim Meyering  <meyering@redhat.com>
27572
27573         fdopendir: fix a bug on systems lacking openat and /proc support
27574         OpenBSD 4.7 is one such system.  The most noticeable effect was
27575         failure of any application making nontrivial use of fts: rm, du,
27576         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27577           ./rm: traversal failed: `a': Bad file descriptor
27578         Debugging that, you see that even though FD 6 was closed just
27579         prior to the opendir call in fd_clone_opendir, its resulting
27580         dir->dd_fd was 8, rather than the expected value of 6:
27581
27582         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27583         93                close (fd);
27584         (gdb) n
27585         94                dir = fd_clone_opendir (dupfd);
27586         (gdb) n
27587         95                saved_errno = errno;
27588         (gdb) p dir->dd_fd
27589         $11 = 8
27590
27591         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27592         The problem is that on OpenBSD, fd_clone_opendir has to resort
27593         to using the old-style save/restore CWD mechanism, due to its
27594         lack of openat/proc support, and *that* would steal the FD (6)
27595         that opendir was supposed to use.
27596
27597         The fix is to squirrel away the desired FD so that save_cwd uses a
27598         different one, and then free the dest FD right before calling opendir.
27599         That guarantees opendir will use the required file descriptor.
27600
27601         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27602
27603 2010-10-08  Bruno Haible  <bruno@clisp.org>
27604
27605         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
27606         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
27607
27608 2010-10-08  Bruno Haible  <bruno@clisp.org>
27609
27610         nanosleep: Make replacement POSIX compliant.
27611         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
27612         is out of range.
27613         Reported by Jim Meyering.
27614
27615 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27616
27617         bootstrap: add hook for altering gnulib.mk, for Bison
27618         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
27619         the Bison bootstrapping process can rewrite file names and variables
27620         in this file before later parts of 'bootstrap' use the file.
27621         Bison wants to include lib/gnulib.mk from the top-level makefile,
27622         so it needs the file names in this file to be relative to the top
27623         level, not relative to lib; plus it needs variable names to be
27624         rewritten.
27625         (slurp): Use the new function.
27626
27627         bootstrap: reformat for readability
27628         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
27629
27630 2010-10-08  Eric Blake  <eblake@redhat.com>
27631
27632         docs: update cygwin progress
27633         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
27634         1.7.7.
27635         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
27636         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
27637         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
27638         * doc/posix-functions/carg.texi (carg): Likewise.
27639         * doc/posix-functions/cargf.texi (cargf): Likewise.
27640         * doc/posix-functions/casin.texi (casin): Likewise.
27641         * doc/posix-functions/casinf.texi (casinf): Likewise.
27642         * doc/posix-functions/casinh.texi (casinh): Likewise.
27643         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
27644         * doc/posix-functions/catan.texi (catan): Likewise.
27645         * doc/posix-functions/catanf.texi (catanf): Likewise.
27646         * doc/posix-functions/catanh.texi (catanh): Likewise.
27647         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
27648         * doc/posix-functions/ccos.texi (ccos): Likewise.
27649         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
27650         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
27651         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
27652         * doc/posix-functions/cexp.texi (cexp): Likewise.
27653         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
27654         * doc/posix-functions/cimag.texi (cimag): Likewise.
27655         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
27656         * doc/posix-functions/clog.texi (clog): Likewise.
27657         * doc/posix-functions/clogf.texi (clogf): Likewise.
27658         * doc/posix-functions/conj.texi (conj): Likewise.
27659         * doc/posix-functions/conjf.texi (conjf): Likewise.
27660         * doc/posix-functions/cpow.texi (cpow): Likewise.
27661         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
27662         * doc/posix-functions/cproj.texi (cproj): Likewise.
27663         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
27664         * doc/posix-functions/creal.texi (creal): Likewise.
27665         * doc/posix-functions/crealf.texi (crealf): Likewise.
27666         * doc/posix-functions/csin.texi (csin): Likewise.
27667         * doc/posix-functions/csinf.texi (csinf): Likewise.
27668         * doc/posix-functions/csinh.texi (csinh): Likewise.
27669         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
27670         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
27671         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
27672         * doc/posix-functions/ctan.texi (ctan): Likewise.
27673         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
27674         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
27675         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
27676         * doc/posix-headers/complex.texi (complex.h): Likewise.
27677
27678 2010-10-07  Jim Meyering  <meyering@redhat.com>
27679
27680         parse-datetime: avoid compilation failure on OpenBSD 4.7
27681         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
27682         This works around a compilation failure on OpenBSD 4.7:
27683         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
27684
27685 2010-10-07  Eric Blake  <eblake@redhat.com>
27686
27687         docs: update cygwin progress
27688         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
27689         1.7.6.
27690         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27691         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
27692         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
27693         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
27694         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
27695         Likewise.
27696         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
27697         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
27698         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
27699         Likewise.
27700         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
27701         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
27702         Likewise.
27703         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
27704         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
27705         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
27706         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
27707         Likewise.
27708         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
27709         Likewise.
27710         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
27711
27712         docs: update parse-datetime history
27713         * doc/parse-datetime.texi (Authors of parse_datetime): Better
27714         documentation of this function's history and alternatives.
27715
27716         cygwin: use more robust version check
27717         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
27718         exclude an eventual cygwin 1.9.1.
27719         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27720         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27721         (gl_FUNC_STRCASESTR): Likewise.
27722         Reported by Bruno Haible.
27723
27724 2010-10-06  Bruno Haible  <bruno@clisp.org>
27725
27726         string, sys_select: Avoid #including large headers unless necessary.
27727         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
27728         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
27729         OSF/1, BeOS, Haiku.
27730         Reported by Jim Meyering.
27731
27732 2010-10-05  Eric Blake  <eblake@redhat.com>
27733
27734         memmem, strstr, strcasestr: fix bug with long periodic needle
27735         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
27736         periodic needle having false positive.
27737         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
27738         and cygwin 1.7.7.
27739         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
27740         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27741         (gl_FUNC_STRCASESTR): Likewise.
27742         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27743         * tests/test-memmem.c (main): Expose the bug.
27744         * tests/test-strcasestr.c (main): Likewise.
27745         * tests/test-strstr.c (main): Likewise.
27746         * tests/test-c-strcasestr.c (main): Likewise.
27747         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
27748         * doc/posix-functions/strstr.texi (strstr): Likewise.
27749         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27750         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
27751
27752 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27753
27754         parse-datetime: do some more renaming
27755         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
27756         parse_datetime, not get_date.  Mention the renaming.
27757         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
27758         in comments.
27759         * m4/bison.m4: Likewise.
27760
27761 2010-10-05  Eric Blake  <eblake@redhat.com>
27762
27763         parse-datetime: better name than get_date
27764         * NEWS: Reword the deprecation notice.
27765         * modules/get_date: Rename to modules/parse-datetime.
27766         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
27767         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
27768         * lib/get_date.y: Rename to lib/parse-datetime.y.
27769         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
27770         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
27771         * doc/getdate.texi: Provide fallback wrapper.
27772         * lib/getdate.h: Move guts, and wrap...
27773         * lib/parse-datetime.h: ...new file.
27774         * lib/parse-datetime.y (get_date): Rename...
27775         (parse_datetime): ...to this.
27776         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
27777         (gl_PARSE_DATETIME): ...to this.
27778         * doc/posix-functions/getdate.texi (get_date): Provide fallback
27779         documentation.
27780         * modules/getdate (Files): Provide fallback docs and header.
27781         (Notice, Depends-on): Update references.
27782         * tests/test-parse-datetime.c: Likewise.
27783         * DEPENDENCIES: Likewise.
27784         * MODULES.html.sh (Date and time <time.h>): Likewise.
27785         * doc/parse-datetime.texi (Date input formats)
27786         (Authors of parse_datetime): Likewise.
27787         * modules/parse-datetime (Files, configure.ac, Makefile.am)
27788         (Include): Likewise.
27789         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
27790         * gnulib-tool: Likewise.
27791         * m4/bison.m4 (gl_BISON): Likewise.
27792         Suggested by Bruno Haible.
27793
27794 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27795
27796         more ports to Solaris tr, which needs [] around ranges
27797         * gnulib-tool: Solaris tr needs [] around ranges.
27798         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27799         * tests/test-pipe-filter-gi1.c (main): Likewise.
27800         * tests/test-pipe-filter-ii1.c (main): Likewise.
27801
27802 2010-10-05  Eric Blake  <eblake@redhat.com>
27803
27804         bootstrap: fix Solaris regression
27805         * build-aux/bootstrap (check_versions): Solaris tr still needs []
27806         around ranges.
27807         Reported by Pádraig Brady.
27808
27809         bootstrap: work with pkg-config
27810         * build-aux/bootstrap (check_versions): Also transliterate - in
27811         prerequisite name.
27812         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
27813         prerequisites that were already found, to avoid confusion.
27814         Reported by Justin Clift.
27815
27816         faccessat: remove unused wrappers
27817         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
27818         presence of these wrappers dragged in -lgen on Solaris.
27819         Reported by Clemens Brogi; fix suggested by Paul Eggert.
27820
27821 2010-10-05  Jim Meyering  <meyering@redhat.com>
27822
27823         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
27824         * Makefile (sc_pragma_columns): New syntax-check rule.
27825
27826 2010-10-04  Bruno Haible  <bruno@clisp.org>
27827
27828         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
27829         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
27830         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
27831         Reported by Bruce Korb and Eric Blake.
27832
27833 2010-10-04  Bruno Haible  <bruno@clisp.org>
27834
27835         threadlib: Make option --with-libpth-prefix work.
27836         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
27837         use $LIBPTH, not just -lpth.
27838
27839 2010-10-04  Bruno Haible  <bruno@clisp.org>
27840
27841         Avoid line length limitation from HP NonStop system header files.
27842         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
27843         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
27844         * lib/ctype.in.h: Likewise.
27845         * lib/dirent.in.h: Likewise.
27846         * lib/errno.in.h: Likewise.
27847         * lib/fcntl.in.h: Likewise.
27848         * lib/float.in.h: Likewise.
27849         * lib/getopt.in.h: Likewise.
27850         * lib/iconv.in.h: Likewise.
27851         * lib/inttypes.in.h: Likewise.
27852         * lib/langinfo.in.h: Likewise.
27853         * lib/locale.in.h: Likewise.
27854         * lib/math.in.h: Likewise.
27855         * lib/netdb.in.h: Likewise.
27856         * lib/netinet_in.in.h: Likewise.
27857         * lib/poll.in.h: Likewise.
27858         * lib/pthread.in.h: Likewise.
27859         * lib/pty.in.h: Likewise.
27860         * lib/sched.in.h: Likewise.
27861         * lib/se-selinux.in.h: Likewise.
27862         * lib/search.in.h: Likewise.
27863         * lib/signal.in.h: Likewise.
27864         * lib/spawn.in.h: Likewise.
27865         * lib/stdarg.in.h: Likewise.
27866         * lib/stddef.in.h: Likewise.
27867         * lib/stdint.in.h: Likewise.
27868         * lib/stdio.in.h: Likewise.
27869         * lib/stdlib.in.h: Likewise.
27870         * lib/string.in.h: Likewise.
27871         * lib/strings.in.h: Likewise.
27872         * lib/sys_file.in.h: Likewise.
27873         * lib/sys_ioctl.in.h: Likewise.
27874         * lib/sys_select.in.h: Likewise.
27875         * lib/sys_socket.in.h: Likewise.
27876         * lib/sys_stat.in.h: Likewise.
27877         * lib/sys_time.in.h: Likewise.
27878         * lib/sys_times.in.h: Likewise.
27879         * lib/sys_utsname.in.h: Likewise.
27880         * lib/sys_wait.in.h: Likewise.
27881         * lib/sysexits.in.h: Likewise.
27882         * lib/termios.in.h: Likewise.
27883         * lib/time.in.h: Likewise.
27884         * lib/unistd.in.h: Likewise.
27885         * lib/wchar.in.h: Likewise.
27886         * lib/wctype.in.h: Likewise.
27887         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
27888         * modules/ctype (Makefile.am): Likewise.
27889         * modules/dirent (Makefile.am): Likewise.
27890         * modules/errno (Makefile.am): Likewise.
27891         * modules/fcntl-h (Makefile.am): Likewise.
27892         * modules/float (Makefile.am): Likewise.
27893         * modules/getopt-posix (Makefile.am): Likewise.
27894         * modules/iconv-h (Makefile.am): Likewise.
27895         * modules/inttypes (Makefile.am): Likewise.
27896         * modules/langinfo (Makefile.am): Likewise.
27897         * modules/locale (Makefile.am): Likewise.
27898         * modules/math (Makefile.am): Likewise.
27899         * modules/netdb (Makefile.am): Likewise.
27900         * modules/netinet_in (Makefile.am): Likewise.
27901         * modules/poll-h (Makefile.am): Likewise.
27902         * modules/pthread (Makefile.am): Likewise.
27903         * modules/pty (Makefile.am): Likewise.
27904         * modules/sched (Makefile.am): Likewise.
27905         * modules/search (Makefile.am): Likewise.
27906         * modules/selinux-h (Makefile.am): Likewise.
27907         * modules/signal (Makefile.am): Likewise.
27908         * modules/spawn (Makefile.am): Likewise.
27909         * modules/stdarg (Makefile.am): Likewise.
27910         * modules/stddef (Makefile.am): Likewise.
27911         * modules/stdint (Makefile.am): Likewise.
27912         * modules/stdio (Makefile.am): Likewise.
27913         * modules/stdlib (Makefile.am): Likewise.
27914         * modules/string (Makefile.am): Likewise.
27915         * modules/strings (Makefile.am): Likewise.
27916         * modules/sys_file (Makefile.am): Likewise.
27917         * modules/sys_ioctl (Makefile.am): Likewise.
27918         * modules/sys_select (Makefile.am): Likewise.
27919         * modules/sys_socket (Makefile.am): Likewise.
27920         * modules/sys_stat (Makefile.am): Likewise.
27921         * modules/sys_time (Makefile.am): Likewise.
27922         * modules/sys_times (Makefile.am): Likewise.
27923         * modules/sys_utsname (Makefile.am): Likewise.
27924         * modules/sys_wait (Makefile.am): Likewise.
27925         * modules/sysexits (Makefile.am): Likewise.
27926         * modules/termios (Makefile.am): Likewise.
27927         * modules/time (Makefile.am): Likewise.
27928         * modules/unistd (Makefile.am): Likewise.
27929         * modules/wchar (Makefile.am): Likewise.
27930         * modules/wctype (Makefile.am): Likewise.
27931
27932 2010-10-04  Bruno Haible  <bruno@clisp.org>
27933
27934         read-file tests: Avoid a test failure on NonStop Kernel.
27935         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
27936         a regular file.
27937         Reported by Joachim Schmitz <schmitz@hp.com>.
27938
27939 2010-10-03  Bruno Haible  <bruno@clisp.org>
27940
27941         gnulib-tool: Fixes for --create-testdir with --libtool.
27942         * gnulib-tool (func_get_automake_snippet): Don't augment
27943         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
27944         an executable.
27945         (func_create_testdir): Handle module 'alloca' like func_import.
27946         Reported by Bruce Korb <bruce.korb@gmail.com>.
27947
27948 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27949
27950         Avoid some lines longer than 80 characters.
27951         * lib/stdint.in.h: Break long comment lines.
27952         * lib/math.in.h: Likewise.
27953         (_GL_NUM_UINT_WORDS): New macro, for readability.
27954         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
27955         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
27956         * lib/stdlib.in.h: Likewise.
27957         * lib/spawn.in.h: Likewise.
27958         * lib/sys_socket.in.h: Update an URL.
27959         * lib/sys_stat.in.h: Break long line.
27960
27961 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
27962
27963         Improve pmccabe2html.
27964         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
27965         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
27966         when the sources change. Remove the line in the HTML about "Used
27967         ranges" (which implied that there might be other unused ranges),
27968         rename "Resume" to "Summary" (easier to understand for more users).
27969         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
27970         styles, and some unnecessary blank lines.
27971
27972 2010-10-03  Bruno Haible  <bruno@clisp.org>
27973             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
27974
27975         acl: Add support for ACLs on NonStop Kernel.
27976         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
27977         Check whether the function aclsort() exists.
27978         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
27979         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
27980         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27981         (acl_nontrivial [HAVE_ACLSORT]: New function.
27982         (file_has_acl): Implement for NonStop Kernel.
27983         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27984         (qset_acl): Implement for NonStop Kernel.
27985         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
27986         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27987         (main): Implement for NonStop Kernel.
27988         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
27989         Kernel. Handle this flavor.
27990         * tests/test-set-mode-acl.sh: Likewise.
27991         * tests/test-copy-acl.sh: Likewise.
27992         * tests/test-copy-file.sh: Likewise.
27993
27994 2010-10-03  Bruno Haible  <bruno@clisp.org>
27995
27996         Info about ACLs on NonStop Kernel.
27997         * doc/acl-resources.txt: Add info about NonStop Kernel.
27998         References by Joachim Schmitz <schmitz@hp.com>.
27999
28000 2010-10-02  Bruno Haible  <bruno@clisp.org>
28001
28002         Define missing EDQUOT on NonStop Kernel.
28003         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28004         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28005         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28006         missing.
28007         * doc/posix-headers/errno.texi: Mention the NSK bug.
28008         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28009         Reported by Joachim Schmitz <schmitz@hp.com>.
28010
28011 2010-10-02  Bruno Haible  <bruno@clisp.org>
28012
28013         Update doc for POSIX:2008.
28014         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28015         Update URL of POSIX specification.
28016
28017 2010-10-02  Bruno Haible  <bruno@clisp.org>
28018
28019         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28020         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28021         from gnulib, not from Automake.
28022
28023 2010-10-02  Bruno Haible  <bruno@clisp.org>
28024
28025         New module 'system-posix'.
28026         * modules/system-posix: New file.
28027         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28028         module is present.
28029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28030         GNULIB_SYSTEM_POSIX.
28031         * modules/stdlib (Depends-on): Remove sys_wait.
28032         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28033         * doc/posix-functions/system.texi: Mention the new module.
28034         * doc/posix-headers/stdlib.texi: Likewise.
28035         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28036         define test_sys_wait_macros to a no-op.
28037         Reported by Sam Steingold <sds@gnu.org>.
28038
28039 2010-09-30  Bruno Haible  <bruno@clisp.org>
28040
28041         More renaming from 'getdate' to 'get_date'.
28042         * doc/get_date.texi: Renamed from doc/getdate.texi.
28043         * modules/get_date (Files): Update.
28044         * MODULES.html.sh (Date and time <time.h>): Update.
28045         * DEPENDENCIES: Update.
28046         * gnulib-tool: Update comment.
28047         * m4/bison.m4 (gl_BISON): Likewise.
28048         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28049
28050 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28051
28052         bootstrap: support ACLOCAL_FLAGS during aclocal
28053         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28054         can add additional -I dir for third-party .m4 files.
28055
28056 2010-09-30  Eric Blake  <eblake@redhat.com>
28057
28058         bootstrap: use glibtoolize on MacOS
28059         * build-aux/bootstrap (check_versions): Convert libtool into
28060         libtoolize.
28061         (tool search): Move libtool check earlier, and look for
28062         glibtoolize for MacOS.
28063         (gnulib_tool_options): Auto-add --libtool when appropriate.
28064         Reported by Justin Clift.
28065
28066         poll: fix typo that broke test on MacOS
28067         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28068         Reported by Justin Clift.
28069
28070         getdate: rename to get_date
28071         Note: getdate.h is not renamed, to minimize client impact.
28072         * modules/getdate: Mark obsolete.  Move old contents...
28073         * modules/get_date: ...to new module name.
28074         * modules/getdate-tests: Move...
28075         * modules/get_date-tests: ...here.
28076         * m4/getdate.m4: Move...
28077         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28078         * lib/getdate.y: Move...
28079         * lib/get_date.y: ...here.
28080         * tests/test-getdate.c: Move...
28081         * tests/test-get_date.c: ...here.
28082         * doc/posix-functions/getdate.texi (getdate): Update name.
28083         * NEWS: Mention the change.
28084
28085 2010-09-29  Bruno Haible  <bruno@clisp.org>
28086
28087         Separate the module 'waitpid' from the module 'sys_wait'.
28088         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28089         present.
28090         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28091         gl_MODULE_INDICATOR_FOR_TESTS.
28092         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28093         * modules/sys_wait (Depends-on): Remove waitpid.
28094         (Makefile.am): Substitute GNULIB_WAITPID.
28095         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28096         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28097         signature only if the 'waitpid' module is present.
28098         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28099         * NEWS: Mention the change.
28100         * modules/grantpt (Depends-on): Add waitpid.
28101         * modules/wait-process (Depends-on): Likewise.
28102
28103 2010-09-29  Bruno Haible  <bruno@clisp.org>
28104
28105         More tests for module 'sys_wait'.
28106         * modules/sys_wait-c++-tests: New file.
28107         * tests/test-sys_wait-c++.cc: New file.
28108         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28109         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28110
28111 2010-09-29  Bruno Haible  <bruno@clisp.org>
28112
28113         New module 'waitpid'.
28114         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28115         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28116         Don't include <process.h>.
28117         (waitpid): Declare only, using modern idiom.
28118         * m4/waitpid.m4: New file.
28119         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28120         * modules/waitpid: New file.
28121         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28122         (Makefile.am): Update.
28123         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28124
28125 2010-09-28  Bruno Haible  <bruno@clisp.org>
28126
28127         poll: Assume ANSI C.
28128         * lib/poll.c (poll): Use an ANSI C declaration.
28129
28130 2010-09-28  Bruno Haible  <bruno@clisp.org>
28131
28132         poll-h: Create poll.h on all platforms.
28133         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28134         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28135         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28136         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28137         (gl_REPLACE_POLL_H): Don't set POLL_H.
28138         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28139         * modules/poll-h (Depends-on): Add include_next.
28140         (Makefile.am): Create poll.h unconditionally. Substitute also
28141         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28142
28143 2010-09-28  Bruno Haible  <bruno@clisp.org>
28144
28145         Tests for module 'poll-h'.
28146         * modules/poll-h-c++-tests: New file.
28147         * tests/test-poll-h-c++.cc: New file.
28148
28149         Tests for module 'poll-h'.
28150         * modules/poll-h-tests: New file.
28151         * tests/test-poll-h.c: New file.
28152
28153 2010-09-28  Bruno Haible  <bruno@clisp.org>
28154
28155         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28156         * modules/poll-h (Depends-on): Add 'extensions'.
28157
28158 2010-09-28  Bruno Haible  <bruno@clisp.org>
28159
28160         New module 'poll-h'.
28161         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28162         (poll): Use modern idiom.
28163         * modules/poll-h: New file.
28164         * modules/poll (Files): Remove lib/poll.in.h.
28165         (Depends-on): Add poll-h.
28166         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28167         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28168         * m4/poll_h.m4: New file.
28169         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28170         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28171         and invoke gl_REPLACE_POLL_H.
28172         * lib/poll.c: Use common idiom.
28173         * tests/test-poll.c: Likewise.
28174         * doc/posix-headers/poll.texi: Mention the poll-h module.
28175         Suggested by Eric Blake.
28176
28177 2010-09-26  Bruno Haible  <bruno@clisp.org>
28178
28179         sys_wait: Implement WSTOPSIG.
28180         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28181         Reported by Simon Josefsson.
28182
28183 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28184
28185         stdlib, sys_wait: Avoid compilation error on mingw.
28186         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28187
28188 2010-09-26  Bruno Haible  <bruno@clisp.org>
28189
28190         stdlib tests: Avoid code duplication.
28191         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28192         * modules/sys_wait-tests (Files): Likewise.
28193         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28194         * tests/test-stdlib.c: Include test-sys_wait.h.
28195         (main): Invoke test_sys_wait_macros.
28196         * tests/test-sys_wait.c: Include test-sys_wait.h.
28197         (main): Invoke test_sys_wait_macros.
28198
28199 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28200
28201         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28202         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28203         sure Windows sockets are working before calling getaddrinfo.
28204         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28205         * doc/gnulib.texi (Windows sockets): Fix typo.
28206
28207 2010-09-25  Bruno Haible  <bruno@clisp.org>
28208
28209         Tests for module 'regex-quote'.
28210         * modules/regex-quote-tests: New file.
28211         * tests/test-regex-quote.c: New file.
28212
28213         New module 'regex-quote'.
28214         * lib/regex-quote.h: New file.
28215         * lib/regex-quote.c: New file.
28216         * modules/regex-quote: New file.
28217         Suggested by Reuben Thomas <rrt@sc3d.org>.
28218
28219 2010-09-24  Bruno Haible  <bruno@clisp.org>
28220
28221         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28222         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28223
28224 2010-09-23  Bruno Haible  <bruno@clisp.org>
28225
28226         setenv: Relax license.
28227         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28228         Blake.
28229         Requested by Eric Blake.
28230
28231 2010-09-22  Bruno Haible  <bruno@clisp.org>
28232
28233         termios: Relax license.
28234         * modules/termios (License): Change to LGPLv2+.
28235         Requested by Eric Blake.
28236
28237 2010-09-22  Bruno Haible  <bruno@clisp.org>
28238
28239         threadlib: Allow the package to change the default to 'no'.
28240         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28241         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28242         Reported by Paul Eggert.
28243
28244 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28245             Bruno Haible  <bruno@clisp.org>
28246
28247         Fix endless loop in mbmemcasecoll.
28248         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28249         byte.
28250         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28251
28252 2010-09-22  Bruno Haible  <bruno@clisp.org>
28253
28254         Tests for module 'memcoll'.
28255         * modules/memcoll-tests: New file.
28256         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28257
28258         memcoll, xmemcoll: Clarify size vs. length.
28259         * modules/memcoll.c (memcoll0): Clarify specification.
28260         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28261         passed to collate_error.
28262
28263 2010-09-22  Bruno Haible  <bruno@clisp.org>
28264
28265         Tests for module 'memcasecmp'.
28266         * modules/memcasecmp-tests: New file.
28267         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28268
28269 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28270
28271         * lib/pthread.in.h: Add split double-inclusion guard, and include
28272         system <pthread.h> if there is one.  Use @@-style as in other
28273         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28274         pthread.h doesn't.
28275         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28276         (pthread_mutexattr_settype, pthread_mutex_trylock):
28277         New static inline functions, if there's no system <pthread.h>.
28278         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28279         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28280         Approximate with mutexes if the system lacks spinlocks, as in
28281         MacOS.
28282         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28283         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28284         @@-style.  Check for spinlocks separately.
28285         (gl_PTHREAD_DEFAULTS): New macro.
28286         * modules/pthread: Redo to use a more typical style for in.h files.
28287
28288 2010-09-21  Eric Blake  <eblake@redhat.com>
28289
28290         net_if: enhance tests
28291         * tests/test-net_if.c (main): Move signature checks earlier.
28292         Print failures to stderr.
28293         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28294         Document the bug that we do not yet fix.
28295
28296 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28297
28298         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28299         about gnulib, not GSS.
28300
28301 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28302
28303         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28304         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28305         for Emacs.
28306         * build-aux/pmccabe2html: Make Makefile.am example code more
28307         cut-and-paste friendly.
28308
28309 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28310
28311         * tests/test-net_if.c: New file.
28312         * modules/net_if-tests: New file.
28313
28314 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28315
28316         pthread: add pthread_spin_destroy
28317         * lib/pthread.in.h (pthread_spin_destroy): New function.
28318
28319 2010-09-19  Bruno Haible  <bruno@clisp.org>
28320
28321         gnulib-tool: Fix --help output.
28322         * gnulib-tool (func_usage): Fix help message.
28323         Reported by Reuben Thomas <rrt@sc3d.org>.
28324
28325 2010-09-18  Jim Meyering  <meyering@redhat.com>
28326
28327         maint.mk: avoid unexpanded \n in two diagnostics
28328         * top/maint.mk (sc_prohibit_always_true_header_tests):
28329         Don't use a literal \n in a halt=... assignment.  It would not be
28330         expanded, and the two \n bytes would appear in the diagnostic output
28331         rather than the desired newline.  Use halt=$$(printf ... instead.
28332         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28333
28334 2010-09-18  Bruno Haible  <bruno@clisp.org>
28335
28336         netinet_in: Doc tweak.
28337         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28338         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28339
28340 2010-09-18  Jim Meyering  <meyering@redhat.com>
28341
28342         init.sh: correct an outdated comment
28343         * tests/init.sh (create_exe_shims_):  s/function/alias/
28344
28345         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28346         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28347         a file named "*.exe" is removed between the glob expansion and the
28348         processing of that oddly named file.
28349
28350 2010-09-17  Eric Blake  <eblake@redhat.com>
28351
28352         mirbsd: add some more support
28353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28354         in BSD family.
28355         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28356         devices as OpenBSD.
28357         * m4/host-os.m4 (mirbsd): Add MirBSD.
28358
28359         tests: fix unportable assumption on sys/wait.h
28360         * tests/test-sys_wait.c (main): Relax test.
28361         * tests/test-stdlib.c (main): Likewise.
28362
28363         init.sh: accommodate directory with no .exes
28364         * tests/init.sh: Accomodate directory containing only scripts.
28365
28366         tests: avoid compiler warning
28367         * tests/test-stdlib.c (main): Use the variable.
28368
28369         fdutimens, fdutimensat: update signature, again
28370         * lib/utimens.h (gl_futimens): Delete, and move signature...
28371         (fdutimens): ...here.
28372         (fdutimensat): Rearrange signature.
28373         (lutimensat): Rename variable for clarity.
28374         * lib/fdutimensat.c (fdutimensat): Update signature.
28375         * lib/utimens.c (fdutimens): Likewise.
28376         (gl_futimens): Delete.
28377         (utimens, lutimens): Update callers.
28378         * lib/futimens.c (futimens): Likewise.
28379         * tests/test-fdutimensat.c: Likewise.
28380         * tests/test-utimens.c: Likewise.
28381         * tests/test-futimens.h: Update comment.
28382         * NEWS: Mention this.
28383         Suggested by Paul Eggert.
28384
28385 2010-09-17  Bruno Haible  <bruno@clisp.org>
28386
28387         Take over the maintenance of some older macros from Autoconf.
28388         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28389         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28390         GNU Autoconf.
28391         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28392         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28393
28394 2010-09-17  Eric Blake  <eblake@redhat.com>
28395
28396         fdutimensat: drop atflag validation
28397         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28398         with valid fd, to close a race scenario where futimens is
28399         unsupported and FILE was replaced by a symlink.
28400         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28401         accordingly.
28402         Suggested by Paul Eggert.
28403
28404 2010-09-16  Bruno Haible  <bruno@clisp.org>
28405
28406         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28407         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28408
28409 2010-09-16  Bruno Haible  <bruno@clisp.org>
28410
28411         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28412         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28413         login_tty exists.
28414         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28415
28416 2010-09-16  Bruno Haible  <bruno@clisp.org>
28417
28418         login_tty: Make the replacement code work on BSD systems.
28419         * lib/login_tty.c: Include <sys/ioctl.h>.
28420         (login_tty): Use ioctl TIOCSCTTY when available.
28421         * modules/login_tty (Depends-on): Add sys_ioctl.
28422         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28423
28424 2010-09-16  Bruno Haible  <bruno@clisp.org>
28425
28426         login_tty: Stricter unit test.
28427         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28428         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28429         and tcgetsid() after login_tty.
28430         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28431
28432 2010-09-16  Bruno Haible  <bruno@clisp.org>
28433
28434         New module 'tcgetsid'.
28435         * lib/tcgetsid.c: New file.
28436         * m4/tcgetsid.m4: New file.
28437         * modules/tcgetsid: New file.
28438         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28439         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28440         GNULIB_TCGETSID, HAVE_TCGETSID.
28441         * lib/termios.in.h: Include <sys/types.h>.
28442         (tcgetsid): New declaration.
28443         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28444         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28445         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28446         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28447
28448 2010-09-16  Bruno Haible  <bruno@clisp.org>
28449
28450         Tests for module 'termios'.
28451         * modules/termios-c++-tests: New file.
28452         * modules/termios-tests: New file.
28453         * tests/test-termios-c++.cc: New file.
28454         * tests/test-termios.c: New file.
28455
28456         New module 'termios'.
28457         * modules/termios: New file.
28458         * lib/termios.in.h: New file.
28459         * m4/termios_h.m4: New file.
28460         * doc/posix-headers/termios.texi: Mention the new module.
28461
28462 2010-09-16  Eric Blake  <eblake@redhat.com>
28463
28464         fdutimensat: add an atflag parameter
28465         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28466         * lib/utimens.h (fdutimensat): Update prototype.
28467         * tests/test-fdutimensat.c: Adjust test to match.
28468         * NEWS: Document the change.
28469         Suggested by Paul Eggert.
28470
28471 2010-09-16  Bruno Haible  <bruno@clisp.org>
28472
28473         Fix typos in comments.
28474         * lib/striconveh.h: Fix typo in comment.
28475         * lib/login_tty.c (login_tty): Likewise.
28476
28477 2010-09-15  Bruno Haible  <bruno@clisp.org>
28478
28479         stdlib: clarify MirBSD WEXITSTATUS bug
28480         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28481         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28482
28483 2010-09-15  Eric Blake  <eblake@redhat.com>
28484
28485         stdlib: work around MirBSD WEXITSTATUS bug
28486         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28487         * modules/stdlib (Depends-on): Add sys_wait.
28488         * tests/test-sys_wait.c (main): Enhance test.
28489         * tests/test-stdlib.c (main): Likewise.
28490         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28491
28492         docs: mention MacOS issue with WEXITSTATUS(constant)
28493         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28494         issue.
28495         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28496
28497         strnlen: add tests
28498         * modules/strnlen-tests: New file.
28499         * tests/test-strnlen.c: Likewise.
28500
28501 2010-09-14  Bruno Haible  <bruno@clisp.org>
28502
28503         unistr/base: Avoid link errors when module 'libunistring' is also used.
28504         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28505         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28506         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28507         Declare also when HAVE_LIBUNISTRING is set.
28508         Reported by Pádraig Brady <P@draigbrady.com>.
28509
28510 2010-09-14  Eric Blake  <eblake@redhat.com>
28511
28512         test-rawmemchr: make more robust
28513         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28514         (Depends-on, configure.ac): Add needed prerequisites to use it.
28515         * modules/memchr-tests (Files, Depends-on, configure.ac):
28516         Likewise, to avoid implicit reliance on memchr module prereqs.
28517         * tests/test-memchr.c (main): Ensure proper masking.
28518         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28519         reads.
28520
28521         memchr: detect glibc Alpha bug
28522         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28523         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28524         Alpha.
28525         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28526         * tests/test-memchr.c (main): Enhance test.
28527         Reported by Nelson H. F. Beebe.
28528
28529 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28530
28531         fts, getcwd, glob: audit for dirfd returning -1
28532         * lib/fts.c (opendir): Remove #define; no longer used.
28533         (opendirat): New arg PDIR_FD.  All callers changed.
28534         (fts_build, _opendir2): Use new opendirat to avoid the need for
28535         dirfd, or for checking whether dirfd returns a negative value.
28536         Don't use opendir; always use openat followed by fdopendir.
28537         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28538         it.
28539         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28540         returns -1 here.
28541         * modules/fts (Depends-on): Remove dirfd.
28542         * modules/getcwd (Depends-on): Likewise.
28543
28544 2010-09-13  Eric Blake  <eblake@redhat.com>
28545
28546         float: fix broken MirBSD header
28547         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28548         * doc/posix-headers/float.texi (float.h): Document it.
28549
28550 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28551
28552         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28553         * lib/fts.c (opendirat): New arg extra_flags.
28554         (__opendir2): Use it to avoid following symlinks when opening
28555         a directory, if symlinks are not supposed to be followed.  See
28556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28557
28558         fdopendir: preserve argument fd before returning
28559         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28560         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28561         (fdopendir): Use them, arranging for FD to be open to the same
28562         directory that it was when it started.  (It might be temporarily
28563         closed while fdopendir is running, so this not thread- or
28564         signal-safe.)  Be careful to do the right thing even when file
28565         descriptors are scarce and dup fails with errno == EMFILE.  See
28566         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28567
28568 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28569
28570         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28571         * NEWS: Document change.
28572         * m4/regex.m4: Disable test for regoff_t size.
28573
28574 2010-09-13  Jim Meyering  <meyering@redhat.com>
28575
28576         fts: don't operate on an invalid file descriptor after failed dup
28577         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28578         negative file descriptor.
28579
28580 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28581
28582         savedir: add streamsavedir, deprecate fdsavedir
28583         * NEWS: Mention deprecation of fdsavedir.
28584         * lib/savedir.c (streamsavedir): New extern function, whose name
28585         ends in "savedir" to be consistent with the others.  This differs
28586         from savedirstream in that it doesn't close its argument.  The
28587         next version of GNU tar will use this instead of fdsavedir, to
28588         avoid some race conditions and conserve file descriptors.
28589         (savedirstream): Reimplement as a wrapper around streamsavedir.
28590         (fdsavedir): Add a comment deprecating this function.  As far as
28591         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28592         * lib/savedir.h (streamsavedir): New decl.
28593         (fdsavedir): Add a comment deprecating this.
28594
28595 2010-09-10  Bruno Haible  <bruno@clisp.org>
28596
28597         langinfo: Fix last commit.
28598         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28599         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28601
28602 2010-09-10  Bruno Haible  <bruno@clisp.org>
28603
28604         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
28605         * lib/progreloc.c (O_EXEC): Define fallback.
28606
28607 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28608
28609         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
28610         * NEWS: Document recent changes to fcntl-h.
28611         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
28612         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
28613         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
28614         Similarly for O_SEARCH; this last was already true, but not documented.
28615         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
28616         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
28617         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
28618         Likewise.
28619         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
28620         is zero, not whether it is defined.
28621         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
28622         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
28623         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
28624
28625 2010-09-10  Bruno Haible  <bruno@clisp.org>
28626
28627         langinfo, nl_langinfo: Fix for IRIX 5.3.
28628         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
28629         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
28630         HAVE_LANGINFO_YESEXPR.
28631         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
28632         HAVE_LANGINFO_YESEXPR.
28633         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
28634         HAVE_LANGINFO_T_FMT_AMPM is 0.
28635         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
28636         HAVE_LANGINFO_YESEXPR is 0.
28637         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
28638         NOEXPR.
28639         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
28640         * doc/posix-functions/nl_langinfo.texi: Likewise.
28641         Reported by Eric Blake.
28642
28643 2010-09-10  Bruno Haible  <bruno@clisp.org>
28644
28645         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
28646         * doc/glibc-functions/login_tty.texi: Mention the include file problem
28647         on FreeBSD 8.0 and OpenBSD 4.6.
28648         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
28649         * m4/pty_h.m4 (gl_PTY_H): Likewise.
28650         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
28651         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
28652         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
28653         ac_includes_default.
28654         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28655
28656 2010-09-09  Eric Blake  <eblake@redhat.com>
28657
28658         strsignal: work around NetBSD bug
28659         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
28660         * lib/string.in.h (includes): Likewise.
28661         * doc/posix-functions/strsignal.texi (strsignal): Document the
28662         bug.
28663         Reported by Nelson H. F. Beebe.
28664
28665         gnulib-tool: work with NetBSD /bin/sh
28666         * gnulib-tool (func_cache_var, func_cache_lookup_module)
28667         (func_get_description, func_get_comment, func_get_status)
28668         (func_get_notice, func_get_applicability, func_get_filelist)
28669         (func_get_dependencies, func_get_autoconf_early_snippet)
28670         (func_get_autoconf_snippet, func_get_automake_snippet)
28671         (func_get_include_directive, func_get_link_directive)
28672         (func_get_license, func_get_maintainer, func_import): Avoid
28673         shell syntax errors from parsing syntax extensions.
28674
28675 2010-09-09  Bruno Haible  <bruno@clisp.org>
28676
28677         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28678         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
28679         a reliable way to determine whether the 'alias' command works.
28680
28681 2010-09-08  Jim Meyering  <meyering@redhat.com>
28682
28683         init.sh: penalize a set-x-impaired shell; don't disqualify it
28684         * tests/init.sh: Too many shells corrupt application stderr when
28685         you set -x, so we can't afford to disqualify them, since at least
28686         on Irix-6.5, that would disqualify all bourne shells.
28687         Instead, use a two-pass approach.
28688         On the first pass, try to find a shell that meets the stricter
28689         condition that set -x does not corrupt stderr.
28690         If no shell meets the stricter condition, retest each candidate
28691         shell, but without that extra condition.  Finally, when
28692         VERBOSE=yes is requested and set -x might cause trouble, simply
28693         issue a warning and refrain from enabling debug output.
28694
28695 2010-09-08  Eric Blake  <eblake@redhat.com>
28696
28697         unsetenv: fix OpenBSD bug
28698         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
28699         * doc/posix-functions/unsetenv.texi (unsetenv): Update
28700         documentation.
28701         Reported by Jim Meyering.
28702
28703         strtod: work around IRIX 6.5 bug
28704         * lib/strtod.c (strtod): Reparse number on shorter string if
28705         exponent parse was invalid.
28706         * tests/test-strtod.c (main): Add check for "0x1p 2".
28707         Reported by Tom G. Christensen.
28708
28709         getopt: optimize previous patch
28710         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
28711         empty variable.  Speed up awk script.
28712         Reported by Paolo Bonzini.
28713
28714 2010-09-08  Jim Meyering  <meyering@redhat.com>
28715
28716         test.sh: disqualify shells for which set -x corrupts stderr
28717         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
28718         and OpenBSD 4.7.  They make it so with "set -x", environment settings
28719         appear in stderr output.  For example, this command:
28720             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
28721         prints "P=1" on those two systems:
28722
28723 2010-09-08  Bruno Haible  <bruno@clisp.org>
28724
28725         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28726         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
28727         commands, because some shells ignore redirections when there is an
28728         error in the command lookup.
28729         Reported by Eric Blake.
28730
28731 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
28732
28733         * lib/regex.h: Fix a mention of `regex_compile' (should be
28734         `re_compile_pattern').
28735         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
28736         (re_set_registers): Correct name of parameter in comment.
28737
28738         * doc/regex.texi: Add documentation for missing syntax flags.
28739         Remove commented-out documentation of defunct syntax option
28740         RE_NO_EMPTY_ALTS.
28741         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
28742         Add documentation of re_set_registers.
28743         Document trick to re-use a pattern buffer by setting fastmap manually.
28744         Update documentation of struct re_pattern_buffer per public members.
28745         Uncomment documentation of equivalence class operators and
28746         collating symbol operators, since they are now implemented,
28747         Explain leftmost-longest matching in relation to alternatives.
28748         Tidy documentation of substring matching.
28749         Remove POSIX documentation, which is done better in
28750         glibc, and refer the reader there. Keep BSD API documentation, as
28751         that is not readily available elsewhere.
28752
28753 2010-09-07  Eric Blake  <eblake@redhat.com>
28754
28755         getopt: handle POSIXLY_CORRECT set but not exported
28756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
28757         export state of POSIXLY_CORRECT, due to bash set -o posix.
28758         Reported by Dustin J. Mitchell.
28759
28760 2010-09-05  Bruno Haible  <bruno@clisp.org>
28761
28762         gnulib-tool: Highlight the changed options.
28763         * gnulib-tool (func_usage): Display the --import, --add-import,
28764         --remove-import explanations in bold font.
28765
28766 2010-09-06  Karl Berry  <karl@gnu.org>
28767
28768         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
28769
28770 2010-09-05  Bruno Haible  <bruno@clisp.org>
28771
28772         uniwidth/width: Update comment.
28773         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
28774         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
28775
28776 2010-09-05  Bruno Haible  <bruno@clisp.org>
28777
28778         isinf, isnan: Relax license.
28779         * modules/isinf (License): Change from GPL to LGPL, with consent from
28780         Ben Pfaff.
28781         * modules/isnan (License): Likewise.
28782         Requested by Ludovic Courtès.
28783
28784 2010-09-04  Bruno Haible  <bruno@clisp.org>
28785
28786         gnulib-tool: Help migration from --import to --add-import or --update.
28787         * gnulib-tool: Emit a verbose error message when --import is used
28788         without any module name.
28789
28790 2010-09-04  Bruno Haible  <bruno@clisp.org>
28791
28792         Update doc about gnulib-tool.
28793         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
28794         'gnulib-tool --update' in more detail.
28795         Reported by Eric Blake.
28796
28797 2010-09-04  Bruno Haible  <bruno@clisp.org>
28798
28799         gnulib-tool: Change --import. New options --add/remove-import.
28800         * gnulib-tool: New options --add-import, --remove-import.
28801         (func_usage): Document them.
28802         (have_associative): Define always.
28803         (func_import): In import mode, don't merge the specified settings with
28804         the cached settings. Implement remove-import mode.
28805         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
28806         Explain when to use them versus --import.
28807         (Simple update): Use --add-import instead of --import.
28808         * NEWS: Mention the change.
28809
28810 2010-09-04  Bruno Haible  <bruno@clisp.org>
28811
28812         * doc/gnulib-tool.texi (Initial import): Update paragraph about
28813         separate gnulib.mk.
28814
28815 2010-09-04  Bruno Haible  <bruno@clisp.org>
28816
28817         gnulib-tool: Don't talk about CVS any more.
28818         * gnulib-tool (func_usage, func_import): Write "version control"
28819         instead of CVS.
28820
28821 2010-09-04  Jim Meyering  <meyering@redhat.com>
28822
28823         maint.mk: avoid obscure sc_copyright_check failure in coreutils
28824         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
28825         false positives (whose names may be ill-chosen) when searching
28826         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
28827         would cause a false-positive.
28828
28829         avoid coreutils "make distcheck" failure
28830         Coreutils tests with an absolute build directory name that contains
28831         a space.  Not quoting this directory name caused a failure.
28832         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
28833         * tests/test-vc-list-files-cvs.sh: Likewise.
28834
28835 2010-09-04  Bruno Haible  <bruno@clisp.org>
28836
28837         gnulib-tool: Avoid error when run in a package without Makefile.am.
28838         * gnulib-tool: When collecting the m4dirs in a package that does not
28839         have a Makefile.am, eliminate those directories that contain no
28840         gnulib-cache.m4. Fix expression that counts these directories.
28841
28842 2010-09-04  Bruno Haible  <bruno@clisp.org>
28843
28844         update-copyright test: Improve output when perl is missing or too old.
28845         * tests/test-update-copyright.sh: Move test of Perl version down after
28846         the test whether Perl exists. Provide an explanation relating Perl's
28847         error message to Automake's SKIP: message.
28848
28849 2010-09-04  Bruno Haible  <bruno@clisp.org>
28850
28851         Don't augment PATH in TESTS_ENVIRONMENT.
28852         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
28853         set abs_aux_dir instead of augmenting PATH.
28854         * modules/vc-list-files-tests (Makefile.am): Likewise.
28855         * tests/test-update-copyright.sh: Augment PATH here.
28856         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
28857         path_prepend_.
28858         * tests/test-vc-list-files-git.sh: Likewise.
28859
28860 2010-09-04  Jim Meyering  <meyering@redhat.com>
28861
28862         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
28863         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
28864
28865 2010-09-04  Bruno Haible  <bruno@clisp.org>
28866
28867         strdup: Fix compilation error in C++ mode.
28868         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
28869         the macro.
28870
28871 2010-09-04  Bruno Haible  <bruno@clisp.org>
28872
28873         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
28874         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
28875         macro into a function.
28876         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28877
28878 2010-09-04  Bruno Haible  <bruno@clisp.org>
28879
28880         Set PATH_SEPARATOR the same way autoconf does.
28881         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
28882         the value of PATH_SEPARATOR the same way autoconf-generated configure
28883         scripts do.
28884         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
28885         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28886
28887 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28888
28889         Set PATH_SEPARATOR the same way autoconf does.
28890         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
28891         the same way autoconf-generated configure scripts do.
28892         * posix-modules: Likewise.
28893
28894 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28895
28896         hash: fix safe_hasher const typo
28897         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
28898         const; otherwise, there is a type error later.
28899
28900 2010-09-02  Jim Meyering  <meyering@redhat.com>
28901
28902         test-update-copyright.sh: require perl 5.8.0
28903         * tests/test-update-copyright.sh: Require 5.8.0,
28904         which Tom G. Christensen has confirmed is adequate,
28905         while 5.6.1 is not.
28906
28907 2010-09-02  Eric Blake  <eblake@redhat.com>
28908
28909         tests: init.sh improvements for re-exec'ing with zsh
28910         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
28911         -vx through shell re-exec.
28912         Reported by Tom G. Christensen.
28913
28914         wctype: fix typo in previous commit
28915         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
28916         Reported by Ludovic Courtès.
28917
28918 2010-09-02  Jim Meyering  <meyering@redhat.com>
28919
28920         test-update-copyright.sh: skip test if Perl is too old
28921         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
28922         Reported by Tom G. Christensen.
28923
28924 2010-09-02  Bruno Haible  <bruno@clisp.org>
28925
28926         wctype: Avoid compilation error on IRIX 6.5.30.
28927         * lib/wctype.in.h (iswblank): Declare with a replacement if
28928         REPLACE_ISWBLANK is set.
28929         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
28930         declared. Set REPLACE_ISWBLANK.
28931         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
28932         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
28933         * doc/posix-headers/wctype.texi: Likewise.
28934         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28935
28936 2010-09-01  Bruno Haible  <bruno@clisp.org>
28937
28938         New module 'socketlib'.
28939         * modules/socketlib: New file.
28940         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
28941         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
28942         * modules/sockets (Depends-on): Add socketlib.
28943         Suggested by Sam Steingold <sds@gnu.org>.
28944
28945 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28946
28947         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
28948
28949         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
28950         when one needs search access to a directory but not read access.
28951         On systems where it is available, it works in some cases where
28952         O_RDONLY does not, namely on directories that are searchable but
28953         not readable, and which need only to be searchable.  If O_SEARCH
28954         is not available, fall back to the traditional method of using
28955         O_RDONLY.
28956
28957         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
28958         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
28959         when opening a directory that needs only to be searchable.
28960         * lib/chdir-safer.c (chdir_no_follow): Likewise.
28961         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
28962         * lib/openat-proc.c (openat_proc_name): Likewise.
28963         * lib/openat.c (openat_needs_fchdir): Likewise.
28964         * lib/save-cwd.c (save_cwd): Likewise.
28965         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
28966
28967 2010-08-28  Bruno Haible  <bruno@clisp.org>
28968
28969         New module 'host-cpu-c-abi'.
28970         * modules/host-cpu-c-abi: New file.
28971         * m4/host-cpu-c-abi.m4: New file, based on part of
28972         clisp/src/m4/general.m4.
28973         Requested by Sam Steingold <sds@gnu.org>.
28974
28975 2010-08-31  Eric Blake  <eblake@redhat.com>
28976         and Jim Meyering  <meyering@redhat.com>
28977
28978         hash: factor, and guard against misbehaving hasher function
28979         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
28980         of table->hasher's return value.  Also protect against a hash value
28981         so large that adding it to table->bucket results in a NULL pointer.
28982         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
28983         Use it in place of open-coded check-and-abort.
28984
28985 2010-08-30  Bruno Haible  <bruno@clisp.org>
28986
28987         hash: silence spurious clang warning
28988         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
28989         Reported by Eric Blake.
28990
28991 2010-08-30  Eric Blake  <eblake@redhat.com>
28992
28993         strstr, memmem, strcasestr: avoid leaked shell message
28994         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
28995         FreeBSD.
28996         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28997         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28998
28999         tests: silence clang warning
29000         * tests/test-malloca.c (do_allocation): Avoid dead store.
29001
29002 2010-08-29  Bruno Haible  <bruno@clisp.org>
29003
29004         gettext: Fix recent mistake.
29005         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29006
29007 2010-08-29  Bruno Haible  <bruno@clisp.org>
29008
29009         selinux-h: Offer a --without-selinux option.
29010         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29011         --without-selinux was specified, skip all tests and define
29012         HAVE_SELINUX_SELINUX_H to 0.
29013         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29014         set LIB_SELINUX to empty.
29015         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29016         gl_LIBSELINUX. If --without-selinux was specified, replace
29017         selinux/context.h.
29018         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29019
29020 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29021             Bruno Haible  <bruno@clisp.org>
29022
29023         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29024         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29025         of HAVE_REALLOC.
29026         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29027         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29028         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29029         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29030
29031 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29032             Bruno Haible  <bruno@clisp.org>
29033
29034         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29035         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29036         HAVE_CALLOC.
29037         * lib/xmalloc.c: Update accordingly.
29038         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29039         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29040         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29041
29042 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29043             Bruno Haible  <bruno@clisp.org>
29044
29045         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29046         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29047         HAVE_MALLOC.
29048         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29049         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29050         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29051
29052 2010-08-29  Bruno Haible  <bruno@clisp.org>
29053
29054         Update modules list.
29055         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29056         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29057         (String handling <string.h>): Add astrxfrm.
29058         (File system functions): Add readlinkat.
29059
29060 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29061
29062         Tests for module 'realloc-gnu'.
29063         * modules/realloc-gnu-tests: New file.
29064         * tests/test-realloc-gnu.c: New file.
29065
29066         Tests for module 'calloc-gnu'.
29067         * modules/calloc-gnu-tests: New file.
29068         * tests/test-calloc-gnu.c: New file.
29069
29070         Tests for module 'malloc-gnu'.
29071         * modules/malloc-gnu-tests: New file.
29072         * tests/test-malloc-gnu.c: New file.
29073
29074 2010-08-28  Bruno Haible  <bruno@clisp.org>
29075
29076         Rename module 'realloc' -> 'realloc-gnu'.
29077         * modules/realloc-gnu: New file, copied from modules/realloc.
29078         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29079         obsolete.
29080         * modules/mgetgroups (Depends-on): Update.
29081         * doc/posix-functions/realloc.texi: Update.
29082         * NEWS: Mention the change.
29083
29084         Rename module 'calloc' -> 'calloc-gnu'.
29085         * modules/calloc-gnu: New file, copied from modules/calloc.
29086         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29087         obsolete.
29088         * doc/posix-functions/calloc.texi: Update.
29089         * NEWS: Mention the change.
29090
29091         Rename module 'malloc' -> 'malloc-gnu'.
29092         * modules/malloc-gnu: New file, copied from modules/malloc.
29093         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29094         obsolete.
29095         * modules/argp (Depends-on): Update.
29096         * modules/regex (Depends-on): Update.
29097         * doc/posix-functions/malloc.texi: Update.
29098         * NEWS: Mention the change.
29099
29100 2010-08-28  Eric Blake  <eblake@redhat.com>
29101
29102         pread, pwrite: add missing dependency
29103         * modules/pread (Depends-on): Add extensions.
29104         * modules/pwrite (Depends-on): Likewise.
29105
29106 2010-08-28  Bruno Haible  <bruno@clisp.org>
29107
29108         unistr/u*-strchr: Fix tests dependencies.
29109         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29110         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29111         Reported by Ian Beckwith <ianb@erislabs.net>.
29112
29113 2010-08-28  Bruno Haible  <bruno@clisp.org>
29114
29115         read-file: Don't occupy too much unused memory.
29116         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29117
29118 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29119             Eric Blake  <eblake@redhat.com>
29120             Bruno Haible  <bruno@clisp.org>
29121
29122         read-file: Avoid memory reallocations with regular files.
29123         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29124         (fread_file): With regular files, use the remaining length as the
29125         initial buffer size.  Check against overflow.
29126         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29127         sys_stat.
29128
29129 2010-08-28  Bruno Haible  <bruno@clisp.org>
29130
29131         ftello: Relax license.
29132         * modules/ftello (License): Relax to LGPLv2+.
29133         Reported by Eric Blake.
29134
29135 2010-08-28  Bruno Haible  <bruno@clisp.org>
29136
29137         Avoid relocwrapper link errors due to gnulib replacement functions.
29138         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29139         function.
29140         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29141
29142 2010-08-28  Bruno Haible  <bruno@clisp.org>
29143
29144         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29145         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29146         defined.
29147         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29148         Suggested by Eric Blake.
29149
29150 2010-08-28  Bruno Haible  <bruno@clisp.org>
29151
29152         sys_socket, netdb: Ensure socklen_t gets defined.
29153         * modules/sys_socket (Depends-on): Add socklen.
29154         * modules/netdb (Depends-on): Likewise.
29155         * modules/getaddrinfo (Depends-on): Remove socklen.
29156         * modules/getsockopt (Depends-on): Likewise.
29157         * modules/setsockopt (Depends-on): Likewise.
29158         * tests/test-sys_socket.c: Check that socklen_t is defined.
29159         * tests/test-netdb.c: Likewise.
29160         * m4/socklen.m4: Update comments.
29161         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29162
29163 2010-08-27  Eric Blake  <eblake@redhat.com>
29164
29165         login_tty: add missing dependency
29166         * modules/login_tty (Depends-on): Add pty.
29167
29168 2010-08-26  Eric Blake  <eblake@redhat.com>
29169
29170         lib-symbol-versions: fix m4 quoting
29171         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29172         format for AC_LINK_IFELSE.
29173
29174         glob: fix compile test
29175         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29176
29177         btowc: fix missing file
29178         * modules/btowc (Files): Also ship locale-fr.m4.
29179
29180         lseek: fix link test
29181         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29182         AC_LINK_IFELSE.
29183
29184         include_next: silence autoconf 2.68 warning
29185         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29186         AC_COMPILE_IFELSE as special.
29187         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29188         autoconf < 2.68.
29189
29190         acl: fix compilation test
29191         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29192         AC_COMPILE_IFELSE.
29193
29194 2010-08-26  Bruno Haible  <bruno@clisp.org>
29195
29196         Modernize AC_TRY_RUN invocations.
29197         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29198         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29199         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29200         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29201         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29202         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29203         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29204         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29205         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29206         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29207         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29208         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29209         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29210         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29211         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29212         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29213         gl_MBRLEN_NUL_RETVAL): Likewise.
29214         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29215         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29216         Likewise.
29217         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29218         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29219         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29220         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29221         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29222         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29223         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29224         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29225         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29226         Likewise.
29227         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29228         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29229         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29230         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29231         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29232         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29233         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29234         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29235         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29237
29238 2010-08-26  Bruno Haible  <bruno@clisp.org>
29239
29240         Modernize AC_TRY_LINK invocations.
29241         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29242         AC_TRY_LINK.
29243         * m4/argp.m4 (gl_ARGP): Likewise.
29244         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29245         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29246         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29247         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29248         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29249         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29250         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29251         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29252         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29253         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29254         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29255         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29256         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29257         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29258         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29259         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29260         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29261         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29262         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29263         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29264         Likewise.
29265         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29266         Likewise.
29267         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29268         Likewise.
29269         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29270         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29271         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29272         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29273         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29274         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29275         * m4/servent.m4 (gl_SERVENT): Likewise.
29276         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29277         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29278         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29279         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29280         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29281         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29282         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29283         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29284         * modules/tsearch-tests (configure.ac): Likewise.
29285
29286 2010-08-26  Bruno Haible  <bruno@clisp.org>
29287
29288         Modernize AC_TRY_COMPILE invocations.
29289         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29290         AC_TRY_COMPILE.
29291         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29292         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29293         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29294         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29295         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29296         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29297         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29298         * m4/lock.m4 (gl_LOCK): Likewise.
29299         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29300         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29301         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29302         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29303         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29304         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29305         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29306         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29307         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29308         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29309         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29310         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29311         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29312         extraneous semicolon.
29313
29314 2010-08-26  Jim Meyering  <meyering@redhat.com>
29315
29316         stat-time: relax license LGPL
29317         * modules/stat-time (License): Change from GPL to LGPL,
29318         with consent from all contributors, for use in libguile.
29319         Requested by Ludovic Courtès.
29320
29321 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29322
29323         poll: return immediately on POLLHUP.
29324         * lib/poll.c (poll): Always set timeout before wait_timeout is
29325         computed.
29326
29327 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29328
29329         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29330         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29331         rmdir ("dir/.//"), unlinkat.
29332
29333 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29334
29335         stdbool: avoid spurious failure with modern xlc
29336         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29337
29338 2010-08-24  Bruno Haible  <bruno@clisp.org>
29339
29340         getloadavg: simplify code
29341         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29342         gl_have_func. Update comments.
29343
29344 2010-08-24  Eric Blake  <eblake@redhat.com>
29345
29346         getloadavg: don't define SVR4 on cygwin
29347         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29348         only define SVR4 when -lkvm is required.
29349         Reported by Yaakov Selkowitz.
29350
29351 2010-08-24  Bruno Haible  <bruno@clisp.org>
29352
29353         priv-set: fix comment
29354         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29355
29356 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29357
29358         priv-set: fix comments
29359         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29360         to match code, as suggested by David Bartley in:
29361         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29362
29363 2010-08-23  Eric Blake  <eblake@redhat.com>
29364
29365         stdbool: avoid rejecting clang
29366         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29367         * tests/test-stdbool.c: Enable more tests if using the system
29368         <stdbool.h> instead of the gnulib replacement.
29369         (main): Move xlc bug test to a runtime test for all compilers.
29370         Reported by Anders Kaseorg.
29371
29372         argz: fix shell quoting issue
29373         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29374         Reported by Charles Wilson.
29375
29376 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29377             Erik Faye-Lund <kusmabite@gmail.com>
29378
29379         poll, select: handle ERROR_BROKEN_PIPE.
29380         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29381         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29382         * lib/select.c (win32_compute_revents): Do not mark a pipe
29383         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29384
29385 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29386
29387         fts: allow compilation with C++
29388         * lib/fts_.h: Specify extern "C" linkage with C++.
29389
29390 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29391
29392         Fix gnulib-tool sed script de-commentation for AIX sed.
29393         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29394         sed.
29395
29396 2010-08-17  Eric Blake  <eblake@redhat.com>
29397
29398         test-stddef: test for (some) offsetof bugs
29399         * tests/test-stddef.c: Enhance test to ensure correct type of
29400         offsetof.
29401         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29402         that we are not fixing at this time.
29403
29404 2010-08-15  Bruno Haible  <bruno@clisp.org>
29405
29406         stpncpy: Allow stpncpy to be defined as a macro.
29407         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29408         if it's already correctly declared.
29409         * lib/string.in.h (stpncpy): Undefine before redefining.
29410         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29411
29412 2010-08-14  Bruno Haible  <bruno@clisp.org>
29413
29414         Rename module 'memxfrm' to 'amemxfrm'.
29415         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29416         (amemxfrm): Renamed from memxfrm.
29417         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29418         (amemxfrm): Renamed from memxfrm.
29419         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29420         * NEWS: Mention the change.
29421         * MODULES.html.sh (String handling <string.h>): Update.
29422         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29423         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29424         * lib/unicase/u16-casexfrm.c: Likewise.
29425         * lib/unicase/u32-casexfrm.c: Likewise.
29426         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29427         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29428         * lib/uninorm/u16-normxfrm.c: Likewise.
29429         * lib/uninorm/u32-normxfrm.c: Likewise.
29430         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29431         memxfrm.
29432         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29433         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29434         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29435         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29436         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29437         Suggested by Paul Eggert.
29438
29439 2010-08-14  Bruno Haible  <bruno@clisp.org>
29440
29441         Tests for module 'astrxfrm'.
29442         * modules/astrxfrm-tests: New file.
29443         * tests/test-astrxfrm.c: New file.
29444
29445         New module 'astrxfrm'.
29446         * lib/astrxfrm.h: New file.
29447         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29448         * modules/astrxfrm: New file.
29449
29450 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29451
29452         regex: Tweak doc.
29453         * doc/regex.texi (Overview): Don't mention regex.c.
29454         (GNU Regular Expression Compiling): Likewise.
29455         (Match-end-of-line Operator): Mention 'not_eol'.
29456
29457 2010-08-14  Brian Gough  <bjg@gnu.org>
29458             Bruno Haible  <bruno@clisp.org>
29459
29460         git-merge-changelog: add doc relating to use with bzr and hg.
29461         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29462
29463 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29464
29465         pthread: fix pthread.h creation for srcdir != builddir
29466         * modules/pthread (Makefile.am): Fix the rule to work also in a
29467         non-srcdir build.
29468
29469 2010-08-13  Karl Berry  <karl@gnu.org>
29470
29471         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29472         * doc/posix-*/*: force line break before @url of POSIX
29473         specifications.
29474         Suggested by Werner Lemberg.
29475
29476 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29477
29478         strtod: fix const diagnostic
29479         * lib/strtod.c (strtod): Don't assign const char * to char *,
29480         as this elicits a warning from GCC when warnings are enabled.
29481
29482 2010-08-10  Pádraig Brady <P@draigbrady.com>
29483         and Eric Blake  <eblake@redhat.com>
29484
29485         copy-acl: ignore ENOTSUP on HP-UX
29486         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29487         so that it is available for HP-UX.
29488         * lib/copy-acl.c (qcopy_acl): Use it.
29489         Reported by Patrick M. Callahan.
29490
29491 2010-08-10  Eric Blake  <eblake@redhat.com>
29492
29493         open, chown: relax license
29494         * modules/open (License): Change to LGPLv2+, with consent by all
29495         authors, for use in augeas.
29496         * modules/chown (License): Likewise.
29497         * modules/lchown (Likewise): Likewise.
29498         Requested by Adam Stokes.
29499
29500 2010-08-09  Karl Berry  <karl@gnu.org>
29501
29502         * build-aux/ar-lib: new file, import from Automake.
29503         * config/srclist.txt: autocheck for updates.
29504
29505 2010-08-09  Eric Blake  <eblake@redhat.com>
29506
29507         readlinkat: adjust client modules
29508         * modules/areadlinkat (Depends-on): Use readlinkat, not
29509         symlinkat.
29510         * modules/areadlinkat-with-size (Depends-on): Likewise.
29511
29512         mknod: be more vocal about danger of running tests as root
29513         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29514         root, since that is just asking for problems.
29515         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29516
29517         readlinkat: split into its own module
29518         * modules/symlinkat: Split readlinkat...
29519         * modules/readlinkat: ...into separate module.
29520         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29521         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29522         * lib/symlinkat.c (readlinkat): Move...
29523         * lib/readlinkat.c: ...into new file.
29524         * modules/symlinkat-tests: Split readlinkat test...
29525         * modules/readlinkat-tests: ...into separate module.
29526         * tests/test-symlinkat.c: Split...
29527         * tests/test-readlinkat.c: ...into new file.
29528         * NEWS: Document the split.
29529         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29530         * lib/unistd.in.h (readlinkat): Likewise.
29531         Suggested by Bruno Haible.
29532
29533 2010-08-08  Bruno Haible  <bruno@clisp.org>
29534
29535         memxfrm: Speed up.
29536         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29537         that usually only one call to strxfrm is necessary for each string
29538         part.
29539         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29540
29541 2010-08-07  Karl Berry  <karl@gnu.org>
29542
29543         * doc/posix-headers/limits.texi,
29544         * doc/posix-functions/malloc.texi,
29545         * doc/posix-functions/strsignal.texi: missing @item.
29546         * doc/ld-version-script.texi: spurious leading i.
29547         * doc/regex.texi (Interval Operators): no commas inside @var.
29548
29549 2010-08-01  Bruno Haible  <bruno@clisp.org>
29550
29551         Integrate the regex documentation.
29552         * doc/gnulib.texi: Define 'cn' index.
29553         (Regular expressions): New a chapter that includes regex.texi and
29554         regexprops-generic.texi.
29555         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29556         syntax.
29557
29558         Whitespace cleanup.
29559         * doc/regex.texi: Remove trailing spaces.
29560
29561         Add regex documentation.
29562         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29563         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29564         Written by Kathy A. Hargreaves and Karl Berry.
29565
29566 2010-08-01  Bruno Haible  <bruno@clisp.org>
29567
29568         link: Update documentation.
29569         * doc/posix-functions/link.texi: Update regarding Solaris.
29570
29571 2010-07-31  Bruno Haible  <bruno@clisp.org>
29572
29573         Update modules list.
29574         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29575         (String handling <string.h>): Add memcmp2, memxfrm.
29576         (Container data structures): Add xlist, xsublist, xoset.
29577         (Core language properties): Add alignof, unused-parameter.
29578         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29579         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29580         (Unibyte characters <ctype.h>): New section.
29581         (String handling <string.h>): New section.
29582         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29583         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29584         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29585         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29586         tan, tanh, tanl, y0, y1, yn.
29587         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29588         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29589         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29590         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29591         unlockpt, vdprintf, vdprintf-posix.
29592         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29593         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29594         xconcat-filename.
29595         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29596         getdtablesize, pipe2, pipe2-safer.
29597         (Security): New section.
29598         (Networking functions): Add accept4.
29599         (Signal handling): Add sigpipe.
29600         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29601         mbmemcasecoll.
29602         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
29603         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
29604         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
29605         pipe-filter-ii.
29606         (Misc): Add argp-version-etc, login_tty, parse-duration.
29607
29608 2010-07-31  Bruno Haible  <bruno@clisp.org>
29609
29610         Improve doc in MODULES.html.
29611         * modules/linkat (Description): Add the word "function".
29612         * modules/mkfifo (Description): Likewise.
29613         * modules/mknod (Description): Likewise.
29614         * modules/remove (Description): Likewise.
29615         * modules/renameat (Description): Likewise.
29616         * modules/stat (Description): Likewise.
29617         * modules/symlink (Description): Likewise.
29618         * modules/unlink (Description): Likewise.
29619
29620 2010-07-31  Bruno Haible  <bruno@clisp.org>
29621
29622         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
29623         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
29624         option --enable/disable-c++ instead of --enable/disable-cxx.
29625         * NEWS: Mention the change.
29626
29627 2010-07-31  Bruno Haible  <bruno@clisp.org>
29628
29629         readlink, areadlink: Relax test a bit.
29630         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
29631         alternative to ENOTDIR.
29632         * tests/test-areadlink.h (test_areadlink): Likewise.
29633         Reported by Rainer Tammer.
29634
29635 2010-07-31  Bruno Haible  <bruno@clisp.org>
29636
29637         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
29638         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
29639         character, perform the search using U_STRCHR.
29640         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
29641         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
29642         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
29643         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
29644         Suggested by Paolo Bonzini.
29645
29646 2010-07-31  Bruno Haible  <bruno@clisp.org>
29647
29648         unistr/u*-strstr: Fix dependencies.
29649         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
29650         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
29651         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
29652
29653 2010-07-31  Bruno Haible  <bruno@clisp.org>
29654
29655         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
29656         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
29657         the beginning of the loop.
29658         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
29659         cases in 'switch' statement.
29660
29661         unistr/u8-strchr: Fix several bugs.
29662         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
29663         the string. When not found, return NULL, not a pointer near the end.
29664
29665         More tests for unistr/u8-strchr.
29666         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
29667         that the function does not read past the first occurrence of the byte
29668         being searched.
29669         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
29670         * tests/unistr/test-u16-strchr.c (main): New function.
29671         * tests/unistr/test-u32-strchr.c (main): New function.
29672
29673 2010-07-31  Bruno Haible  <bruno@clisp.org>
29674
29675         posix-modules: Ignore backup files of documentation files.
29676         * posix-modules: grep only through files named *.texi.
29677
29678 2010-07-31  Bruno Haible  <bruno@clisp.org>
29679
29680         symlinkat: Fix documentation.
29681         * doc/posix-functions/readlinkat.texi: Fix module name.
29682
29683 2010-07-31  Bruno Haible  <bruno@clisp.org>
29684
29685         fchownat: Replace also when chown has the trailing slash bug.
29686         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29687         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
29688         introduced on 2010-04-10.
29689         Reported by Rainer Tammer.
29690
29691 2010-07-31  Bruno Haible  <bruno@clisp.org>
29692
29693         linkat: Work around AIX 7.1 bug.
29694         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
29695         whether linkat handles trailing slash correctly. If not, replace linkat
29696         and define LINKAT_TRAILING_SLASH_BUG.
29697         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
29698         check whether (fd1,file1) points to a directory if file1 or file2 ends
29699         in a slash. Code taken from lib/link.c.
29700         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
29701         Reported by Rainer Tammer.
29702
29703 2010-07-31  Bruno Haible  <bruno@clisp.org>
29704
29705         Correctly determine whether pow is available in libc on AIX 7 with xlc.
29706         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
29707         This disables an xlc optimization that was causing wrong test results.
29708         Reported by Rainer Tammer.
29709
29710 2010-07-31  Bruno Haible  <bruno@clisp.org>
29711
29712         iconv: Work around AIX 6.1..7.1 bug.
29713         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
29714         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
29715         cross-compiling, guess no on all versions of AIX.
29716         Reported by Rainer Tammer.
29717
29718 2010-07-31  Bruno Haible  <bruno@clisp.org>
29719
29720         readlink: Relax test a bit.
29721         * tests/test-readlink.h (test_readlink): Allow different errno value
29722         when readlink is called with a file name that ends in / and refers to
29723         a file.
29724         Suggested by Eric Blake.
29725         Reported by Rainer Tammer.
29726
29727 2010-07-31  Bruno Haible  <bruno@clisp.org>
29728
29729         copysign: Does not require -lm on glibc systems.
29730         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
29731         gl_COMMON_DOUBLE_MATHFUNC.
29732         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
29733
29734 2010-07-31  Bruno Haible  <bruno@clisp.org>
29735
29736         duplocale: Work around AIX 7.1 bug.
29737         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
29738         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
29739         * lib/duplocale.c (rpl_duplocale): Update comment.
29740         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
29741         Reported by Rainer Tammer.
29742
29743 2010-07-30  Bruno Haible  <bruno@clisp.org>
29744
29745         dirfd: Avoid link error on AIX 7.1.
29746         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
29747         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
29748         exist, set REPLACE_DIRFD.
29749         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
29750         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
29751         * doc/posix-functions/dirfd.texi: Update.
29752         Reported by Rainer Tammer.
29753
29754 2010-07-30  Eric Blake  <eblake@redhat.com>
29755
29756         strtod: next round of AIX fixes
29757         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
29758         exponent.
29759         * tests/test-strtod.c (main): Enhance tests.
29760         * doc/posix-functions/strtod.texi (strtod): Document next bug.
29761         Reported by Rainer Tammer.
29762
29763         futimens: fix configure check
29764         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
29765         Reported by Bruno Haible.
29766
29767 2010-07-30  Bruno Haible  <bruno@clisp.org>
29768
29769         getline: Update regarding AIX.
29770         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
29771         Reported by Rainer Tammer.
29772
29773 2010-07-30  Bruno Haible  <bruno@clisp.org>
29774
29775         wcwidth: Drop replacement on AIX 7.
29776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
29777         AIX 7.
29778         Reported by Rainer Tammer.
29779
29780 2010-07-30  Bruno Haible  <bruno@clisp.org>
29781
29782         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
29783         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
29784         a 'char *'.
29785         Reported by Rainer Tammer.
29786
29787 2010-07-30  Bruno Haible  <bruno@clisp.org>
29788
29789         unlink: Update regarding AIX.
29790         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
29791         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
29792         Reported by Rainer Tammer.
29793
29794 2010-07-30  Bruno Haible  <bruno@clisp.org>
29795
29796         symlink: Update regarding AIX.
29797         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
29798         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
29799         Reported by Rainer Tammer.
29800
29801 2010-07-30  Bruno Haible  <bruno@clisp.org>
29802
29803         strndup: Update regarding AIX.
29804         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
29805         AIX 7.
29806         Reported by Rainer Tammer.
29807
29808 2010-07-30  Bruno Haible  <bruno@clisp.org>
29809
29810         stat: Update regarding AIX.
29811         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
29812         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
29813         Reported by Rainer Tammer.
29814
29815 2010-07-30  Bruno Haible  <bruno@clisp.org>
29816
29817         truncl: Fix autoconf test.
29818         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
29819         whether truncl works.
29820         Reported by Rainer Tammer.
29821
29822 2010-07-30  Bruno Haible  <bruno@clisp.org>
29823
29824         round: Update regarding AIX.
29825         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
29826         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
29827         Reported by Rainer Tammer.
29828
29829 2010-07-30  Bruno Haible  <bruno@clisp.org>
29830
29831         rename: Update regarding AIX.
29832         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
29833         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
29834         Reported by Rainer Tammer.
29835
29836 2010-07-30  Bruno Haible  <bruno@clisp.org>
29837
29838         printf.m4: Update regarding AIX.
29839         * m4/printf.m4: Update comments regarding AIX.
29840         Reported by Rainer Tammer.
29841
29842 2010-07-30  Bruno Haible  <bruno@clisp.org>
29843
29844         iconv: Update regarding AIX.
29845         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
29846         AIX 7.
29847         Reported by Rainer Tammer.
29848
29849 2010-07-30  Bruno Haible  <bruno@clisp.org>
29850
29851         getopt: Update regarding AIX.
29852         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
29853         no on AIX.
29854         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
29855         Reported by Rainer Tammer.
29856
29857 2010-07-30  Bruno Haible  <bruno@clisp.org>
29858
29859         ldexpl; Update regarding AIX.
29860         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
29861         on AIX 7.
29862         Reported by Rainer Tammer.
29863
29864 2010-07-30  Bruno Haible  <bruno@clisp.org>
29865
29866         frexpl: Update regarding AIX.
29867         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
29868         on AIX 7.
29869         Reported by Rainer Tammer.
29870
29871 2010-07-30  Bruno Haible  <bruno@clisp.org>
29872
29873         open, fopen: Update regarding AIX.
29874         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
29875         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29876         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
29877         * doc/posix-functions/fopen.texi: Likewise.
29878         Reported by Rainer Tammer.
29879
29880 2010-07-30  Bruno Haible  <bruno@clisp.org>
29881
29882         chown: Update doc regarding AIX.
29883         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
29884         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
29885         Reported by Rainer Tammer.
29886
29887 2010-07-30  Eric Blake  <eblake@redhat.com>
29888
29889         strtod: fix bug in replacement function on AIX
29890         * lib/strtod.c (strtod): Special case broken "0x" parse in
29891         underlying strtod.
29892         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
29893         * doc/posix-functions/strtod.texi (strtod): Likewise.
29894         Reported by Rainer Tammer.
29895
29896 2010-07-30  Bruno Haible  <bruno@clisp.org>
29897
29898         mbrlen: Fix cross-compilation guess for AIX.
29899         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
29900         guess. Leftover from 2008-12-22.
29901
29902 2010-07-30  Bruno Haible  <bruno@clisp.org>
29903
29904         mbrtowc: Fix cross-compilation guess for AIX.
29905         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
29906         guess. Leftover from 2008-12-21.
29907
29908 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
29909
29910         init.sh: work around trap limitation of some shells
29911         * tests/init.sh (setup_): Move exit trap outside of shell function.
29912
29913 2010-07-29  Eric Blake  <eblake@redhat.com>
29914
29915         strtod: aid debugging
29916         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
29917         understanding why strtod is rejected.
29918
29919 2010-07-28  Bruno Haible  <bruno@clisp.org>
29920
29921         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
29922         * lib/unistr/u8-chr.c: Include <string.h>.
29923         * tests/unistr/test-u8-chr.c: Likewise.
29924         * tests/unistr/test-u16-chr.c: Likewise.
29925         * tests/unistr/test-u32-chr.c: Likewise.
29926         * tests/unistr/test-u8-strchr.c: Likewise.
29927         * tests/unistr/test-u16-strchr.c: Likewise.
29928         * tests/unistr/test-u32-strchr.c: Likewise.
29929         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
29930         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
29931         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
29932         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
29933
29934 2010-07-28  Bruno Haible  <bruno@clisp.org>
29935
29936         Use spaces for indentation, not tabs.
29937         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29938
29939 2010-07-27  Bruno Haible  <bruno@clisp.org>
29940
29941         mbspcasecmp: Fix function specification.
29942         * lib/string.in.h (mbspcasecmp): Fix specification comment.
29943         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
29944         Reported by Eric Blake <eblake@redhat.com>.
29945
29946 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
29947
29948         timespec: use cast and not conditional, as truncation isn't possible
29949         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
29950         instead of a conditional.  Comment about the situation in more detail.
29951         This undoes most of the 2009-10-29 patch.
29952
29953 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
29954
29955         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
29956         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
29957         * lib/unistr/u8-strchr.c: Likewise.
29958         * modules/unistr/u8-chr: Depend on memchr.
29959
29960         unistr/u*-strchr: add tests
29961         * modules/unistr/u8-strchr-tests: New file.
29962         * modules/unistr/u16-strchr-tests: New file.
29963         * modules/unistr/u32-strchr-tests: New file.
29964         * tests/unistr/test-strchr.h: New file.
29965         * tests/unistr/test-u8-strchr.c: New file.
29966         * tests/unistr/test-u16-strchr.c: New file.
29967         * tests/unistr/test-u32-strchr.c: New file.
29968
29969         unistr/u*-chr: test multibyte sequences more
29970         * tests/unistr/test-chr.h: Do complete testing of the characters in the
29971         test vector.
29972         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
29973         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
29974         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
29975
29976         unistr/u*-chr: test multibyte sequences
29977         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
29978
29979         unistr/u*-chr: prepare for multibyte tests
29980         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
29981         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
29982         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
29983         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
29984         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
29985         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
29986
29987 2010-07-18  Bruno Haible  <bruno@clisp.org>
29988
29989         unistr/u8-strchr: Optimize non-ASCII argument case.
29990         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
29991         because the first byte often matches anyway.
29992         Reported by Pádraig Brady <P@draigbrady.com>.
29993
29994 2010-07-15  Karl Berry  <karl@gnu.org>
29995
29996         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
29997
29998 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
29999
30000         getcwd: on Solaris, work better if ancestors are inaccessible
30001         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30002         buffer and size, try again with a large buffer.  This works better
30003         on Solaris, since its getcwd succeeds even if the path to the root
30004         is inaccessible, and this is helpful in common cases such as .zfs
30005         hidden directories.  Problem reported by J Chapman Flack in
30006         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30007         Use system getcwd if it's declared, not merely if it's partly
30008         working; use the partly-working test only to avoid needless effort
30009         if the system getcwd fails.
30010         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30011         comment that was already obsolete and is now even more obsolete.
30012         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30013         now might call strdup.
30014
30015 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30016
30017         pthread: Add enough so that coreutils/src/sort.c compiles.
30018         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30019         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30020         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30021         Include <sys/types.h>, in case it defines pthread_t.
30022         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30023         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30024         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30025         (pthread_rwlockattr_t, pthread_spinlock_t):
30026         New typedefs, if HAVE_PTHREAD_T is not defined.
30027         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30028         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30029         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30030         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30031         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30032         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30033         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30034         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30035         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30036         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30037         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30038         New macros.
30039         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30040         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30041         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30042         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30043         (pthread_spin_unlock): New dummy functions.
30044         (pthread_create): Return EAGAIN; don't set errno.
30045         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30046         require AC_C_INLINE.
30047         * modules/pthread (Depends-on): Add sched, time.
30048         (pthread.h): Use AM_V_GEN.
30049
30050 2010-07-13  Bruno Haible  <bruno@clisp.org>
30051
30052         striconveh: Don't malloc memory if the result buffer is sufficient.
30053         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30054         buffer if its size is sufficient.
30055         Reported by Ludovic Courtès <ludo@gnu.org>.
30056
30057 2010-07-13  Bruno Haible  <bruno@clisp.org>
30058
30059         strtod: Add safety check.
30060         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30061
30062 2010-07-12  Bruno Haible  <bruno@clisp.org>
30063
30064         Unify tests that set gl_cv_func_ldexpl_no_libm.
30065         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30066         gl_FUNC_LDEXPL.
30067         (gl_FUNC_LDEXPL): Invoke it.
30068         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30069
30070 2010-07-12  Bruno Haible  <bruno@clisp.org>
30071
30072         Unify tests that set gl_cv_func_ldexp_no_libm.
30073         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30074         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30075         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30076         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30077         * modules/strtod (Files): Add m4/ldexp.m4.
30078
30079 2010-07-12  Bruno Haible  <bruno@clisp.org>
30080
30081         Unify tests that set gl_cv_func_frexpl_no_libm.
30082         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30083         gl_FUNC_FREXPL_NO_LIBM.
30084         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30085         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30086
30087 2010-07-12  Bruno Haible  <bruno@clisp.org>
30088
30089         Unify tests that set gl_cv_func_frexp_no_libm.
30090         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30091         gl_FUNC_FREXP_NO_LIBM.
30092         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30093         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30094
30095 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30096
30097         memcoll: clarify sizes versus lengths, document better, and tweak perf
30098         * lib/memcoll.c (strcoll_loop, memcoll0):
30099         Improve quality of descriptive comments.  Name variables
30100         consistently as to whether they are lengths (which do not include
30101         terminating null) versus sizes (which do).
30102         * lib/xmemcoll.c (xmemcoll0): Likewise.
30103         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30104         returned when s1size == 0; this is easier to compile and saves
30105         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30106
30107 2010-07-12  Bruno Haible  <bruno@clisp.org>
30108
30109         Tests for module '_Exit'.
30110         * modules/_Exit-tests: New file.
30111         * tests/test-_Exit.sh: New file.
30112         * tests/test-_Exit.c: New file.
30113
30114         New module '_Exit'.
30115         * lib/stdlib.in.h (__attribute__): New macro.
30116         (_Exit): New declaration.
30117         * lib/_Exit.c: New file.
30118         * m4/_Exit.m4: New file.
30119         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30120         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30121         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30122         * modules/_Exit: New file.
30123         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30124         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30125
30126 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30127
30128         strtod: make it more-accurate typically, and don't require libm
30129         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30130         Include limits.h.  Don't include string.h.
30131         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30132         (locale_isspace): New function, so that no casts are needed to
30133         check whether *s is a space.
30134         (ldexp): Provide an unused dummy if not available.
30135         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30136         (strtod): Use them.  This implementation prefers to use the
30137         underlying strtod if available, falling back on our own code
30138         only to fix known bugs.  This is more likely to produce an
30139         accurate result.  Also, it avoids the use of libm functions.
30140         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30141         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30142         was absent, but it caused a test failure with coreutils.
30143         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30144         with libm.
30145         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30146         * modules/strtod-tests (Makefile.am): Likewise.
30147
30148 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30149             Bruno Haible  <bruno@clisp.org>
30150
30151         unistr/u8-strchr: Optimize ASCII argument case.
30152         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30153
30154 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30155
30156         (x)memcoll: minor tweaks
30157         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30158         is after the type that it qualifies.
30159         (memcoll0): Likewise.
30160         * lib/memcoll.h (memcoll0): Likewise.
30161         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30162         * lib/xmemcoll.h (xmemcoll0): Likewise.
30163         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30164         differs from memcoll in that the NUL byte is part of the argument.
30165         Omit the abort-checks, as performance is a real issue here.  Plus,
30166         the checks were wrong anyway (an off-by-one error).  Omit local
30167         variable 'diff', as it's a bit clearer that way.
30168         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30169         no longer needed.
30170
30171 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30172
30173         (x)memcoll: speedup when input is known to be NUL delimited
30174         * lib/memcoll.c: Include stdlib.
30175         (memcoll0): New function.
30176         (strcoll_loop): New function, refactored for use in both memcoll
30177         and memcoll0.
30178         * lib/memcoll.h (memcoll0): Add prototype.
30179         * lib/xmemcoll.c (xmemcoll0): New function.
30180         (collate_error): New function, refactored for use in both xmemcoll
30181         and xmemcoll0.
30182         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30183         * m4/memcoll.m4: add inline invocation.
30184
30185 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30186
30187         * build-aux/bootstrap: Remove any local translations
30188         from the translation project synchronization directory,
30189         so that local only translations are not distributed.
30190
30191 2010-07-04  Bruno Haible  <bruno@clisp.org>
30192
30193         fsusage: Clarify which code applies to which platforms.
30194         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30195         platform.
30196         * lib/fsusage.c (get_fs_usage): Likewise.
30197
30198 2010-07-04  Bruno Haible  <bruno@clisp.org>
30199
30200         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30201         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30202         Reported by Martin Lambers <marlam@marlam.de>.
30203
30204 2010-07-04  Jim Meyering  <meyering@redhat.com>
30205
30206         hash: once again explicitly disallow insertion of NULL
30207         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30208         inserting a NULL pointer cannot work with these functions.
30209         Add a comment with details.
30210         This reverts part of the 2010-07-01 commit, 5bef1a35
30211         "hash: extend module to deal with non-pointer keys".
30212
30213 2010-07-01  Bruno Haible  <bruno@clisp.org>
30214
30215         stdbool: Update doc.
30216         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30217         Info from Christian Weisgerber <naddy@mips.inka.de>.
30218
30219 2010-07-01  Jim Meyering  <meyering@redhat.com>
30220
30221         hash: extend module to deal with non-pointer keys
30222         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30223         but that allows insertion of non-pointer entries.
30224         Do not disallow an ENTRY value of NULL.
30225         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30226         * lib/hash.h (hash_insert0): Declare.
30227
30228 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30229
30230         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30231         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30232         not present (i.e. with autoconf 2.59 and when using gettextize, not
30233         gnulib), require AC_GNU_SOURCE instead.
30234
30235 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30236
30237         idpriv-drop: Fix tests.
30238         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30239         not to the test-idpriv-droptemp program.
30240
30241 2010-06-29  Bruno Haible  <bruno@clisp.org>
30242
30243         string: Fix syntax error with g++ 2.96.
30244         * lib/string.in.h (__pure__): Remove definition.
30245         (_GL_ATTRIBUTE_PURE): New macro.
30246         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30247         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30248         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30249
30250 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30251
30252         unitypes: Fix bug introduced on 2010-05-18.
30253         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30254
30255 2010-06-22  Eric Blake  <eblake@redhat.com>
30256
30257         memmem: slight optimization
30258         * lib/str-two-way.h (critical_factorization): Update comments.
30259         Reduce work during factorization phase.
30260         Reported by Carlos Bueno <carlos@bueno.org>.
30261
30262 2010-06-21  Bruno Haible  <bruno@clisp.org>
30263
30264         Fix HAVE_CALLOC_POSIX misnomer.
30265         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30266         !HAVE_CALLOC_POSIX.
30267         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30268         HAVE_CALLOC_POSIX.
30269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30270         instead of HAVE_CALLOC_POSIX.
30271         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30272         HAVE_CALLOC_POSIX.
30273
30274         Use modern idiom for calloc() replacement.
30275         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30276         AC_FUNC_CALLOC.
30277         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30278         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30279         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30280         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30281         (gl_REPLACE_CALLOC): New macro.
30282
30283 2010-06-21  Bruno Haible  <bruno@clisp.org>
30284
30285         Fix HAVE_REALLOC_POSIX misnomer.
30286         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30287         !HAVE_REALLOC_POSIX.
30288         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30289         HAVE_REALLOC_POSIX.
30290         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30291         instead of HAVE_REALLOC_POSIX.
30292         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30293         HAVE_REALLOC_POSIX.
30294
30295         Use modern idiom for realloc() replacement.
30296         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30297         AC_FUNC_REALLOC.
30298         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30299         Autoconf's AC_FUNC_REALLOC.
30300         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30301         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30302         (gl_REPLACE_REALLOC): New macro.
30303         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30304
30305 2010-06-21  Bruno Haible  <bruno@clisp.org>
30306
30307         Fix HAVE_MALLOC_POSIX misnomer.
30308         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30309         !HAVE_MALLOC_POSIX.
30310         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30311         HAVE_MALLOC_POSIX.
30312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30313         instead of HAVE_MALLOC_POSIX.
30314         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30315         HAVE_MALLOC_POSIX.
30316
30317         Use modern idiom for malloc() replacement.
30318         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30319         AC_FUNC_MALLOC.
30320         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30321         Autoconf's AC_FUNC_MALLOC.
30322         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30323         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30324         (gl_REPLACE_MALLOC): New macro.
30325         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30326
30327 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30328
30329         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30330         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30331         This macro takes 3 arguments, not 4.
30332
30333 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30334
30335         ipv6: fix detection under mingw
30336         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30337         in6_addr.
30338
30339 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30340
30341         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30342         that strtod() works when cross-compiling to a glibc version known
30343         to work.
30344
30345 2010-06-15  Bruno Haible  <bruno@clisp.org>
30346
30347         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30348
30349 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30350
30351         select: Correct timeout.
30352         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30353
30354 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30355
30356         git-version-gen: init shell var to avoid env var influence
30357         * build-aux/git-version-gen (v): Init shell var to empty.
30358
30359 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30360
30361         priv-set: Don't assume that priv.h exists merely because getppriv does.
30362         See Jan Andersen's bug report about AIX 5L in
30363         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30364         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30365         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30366         * lib/priv-set.h: Likewise.
30367         * tests/test-priv-set.c: Likewise.
30368
30369 2010-06-13  Bruno Haible  <bruno@clisp.org>
30370
30371         relocatable: Make it easier to test whether to install wrappers.
30372         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30373         RELOCATABLE_VIA_WRAPPER.
30374
30375 2010-06-13  Bruno Haible  <bruno@clisp.org>
30376
30377         gnulib-tool: Display specified modules and dependencies differently.
30378         * gnulib-tool (func_show_module_list): New function.
30379         (func_import, func_create_testdir): Invoke it.
30380         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30381
30382 2010-06-13  Bruno Haible  <bruno@clisp.org>
30383
30384         gnulib-tool: Align code of func_import and func_create_testdir.
30385         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30386         specified_modules.
30387
30388 2010-06-12  Jim Meyering  <meyering@redhat.com>
30389
30390         test-inttostr: avoid spurious failure on Solaris 9
30391         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30392         to accept "%ju".  Reported by Bruno Haible.
30393
30394 2010-06-11  Jim Meyering  <meyering@redhat.com>
30395
30396         test-sys_socket: mark variables as used more readably
30397         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30398         as "used" explicitly via (void) statement casts.  This is more
30399         readable than using them in an artificial return expression.
30400         Suggestion from Bruno Haible.
30401
30402 2010-06-11  Bruno Haible  <bruno@clisp.org>
30403
30404         Avoid some more warnings from "gcc -Wwrite-strings".
30405         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30406         to 'const char *'.
30407         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30408         * tests/test-c-strcasestr.c (main): Likewise.
30409         * tests/test-mbscasestr1.c (main): Likewise.
30410         * tests/test-mbscasestr2.c (main): Likewise.
30411         * tests/test-memmem.c (main): Likewise.
30412         * tests/test-strstr.c (main): Likewise.
30413         * tests/test-strcasestr.c (main): Likewise.
30414
30415 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30416
30417         init.sh: change framework_failure_ to fail with status 99, not 1
30418         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30419         automake's parallel-tests rule that this is an unexpected failure,
30420         even if the test is listed in XFAIL_TESTS.
30421
30422 2010-06-11  Jim Meyering  <meyering@redhat.com>
30423
30424         test-inttostr: avoid warnings about 4-6KB literal strings
30425         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30426         Include "macros.h", for its definition of ASSERT.
30427         (CK): s/assert/ASSERT/
30428         * modules/inttostr-tests (Files): Add macros.h.
30429
30430         init.sh: don't use $ME_ or skip_ before they are defined
30431         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30432         their first uses.  Also hoist their companions: warn_, fail_,
30433         framework_failure_, $stderr_fileno.  Prompted by a patch from
30434         Stefano Lattarini.
30435
30436         test-sys_socket: avoid set-but-not-used warnings from gcc
30437         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30438         avoid warning about set-but-not-used variables.
30439
30440         test-xvasprintf: avoid 'const' discard warnings
30441         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30442         "const" when assigning from literal strings.
30443         (test_xasprintf): Add "void" in function argument list to placate
30444         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30445
30446         tests: avoid compilation warnings in argmatch and exclude tests...
30447         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30448         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30449         Since it always exits, declare with the "noreturn" attribute.
30450         * tests/test-argmatch.c: Likewise.
30451
30452         tests: avoid 'const' discard warnings in mbsstr tests
30453         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30454         * tests/test-mbsstr2.c (main): Likewise.
30455
30456         test-verify: avoid warning from gcc's -Wmissing-declarations
30457         * tests/test-verify.c (function): Declare to be static.
30458
30459         test-inttostr.c: include <string.h> for use of strcmp
30460         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30461
30462         test-linkat: avoid failed assertion on "other" architectures
30463         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30464         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30465         sparc: https://bugs.launchpad.net/bugs/591968
30466
30467 2010-06-11  Jim Meyering  <meyering@redhat.com>
30468
30469         printf.m4: avoid autoconf's "Expanded Before Required" warning
30470         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30471         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30472         autoconf warning.
30473
30474 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30475
30476         Replacement header templates are now named with ".in", not "_".
30477         * doc/gnulib-intro.texi: Correct.
30478
30479 2010-06-10  Jim Meyering  <meyering@redhat.com>
30480
30481         inttostr-tests: depend on snprintf, not snprintf-posix
30482         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30483         snprintf-posix, to avoid this aclocal failure:
30484           missing file gnulib-tests/vasnprintf.c
30485           configure.ac:45: error: expected source file, required through \
30486           AC_LIBSOURCES, not found
30487
30488 2010-06-10  Jim Meyering  <meyering@redhat.com>
30489
30490         inttostr: add a new function, inttostr, and tests
30491         The namesake function was not available.  The existence of the
30492         template file, inttostr.c makes its addition nontrivial.
30493         * lib/anytostr.c: Rename from inttostr.c.
30494         (anytostr): Rename from inttostr.
30495         * lib/inttostr.c: New file.
30496         * modules/inttostr (Files): Add anytostr.c.
30497         (Makefile.am): Set lib_SOURCES instead of ...
30498         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30499         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30500         * lib/offtostr.c: Likewise.
30501         * lib/uinttostr.c: Likewise.
30502         * lib/umaxtostr.c: Likewise.
30503         * modules/inttostr-tests: New file.
30504         * tests/test-inttostr.c: New file.  Test these functions.
30505
30506 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30507             Bruno Haible  <bruno@clisp.org>
30508
30509         Add "Extending Gnulib" chapter to manual.
30510         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30511         chapter.
30512         (Extending Gnulib): New chapter.
30513         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30514         chapter.
30515
30516 2010-06-09  Bruno Haible  <bruno@clisp.org>
30517
30518         Avoid relocwrapper link errors due to gnulib replacement functions.
30519         * lib/areadlink.c: Use the system's malloc, realloc functions.
30520         (areadlink): Set errno to ENOMEM explicitly.
30521         * modules/areadlink (Depends-on): Remove malloc-posix.
30522         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30523
30524 2010-06-09  Bruno Haible  <bruno@clisp.org>
30525
30526         Avoid relocwrapper link errors due to gnulib replacement functions.
30527         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30528         * lib/malloca.c: Likewise.
30529         * lib/relocatable.c: Likewise.
30530         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30531         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30532         * lib/setenv.c: Use the system's malloc, realloc functions.
30533         * lib/strerror.c: Use the system's sprintf function.
30534         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30535
30536 2010-06-04  Bruno Haible  <bruno@clisp.org>
30537
30538         Prefer documented low-level autoconf macro names.
30539         * m4/lib-link.m4: Use m4_translit instead of translit.
30540         * m4/environ.m4: Likewise.
30541         * m4/mathfunc.m4: Likewise.
30542         * m4/onceonly.m4: Likewise.
30543         * m4/stdint.m4: Likewise.
30544         Suggested by Eric Blake.
30545
30546 2010-06-04  Martin Lambers  <marlam@marlam.de>
30547             Bruno Haible  <bruno@clisp.org>
30548
30549         havelib: Allow library names with '+' characters.
30550         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30551         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30552
30553 2010-06-09  Bruno Haible  <bruno@clisp.org>
30554
30555         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30556         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30557         realloc failed.
30558
30559 2010-06-08  Peter Simons  <simons@cryp.to>
30560
30561         maint.mk: make the news-check rule more configurable
30562         * top/maint.mk (news-check-lines-spec): New variable.
30563         (news-check): Use "sed -n 1,10p" in place of "head".
30564
30565 2010-06-07  Jim Meyering  <meyering@redhat.com>
30566
30567         do-release-commit-and-tag: fix typo in --help
30568         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30569
30570         regex: avoid new dead-code warning with gcc-4.6.0
30571         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30572         if-block containing a while-loop.  It's been unused for at least
30573         5 years.
30574
30575 2010-06-05  Bruno Haible  <bruno@clisp.org>
30576
30577         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30578         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30579
30580 2010-06-04  Bruno Haible  <bruno@clisp.org>
30581
30582         Update to GNU gettext 0.18.1.
30583         * modules/gettext (configure.ac): Require gettext infrastructure from
30584         version 0.18.1.
30585
30586 2010-06-03  Bruno Haible  <bruno@clisp.org>
30587
30588         Don't use AC_LIBOBJ with file names in subdirectories.
30589         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30590         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30591         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30592         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30593         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30594         gl_LIBUNISTRING_LIBSOURCE.
30595         (Makefile.am): Augment lib_SOURCES here, conditionally.
30596         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30597
30598 2010-06-03  Bruno Haible  <bruno@clisp.org>
30599
30600         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30601         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30602         expansion does not end with a newline.
30603         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
30604         unnecessary newline.
30605
30606 2010-06-03  Bruno Haible  <bruno@clisp.org>
30607
30608         Reduce dependencies.
30609         * tests/test-quotearg.h: New file, extracted from
30610         tests/test-quotearg.c.
30611         * tests/test-quotearg-simple.c: New file, extracted from
30612         tests/test-quotearg.c.
30613         * tests/test-quotearg.c: Don't include <ctype.h>.
30614         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
30615         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
30616         use_quote_double_quotes, use_quotearg_colon): Moved to
30617         tests/test-quotearg.h.
30618         (results_g, flag_results, custom_quotes, custom_results): Moved
30619         to tests/test-quotearg-simple.c.
30620         (main): Moved the part that does not depend on gettext to
30621         tests/test-quotearg-simple.c. Return 77 if the test cannot be
30622         performed.
30623         * modules/quotearg-simple: New file.
30624         * modules/quotearg-simple-tests: New file.
30625         * modules/quotearg (Depends-on): Add quotearg-simple.
30626         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
30627         (Files): Add tests/test-quotearg.h.
30628         Reported by Paolo Bonzini.
30629
30630 2010-06-03  Bruno Haible  <bruno@clisp.org>
30631
30632         Reduce dependencies.
30633         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
30634
30635 2010-06-03  Bruno Haible  <bruno@clisp.org>
30636
30637         time: Undefine more broken macros.
30638         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
30639         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
30640         Reported by Eric Blake.
30641
30642 2010-06-03  Bruno Haible  <bruno@clisp.org>
30643
30644         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
30645         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
30646         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
30647         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
30648         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
30649         Reported by Ludovic Courtès <ludo@gnu.org>.
30650
30651 2010-06-02  Eric Blake  <eblake@redhat.com>
30652
30653         time: work with mingw + pthreads-win32 library
30654         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
30655         if timespec is defined only in pthread.h.
30656         * modules/time (Makefile.am): Substitute it.
30657         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
30658         <pthread.h>, when needed.
30659         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
30660         from the library.
30661
30662 2010-05-31  Bruno Haible  <bruno@clisp.org>
30663
30664         Avoid expanding two macros in the wrong order.
30665         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
30666         gl_LIBUNISTRING if it is defined.
30667         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
30668         autoconf >= 2.64.
30669         Reported by Ludovic Courtès <ludo@gnu.org>.
30670
30671 2010-05-27  Jim Meyering  <meyering@redhat.com>
30672
30673         maint.mk: also prohibit "#undef" of always-defined symbols
30674         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
30675         Allow more than one space before the symbol name.
30676         (sc_prohibit_always-defined_macros): Use grep's -E, now that
30677         the regexp uses alternation.
30678
30679 2010-05-26  Eric Blake  <eblake@redhat.com>
30680
30681         maint.mk: avoid echo -e
30682         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
30683         Convert all uses of echo -* to printf.
30684         Reported by Matthias Bolte.
30685
30686 2010-05-25  Bruno Haible  <bruno@clisp.org>
30687
30688         Update to GNU gettext 0.18, part 2.
30689         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
30690         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
30691
30692 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30693
30694         Add missing include in test-pwrite.c.
30695         * tests/test-pwrite.c: Include string.h, for strcmp.
30696
30697 2010-05-24  Bruno Haible  <bruno@clisp.org>
30698
30699         * NEWS: Mention requirement for Automake option 'subdir-objects'.
30700
30701 2010-05-24  Bruno Haible  <bruno@clisp.org>
30702
30703         Don't use conversion with transliteration in u{8,16,32}_strcoll.
30704         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
30705         iconveh_error argument.
30706         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
30707         U_STRCONV_TO_LOCALE.
30708         * lib/unistr/u16-strcoll.c: Likewise.
30709         * lib/unistr/u32-strcoll.c: Likewise.
30710         * modules/unistr/u8-strcoll (Depends-on): Add
30711         uniconv/u8-strconv-to-enc, localcharset. Remove
30712         uniconv/u8-strconv-to-locale.
30713         (configure.ac): Bump version number.
30714         * modules/unistr/u16-strcoll (Depends-on): Add
30715         uniconv/u16-strconv-to-enc, localcharset. Remove
30716         uniconv/u16-strconv-to-locale.
30717         (configure.ac): Bump version number.
30718         * modules/unistr/u32-strcoll (Depends-on): Add
30719         uniconv/u32-strconv-to-enc, localcharset. Remove
30720         uniconv/u32-strconv-to-locale.
30721         (configure.ac): Bump version number.
30722
30723 2010-05-24  Bruno Haible  <bruno@clisp.org>
30724
30725         Avoid a test failure on NetBSD 5.0.
30726         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
30727         an iconv() bug.
30728
30729 2010-05-24  Bruno Haible  <bruno@clisp.org>
30730
30731         Adjust #include directive style.
30732         * modules/regex (Includes): Recommend to write <regex.h>.
30733
30734 2010-05-24  Bruno Haible  <bruno@clisp.org>
30735
30736         regex: Don't require alloca.
30737         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
30738         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
30739         only inside if (0).
30740
30741 2010-05-23  Jim Meyering  <meyering@redhat.com>
30742
30743         test-renameat.c: include <sys/stat.h>
30744         * tests/test-renameat.c: Include <sys/stat.h>; required for
30745         definition of S_IS* macros.
30746
30747 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
30748
30749         Update maintainer documentation for 'relocatable-prog' module.
30750         * doc/relocatable-maint.texi: Update.
30751         Comments by Bruno Haible.
30752
30753 2010-05-23  Bruno Haible  <bruno@clisp.org>
30754
30755         git-merge-changelog: Enable --split-merged-entry by default.
30756         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
30757         (usage): Don't mention this option any more.
30758         Reported by Ralf Wildenhues.
30759
30760 2010-05-23  Jim Meyering  <meyering@redhat.com>
30761
30762         test-pwrite: do not leave behind a test file named "out"
30763         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
30764         The trivial-looking use of init.sh is really necessary.
30765         It ensures that the temporary file, "out", is created in
30766         a temporary directory, and removed upon termination.
30767         * tests/test-pwrite.sh: Re-add file.
30768         * modules/pwrite-tests: Reference it.
30769
30770 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30771
30772         Fix output redirection buglet in init.sh.
30773         * tests/init.sh: Fix redirection of stderr.
30774
30775 2010-05-20  Simon Josefsson  <simon@josefsson.org>
30776
30777         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
30778
30779 2010-05-17  Simon Josefsson  <simon@josefsson.org>
30780
30781         * modules/valgrind-tests: New file.
30782         * m4/valgrind-tests.m4: New file.
30783         * doc/valgrind-tests.texi: New file.
30784         * doc/gnulib.texi (Running self-tests under valgrind): New
30785         section.
30786
30787 2010-05-19  Bruno Haible  <bruno@clisp.org>
30788
30789         Clean up dead code in recent commit.
30790         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
30791         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
30792         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
30793         Suggested by Paolo Bonzini.
30794
30795 2010-05-19  Bruno Haible  <bruno@clisp.org>
30796
30797         Avoid valgrind error reports from libunistring.
30798         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
30799         * modules/libunistring (Files): Add it.
30800         * modules/libunistring-optional (Files): Likewise.
30801
30802 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
30803             Bruno Haible  <bruno@clisp.org>
30804
30805         New module 'libunistring-optional'.
30806         * modules/libunistring-optional: New file.
30807         * m4/libunistring-base.m4: New file.
30808         * m4/libunistring-optional.m4: New file.
30809         * lib/unicase.in.h: Renamed from lib/unicase.h.
30810         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
30811         * lib/unictype.in.h: Renamed from lib/unictype.h.
30812         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
30813         * lib/uniname.in.h: Renamed from lib/uniname.h.
30814         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
30815         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
30816         * lib/unistr.in.h: Renamed from lib/unistr.h.
30817         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
30818         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
30819         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
30820         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
30821         gl_LIBUNISTRING. If the library was found, determine the installed
30822         version and set LIBUNISTRING_VERSION.
30823         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
30824         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
30825         handle a configuration option --with-included-libunistring.
30826         * modules/libunistring (Files): Add m4/absolute-header.m4.
30827         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
30828         Add m4/libunistring-base.m4.
30829         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30830         (Makefile.am): Build unicase.h from unicase.in.h.
30831         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
30832         Add m4/libunistring-base.m4.
30833         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30834         (Makefile.am): Build uniconv.h from uniconv.in.h.
30835         * modules/unictype/base (Files): Use unictype.in.h instead of
30836         unictype.h. Add m4/libunistring-base.m4.
30837         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30838         (Makefile.am): Build unictype.h from unictype.in.h.
30839         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
30840         Add m4/libunistring-base.m4.
30841         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30842         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
30843         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
30844         Add m4/libunistring-base.m4.
30845         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30846         (Makefile.am): Build uniname.h from uniname.in.h.
30847         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
30848         Add m4/libunistring-base.m4.
30849         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30850         (Makefile.am): Build uninorm.h from uninorm.in.h.
30851         * modules/unistdio/base (Files): Use unistdio.in.h instead of
30852         unistdio.h. Add m4/libunistring-base.m4.
30853         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30854         (Makefile.am): Build unistdio.h from unistdio.in.h.
30855         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
30856         Add m4/libunistring-base.m4.
30857         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30858         (Makefile.am): Build unistr.h from unistr.in.h.
30859         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
30860         Add m4/libunistring-base.m4.
30861         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30862         (Makefile.am): Build unitypes.h from unitypes.in.h.
30863         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
30864         Add m4/libunistring-base.m4.
30865         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30866         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
30867         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
30868         uniwidth.h. Add m4/libunistring-base.m4.
30869         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30870         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
30871         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
30872         instead of augmenting lib_SOURCES.
30873         * modules/unicase/empty-suffix-context: Likewise.
30874         * modules/unicase/locale-language: Likewise.
30875         * modules/unicase/tolower: Likewise.
30876         * modules/unicase/totitle: Likewise.
30877         * modules/unicase/toupper: Likewise.
30878         * modules/unicase/u8-casecmp: Likewise.
30879         * modules/unicase/u8-casecoll: Likewise.
30880         * modules/unicase/u8-casefold: Likewise.
30881         * modules/unicase/u8-casexfrm: Likewise.
30882         * modules/unicase/u8-ct-casefold: Likewise.
30883         * modules/unicase/u8-ct-tolower: Likewise.
30884         * modules/unicase/u8-ct-totitle: Likewise.
30885         * modules/unicase/u8-ct-toupper: Likewise.
30886         * modules/unicase/u8-is-cased: Likewise.
30887         * modules/unicase/u8-is-casefolded: Likewise.
30888         * modules/unicase/u8-is-lowercase: Likewise.
30889         * modules/unicase/u8-is-titlecase: Likewise.
30890         * modules/unicase/u8-is-uppercase: Likewise.
30891         * modules/unicase/u8-prefix-context: Likewise.
30892         * modules/unicase/u8-suffix-context: Likewise.
30893         * modules/unicase/u8-tolower: Likewise.
30894         * modules/unicase/u8-totitle: Likewise.
30895         * modules/unicase/u8-toupper: Likewise.
30896         * modules/unicase/u16-casecmp: Likewise.
30897         * modules/unicase/u16-casecoll: Likewise.
30898         * modules/unicase/u16-casefold: Likewise.
30899         * modules/unicase/u16-casexfrm: Likewise.
30900         * modules/unicase/u16-ct-casefold: Likewise.
30901         * modules/unicase/u16-ct-tolower: Likewise.
30902         * modules/unicase/u16-ct-totitle: Likewise.
30903         * modules/unicase/u16-ct-toupper: Likewise.
30904         * modules/unicase/u16-is-cased: Likewise.
30905         * modules/unicase/u16-is-casefolded: Likewise.
30906         * modules/unicase/u16-is-lowercase: Likewise.
30907         * modules/unicase/u16-is-titlecase: Likewise.
30908         * modules/unicase/u16-is-uppercase: Likewise.
30909         * modules/unicase/u16-prefix-context: Likewise.
30910         * modules/unicase/u16-suffix-context: Likewise.
30911         * modules/unicase/u16-tolower: Likewise.
30912         * modules/unicase/u16-totitle: Likewise.
30913         * modules/unicase/u16-toupper: Likewise.
30914         * modules/unicase/u32-casecmp: Likewise.
30915         * modules/unicase/u32-casecoll: Likewise.
30916         * modules/unicase/u32-casefold: Likewise.
30917         * modules/unicase/u32-casexfrm: Likewise.
30918         * modules/unicase/u32-ct-casefold: Likewise.
30919         * modules/unicase/u32-ct-tolower: Likewise.
30920         * modules/unicase/u32-ct-totitle: Likewise.
30921         * modules/unicase/u32-ct-toupper: Likewise.
30922         * modules/unicase/u32-is-cased: Likewise.
30923         * modules/unicase/u32-is-casefolded: Likewise.
30924         * modules/unicase/u32-is-lowercase: Likewise.
30925         * modules/unicase/u32-is-titlecase: Likewise.
30926         * modules/unicase/u32-is-uppercase: Likewise.
30927         * modules/unicase/u32-prefix-context: Likewise.
30928         * modules/unicase/u32-suffix-context: Likewise.
30929         * modules/unicase/u32-tolower: Likewise.
30930         * modules/unicase/u32-totitle: Likewise.
30931         * modules/unicase/u32-toupper: Likewise.
30932         * modules/unicase/ulc-casecmp: Likewise.
30933         * modules/unicase/ulc-casecoll: Likewise.
30934         * modules/unicase/ulc-casexfrm: Likewise.
30935         * modules/uniconv/u8-conv-from-enc: Likewise.
30936         * modules/uniconv/u8-conv-to-enc: Likewise.
30937         * modules/uniconv/u8-strconv-from-enc: Likewise.
30938         * modules/uniconv/u8-strconv-from-locale: Likewise.
30939         * modules/uniconv/u8-strconv-to-enc: Likewise.
30940         * modules/uniconv/u8-strconv-to-locale: Likewise.
30941         * modules/uniconv/u16-conv-from-enc: Likewise.
30942         * modules/uniconv/u16-conv-to-enc: Likewise.
30943         * modules/uniconv/u16-strconv-from-enc: Likewise.
30944         * modules/uniconv/u16-strconv-from-locale: Likewise.
30945         * modules/uniconv/u16-strconv-to-enc: Likewise.
30946         * modules/uniconv/u16-strconv-to-locale: Likewise.
30947         * modules/uniconv/u32-conv-from-enc: Likewise.
30948         * modules/uniconv/u32-conv-to-enc: Likewise.
30949         * modules/uniconv/u32-strconv-from-enc: Likewise.
30950         * modules/uniconv/u32-strconv-from-locale: Likewise.
30951         * modules/uniconv/u32-strconv-to-enc: Likewise.
30952         * modules/uniconv/u32-strconv-to-locale: Likewise.
30953         * modules/unictype/bidicategory-byname: Likewise.
30954         * modules/unictype/bidicategory-name: Likewise.
30955         * modules/unictype/bidicategory-of: Likewise.
30956         * modules/unictype/bidicategory-test: Likewise.
30957         * modules/unictype/block-list: Likewise.
30958         * modules/unictype/block-test: Likewise.
30959         * modules/unictype/category-C: Likewise.
30960         * modules/unictype/category-Cc: Likewise.
30961         * modules/unictype/category-Cf: Likewise.
30962         * modules/unictype/category-Cn: Likewise.
30963         * modules/unictype/category-Co: Likewise.
30964         * modules/unictype/category-Cs: Likewise.
30965         * modules/unictype/category-L: Likewise.
30966         * modules/unictype/category-Ll: Likewise.
30967         * modules/unictype/category-Lm: Likewise.
30968         * modules/unictype/category-Lo: Likewise.
30969         * modules/unictype/category-Lt: Likewise.
30970         * modules/unictype/category-Lu: Likewise.
30971         * modules/unictype/category-M: Likewise.
30972         * modules/unictype/category-Mc: Likewise.
30973         * modules/unictype/category-Me: Likewise.
30974         * modules/unictype/category-Mn: Likewise.
30975         * modules/unictype/category-N: Likewise.
30976         * modules/unictype/category-Nd: Likewise.
30977         * modules/unictype/category-Nl: Likewise.
30978         * modules/unictype/category-No: Likewise.
30979         * modules/unictype/category-P: Likewise.
30980         * modules/unictype/category-Pc: Likewise.
30981         * modules/unictype/category-Pd: Likewise.
30982         * modules/unictype/category-Pe: Likewise.
30983         * modules/unictype/category-Pf: Likewise.
30984         * modules/unictype/category-Pi: Likewise.
30985         * modules/unictype/category-Po: Likewise.
30986         * modules/unictype/category-Ps: Likewise.
30987         * modules/unictype/category-S: Likewise.
30988         * modules/unictype/category-Sc: Likewise.
30989         * modules/unictype/category-Sk: Likewise.
30990         * modules/unictype/category-Sm: Likewise.
30991         * modules/unictype/category-So: Likewise.
30992         * modules/unictype/category-Z: Likewise.
30993         * modules/unictype/category-Zl: Likewise.
30994         * modules/unictype/category-Zp: Likewise.
30995         * modules/unictype/category-Zs: Likewise.
30996         * modules/unictype/category-and: Likewise.
30997         * modules/unictype/category-and-not: Likewise.
30998         * modules/unictype/category-byname: Likewise.
30999         * modules/unictype/category-name: Likewise.
31000         * modules/unictype/category-none: Likewise.
31001         * modules/unictype/category-of: Likewise.
31002         * modules/unictype/category-or: Likewise.
31003         * modules/unictype/category-test: Likewise.
31004         * modules/unictype/combining-class: Likewise.
31005         * modules/unictype/ctype-alnum: Likewise.
31006         * modules/unictype/ctype-alpha: Likewise.
31007         * modules/unictype/ctype-blank: Likewise.
31008         * modules/unictype/ctype-cntrl: Likewise.
31009         * modules/unictype/ctype-digit: Likewise.
31010         * modules/unictype/ctype-graph: Likewise.
31011         * modules/unictype/ctype-lower: Likewise.
31012         * modules/unictype/ctype-print: Likewise.
31013         * modules/unictype/ctype-punct: Likewise.
31014         * modules/unictype/ctype-space: Likewise.
31015         * modules/unictype/ctype-upper: Likewise.
31016         * modules/unictype/ctype-xdigit: Likewise.
31017         * modules/unictype/decimal-digit: Likewise.
31018         * modules/unictype/digit: Likewise.
31019         * modules/unictype/mirror: Likewise.
31020         * modules/unictype/numeric: Likewise.
31021         * modules/unictype/property-alphabetic: Likewise.
31022         * modules/unictype/property-ascii-hex-digit: Likewise.
31023         * modules/unictype/property-bidi-arabic-digit: Likewise.
31024         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31025         * modules/unictype/property-bidi-block-separator: Likewise.
31026         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31027         * modules/unictype/property-bidi-common-separator: Likewise.
31028         * modules/unictype/property-bidi-control: Likewise.
31029         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31030         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31031         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31032         * modules/unictype/property-bidi-european-digit: Likewise.
31033         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31034         * modules/unictype/property-bidi-left-to-right: Likewise.
31035         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31036         * modules/unictype/property-bidi-other-neutral: Likewise.
31037         * modules/unictype/property-bidi-pdf: Likewise.
31038         * modules/unictype/property-bidi-segment-separator: Likewise.
31039         * modules/unictype/property-bidi-whitespace: Likewise.
31040         * modules/unictype/property-byname: Likewise.
31041         * modules/unictype/property-combining: Likewise.
31042         * modules/unictype/property-composite: Likewise.
31043         * modules/unictype/property-currency-symbol: Likewise.
31044         * modules/unictype/property-dash: Likewise.
31045         * modules/unictype/property-decimal-digit: Likewise.
31046         * modules/unictype/property-default-ignorable-code-point: Likewise.
31047         * modules/unictype/property-deprecated: Likewise.
31048         * modules/unictype/property-diacritic: Likewise.
31049         * modules/unictype/property-extender: Likewise.
31050         * modules/unictype/property-format-control: Likewise.
31051         * modules/unictype/property-grapheme-base: Likewise.
31052         * modules/unictype/property-grapheme-extend: Likewise.
31053         * modules/unictype/property-grapheme-link: Likewise.
31054         * modules/unictype/property-hex-digit: Likewise.
31055         * modules/unictype/property-hyphen: Likewise.
31056         * modules/unictype/property-id-continue: Likewise.
31057         * modules/unictype/property-id-start: Likewise.
31058         * modules/unictype/property-ideographic: Likewise.
31059         * modules/unictype/property-ids-binary-operator: Likewise.
31060         * modules/unictype/property-ids-trinary-operator: Likewise.
31061         * modules/unictype/property-ignorable-control: Likewise.
31062         * modules/unictype/property-iso-control: Likewise.
31063         * modules/unictype/property-join-control: Likewise.
31064         * modules/unictype/property-left-of-pair: Likewise.
31065         * modules/unictype/property-line-separator: Likewise.
31066         * modules/unictype/property-logical-order-exception: Likewise.
31067         * modules/unictype/property-lowercase: Likewise.
31068         * modules/unictype/property-math: Likewise.
31069         * modules/unictype/property-non-break: Likewise.
31070         * modules/unictype/property-not-a-character: Likewise.
31071         * modules/unictype/property-numeric: Likewise.
31072         * modules/unictype/property-other-alphabetic: Likewise.
31073         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31074         * modules/unictype/property-other-grapheme-extend: Likewise.
31075         * modules/unictype/property-other-id-continue: Likewise.
31076         * modules/unictype/property-other-id-start: Likewise.
31077         * modules/unictype/property-other-lowercase: Likewise.
31078         * modules/unictype/property-other-math: Likewise.
31079         * modules/unictype/property-other-uppercase: Likewise.
31080         * modules/unictype/property-paired-punctuation: Likewise.
31081         * modules/unictype/property-paragraph-separator: Likewise.
31082         * modules/unictype/property-pattern-syntax: Likewise.
31083         * modules/unictype/property-pattern-white-space: Likewise.
31084         * modules/unictype/property-private-use: Likewise.
31085         * modules/unictype/property-punctuation: Likewise.
31086         * modules/unictype/property-quotation-mark: Likewise.
31087         * modules/unictype/property-radical: Likewise.
31088         * modules/unictype/property-sentence-terminal: Likewise.
31089         * modules/unictype/property-soft-dotted: Likewise.
31090         * modules/unictype/property-space: Likewise.
31091         * modules/unictype/property-terminal-punctuation: Likewise.
31092         * modules/unictype/property-test: Likewise.
31093         * modules/unictype/property-titlecase: Likewise.
31094         * modules/unictype/property-unassigned-code-value: Likewise.
31095         * modules/unictype/property-unified-ideograph: Likewise.
31096         * modules/unictype/property-uppercase: Likewise.
31097         * modules/unictype/property-variation-selector: Likewise.
31098         * modules/unictype/property-white-space: Likewise.
31099         * modules/unictype/property-xid-continue: Likewise.
31100         * modules/unictype/property-xid-start: Likewise.
31101         * modules/unictype/property-zero-width: Likewise.
31102         * modules/unictype/scripts: Likewise.
31103         * modules/unictype/syntax-c-ident: Likewise.
31104         * modules/unictype/syntax-c-whitespace: Likewise.
31105         * modules/unictype/syntax-java-ident: Likewise.
31106         * modules/unictype/syntax-java-whitespace: Likewise.
31107         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31108         * modules/unilbrk/u8-width-linebreaks: Likewise.
31109         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31110         * modules/unilbrk/u16-width-linebreaks: Likewise.
31111         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31112         * modules/unilbrk/u32-width-linebreaks: Likewise.
31113         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31114         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31115         * modules/uniname/uniname: Likewise.
31116         * modules/uninorm/canonical-decomposition: Likewise.
31117         * modules/uninorm/composition: Likewise.
31118         * modules/uninorm/decomposing-form: Likewise.
31119         * modules/uninorm/decomposition: Likewise.
31120         * modules/uninorm/filter: Likewise.
31121         * modules/uninorm/nfc: Likewise.
31122         * modules/uninorm/nfd: Likewise.
31123         * modules/uninorm/nfkc: Likewise.
31124         * modules/uninorm/nfkd: Likewise.
31125         * modules/uninorm/u8-normalize: Likewise.
31126         * modules/uninorm/u8-normcmp: Likewise.
31127         * modules/uninorm/u8-normcoll: Likewise.
31128         * modules/uninorm/u8-normxfrm: Likewise.
31129         * modules/uninorm/u16-normalize: Likewise.
31130         * modules/uninorm/u16-normcmp: Likewise.
31131         * modules/uninorm/u16-normcoll: Likewise.
31132         * modules/uninorm/u16-normxfrm: Likewise.
31133         * modules/uninorm/u32-normalize: Likewise.
31134         * modules/uninorm/u32-normcmp: Likewise.
31135         * modules/uninorm/u32-normcoll: Likewise.
31136         * modules/uninorm/u32-normxfrm: Likewise.
31137         * modules/unistdio/u8-asnprintf: Likewise.
31138         * modules/unistdio/u8-asprintf: Likewise.
31139         * modules/unistdio/u8-snprintf: Likewise.
31140         * modules/unistdio/u8-sprintf: Likewise.
31141         * modules/unistdio/u8-u8-asnprintf: Likewise.
31142         * modules/unistdio/u8-u8-asprintf: Likewise.
31143         * modules/unistdio/u8-u8-snprintf: Likewise.
31144         * modules/unistdio/u8-u8-sprintf: Likewise.
31145         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31146         * modules/unistdio/u8-u8-vasprintf: Likewise.
31147         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31148         * modules/unistdio/u8-u8-vsprintf: Likewise.
31149         * modules/unistdio/u8-vasnprintf: Likewise.
31150         * modules/unistdio/u8-vasprintf: Likewise.
31151         * modules/unistdio/u8-vsnprintf: Likewise.
31152         * modules/unistdio/u8-vsprintf: Likewise.
31153         * modules/unistdio/u16-asnprintf: Likewise.
31154         * modules/unistdio/u16-asprintf: Likewise.
31155         * modules/unistdio/u16-snprintf: Likewise.
31156         * modules/unistdio/u16-sprintf: Likewise.
31157         * modules/unistdio/u16-u16-asnprintf: Likewise.
31158         * modules/unistdio/u16-u16-asprintf: Likewise.
31159         * modules/unistdio/u16-u16-snprintf: Likewise.
31160         * modules/unistdio/u16-u16-sprintf: Likewise.
31161         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31162         * modules/unistdio/u16-u16-vasprintf: Likewise.
31163         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31164         * modules/unistdio/u16-u16-vsprintf: Likewise.
31165         * modules/unistdio/u16-vasnprintf: Likewise.
31166         * modules/unistdio/u16-vasprintf: Likewise.
31167         * modules/unistdio/u16-vsnprintf: Likewise.
31168         * modules/unistdio/u16-vsprintf: Likewise.
31169         * modules/unistdio/u32-asnprintf: Likewise.
31170         * modules/unistdio/u32-asprintf: Likewise.
31171         * modules/unistdio/u32-snprintf: Likewise.
31172         * modules/unistdio/u32-sprintf: Likewise.
31173         * modules/unistdio/u32-u32-asnprintf: Likewise.
31174         * modules/unistdio/u32-u32-asprintf: Likewise.
31175         * modules/unistdio/u32-u32-snprintf: Likewise.
31176         * modules/unistdio/u32-u32-sprintf: Likewise.
31177         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31178         * modules/unistdio/u32-u32-vasprintf: Likewise.
31179         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31180         * modules/unistdio/u32-u32-vsprintf: Likewise.
31181         * modules/unistdio/u32-vasnprintf: Likewise.
31182         * modules/unistdio/u32-vasprintf: Likewise.
31183         * modules/unistdio/u32-vsnprintf: Likewise.
31184         * modules/unistdio/u32-vsprintf: Likewise.
31185         * modules/unistdio/ulc-asnprintf: Likewise.
31186         * modules/unistdio/ulc-asprintf: Likewise.
31187         * modules/unistdio/ulc-fprintf: Likewise.
31188         * modules/unistdio/ulc-snprintf: Likewise.
31189         * modules/unistdio/ulc-sprintf: Likewise.
31190         * modules/unistdio/ulc-vasnprintf: Likewise.
31191         * modules/unistdio/ulc-vasprintf: Likewise.
31192         * modules/unistdio/ulc-vfprintf: Likewise.
31193         * modules/unistdio/ulc-vsnprintf: Likewise.
31194         * modules/unistdio/ulc-vsprintf: Likewise.
31195         * modules/unistr/u8-check: Likewise.
31196         * modules/unistr/u8-chr: Likewise.
31197         * modules/unistr/u8-cmp: Likewise.
31198         * modules/unistr/u8-cmp2: Likewise.
31199         * modules/unistr/u8-cpy: Likewise.
31200         * modules/unistr/u8-cpy-alloc: Likewise.
31201         * modules/unistr/u8-endswith: Likewise.
31202         * modules/unistr/u8-mblen: Likewise.
31203         * modules/unistr/u8-mbsnlen: Likewise.
31204         * modules/unistr/u8-mbtouc: Likewise.
31205         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31206         * modules/unistr/u8-mbtoucr: Likewise.
31207         * modules/unistr/u8-move: Likewise.
31208         * modules/unistr/u8-next: Likewise.
31209         * modules/unistr/u8-prev: Likewise.
31210         * modules/unistr/u8-set: Likewise.
31211         * modules/unistr/u8-startswith: Likewise.
31212         * modules/unistr/u8-stpcpy: Likewise.
31213         * modules/unistr/u8-stpncpy: Likewise.
31214         * modules/unistr/u8-strcat: Likewise.
31215         * modules/unistr/u8-strchr: Likewise.
31216         * modules/unistr/u8-strcmp: Likewise.
31217         * modules/unistr/u8-strcoll: Likewise.
31218         * modules/unistr/u8-strcpy: Likewise.
31219         * modules/unistr/u8-strcspn: Likewise.
31220         * modules/unistr/u8-strdup: Likewise.
31221         * modules/unistr/u8-strlen: Likewise.
31222         * modules/unistr/u8-strmblen: Likewise.
31223         * modules/unistr/u8-strmbtouc: Likewise.
31224         * modules/unistr/u8-strncat: Likewise.
31225         * modules/unistr/u8-strncmp: Likewise.
31226         * modules/unistr/u8-strncpy: Likewise.
31227         * modules/unistr/u8-strnlen: Likewise.
31228         * modules/unistr/u8-strpbrk: Likewise.
31229         * modules/unistr/u8-strrchr: Likewise.
31230         * modules/unistr/u8-strspn: Likewise.
31231         * modules/unistr/u8-strstr: Likewise.
31232         * modules/unistr/u8-strtok: Likewise.
31233         * modules/unistr/u8-to-u16: Likewise.
31234         * modules/unistr/u8-to-u32: Likewise.
31235         * modules/unistr/u8-uctomb: Likewise.
31236         * modules/unistr/u16-check: Likewise.
31237         * modules/unistr/u16-chr: Likewise.
31238         * modules/unistr/u16-cmp: Likewise.
31239         * modules/unistr/u16-cmp2: Likewise.
31240         * modules/unistr/u16-cpy: Likewise.
31241         * modules/unistr/u16-cpy-alloc: Likewise.
31242         * modules/unistr/u16-endswith: Likewise.
31243         * modules/unistr/u16-mblen: Likewise.
31244         * modules/unistr/u16-mbsnlen: Likewise.
31245         * modules/unistr/u16-mbtouc: Likewise.
31246         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31247         * modules/unistr/u16-mbtoucr: Likewise.
31248         * modules/unistr/u16-move: Likewise.
31249         * modules/unistr/u16-next: Likewise.
31250         * modules/unistr/u16-prev: Likewise.
31251         * modules/unistr/u16-set: Likewise.
31252         * modules/unistr/u16-startswith: Likewise.
31253         * modules/unistr/u16-stpcpy: Likewise.
31254         * modules/unistr/u16-stpncpy: Likewise.
31255         * modules/unistr/u16-strcat: Likewise.
31256         * modules/unistr/u16-strchr: Likewise.
31257         * modules/unistr/u16-strcmp: Likewise.
31258         * modules/unistr/u16-strcoll: Likewise.
31259         * modules/unistr/u16-strcpy: Likewise.
31260         * modules/unistr/u16-strcspn: Likewise.
31261         * modules/unistr/u16-strdup: Likewise.
31262         * modules/unistr/u16-strlen: Likewise.
31263         * modules/unistr/u16-strmblen: Likewise.
31264         * modules/unistr/u16-strmbtouc: Likewise.
31265         * modules/unistr/u16-strncat: Likewise.
31266         * modules/unistr/u16-strncmp: Likewise.
31267         * modules/unistr/u16-strncpy: Likewise.
31268         * modules/unistr/u16-strnlen: Likewise.
31269         * modules/unistr/u16-strpbrk: Likewise.
31270         * modules/unistr/u16-strrchr: Likewise.
31271         * modules/unistr/u16-strspn: Likewise.
31272         * modules/unistr/u16-strstr: Likewise.
31273         * modules/unistr/u16-strtok: Likewise.
31274         * modules/unistr/u16-to-u32: Likewise.
31275         * modules/unistr/u16-to-u8: Likewise.
31276         * modules/unistr/u16-uctomb: Likewise.
31277         * modules/unistr/u32-check: Likewise.
31278         * modules/unistr/u32-chr: Likewise.
31279         * modules/unistr/u32-cmp: Likewise.
31280         * modules/unistr/u32-cmp2: Likewise.
31281         * modules/unistr/u32-cpy: Likewise.
31282         * modules/unistr/u32-cpy-alloc: Likewise.
31283         * modules/unistr/u32-endswith: Likewise.
31284         * modules/unistr/u32-mblen: Likewise.
31285         * modules/unistr/u32-mbsnlen: Likewise.
31286         * modules/unistr/u32-mbtouc: Likewise.
31287         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31288         * modules/unistr/u32-mbtoucr: Likewise.
31289         * modules/unistr/u32-move: Likewise.
31290         * modules/unistr/u32-next: Likewise.
31291         * modules/unistr/u32-prev: Likewise.
31292         * modules/unistr/u32-set: Likewise.
31293         * modules/unistr/u32-startswith: Likewise.
31294         * modules/unistr/u32-stpcpy: Likewise.
31295         * modules/unistr/u32-stpncpy: Likewise.
31296         * modules/unistr/u32-strcat: Likewise.
31297         * modules/unistr/u32-strchr: Likewise.
31298         * modules/unistr/u32-strcmp: Likewise.
31299         * modules/unistr/u32-strcoll: Likewise.
31300         * modules/unistr/u32-strcpy: Likewise.
31301         * modules/unistr/u32-strcspn: Likewise.
31302         * modules/unistr/u32-strdup: Likewise.
31303         * modules/unistr/u32-strlen: Likewise.
31304         * modules/unistr/u32-strmblen: Likewise.
31305         * modules/unistr/u32-strmbtouc: Likewise.
31306         * modules/unistr/u32-strncat: Likewise.
31307         * modules/unistr/u32-strncmp: Likewise.
31308         * modules/unistr/u32-strncpy: Likewise.
31309         * modules/unistr/u32-strnlen: Likewise.
31310         * modules/unistr/u32-strpbrk: Likewise.
31311         * modules/unistr/u32-strrchr: Likewise.
31312         * modules/unistr/u32-strspn: Likewise.
31313         * modules/unistr/u32-strstr: Likewise.
31314         * modules/unistr/u32-strtok: Likewise.
31315         * modules/unistr/u32-to-u16: Likewise.
31316         * modules/unistr/u32-to-u8: Likewise.
31317         * modules/unistr/u32-uctomb: Likewise.
31318         * modules/uniwbrk/u8-wordbreaks: Likewise.
31319         * modules/uniwbrk/u16-wordbreaks: Likewise.
31320         * modules/uniwbrk/u32-wordbreaks: Likewise.
31321         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31322         * modules/uniwbrk/wordbreak-property: Likewise.
31323         * modules/uniwidth/u8-strwidth: Likewise.
31324         * modules/uniwidth/u8-width: Likewise.
31325         * modules/uniwidth/u16-strwidth: Likewise.
31326         * modules/uniwidth/u16-width: Likewise.
31327         * modules/uniwidth/u32-strwidth: Likewise.
31328         * modules/uniwidth/u32-width: Likewise.
31329         * modules/uniwidth/width: Likewise.
31330         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31331         with $(LIBUNISTRING).
31332         * modules/unicase/ignorable-tests: Likewise.
31333         * modules/unicase/locale-language-tests: Likewise.
31334         * modules/unicase/tolower-tests: Likewise.
31335         * modules/unicase/totitle-tests: Likewise.
31336         * modules/unicase/toupper-tests: Likewise.
31337         * modules/unicase/u8-casecmp-tests: Likewise.
31338         * modules/unicase/u8-casecoll-tests: Likewise.
31339         * modules/unicase/u8-casefold-tests: Likewise.
31340         * modules/unicase/u8-is-cased-tests: Likewise.
31341         * modules/unicase/u8-is-casefolded-tests: Likewise.
31342         * modules/unicase/u8-is-lowercase-tests: Likewise.
31343         * modules/unicase/u8-is-titlecase-tests: Likewise.
31344         * modules/unicase/u8-is-uppercase-tests: Likewise.
31345         * modules/unicase/u8-tolower-tests: Likewise.
31346         * modules/unicase/u8-totitle-tests: Likewise.
31347         * modules/unicase/u8-toupper-tests: Likewise.
31348         * modules/unicase/u16-casecmp-tests: Likewise.
31349         * modules/unicase/u16-casecoll-tests: Likewise.
31350         * modules/unicase/u16-casefold-tests: Likewise.
31351         * modules/unicase/u16-is-cased-tests: Likewise.
31352         * modules/unicase/u16-is-casefolded-tests: Likewise.
31353         * modules/unicase/u16-is-lowercase-tests: Likewise.
31354         * modules/unicase/u16-is-titlecase-tests: Likewise.
31355         * modules/unicase/u16-is-uppercase-tests: Likewise.
31356         * modules/unicase/u16-tolower-tests: Likewise.
31357         * modules/unicase/u16-totitle-tests: Likewise.
31358         * modules/unicase/u16-toupper-tests: Likewise.
31359         * modules/unicase/u32-casecmp-tests: Likewise.
31360         * modules/unicase/u32-casecoll-tests: Likewise.
31361         * modules/unicase/u32-casefold-tests: Likewise.
31362         * modules/unicase/u32-is-cased-tests: Likewise.
31363         * modules/unicase/u32-is-casefolded-tests: Likewise.
31364         * modules/unicase/u32-is-lowercase-tests: Likewise.
31365         * modules/unicase/u32-is-titlecase-tests: Likewise.
31366         * modules/unicase/u32-is-uppercase-tests: Likewise.
31367         * modules/unicase/u32-tolower-tests: Likewise.
31368         * modules/unicase/u32-totitle-tests: Likewise.
31369         * modules/unicase/u32-toupper-tests: Likewise.
31370         * modules/unicase/ulc-casecmp-tests: Likewise.
31371         * modules/unicase/ulc-casecoll-tests: Likewise.
31372         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31373         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31374         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31375         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31376         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31377         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31378         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31379         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31380         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31381         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31382         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31383         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31384         * modules/unictype/bidicategory-byname-tests: Likewise.
31385         * modules/unictype/bidicategory-name-tests: Likewise.
31386         * modules/unictype/bidicategory-of-tests: Likewise.
31387         * modules/unictype/bidicategory-test-tests: Likewise.
31388         * modules/unictype/block-list-tests: Likewise.
31389         * modules/unictype/block-of-tests: Likewise.
31390         * modules/unictype/block-test-tests: Likewise.
31391         * modules/unictype/category-C-tests: Likewise.
31392         * modules/unictype/category-Cc-tests: Likewise.
31393         * modules/unictype/category-Cf-tests: Likewise.
31394         * modules/unictype/category-Cn-tests: Likewise.
31395         * modules/unictype/category-Co-tests: Likewise.
31396         * modules/unictype/category-Cs-tests: Likewise.
31397         * modules/unictype/category-L-tests: Likewise.
31398         * modules/unictype/category-Ll-tests: Likewise.
31399         * modules/unictype/category-Lm-tests: Likewise.
31400         * modules/unictype/category-Lo-tests: Likewise.
31401         * modules/unictype/category-Lt-tests: Likewise.
31402         * modules/unictype/category-Lu-tests: Likewise.
31403         * modules/unictype/category-M-tests: Likewise.
31404         * modules/unictype/category-Mc-tests: Likewise.
31405         * modules/unictype/category-Me-tests: Likewise.
31406         * modules/unictype/category-Mn-tests: Likewise.
31407         * modules/unictype/category-N-tests: Likewise.
31408         * modules/unictype/category-Nd-tests: Likewise.
31409         * modules/unictype/category-Nl-tests: Likewise.
31410         * modules/unictype/category-No-tests: Likewise.
31411         * modules/unictype/category-P-tests: Likewise.
31412         * modules/unictype/category-Pc-tests: Likewise.
31413         * modules/unictype/category-Pd-tests: Likewise.
31414         * modules/unictype/category-Pe-tests: Likewise.
31415         * modules/unictype/category-Pf-tests: Likewise.
31416         * modules/unictype/category-Pi-tests: Likewise.
31417         * modules/unictype/category-Po-tests: Likewise.
31418         * modules/unictype/category-Ps-tests: Likewise.
31419         * modules/unictype/category-S-tests: Likewise.
31420         * modules/unictype/category-Sc-tests: Likewise.
31421         * modules/unictype/category-Sk-tests: Likewise.
31422         * modules/unictype/category-Sm-tests: Likewise.
31423         * modules/unictype/category-So-tests: Likewise.
31424         * modules/unictype/category-Z-tests: Likewise.
31425         * modules/unictype/category-Zl-tests: Likewise.
31426         * modules/unictype/category-Zp-tests: Likewise.
31427         * modules/unictype/category-Zs-tests: Likewise.
31428         * modules/unictype/category-and-not-tests: Likewise.
31429         * modules/unictype/category-and-tests: Likewise.
31430         * modules/unictype/category-byname-tests: Likewise.
31431         * modules/unictype/category-name-tests: Likewise.
31432         * modules/unictype/category-none-tests: Likewise.
31433         * modules/unictype/category-of-tests: Likewise.
31434         * modules/unictype/category-or-tests: Likewise.
31435         * modules/unictype/category-test-withtable-tests: Likewise.
31436         * modules/unictype/combining-class-tests: Likewise.
31437         * modules/unictype/ctype-alnum-tests: Likewise.
31438         * modules/unictype/ctype-alpha-tests: Likewise.
31439         * modules/unictype/ctype-blank-tests: Likewise.
31440         * modules/unictype/ctype-cntrl-tests: Likewise.
31441         * modules/unictype/ctype-digit-tests: Likewise.
31442         * modules/unictype/ctype-graph-tests: Likewise.
31443         * modules/unictype/ctype-lower-tests: Likewise.
31444         * modules/unictype/ctype-print-tests: Likewise.
31445         * modules/unictype/ctype-punct-tests: Likewise.
31446         * modules/unictype/ctype-space-tests: Likewise.
31447         * modules/unictype/ctype-upper-tests: Likewise.
31448         * modules/unictype/ctype-xdigit-tests: Likewise.
31449         * modules/unictype/decimal-digit-tests: Likewise.
31450         * modules/unictype/digit-tests: Likewise.
31451         * modules/unictype/mirror-tests: Likewise.
31452         * modules/unictype/numeric-tests: Likewise.
31453         * modules/unictype/property-alphabetic-tests: Likewise.
31454         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31455         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31456         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31457         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31458         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31459         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31460         * modules/unictype/property-bidi-control-tests: Likewise.
31461         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31462         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31463         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31464         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31465         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31466         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31467         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31468         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31469         * modules/unictype/property-bidi-pdf-tests: Likewise.
31470         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31471         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31472         * modules/unictype/property-byname-tests: Likewise.
31473         * modules/unictype/property-combining-tests: Likewise.
31474         * modules/unictype/property-composite-tests: Likewise.
31475         * modules/unictype/property-currency-symbol-tests: Likewise.
31476         * modules/unictype/property-dash-tests: Likewise.
31477         * modules/unictype/property-decimal-digit-tests: Likewise.
31478         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31479         * modules/unictype/property-deprecated-tests: Likewise.
31480         * modules/unictype/property-diacritic-tests: Likewise.
31481         * modules/unictype/property-extender-tests: Likewise.
31482         * modules/unictype/property-format-control-tests: Likewise.
31483         * modules/unictype/property-grapheme-base-tests: Likewise.
31484         * modules/unictype/property-grapheme-extend-tests: Likewise.
31485         * modules/unictype/property-grapheme-link-tests: Likewise.
31486         * modules/unictype/property-hex-digit-tests: Likewise.
31487         * modules/unictype/property-hyphen-tests: Likewise.
31488         * modules/unictype/property-id-continue-tests: Likewise.
31489         * modules/unictype/property-id-start-tests: Likewise.
31490         * modules/unictype/property-ideographic-tests: Likewise.
31491         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31492         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31493         * modules/unictype/property-ignorable-control-tests: Likewise.
31494         * modules/unictype/property-iso-control-tests: Likewise.
31495         * modules/unictype/property-join-control-tests: Likewise.
31496         * modules/unictype/property-left-of-pair-tests: Likewise.
31497         * modules/unictype/property-line-separator-tests: Likewise.
31498         * modules/unictype/property-logical-order-exception-tests: Likewise.
31499         * modules/unictype/property-lowercase-tests: Likewise.
31500         * modules/unictype/property-math-tests: Likewise.
31501         * modules/unictype/property-non-break-tests: Likewise.
31502         * modules/unictype/property-not-a-character-tests: Likewise.
31503         * modules/unictype/property-numeric-tests: Likewise.
31504         * modules/unictype/property-other-alphabetic-tests: Likewise.
31505         * modules/unictype/property-other-default-ignorable-code-point-tests:
31506         Likewise.
31507         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31508         * modules/unictype/property-other-id-continue-tests: Likewise.
31509         * modules/unictype/property-other-id-start-tests: Likewise.
31510         * modules/unictype/property-other-lowercase-tests: Likewise.
31511         * modules/unictype/property-other-math-tests: Likewise.
31512         * modules/unictype/property-other-uppercase-tests: Likewise.
31513         * modules/unictype/property-paired-punctuation-tests: Likewise.
31514         * modules/unictype/property-paragraph-separator-tests: Likewise.
31515         * modules/unictype/property-pattern-syntax-tests: Likewise.
31516         * modules/unictype/property-pattern-white-space-tests: Likewise.
31517         * modules/unictype/property-private-use-tests: Likewise.
31518         * modules/unictype/property-punctuation-tests: Likewise.
31519         * modules/unictype/property-quotation-mark-tests: Likewise.
31520         * modules/unictype/property-radical-tests: Likewise.
31521         * modules/unictype/property-sentence-terminal-tests: Likewise.
31522         * modules/unictype/property-soft-dotted-tests: Likewise.
31523         * modules/unictype/property-space-tests: Likewise.
31524         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31525         * modules/unictype/property-test-tests: Likewise.
31526         * modules/unictype/property-titlecase-tests: Likewise.
31527         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31528         * modules/unictype/property-unified-ideograph-tests: Likewise.
31529         * modules/unictype/property-uppercase-tests: Likewise.
31530         * modules/unictype/property-variation-selector-tests: Likewise.
31531         * modules/unictype/property-white-space-tests: Likewise.
31532         * modules/unictype/property-xid-continue-tests: Likewise.
31533         * modules/unictype/property-xid-start-tests: Likewise.
31534         * modules/unictype/property-zero-width-tests: Likewise.
31535         * modules/unictype/scripts-tests: Likewise.
31536         * modules/unictype/syntax-c-ident-tests: Likewise.
31537         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31538         * modules/unictype/syntax-java-ident-tests: Likewise.
31539         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31540         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31541         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31542         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31543         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31544         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31545         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31546         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31547         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31548         * modules/uniname/uniname-tests: Likewise.
31549         * modules/uninorm/canonical-decomposition-tests: Likewise.
31550         * modules/uninorm/compat-decomposition-tests: Likewise.
31551         * modules/uninorm/composition-tests: Likewise.
31552         * modules/uninorm/decomposing-form-tests: Likewise.
31553         * modules/uninorm/decomposition-tests: Likewise.
31554         * modules/uninorm/filter-tests: Likewise.
31555         * modules/uninorm/nfc-tests: Likewise.
31556         * modules/uninorm/nfd-tests: Likewise.
31557         * modules/uninorm/nfkc-tests: Likewise.
31558         * modules/uninorm/nfkd-tests: Likewise.
31559         * modules/uninorm/u8-normcmp-tests: Likewise.
31560         * modules/uninorm/u8-normcoll-tests: Likewise.
31561         * modules/uninorm/u16-normcmp-tests: Likewise.
31562         * modules/uninorm/u16-normcoll-tests: Likewise.
31563         * modules/uninorm/u32-normcmp-tests: Likewise.
31564         * modules/uninorm/u32-normcoll-tests: Likewise.
31565         * modules/unistdio/u8-asnprintf-tests: Likewise.
31566         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31567         * modules/unistdio/u8-vasprintf-tests: Likewise.
31568         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31569         * modules/unistdio/u8-vsprintf-tests: Likewise.
31570         * modules/unistdio/u16-asnprintf-tests: Likewise.
31571         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31572         * modules/unistdio/u16-vasprintf-tests: Likewise.
31573         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31574         * modules/unistdio/u16-vsprintf-tests: Likewise.
31575         * modules/unistdio/u32-asnprintf-tests: Likewise.
31576         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31577         * modules/unistdio/u32-vasprintf-tests: Likewise.
31578         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31579         * modules/unistdio/u32-vsprintf-tests: Likewise.
31580         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31581         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31582         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31583         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31584         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31585         * modules/unistr/u8-check-tests: Likewise.
31586         * modules/unistr/u8-chr-tests: Likewise.
31587         * modules/unistr/u8-cmp-tests: Likewise.
31588         * modules/unistr/u8-cmp2-tests: Likewise.
31589         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31590         * modules/unistr/u8-cpy-tests: Likewise.
31591         * modules/unistr/u8-mblen-tests: Likewise.
31592         * modules/unistr/u8-mbsnlen-tests: Likewise.
31593         * modules/unistr/u8-mbtouc-tests: Likewise.
31594         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31595         * modules/unistr/u8-mbtoucr-tests: Likewise.
31596         * modules/unistr/u8-move-tests: Likewise.
31597         * modules/unistr/u8-next-tests: Likewise.
31598         * modules/unistr/u8-prev-tests: Likewise.
31599         * modules/unistr/u8-set-tests: Likewise.
31600         * modules/unistr/u8-stpcpy-tests: Likewise.
31601         * modules/unistr/u8-stpncpy-tests: Likewise.
31602         * modules/unistr/u8-strcat-tests: Likewise.
31603         * modules/unistr/u8-strcmp-tests: Likewise.
31604         * modules/unistr/u8-strcoll-tests: Likewise.
31605         * modules/unistr/u8-strcpy-tests: Likewise.
31606         * modules/unistr/u8-strdup-tests: Likewise.
31607         * modules/unistr/u8-strlen-tests: Likewise.
31608         * modules/unistr/u8-strmblen-tests: Likewise.
31609         * modules/unistr/u8-strmbtouc-tests: Likewise.
31610         * modules/unistr/u8-strncat-tests: Likewise.
31611         * modules/unistr/u8-strncmp-tests: Likewise.
31612         * modules/unistr/u8-strncpy-tests: Likewise.
31613         * modules/unistr/u8-strnlen-tests: Likewise.
31614         * modules/unistr/u8-to-u16-tests: Likewise.
31615         * modules/unistr/u8-to-u32-tests: Likewise.
31616         * modules/unistr/u8-uctomb-tests: Likewise.
31617         * modules/unistr/u16-check-tests: Likewise.
31618         * modules/unistr/u16-chr-tests: Likewise.
31619         * modules/unistr/u16-cmp-tests: Likewise.
31620         * modules/unistr/u16-cmp2-tests: Likewise.
31621         * modules/unistr/u16-cpy-alloc-tests: Likewise.
31622         * modules/unistr/u16-cpy-tests: Likewise.
31623         * modules/unistr/u16-mblen-tests: Likewise.
31624         * modules/unistr/u16-mbsnlen-tests: Likewise.
31625         * modules/unistr/u16-mbtouc-tests: Likewise.
31626         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
31627         * modules/unistr/u16-mbtoucr-tests: Likewise.
31628         * modules/unistr/u16-move-tests: Likewise.
31629         * modules/unistr/u16-next-tests: Likewise.
31630         * modules/unistr/u16-prev-tests: Likewise.
31631         * modules/unistr/u16-set-tests: Likewise.
31632         * modules/unistr/u16-stpcpy-tests: Likewise.
31633         * modules/unistr/u16-stpncpy-tests: Likewise.
31634         * modules/unistr/u16-strcat-tests: Likewise.
31635         * modules/unistr/u16-strcmp-tests: Likewise.
31636         * modules/unistr/u16-strcoll-tests: Likewise.
31637         * modules/unistr/u16-strcpy-tests: Likewise.
31638         * modules/unistr/u16-strdup-tests: Likewise.
31639         * modules/unistr/u16-strlen-tests: Likewise.
31640         * modules/unistr/u16-strmblen-tests: Likewise.
31641         * modules/unistr/u16-strmbtouc-tests: Likewise.
31642         * modules/unistr/u16-strncat-tests: Likewise.
31643         * modules/unistr/u16-strncmp-tests: Likewise.
31644         * modules/unistr/u16-strncpy-tests: Likewise.
31645         * modules/unistr/u16-strnlen-tests: Likewise.
31646         * modules/unistr/u16-to-u32-tests: Likewise.
31647         * modules/unistr/u16-to-u8-tests: Likewise.
31648         * modules/unistr/u16-uctomb-tests: Likewise.
31649         * modules/unistr/u32-check-tests: Likewise.
31650         * modules/unistr/u32-chr-tests: Likewise.
31651         * modules/unistr/u32-cmp-tests: Likewise.
31652         * modules/unistr/u32-cmp2-tests: Likewise.
31653         * modules/unistr/u32-cpy-alloc-tests: Likewise.
31654         * modules/unistr/u32-cpy-tests: Likewise.
31655         * modules/unistr/u32-mblen-tests: Likewise.
31656         * modules/unistr/u32-mbsnlen-tests: Likewise.
31657         * modules/unistr/u32-mbtouc-tests: Likewise.
31658         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
31659         * modules/unistr/u32-mbtoucr-tests: Likewise.
31660         * modules/unistr/u32-move-tests: Likewise.
31661         * modules/unistr/u32-next-tests: Likewise.
31662         * modules/unistr/u32-prev-tests: Likewise.
31663         * modules/unistr/u32-set-tests: Likewise.
31664         * modules/unistr/u32-stpcpy-tests: Likewise.
31665         * modules/unistr/u32-stpncpy-tests: Likewise.
31666         * modules/unistr/u32-strcat-tests: Likewise.
31667         * modules/unistr/u32-strcmp-tests: Likewise.
31668         * modules/unistr/u32-strcoll-tests: Likewise.
31669         * modules/unistr/u32-strcpy-tests: Likewise.
31670         * modules/unistr/u32-strdup-tests: Likewise.
31671         * modules/unistr/u32-strlen-tests: Likewise.
31672         * modules/unistr/u32-strmblen-tests: Likewise.
31673         * modules/unistr/u32-strmbtouc-tests: Likewise.
31674         * modules/unistr/u32-strncat-tests: Likewise.
31675         * modules/unistr/u32-strncmp-tests: Likewise.
31676         * modules/unistr/u32-strncpy-tests: Likewise.
31677         * modules/unistr/u32-strnlen-tests: Likewise.
31678         * modules/unistr/u32-to-u16-tests: Likewise.
31679         * modules/unistr/u32-to-u8-tests: Likewise.
31680         * modules/unistr/u32-uctomb-tests: Likewise.
31681         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
31682         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
31683         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
31684         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
31685         * modules/uniwidth/u8-strwidth-tests: Likewise.
31686         * modules/uniwidth/u8-width-tests: Likewise.
31687         * modules/uniwidth/u16-strwidth-tests: Likewise.
31688         * modules/uniwidth/u16-width-tests: Likewise.
31689         * modules/uniwidth/u32-strwidth-tests: Likewise.
31690         * modules/uniwidth/u32-width-tests: Likewise.
31691         * modules/uniwidth/width-tests: Likewise.
31692
31693 2010-05-18  Richard Jones  <rjones@redhat.com>
31694
31695         doc: users.txt: list hivex
31696         * users.txt: Add hivex.
31697
31698 2010-05-18  Richard Jones  <rjones@redhat.com>
31699
31700         doc: users.txt: list febootstrap
31701         * users.txt: Add febootstrap.
31702
31703 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
31704
31705         bootstrap: fix an error when gnulib is not used as a git submodule
31706         * build-aux/bootstrap (gnulib_path): If its length is zero then
31707         assign "gnulib" to it.
31708         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
31709
31710 2010-05-16  Bruno Haible  <bruno@clisp.org>
31711
31712         Avoid autoconf warnings about AM_ICONV.
31713         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
31714         2.64.
31715
31716 2010-05-16  Bruno Haible  <bruno@clisp.org>
31717
31718         absolute-header: Make the macro usable in more situations.
31719         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
31720         from gl_ABSOLUTE_HEADER.
31721         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
31722
31723 2010-05-16  James Youngman  <jay@gnu.org>
31724
31725         doc: update users.txt
31726         * users.txt: Add CSSC.
31727
31728 2010-05-16  Jim Meyering  <meyering@redhat.com>
31729
31730         init.sh: fix an error in the previous change; add more comments
31731         * tests/init.sh: Compare exit code in loop against 9, not 2.
31732         Patch by Bruno Haible.
31733         Make the two tests more similar by adding an empty "then" clause.
31734         Add comments.
31735
31736         init.sh: avoid unnecessary shell re-exec
31737         * tests/init.sh: Improve the re-exec-required check to first test the
31738         current shell.  If it passes the test, do not search for a shell that
31739         does pass, and do not re-exec.  This test is particularly contorted to
31740         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
31741         of $(...) evokes a syntax error and causes immediate shell exit with
31742         status 2.  Bruno Haible reported that the re-exec made it impossible
31743         to single-step through any init.sh-using script.
31744
31745 2010-05-16  Bruno Haible  <bruno@clisp.org>
31746
31747         Fix collision between gnulib's and libintl's printf replacements.
31748         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
31749         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
31750         (printf): When using GNU C, map the __printf__ function to rpl_printf
31751         via __asm__. When not using GNU C, define rpl_printf instead of
31752         __printf__.
31753         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
31754         commit.
31755         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
31756         commit.
31757         * m4/asm-underscore.m4: New file.
31758         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
31759         * modules/stdio (Files): Add m4/asm-underscore.m4.
31760         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
31761         Reported by Ben Pfaff.
31762
31763 2010-05-16  Bruno Haible  <bruno@clisp.org>
31764
31765         verify: Avoid skipping the test on openSUSE 11.0.
31766         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
31767
31768 2010-05-13  Bruno Haible  <bruno@clisp.org>
31769
31770         Avoid useless warnings from G++.
31771         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
31772         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
31773         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31774
31775 2010-05-11  Jim Meyering  <meyering@redhat.com>
31776
31777         maint.mk: tweak preceding change
31778         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
31779         regexps tighter by anchoring at EOL, and make the new group "shy"
31780         for slightly decreased overhead.
31781
31782 2010-05-11  Eric Blake  <eblake@redhat.com>
31783
31784         maint.mk: gnulib doesn't guarantee NSIG
31785         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
31786
31787 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31788
31789         test-pwrite.c: Remove unused variable declaration.
31790         * tests/test-pwrite.c (main): Remove read_buf declaration.
31791
31792         Remove useless test-pwrite.sh file.
31793         * tests/test-pwrite.sh: Delete file.
31794         * modules/pwrite-tests: Remove references.
31795         Reported by Bruno Haible.
31796
31797 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31798
31799         init.sh: fix a typo
31800         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
31801
31802 2010-05-10  Jim Meyering  <meyering@redhat.com>
31803
31804         maint.mk: avoid using a temporary file in the always-defined-macros check
31805         * top/maint.mk (.re-defmac): Remove rule.
31806         (gl_trap_): Remove definition.
31807         (sc_prohibit_always-defined_macros): Rewrite not to create and
31808         depend on a temporary file.  Instead, depend on GNU grep's ability
31809         to read a list of regular expressions from stdin when given "-f -".
31810
31811 2010-05-09  Bruno Haible  <bruno@clisp.org>
31812
31813         Update to GNU gettext 0.18, part 1.
31814         * m4/gettext.m4: Update to GNU gettext 0.18.
31815         * m4/intl.m4: Likewise.
31816         * m4/po.m4: Likewise.
31817         * modules/gettext (Files): Add m4/fcntl-o.m4.
31818         (configure.ac): Require gettext infrastructure from version 0.18.
31819
31820 2010-05-09  Jim Meyering  <meyering@redhat.com>
31821
31822         init.sh: enable MALLOC_PERTURB_
31823         * tests/init.sh: Enable glibc's malloc-perturbing option.
31824
31825         maint.mk: improve sc_cross_check_PATH_usage_in_tests
31826         With my recent change in init.sh from the two-line form:
31827             -#   : ${srcdir=.}
31828             -#   . "$srcdir/init.sh"; path_prepend_ .
31829             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
31830         I noticed that using the one-line form would cause this test
31831         to fail with a false-positive, or to stop working altogether,
31832         depending on whether help-version changed or all the tests did.
31833         * top/maint.mk (_hv_regex): Remove this definition.
31834         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
31835         (_hv_regex_strong): Use a stronger regex to check for conformance.
31836         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
31837         Give a separate diagnostic for lack of conforming use.
31838
31839         maint.mk: prohibit definition of symbols defined by gnulib
31840         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
31841         definition of symbols defined by gnulib.
31842
31843 2010-05-09  Bruno Haible  <bruno@clisp.org>
31844
31845         acl: Avoid test failure on Cygwin-hosted mingw.
31846         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
31847
31848 2010-05-09  Bruno Haible  <bruno@clisp.org>
31849
31850         error: Use system's fcntl function.
31851         * lib/error.c (fcntl): Undefine.
31852
31853 2010-05-09  Jim Meyering  <meyering@redhat.com>
31854
31855         verify: adjust formatting to be more consistent
31856         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
31857         argument-list '('s, and after one comma.
31858
31859 2010-05-09  Bruno Haible  <bruno@clisp.org>
31860
31861         error: More reliable output on mingw.
31862         * lib/error.c: Include <windows.h>.
31863         (is_open): New function.
31864         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
31865         defined.
31866
31867 2010-05-09  Bruno Haible  <bruno@clisp.org>
31868
31869         vasnprintf: Fix syntax errors in libintl build on mingw.
31870         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
31871         pad_ourselves and prec_ourselves after use.
31872
31873 2010-05-08  Bruno Haible  <bruno@clisp.org>
31874
31875         * lib/config.charset: Update comments for Cygwin 1.7.
31876         * lib/localcharset.c: Likewise.
31877
31878 2010-05-07  Jim Meyering  <meyering@redhat.com>
31879
31880         init.sh: improve comments
31881         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
31882         . "${srcdir=.}/init.sh"; path_prepend_ .
31883         Add a note about path_prepend_ and the alternative of using
31884         TESTS_ENVIRONMENT.
31885
31886 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31887
31888         exclude: Unescape hashed patterns in wildcard mode.
31889         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
31890         to the hash list.
31891         * tests/test-exclude8.sh: New test case.
31892         * modules/exclude-tests: Add new test.
31893
31894 2010-05-05  Eric Blake  <eblake@redhat.com>
31895
31896         verify: automate tests
31897         * modules/verify-tests: New module.
31898         * tests/test-verify.sh: New file.
31899         * tests/test-verify.c: Guard each negative test with a unique id.
31900         Also avoid warning about unused left hand of comma expressions.
31901
31902 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31903
31904         Further improvements to verify.h, suggested by Eric Blake.
31905         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
31906         the GL_* versions, to avoid collision with OpenGL.
31907         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
31908         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
31909         than testing merely whether it's defined.
31910
31911         Modify verify.h to pacify gcc -Wredundant_decls.
31912         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
31913         These use the prefix "GL_" since they're likely to be useful elsewhere.
31914         We may need to break them out into a different .h file.
31915         (__COUNTER__): Define to 0 if the compiler doesn't support it.
31916         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
31917         of verify_function__.
31918
31919 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31920
31921         Tests for module pwrite.
31922         * modules/pwrite-tests: New file.
31923         * tests/test-pwrite.sh: New file.
31924         * tests/test-pwrite.c: New file.
31925
31926         New module pwrite.
31927         * lib/unistd.in.h (pwrite): New declaration.
31928         * lib/pwrite.c: New file, from glibc with modifications.
31929         * m4/pwrite.m4: New file.
31930         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
31931         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
31932         REPLACE_PWRITE.
31933         * modules/pwrite: New file.
31934         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
31935         REPLACE_PWRITE.
31936         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
31937         * doc/posix-functions/pwrite.texi: Mention the new module.
31938
31939 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31940
31941         pread: Update documentation.
31942         * doc/posix-functions/pread.texi: Mention the 'pread' module.
31943
31944 2010-05-04  Eric Blake  <eblake@redhat.com>
31945
31946         docs: update cygwin progress
31947         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
31948         this bug.
31949         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
31950         Added in cygwin 1.7.2.
31951         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
31952         Likewise.
31953         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
31954         Likewise.
31955         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31956         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31957         * doc/glibc-functions/accept4.texi (accept4): Likewise.
31958         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
31959         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
31960         Mention nproc module.
31961         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
31962         bug in cygwin 1.7.5 addition.
31963         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
31964         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
31965         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
31966         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
31967         1.7.5.
31968         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
31969         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
31970         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
31971         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
31972         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
31973         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
31974         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
31975         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
31976         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
31977         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
31978         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
31979         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
31980         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
31981         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
31982         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
31983         Likewise.
31984         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
31985         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
31986         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
31987         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
31988         Likewise.
31989         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
31990         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
31991         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
31992         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
31993         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
31994         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
31995         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
31996         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
31997         Likewise.
31998         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
31999         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32000         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32001         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32002         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32003         Likewise.
32004         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32005         Likewise.
32006         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32007         Likewise.
32008         * doc/glibc-functions/xdrrec_endofrecord.texi
32009         (xdrrec_endofrecord): Likewise.
32010         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32011         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32012         Likewise.
32013         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32014         Likewise.
32015
32016 2010-05-04  Jim Meyering  <meyering@redhat.com>
32017
32018         gendocs.sh: make its "-s FILE" option more useful
32019         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32020         $PACKAGE to reflect the probably-different basename of "FILE".
32021
32022 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32023
32024         bootstrap: don't ignore download_po_files failure
32025         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32026         failure.
32027
32028 2010-05-03  Jim Meyering  <meyering@redhat.com>
32029
32030         maint.mk: allow to pass options to gendocs.sh
32031         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32032         (gendocs_options_): New overridable variable.
32033
32034         gnu-web-doc-update: don't ignore configure or build failure
32035         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32036
32037         announce-gen: backslash-escape '@'s in --help output
32038         * build-aux/announce-gen: Fix syntax errors.
32039
32040         maint.mk, announce-gen: allow project-specific announcement mail headers
32041         * top/maint.mk (translation_project_): Define default.
32042         (announcement_Cc_, announcement_mail_headers_): Likewise.
32043         (announcement): Invoke announce-gen with new --mail-headers option.
32044         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32045
32046         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32047         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32048         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32049         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32050         line in the "err2" output file when running "make check" in verbose
32051         mode (i.e., with set -x enabled).
32052
32053 2010-05-03  Bruno Haible  <bruno@clisp.org>
32054
32055         wctob: Fix for weird platforms.
32056         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32057         argument value.
32058
32059 2010-05-03  Jim Meyering  <meyering@redhat.com>
32060
32061         maint.mk: prohibit unwarranted use of <strings.h>
32062         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32063         strings.h in a file that does not also use strcasecmp, strncasecmp,
32064         ffs or ffsll.
32065
32066         maint.mk: remove obsolete comments
32067         * top/maint.mk: Remove stale, commented-out rules.
32068
32069 2010-05-02  Bruno Haible  <bruno@clisp.org>
32070
32071         wcwidth: Declare also when it's aliased.
32072         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32073         macro.
32074
32075 2010-05-02  Bruno Haible  <bruno@clisp.org>
32076
32077         Fix regression from 2010-04-25.
32078         * gnulib-tool (func_modules_transitive_closure): Check the status of
32079         all modules, not only of the tests that are of the form foo-tests where
32080         foo is a module.
32081
32082 2010-05-02  Bruno Haible  <bruno@clisp.org>
32083
32084         wctob: Work around nasty Cygwin 1.7.2 bug.
32085         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32086         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32087
32088 2010-05-01  Bruno Haible  <bruno@clisp.org>
32089
32090         fpurge: Sharper test.
32091         * tests/test-fpurge.c (main): Add one more ftell check.
32092         * modules/fpurge-tests (Depends-on): Add ftell.
32093         Suggested by Eric Blake.
32094
32095 2010-05-01  Bruno Haible  <bruno@clisp.org>
32096
32097         ftello: Another test.
32098         * tests/test-ftello3.c: New file.
32099         * modules/ftello-tests (Files): Add it.
32100         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32101         MOSTLYCLEANFILES.
32102
32103         ftell: Another test.
32104         * tests/test-ftell3.c: New file.
32105         * modules/ftell-tests (Files): Add it.
32106         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32107         MOSTLYCLEANFILES.
32108
32109 2010-05-01  Bruno Haible  <bruno@clisp.org>
32110
32111         ftell, ftello: Work around Solaris bug.
32112         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32113         * lib/ftello.c: Include stdio-impl.h.
32114         (ftello): On Solaris, when _IOWRT is set, compute the result without
32115         looking at _IOREAD.
32116         * modules/ftello (Files): Add lib/stdio-impl.h.
32117         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32118         * doc/posix-functions/ftello.texi: Likewise.
32119         Reported by Eric Blake.
32120
32121 2010-05-01  Bruno Haible  <bruno@clisp.org>
32122
32123         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32124         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32125         the _IOWRT flag is also set.
32126
32127 2010-05-01  Bruno Haible  <bruno@clisp.org>
32128
32129         Fix doc about a HP-UX stdio bug.
32130         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32131         * doc/posix-functions/ftello.texi: Likewise.
32132
32133 2010-05-01  Bruno Haible  <bruno@clisp.org>
32134
32135         lseek test: Fix failure on Solaris.
32136         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32137         output.
32138
32139 2010-04-30  Jim Meyering  <meyering@redhat.com>
32140
32141         bootstrap: don't ignore failure to generate po*/Makevars
32142         * build-aux/bootstrap (with_gettext): Don't ignore failure
32143         to create po/Makevars or runtime-po/Makevars.
32144
32145 2010-04-29  Eric Blake  <eblake@redhat.com>
32146
32147         headers: relax license to LGPLv2+
32148         * modules/fcntl-h (License): Relax license.
32149         * modules/getopt-posix (License): Likewise.
32150         * modules/locale (License): Likewise.
32151         * modules/math (License): Likewise.
32152         * modules/pty (License): Likewise.
32153         * modules/sched (License): Likewise.
32154         * modules/search (License): Likewise.
32155         * modules/spawn (License): Likewise.
32156         * modules/stdarg (License): Likewise.
32157         * modules/sysexits (License): Likewise.
32158
32159 2010-04-29  Jim Meyering  <meyering@redhat.com>
32160
32161         inttypes: relax license to LGPLv2+
32162         * modules/inttypes (License): Relax license.
32163
32164 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32165
32166         * top/maint.mk (indent): Run twice to produce idempotent results.
32167
32168 2010-04-28  Bruno Haible  <bruno@clisp.org>
32169
32170         getdate: Generate getdate.c in the source directory.
32171         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32172         MOSTLYCLEANFILES.
32173         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32174
32175 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32176
32177         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32178         is not declared as a const *; avoid warnings in that case.
32179
32180 2010-04-28  Eric Blake  <eblake@redhat.com>
32181
32182         canonicalize-lgpl: avoid compiler warning
32183         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32184         declaration' / 'extraneous semicolon' warning with some compilers.
32185         Reported by Andreas Gruenbacher.
32186
32187 2010-04-28  Jim Meyering  <meyering@redhat.com>
32188
32189         init.sh: ensure a more reliable exit status when exiting via trap
32190         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32191         Inspired by patches from Dmitry V. Levin.
32192         Also trap on signal 3 (SIGQUIT).
32193
32194 2010-04-27  Bruno Haible  <bruno@clisp.org>
32195
32196         Update doc about utimes().
32197         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32198         'utimens' module.
32199         Reported by Andreas Gruenbacher <agruen@suse.de>.
32200
32201 2010-04-27  Eric Blake  <eblake@redhat.com>
32202
32203         full-read, full-write: relax license
32204         * modules/full-read (License): Drop to LGPLv2+.
32205         * modules/full-write (License): Likewise.
32206         * modules/safe-read (License): Likewise.
32207         * modules/safe-write (License): Likewise.
32208
32209         pthread: mention library for linking
32210         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32211
32212 2010-04-27  Jim Meyering  <meyering@redhat.com>
32213
32214         maint.mk: fix a bug introduced in last change
32215         * top/maint.mk (gl_assured_headers_): Now that all names are on
32216         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32217         is not anchored to end of word, it should be adequate.
32218
32219         maint.mk: avoid side-effect in latest syntax-check
32220         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32221         to run commands via $(shell...), and hence to incur cost only when
32222         the new rule is actually run.
32223
32224         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32225         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32226         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32227         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32228         (gl_assured_headers_, az_, AZ_): Define.
32229         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32230
32231 2010-04-26  Jim Meyering  <jim@meyering.net>
32232             Bruno Haible  <bruno@clisp.org>
32233
32234         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32235         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32236         Prompted by an exchange with Gilles Espinasse.
32237
32238 2010-04-26  Jim Meyering  <meyering@redhat.com>
32239
32240         git-version-gen: aesthetic tweak
32241         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32242         so that the command remains on a single line.
32243
32244 2010-04-26  Eric Blake  <eblake@redhat.com>
32245
32246         git-version-gen: allow use on EBCDIC hosts
32247         * build-aux/git-version-gen (dirty): Use literal rather than tying
32248         ourselves to ascii.
32249         Reported by Steve Goetze.
32250
32251 2010-04-25  Bruno Haible  <bruno@clisp.org>
32252
32253         netdb: Add support for GNULIB_POSIXCHECK.
32254         * lib/netdb.in.h: Include warn-on-use.h.
32255         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32256         functions are used when GNULIB_POSIXCHECK is defined and the
32257         getaddrinfo module is not in use.
32258         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32259         freeaddrinfo, gai_strerror, getnameinfo are declared.
32260         * modules/netdb (Depends-on): Add warn-on-use.
32261         (Makefile.am): Include warn-on-use.h in netdb.h.
32262
32263 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32264
32265         build: avoid "make check" failure without .git/ directory
32266         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32267         there is no .git/ directory.
32268
32269 2010-04-25  Bruno Haible  <bruno@clisp.org>
32270
32271         ptsname: Fix misuse of ttyname_r.
32272         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32273         of errno.
32274
32275 2010-04-25  Bruno Haible  <bruno@clisp.org>
32276
32277         ttyname_r: Make it work on Solaris 10.
32278         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32279         if the system function has the POSIX declaration. Test whether the
32280         function fails if the buffer is less than 128 bytes large.
32281         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32282         system's ttyname_r function. Provide a reasonably large buffer.
32283         * modules/ttyname_r (Depends-on): Add extensions.
32284         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32285
32286 2010-04-25  Bruno Haible  <bruno@clisp.org>
32287
32288         Use the 'extensions' module for some more functions on Solaris.
32289         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32290         module.
32291         * doc/posix-functions/ctime_r.texi: Likewise.
32292         * doc/posix-functions/getgrgid_r.texi: Likewise.
32293         * doc/posix-functions/getgrnam_r.texi: Likewise.
32294         * doc/posix-functions/getpwnam_r.texi: Likewise.
32295         * doc/posix-functions/getpwuid_r.texi: Likewise.
32296         * doc/posix-functions/readdir_r.texi: Likewise.
32297         * doc/posix-functions/sigwait.texi: Likewise.
32298         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32299         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32300
32301 2010-04-25  Bruno Haible  <bruno@clisp.org>
32302
32303         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32304         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32305         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32306         * lib/ttyname_r.c: Include <limits.h>.
32307         (ttyname_r): Define using the system's ttyname_r function, if it exists
32308         and not on Solaris.
32309         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32310         set.
32311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32312         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32313         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32314         Reported by Simon Josefsson.
32315
32316 2010-04-25  Bruno Haible  <bruno@clisp.org>
32317
32318         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32319         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32320         * doc/posix-functions/ctime_r.texi: Likewise.
32321         * doc/posix-functions/getgrgid_r.texi: Likewise.
32322         * doc/posix-functions/getgrnam_r.texi: Likewise.
32323         * doc/posix-functions/getlogin_r.texi: Likewise.
32324         * doc/posix-functions/getpwnam_r.texi: Likewise.
32325         * doc/posix-functions/getpwuid_r.texi: Likewise.
32326         * doc/posix-functions/readdir_r.texi: Likewise.
32327         * doc/posix-functions/sigwait.texi: Likewise.
32328         * doc/posix-functions/ttyname_r.texi: Likewise.
32329         Reported by Simon Josefsson.
32330
32331 2010-04-25  Bruno Haible  <bruno@clisp.org>
32332
32333         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32334         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32335         also to --create-testdir.
32336         (func_acceptable): Don't consider the status of *-tests modules here.
32337         (func_modules_transitive_closure): Consider it here, before including a
32338         test module.
32339         (func_import, func_create_testdir): Set inc_all_direct_tests,
32340         inc_all_indirect_tests.
32341         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32342         --create-testdir and --create-megatestdir.
32343
32344 2010-04-25  Bruno Haible  <bruno@clisp.org>
32345
32346         gnulib-tool: Add --without-*-tests options.
32347         * gnulib-tool (func_usage): Document the --without-*-tests options.
32348         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32349         excl_unportable_tests): New variables.
32350         Fail if they are specified with --import or --update.
32351         (func_acceptable): Respect the excl_*_tests variables.
32352         (func_import): Set the excl_*_tests variables to empty.
32353
32354 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32355             Bruno Haible  <bruno@clisp.org>
32356
32357         Work around a MacOS X 10.4 bug with openpty.
32358         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32359         * tests/test-openpty.c (main): Close the master side explicitly.
32360
32361 2010-04-25  Bruno Haible  <bruno@clisp.org>
32362
32363         strnlen: Fix a C++ test error on MacOS X and Solaris.
32364         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32365         the function is not declared.
32366         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32367         Simon Josefsson.
32368
32369 2010-04-24  Bruno Haible  <bruno@clisp.org>
32370
32371         Avoid a gcc warning.
32372         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32373         of correct type for %08lx directive.
32374         Reported by Eric Blake.
32375
32376 2010-04-24  Bruno Haible  <bruno@clisp.org>
32377
32378         vasnprintf: Correct errno value in case of out-of-memory.
32379         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32380         or sprintf. Use the errno value from SNPRINTF or sprintf.
32381         Reported by Ian Beckwith <ianb@erislabs.net>.
32382
32383 2010-04-24  Bruno Haible  <bruno@clisp.org>
32384
32385         ansi-c++-opt: Find correct compiler when cross-compiling.
32386         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32387         AC_CHECK_PROGS.
32388         Reported by Simon Josefsson.
32389
32390 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32391
32392         vc-list-files: Add support for subversion
32393         * build-aux/vc-list-files: Use "svn list" to generate the list of
32394         files controlled by subversion.
32395
32396 2010-04-23  Jim Meyering  <meyering@redhat.com>
32397
32398         vc-list-files tests: convert to use init.sh
32399         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32400         path_prepend_.
32401         Use Exit, not exit.
32402         Use skip_ rather than open coding it.
32403         Remove trap set-up and compare definitions.
32404         * tests/test-vc-list-files-git.sh: Likewise.
32405         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32406
32407 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32408
32409         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32410         backup files.
32411
32412 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32413
32414         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32415
32416 2010-04-20  Eric Blake  <eblake@redhat.com>
32417
32418         tests: be robust to ignored SIGPIPE
32419         * tests/test-select-in.sh: Consume all output.
32420         * tests/test-lseek.sh: Check correct exit status, while avoiding
32421         EPIPE.
32422
32423 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32424             Bruno Haible  <bruno@clisp.org>
32425
32426         visibility: Don't use -fvisibility if it leads to a warning.
32427         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32428         yes, don't pretend that visibility works if it leads to a warning.
32429         Reported by Mike Gran <spk121@yahoo.com>.
32430
32431 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32432
32433         * build-aux/bootstrap: Use "git -h" for testing for supported options
32434         instead of "git --help".  The short-form option only shows a summary,
32435         and doesn't layout the full man page.  Grep for the full option name
32436         in the summary, too.
32437
32438 2010-04-19  Bruno Haible  <bruno@clisp.org>
32439
32440         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32441         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32442         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32443         mention of RELOCATABLE_STRIP.
32444         Reported by Sylvain Beucler <beuc@beuc.net>.
32445
32446 2010-04-19  Bruno Haible  <bruno@clisp.org>
32447
32448         * lib/diffseq.h: Fix typo in comment.
32449         Reported by Eric Blake.
32450
32451 2010-04-19  Bruno Haible  <bruno@clisp.org>
32452
32453         ioctl: Move autoconf macro to a .m4 file.
32454         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32455         * modules/ioctl (Files): Add it.
32456         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32457         Reported by Ian Beckwith <ianb@erislabs.net>.
32458
32459 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32460             Bruno Haible  <bruno@clisp.org>
32461
32462         diffseq: Accommodate use-case with abstract arrays.
32463         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32464         is not defined.
32465         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32466         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32467
32468 2010-04-18  Bruno Haible  <bruno@clisp.org>
32469
32470         * doc/posix-headers/stdbool.texi: More precise wording.
32471
32472 2010-04-17  Jim Meyering  <meyering@redhat.com>
32473
32474         maint.mk: use gnu-style indentation in an embedded perl script
32475         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32476         Rename variable: s/two/last_two_bytes/
32477
32478 2010-04-16  Eric Blake  <eblake@redhat.com>
32479
32480         test-stdbool: skip test that fails with Solaris CC
32481         * tests/test-stdbool.c (f): Skip test that causes compilation
32482         error under buggy C++ compiler.
32483         * lib/stdbool.in.h: Document the limitation.
32484         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32485
32486         setenv: allow compilation with C++
32487         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32488         register keyword.
32489
32490         stdint: allow test to pass with C++
32491         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32492
32493         getopt: allow compilation with C++
32494         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32495         struct.
32496         * lib/getopt.c (_getopt_internal_r): Use correct type.
32497         Reported by Dagobert Michelson, via Joel E. Denny.
32498
32499 2010-04-16  Bruno Haible  <bruno@clisp.org>
32500
32501         Override netdb.h always.
32502         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32503         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32504         Reported by Ludovic Courtès <ludo@gnu.org>.
32505
32506 2010-04-15  Bruno Haible  <bruno@clisp.org>
32507
32508         openpty: Fix mistake from 2010-03-21.
32509         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32510         Reported by Simon Josefsson.
32511
32512 2010-04-15  Eric Blake  <eblake@redhat.com>
32513
32514         test-forkpty: fix expected signature
32515         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32516         Reported by Simon Josefsson.
32517
32518 2010-04-15  Jim Meyering  <meyering@redhat.com>
32519
32520         maint.mk: texinfo_suffix_re_: correct the default regexp
32521         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32522
32523         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32524         make it configurable via texinfo_suffix_re_.
32525
32526 2010-04-14  Eric Blake  <eblake@redhat.com>
32527
32528         strtok_r: relax license to LGPLv2+
32529         * modules/strtok_r (License): Relax license.
32530         Reported by Matthias Bolte.
32531
32532 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32533
32534         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32535         version 1.4.4 by default instead of requiring the libgcrypt
32536         version used during build.  This makes it possible to use the
32537         application with older but still binary compatible libgcrypt
32538         versions.
32539
32540 2010-04-13  Eric Blake  <eblake@redhat.com>
32541
32542         getopt-gnu: match recent glibc fixes and posix ruling
32543         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32544         '+' handling, when requesting extensions.
32545         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32546         'W;' handling.
32547         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32548         * doc/posix-functions/getopt.texi (getopt): Document this.
32549         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32550         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32551         Likewise.
32552
32553         getopt: merge bug fixes from glibc
32554         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32555         diagnostics.  Honor '+:' correctly.  Reject ';'.
32556
32557         getopt-posix: detect MacOS bug
32558         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32559         optind when missing a required argument.
32560         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32561         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32562         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32563         Likewise.
32564
32565         getopt-posix: avoid spurious failure on Solaris
32566         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32567         an indicator that setting optind=1 is sufficient for reset.
32568
32569         getopt-posix: avoid spurious failure on FreeBSD
32570         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32571         in POSIX mode, since the m4 test uses it.
32572
32573         gnulib-tool: silence warning on BSD sh
32574         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32575
32576 2010-04-13  Jim Meyering  <meyering@redhat.com>
32577
32578         doc: users.txt: GNU patch now uses gnulib
32579         * users.txt: Add patch.
32580
32581 2010-04-12  Jim Meyering  <meyering@redhat.com>
32582
32583         maint.mk: generate more concise timing data for syntax-check rules
32584         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32585         " done" from each line that reports a syntax-check test duration.
32586
32587 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32588
32589         git-version-gen: use "git update-index..." rather than "git status"
32590         * build-aux/git-version-gen: Use git update-index --refresh, not
32591         "git status".  With some versions of git, "git status" would fail
32592         to update the index and result in an unwarranted "-dirty" suffix.
32593
32594 2010-04-11  Jim Meyering  <meyering@redhat.com>
32595
32596         openat: correct formatting (no semantic change)
32597         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32598         Suggested by Bruno Haible.
32599
32600 2010-04-11  Bruno Haible  <bruno@clisp.org>
32601
32602         Stricter declaration checking in testdirs.
32603         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32604         If for_tests is true, augment AM_CPPFLAGS to define
32605         GNULIB_STRICT_CHECKING.
32606         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
32607         GNULIB_STRICT_CHECKING is defined, verify that the function is
32608         declared.
32609
32610 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
32611             Bruno Haible  <bruno@clisp.org>
32612
32613         libunistring: Improve configure output.
32614         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
32615         Don't say "consider installing GNU libunistring" when checking again
32616         with libiconv.
32617
32618 2010-04-11  Bruno Haible  <bruno@clisp.org>
32619
32620         libunistring: Correct value of $LTLIBUNISTRING.
32621         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
32622         correct the value of $LTLIBUNISTRING.
32623
32624 2010-04-11  Bruno Haible  <bruno@clisp.org>
32625
32626         havelib: Add static libraries to LIBS in the right order.
32627         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
32628         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
32629
32630 2010-04-11  Bruno Haible  <bruno@clisp.org>
32631
32632         libunistring: Detect libunistring also when it depends on libiconv.
32633         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
32634         the second AC_LIB_HAVE_LINKFLAGS invocation.
32635
32636 2010-04-11  James Youngman  <jay@gnu.org>
32637
32638         close-stream: declare local scalars to be "const"
32639         * lib/close-stream.c (close_stream): Make boolean variables const
32640         to document the fact that we set but do not change them.
32641
32642 2010-04-11  Bruno Haible  <bruno@clisp.org>
32643
32644         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
32645
32646 2010-04-11  Jim Meyering  <meyering@redhat.com>
32647
32648         maint.mk: don't include dist-check.mk
32649         * top/maint.mk: Remove bogus include directive.
32650
32651         maint.mk: improve empty-line-at-EOF check
32652         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
32653         solution, rather than tail+Perl-based one.  The latter would read
32654         a few kilobytes from the end of each file, and did not handle empty
32655         files properly.
32656
32657         maint.mk: print the elapsed time for each syntax-check rule
32658         * top/maint.mk (sc_m_rules_): Save start time in a file.
32659         (sc_z_rules_): New rules: remove temp file and print elapsed time.
32660         (local-check): Interpose the .z rules
32661
32662 2010-04-11  Jim Meyering  <meyering@redhat.com>
32663
32664         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
32665         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
32666         empty file with one that ends in an empty line.
32667
32668 2010-04-10  Bruno Haible  <bruno@clisp.org>
32669
32670         mkdir: Make it work on mingw64.
32671         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
32672         * lib/mkdir.c: Update comment.
32673         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
32674
32675 2010-04-10  Bruno Haible  <bruno@clisp.org>
32676
32677         Don't override improved macro from newer autoconf.
32678         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
32679         autoconf >= 2.62.
32680         Reported by Joel E. Denny <jdenny@clemson.edu>.
32681
32682 2010-04-10  Jim Meyering  <meyering@redhat.com>
32683
32684         maint.mk: new syntax-check rule: prohibit empty lines at end of file
32685         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
32686
32687         maint.mk: correct a diagnostic
32688         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
32689         in diagnostic; now use $prohibit.
32690
32691 2010-04-10  Bruno Haible  <address@hidden>
32692
32693         fchownat: Fix a C++ test error on Solaris 8.
32694         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
32695         the function does not exist.
32696
32697 2010-04-10  Bruno Haible  <bruno@clisp.org>
32698
32699         vasnprintf: Add more tests.
32700         * tests/test-vasnprintf-posix.c: Include <errno.h>.
32701         (test_function): Test converting an invalid wide string.
32702
32703         vasnprintf: Correct handling of unconvertible wide string arguments.
32704         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
32705         VASNPRINTF.
32706         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
32707         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
32708         smaller than the expected maximum need for the directive. Set errno to
32709         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
32710         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
32711         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
32712         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
32713         * modules/vasnprintf (Files): Add m4/printf.m4.
32714         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32715
32716 2010-04-10  Bruno Haible  <bruno@clisp.org>
32717
32718         vasnprintf: Fix crash in %ls directive.
32719         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
32720         string is passed as argument to %ls, with no precision and no width.
32721         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32722
32723 2010-04-10  Bruno Haible  <bruno@clisp.org>
32724
32725         vasnprintf: Fix multiple test failures on mingw.
32726         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
32727         _snprintf, or snwprintf, not _snwprintf.
32728
32729 2010-04-10  Bruno Haible  <bruno@clisp.org>
32730
32731         write: Fix a C++ test error on mingw.
32732         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
32733
32734 2010-04-10  Bruno Haible  <bruno@clisp.org>
32735
32736         vasnprintf test: Reduce code duplication.
32737         * tests/test-vasnprintf.c (test_function): New function, extracted from
32738         test_vasnprintf.
32739         (test_vasnprintf, test_asnprintf): Invoke it.
32740
32741 2010-04-10  Bruno Haible  <bruno@clisp.org>
32742
32743         strnlen: Fix warning in C++ mode on MacOS X.
32744         * lib/string.in.h (strnlen): Use the modern idiom.
32745         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
32746         defining strnlen as a macro already in <config.h>.
32747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32748         REPLACE_STRNLEN.
32749         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
32750         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32751
32752 2010-04-08  James Youngman  <jay@gnu.org>
32753
32754         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
32755         the example.
32756
32757 2010-04-09  Jim Meyering  <meyering@redhat.com>
32758
32759         maint.mk: print better diagnostic when there is no $(_hv_file)
32760         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
32761         announce that when $(_hv_file) (aka help-version) does not exist.
32762
32763         init.sh: run tr in the "C" locale to avoid multibyte interpretation
32764         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
32765         not try to interpret its random input bytes.  Jarno Rajahalme reported
32766         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
32767         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
32768         (mktempd_): Likewise, just in case.
32769
32770         ftruncate: add two years to projected module removal date: 2012
32771         * m4/ftruncate.m4: Adjust comments.
32772
32773         ftruncate: mark module as obsolete; even MinGW provides it, now
32774         * modules/ftruncate (Status): Obsolete.
32775         (Notice): Say that.
32776         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
32777         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
32778
32779 2010-04-08  Bruno Haible  <bruno@clisp.org>
32780
32781         Fix side effects from tests-related modules.
32782         * modules/dprintf-posix (Comment): New section.
32783         * modules/fprintf-posix (Comment): Likewise.
32784         * modules/obstack-printf-posix (Comment): Likewise.
32785         * modules/printf-posix (Comment): Likewise.
32786         * modules/snprintf-posix (Comment): Likewise.
32787         * modules/sprintf-posix (Comment): Likewise.
32788         * modules/vasnprintf-posix (Comment): Likewise.
32789         * modules/vasprintf-posix (Comment): Likewise.
32790         * modules/vdprintf-posix (Comment): Likewise.
32791         * modules/vfprintf-posix (Comment): Likewise.
32792         * modules/vprintf-posix (Comment): Likewise.
32793         * modules/vsnprintf-posix (Comment): Likewise.
32794         * modules/vsprintf-posix (Comment): Likewise.
32795         * modules/xprintf-posix (Comment): Likewise.
32796         * modules/xvasprintf-posix (Comment): Likewise.
32797         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
32798         * modules/floorf-tests (Depends-on): Likewise.
32799         * modules/round-tests (Depends-on): Likewise.
32800         * modules/roundf-tests (Depends-on): Likewise.
32801         * modules/trunc-tests (Depends-on): Likewise.
32802         * modules/truncf-tests (Depends-on): Likewise.
32803         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
32804         'fprintf-posix' module is not present.
32805         * tests/test-floorf2.c (check): Likewise.
32806         * tests/test-trunc2.c (check): Likewise.
32807         * tests/test-truncf2.c (check): Likewise.
32808         * tests/test-round2.c (equal): Likewise.
32809         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32810
32811 2010-04-07  Karl Berry  <karl@gnu.org>
32812
32813         * config/srclist.txt,
32814         * config/srclistvars.sh,
32815         * config/srclist-update: doc fixes.
32816
32817 2010-04-07  Jim Meyering  <meyering@redhat.com>
32818
32819         maint.mk: add a PATH crosschecking syntax-check rule
32820         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
32821         Useful if you use a test like the one in help-version (coreutils,
32822         diffutils, grep, gzip) that ensures $(VERSION) matches what is
32823         printed by prog --version.
32824
32825 2010-04-06  Bruno Haible  <bruno@clisp.org>
32826
32827         Fix link error on mingw.
32828         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
32829         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
32830
32831 2010-04-06  Bruno Haible  <bruno@clisp.org>
32832
32833         Assume rmdir exists.
32834         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
32835
32836 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
32837
32838         doc: update users.txt
32839         * users.txt: Add gcal.
32840
32841 2010-04-06  Jim Meyering  <meyering@redhat.com>
32842
32843         init.sh: simply unset TMPDIR rather than risking env -i
32844         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
32845         although it probably works fine on all Unix-based systems, some
32846         systems (Cygwin?) cannot tolerate a totally cleared environment.
32847         Suggestion from Eric Blake.
32848
32849 2010-04-06  Jim Meyering  <meyering@redhat.com>
32850
32851         init.sh: portability fix: use env's POSIX-specified -i option not -u
32852         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
32853         than unportable env -u.  Solaris 5.11's env lacks support for -u.
32854
32855 2010-04-05  Bruno Haible  <bruno@clisp.org>
32856
32857         btowc: Work around Cygwin 1.7.2 bug.
32858         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
32859         does not map NUL to 0.
32860         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
32861
32862 2010-04-05  Bruno Haible  <bruno@clisp.org>
32863
32864         Make the multithread modules work on Cygwin 1.7.2.
32865         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
32866         imported symbols can be declared weak, so that it returns "no" on
32867         Cygwin 1.7.2.
32868
32869 2010-04-05  Bruno Haible  <bruno@clisp.org>
32870
32871         Use the module 'strncat'.
32872         * modules/unistr/u8-strncat (Depends-on): Add strncat.
32873
32874         Tests for module 'strncat'.
32875         * modules/strncat-tests: New file.
32876         * tests/test-strncat.c: New file.
32877
32878         New module 'strncat'.
32879         * lib/string.in.h (strncat): New declaration.
32880         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
32881         * m4/strncat.m4: New file, based on m4/memchr.m4.
32882         * modules/strncat: New file.
32883         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
32884         is declared.
32885         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
32886         REPLACE_STRNCAT.
32887         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
32888         REPLACE_STRNCAT.
32889         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
32890         module.
32891         * tests/test-string-c++.cc: Check signature of strncat.
32892
32893 2010-04-05  Jim Meyering  <meyering@redhat.com>
32894
32895         xstrtoumax-tests: convert to use init.sh
32896         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
32897         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32898         Use Exit, not exit.
32899         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32900
32901         xstrtoimax-tests: convert to use init.sh
32902         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
32903         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32904         Use Exit, not exit.
32905         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32906
32907 2010-04-05  Bruno Haible  <bruno@clisp.org>
32908
32909         sys_socket: Avoid #define replacements in C++ mode.
32910         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
32911         warning to the function if possible, rather than #defining the symbol
32912         to a dysfunctional alias.
32913
32914 2010-04-05  Bruno Haible  <bruno@clisp.org>
32915
32916         fseeko: Fix C++ test error on mingw.
32917         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
32918         gl_FUNC_FSEEKO.
32919         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
32920         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
32921         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
32922         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
32923
32924 2010-04-05  Bruno Haible  <bruno@clisp.org>
32925
32926         duplocale: Improve test output.
32927         * tests/test-duplocale.c (main): Print reason for skipped test.
32928
32929 2010-04-05  Bruno Haible  <bruno@clisp.org>
32930
32931         Assume rmdir exists.
32932         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
32933         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
32934
32935 2010-04-05  Bruno Haible  <bruno@clisp.org>
32936
32937         Fix link error on Solaris 8 with cc.
32938         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
32939
32940 2010-04-05  Bruno Haible  <bruno@clisp.org>
32941
32942         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32943         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
32944
32945 2010-04-05  Bruno Haible  <bruno@clisp.org>
32946
32947         vasprintf: Update documentation.
32948         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
32949
32950 2010-04-05  Bruno Haible  <bruno@clisp.org>
32951
32952         ptsname: Improve test.
32953         * tests/test-ptsname.c (main): Also try the various master names of BSD
32954         systems.
32955
32956 2010-04-05  Bruno Haible  <bruno@clisp.org>
32957
32958         memchr: Avoid a possible C++ test error.
32959         * lib/string.in.h (memchr): Provide declaration if function is missing.
32960         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
32961         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
32962         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
32963         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
32964
32965 2010-04-05  Bruno Haible  <bruno@clisp.org>
32966
32967         strtok_r: Improve idiom.
32968         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
32969         AC_LIBOBJ is used.
32970
32971 2010-04-05  Bruno Haible  <bruno@clisp.org>
32972
32973         strdup: Improve idiom.
32974         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
32975         AC_LIBOBJ is used.
32976         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
32977         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
32978         when AC_LIBOBJ is used.
32979
32980 2010-04-05  Bruno Haible  <bruno@clisp.org>
32981
32982         mbsinit, mbrtowc, wcrtomb: Improve idioms.
32983         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
32984         don't set REPLACE_MBSINIT to 1.
32985         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
32986         don't set REPLACE_MBRTOWC to 1.
32987         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
32988         exist, don't set REPLACE_MBSRTOWCS to 1.
32989         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
32990         exist, don't set REPLACE_MBSNRTOWCS to 1.
32991         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
32992         don't set REPLACE_WCRTOMB to 1.
32993         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
32994         exist, don't set REPLACE_WCSRTOMBS to 1.
32995         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
32996         exist, don't set REPLACE_WCSNRTOMBS to 1.
32997
32998 2010-04-05  Bruno Haible  <bruno@clisp.org>
32999
33000         ldexpl: Improve idiom.
33001         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33002         make sure to set HAVE_DECL_LDEXPL to 0.
33003
33004 2010-04-05  Jim Meyering  <meyering@redhat.com>
33005
33006         xstrtol-tests: convert to use init.sh
33007         * modules/xstrtol-tests (Files): Add tests/init.sh.
33008         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33009         Use Exit, not exit.
33010         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33011
33012         atexit-tests: convert to use init.sh
33013         * modules/atexit-tests (Files): Add tests/init.sh.
33014         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33015         Use Exit, not exit.
33016         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33017
33018         init.sh: fix typo
33019         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33020
33021         init.sh: make it easier for a test script to write to the tty, ...
33022         when using automake's parallel-tests mode.
33023         * tests/init.sh (stderr_fileno_): Define overridable variable.
33024         (warn_): New function, to use it.
33025         (fail_, skip_, framework_failure_): Use warn_.
33026
33027 2010-04-04  Bruno Haible  <bruno@clisp.org>
33028
33029         btowc: Avoid warning.
33030         * lib/btowc.c: Include <stdlib.h>.
33031         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33032
33033 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33034             Bruno Haible  <bruno@clisp.org>
33035
33036         wchar: Port to NetBSD 1.5.
33037         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33038         * lib/wctype.in.h (WEOF): Likewise.
33039
33040 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33041             Bruno Haible  <bruno@clisp.org>
33042
33043         Port extended stdio to NetBSD 1.5.
33044         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33045         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33046         older.
33047
33048 2010-04-04  Bruno Haible  <bruno@clisp.org>
33049
33050         string: Remove unused substitution.
33051         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33052         HAVE_DECL_STRERROR.
33053         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33054
33055 2010-04-04  Bruno Haible  <bruno@clisp.org>
33056
33057         strtod: Avoid a possible C++ test error.
33058         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33059         set REPLACE_STRTOD.
33060
33061 2010-04-04  Bruno Haible  <bruno@clisp.org>
33062
33063         strerror: Update documentation.
33064         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33065
33066 2010-04-04  Bruno Haible  <bruno@clisp.org>
33067
33068         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33069         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33070         _GL_CXXALIAS_SYS_CAST.
33071
33072 2010-04-04  Bruno Haible  <bruno@clisp.org>
33073
33074         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33075         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33076         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33077         REPLACE_FREXPL to 1.
33078         * doc/posix-functions/frexpl.texi: Update documentation.
33079
33080 2010-04-04  Bruno Haible  <bruno@clisp.org>
33081
33082         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33083         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33084
33085 2010-04-04  Bruno Haible  <bruno@clisp.org>
33086
33087         Implement nanosleep for native Windows.
33088         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33089
33090 2010-04-04  Bruno Haible  <bruno@clisp.org>
33091
33092         math: Fix some C++ test errors on Solaris 8.
33093         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33094
33095 2010-04-04  Bruno Haible  <bruno@clisp.org>
33096
33097         math: Fix some C++ test errors on Cygwin.
33098         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33099         truncl): Provide declaration if the system does not have it.
33100         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33101         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33102         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33103         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33104         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33105         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33106         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33107         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33108         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33109         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33110         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33111         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33112         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33113         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33114         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33115         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33117         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33118         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33119         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33120         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33121         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33122
33123 2010-04-04  Bruno Haible  <bruno@clisp.org>
33124
33125         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33126         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33127         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33128         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33129         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33130         * m4/isinf.m4 (gl_ISINF): Likewise.
33131         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33132
33133 2010-04-04  Bruno Haible  <bruno@clisp.org>
33134
33135         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33136         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33137
33138 2010-04-04  Bruno Haible  <bruno@clisp.org>
33139
33140         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33141         * modules/tmpfile (configure.ac): Update.
33142
33143         tmpfile: Fix C++ test error on mingw.
33144         * lib/stdio.in.h (tmpfile): New declaration.
33145         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33146         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33147         * modules/tmpfile (Depends-on): Add stdio.
33148         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33149         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33150         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33151         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33152         REPLACE_TMPFILE.
33153         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33154
33155 2010-04-04  Bruno Haible  <bruno@clisp.org>
33156
33157         ioctl: Fix C++ test error on mingw.
33158         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33159         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33160         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33161
33162 2010-04-03  Bruno Haible  <bruno@clisp.org>
33163
33164         wcwidth: Fix C++ test error on mingw.
33165         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33166         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33167         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33168
33169 2010-04-03  Bruno Haible  <bruno@clisp.org>
33170
33171         nanosleep: Fix C++ test error on mingw.
33172         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33173         * lib/time.in.h (nanosleep): Use modern idiom.
33174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33175         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33176         REPLACE_NANOSLEEP to 1.
33177         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33178         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33179
33180 2010-04-03  Bruno Haible  <bruno@clisp.org>
33181
33182         strptime: Fix C++ test error on mingw.
33183         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33184         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33185         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33186         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33187         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33188         not REPLACE_STRPTIME.
33189         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33190         REPLACE_STRPTIME.
33191
33192 2010-04-03  Bruno Haible  <bruno@clisp.org>
33193
33194         timegm: Fix C++ test error on mingw.
33195         * lib/time.in.h (timegm): Use modern idiom.
33196         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33197         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33198         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33199         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33200
33201 2010-04-03  Bruno Haible  <bruno@clisp.org>
33202
33203         timegm: Assume declaration if function exists.
33204         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33205         if it exists. Don't clobber ac_cv_func_timegm.
33206
33207 2010-04-03  Bruno Haible  <bruno@clisp.org>
33208
33209         time_r: Fix C++ test error on mingw.
33210         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33211         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33212         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33213         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33214         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33215
33216 2010-04-03  Bruno Haible  <bruno@clisp.org>
33217
33218         time_r: Minor updates.
33219         * modules/time_r (Description): Mention the provided functions.
33220         * lib/time_r.c: Don't include <string.h>.
33221         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33222         * doc/posix-functions/localtime_r.texi: Likewise.
33223
33224 2010-04-03  Bruno Haible  <bruno@clisp.org>
33225
33226         time: Fix regression introduced on 2010-03-08.
33227         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33228         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33229
33230 2010-04-03  Jim Meyering  <meyering@redhat.com>
33231
33232         maint.mk: don't silently disable project-specific syntax-check rules
33233         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33234         that they need to convert their project-specific syntax-check rules
33235         to use the new _sc_search_regexp.
33236
33237 2010-04-03  Bruno Haible  <bruno@clisp.org>
33238
33239         fchdir: Fix regression introduced on 2010-03-08.
33240         * lib/unistd.in.h (fchdir): Fix declaration.
33241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33243         REPLACE_FCHDIR.
33244         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33245         REPLACE_FCHDIR.
33246
33247 2010-04-03  Bruno Haible  <bruno@clisp.org>
33248
33249         getpagesize: Fix C++ test error on mingw.
33250         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33251         system does not declare the function.
33252         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33253         declared.
33254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33255         HAVE_DECL_GETPAGESIZE.
33256         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33257
33258 2010-04-03  Bruno Haible  <bruno@clisp.org>
33259
33260         stdio: Make C++ tests work on mingw.
33261         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33262         does not declare the function.
33263
33264 2010-04-03  Bruno Haible  <bruno@clisp.org>
33265
33266         ftello: Fix C++ test error on mingw.
33267         * lib/stdio.in.h (ftello): Use modern idiom.
33268         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33269         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33270         is missing and that it needs to be replaced.
33271         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33273         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33274
33275 2010-04-03  Bruno Haible  <bruno@clisp.org>
33276
33277         fseeko: Fix C++ test error on mingw.
33278         * lib/stdio.in.h (fseeko): Use modern idiom.
33279         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33280         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33281         is missing and that it needs to be replaced.
33282         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33284         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33285
33286 2010-04-03  Bruno Haible  <bruno@clisp.org>
33287
33288         mkstemp: Fix C++ test error on mingw.
33289         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33290         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33291         function is missing and that it needs to be replaced.
33292         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33293         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33294
33295 2010-04-03  Bruno Haible  <bruno@clisp.org>
33296
33297         stpncpy: Fix C++ test error on mingw.
33298         * lib/string.in.h (stpncpy): Use modern idiom.
33299         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33300         function is missing and that it needs to be replaced.
33301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33302         REPLACE_STPNCPY.
33303         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33304
33305 2010-04-03  Bruno Haible  <bruno@clisp.org>
33306
33307         sys_stat: Fix C++ test error on mingw.
33308         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33309         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33310
33311 2010-04-03  Bruno Haible  <bruno@clisp.org>
33312
33313         pty: Update doc.
33314         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33315
33316 2010-04-03  Bruno Haible  <bruno@clisp.org>
33317
33318         unistd: Fix C++ test error on mingw.
33319         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33320
33321 2010-04-03  Bruno Haible  <bruno@clisp.org>
33322
33323         Update doc regarding mingw.
33324         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33325         * doc/glibc-functions/login_tty.texi: Likewise.
33326         * doc/glibc-functions/forkpty.texi: Likewise.
33327
33328 2010-04-03  Bruno Haible  <bruno@clisp.org>
33329
33330         stdlib: Avoid compilation failure of c-strtold on mingw.
33331         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33332
33333 2010-04-03  Bruno Haible  <bruno@clisp.org>
33334
33335         locale: Make C++ tests work on Cygwin and mingw.
33336         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33337         cannot provide the function.
33338         Reported by Simon Josefsson.
33339
33340 2010-04-03  Bruno Haible  <bruno@clisp.org>
33341
33342         localename: Port to MacOS X 10.6.
33343         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33344         memory layout of the locales in MacOS X 10.6 as well.
33345         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33346
33347 2010-04-02  Bruno Haible  <bruno@clisp.org>
33348
33349         gnulib-tool: Ensure that long-running tests are executed last.
33350         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33351         running tests after the one for the other tests.
33352
33353 2010-04-02  Bruno Haible  <bruno@clisp.org>
33354
33355         gnulib-tool: Ensure the tests in the main directory are executed first.
33356         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33357         start with the current directory.
33358
33359 2010-04-02  Bruno Haible  <bruno@clisp.org>
33360
33361         Tests for module 'havelib', moved here from GNU gettext.
33362         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33363         modifications.
33364         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33365         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33366         with modifications.
33367         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33368         modifications.
33369         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33370         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33371         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33372         with modifications.
33373         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33374         with modifications.
33375         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33376         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33377         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33378         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33379         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33380         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33381         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33382         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33383         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33384         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33385         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33386         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33387         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33388         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33389         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33390         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33391         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33392         with modifications.
33393         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33394         with modifications.
33395         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33396         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33397         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33398         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33399         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33400         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33401         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33402         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33403         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33404         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33405         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33406         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33407         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33408         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33409         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33410         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33411         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33412         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33413         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33414         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33415         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33416         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33417         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33418         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33419         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33420         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33421         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33422         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33423         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33424         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33425         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33426         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33427         * tests/havelib/rpathx/rpathx.c: New file, from
33428         gettext/autoconf-lib-link.
33429         * tests/havelib/rpathx/Makefile.am: New file, from
33430         gettext/autoconf-lib-link.
33431         * tests/havelib/rpathx/configure.ac: New file, from
33432         gettext/autoconf-lib-link with modifications.
33433         * tests/havelib/rpathy/rpathy.c: New file, from
33434         gettext/autoconf-lib-link.
33435         * tests/havelib/rpathy/Makefile.am: New file, from
33436         gettext/autoconf-lib-link.
33437         * tests/havelib/rpathy/configure.ac: New file, from
33438         gettext/autoconf-lib-link with modifications.
33439         * tests/havelib/rpathz/rpathz.c: New file, from
33440         gettext/autoconf-lib-link.
33441         * tests/havelib/rpathz/Makefile.am: New file, from
33442         gettext/autoconf-lib-link.
33443         * tests/havelib/rpathz/configure.ac: New file, from
33444         gettext/autoconf-lib-link with modifications.
33445         * tests/havelib/rpathlx/usex.c: New file, from
33446         gettext/autoconf-lib-link.
33447         * tests/havelib/rpathlx/Makefile.am: New file, from
33448         gettext/autoconf-lib-link.
33449         * tests/havelib/rpathlx/configure.ac: New file, from
33450         gettext/autoconf-lib-link with modifications.
33451         * tests/havelib/rpathly/usey.c: New file, from
33452         gettext/autoconf-lib-link.
33453         * tests/havelib/rpathly/Makefile.am: New file, from
33454         gettext/autoconf-lib-link.
33455         * tests/havelib/rpathly/configure.ac: New file, from
33456         gettext/autoconf-lib-link with modifications.
33457         * tests/havelib/rpathlz/usez.c: New file, from
33458         gettext/autoconf-lib-link.
33459         * tests/havelib/rpathlz/Makefile.am: New file, from
33460         gettext/autoconf-lib-link.
33461         * tests/havelib/rpathlz/configure.ac: New file, from
33462         gettext/autoconf-lib-link with modifications.
33463         * tests/havelib/rpathlyx/usey.c: New file, from
33464         gettext/autoconf-lib-link.
33465         * tests/havelib/rpathlyx/Makefile.am: New file, from
33466         gettext/autoconf-lib-link.
33467         * tests/havelib/rpathlyx/configure.ac: New file, from
33468         gettext/autoconf-lib-link with modifications.
33469         * tests/havelib/rpathlzyx/usez.c: New file, from
33470         gettext/autoconf-lib-link.
33471         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33472         gettext/autoconf-lib-link.
33473         * tests/havelib/rpathlzyx/configure.ac: New file, from
33474         gettext/autoconf-lib-link with modifications.
33475         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33476         with modifications.
33477
33478 2010-04-02  Bruno Haible  <bruno@clisp.org>
33479
33480         gnulib-tool: Create distributed built sources also for the tests.
33481         * gnulib-tool (func_create_testdir): Also generate distributed built
33482         sources in the tests directory.
33483
33484 2010-04-02  Bruno Haible  <bruno@clisp.org>
33485
33486         gnulib-tool: Obey user's environment variables.
33487         * gnulib-tool (func_create_testdir): When creating built sources,
33488         respect the environment variables for autoconf, automake, etc. given by
33489         the user.
33490
33491 2010-04-02  Bruno Haible  <bruno@clisp.org>
33492
33493         gnulib-tool: Provide the value of --m4-base to modules.
33494         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33495         of gl_m4_base.
33496
33497 2010-04-02  Eric Blake  <eblake@redhat.com>
33498
33499         maint.mk: fix some fallout
33500         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33501         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33502
33503 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33504
33505         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33506         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33507         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33508         (sc_cast_of_x_alloc_return_value): Likewise.
33509         (sc_cast_of_alloca_return_value): Likewise.
33510         (sc_space_tab): Likewise.
33511         (sc_prohibit_atoi_atof): Likewise.
33512         (sc_prohibit_magic_number_exit): Likewise.
33513         (sc_error_exit_success): Likewise.
33514         (sc_file_system): Likewise.
33515         (sc_prohibit_have_config_h): Likewise.
33516         (sc_require_config_h): Likewise.
33517         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33518         (sc_obsolete_symbols): Likewise.
33519         (sc_changelog): Likewise.
33520         (sc_program_name): Likewise.
33521         (sc_the_the): Likewise.
33522         (sc_trailing_blank): Likewise.
33523         (sc_two_space_separator_in_usage): Likewise.
33524         (sc_useless_cpp_parens): Likewise.
33525         (sc_GPL_version): Likewise.
33526         (sc_GFDL_version): Likewise.
33527         (sc_texinfo_acronym): Likewise.
33528         (sc_prohibit_cvs_keyword): Likewise.
33529         (sc_prohibit_stat_st_blocks): Likewise.
33530         (sc_prohibit_S_IS_definition): Likewise.
33531         (sc_redundant_const): Likewise.
33532         (sc_makefile_TAB_only_indentation): Likewise.
33533         (sc_m4_quote_check): Likewise.
33534         (sc_makefile_path_separator_check): Likewise.
33535         (sc_copyright_check): Likewise.
33536         (sc_Wundef_boolean): Likewise.
33537         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33538
33539         maint.mk: match 0 or more whitespace-before-function-call '('
33540         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33541         that have zero or two-and-more spaces between the function name
33542         and the open parenthesis.
33543         (sc_error_message_warn_fatal): Likewise.
33544         (sc_error_message_uppercase): Likewise.
33545         (sc_error_message_period): Likewise.
33546
33547 2010-03-31  Eric Blake  <eblake@redhat.com>
33548
33549         maint.mk: check for [ as well as test
33550         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33551         Based on a libvirt report by Matthias Bolte.
33552
33553         gnumakefile: don't squelch _version output
33554         * top/GNUmakefile (_version): Create one-shot dependency rather
33555         than using $(shell) when version must be regenerated.
33556         (_autoreconf): Run verbosely, by default.
33557
33558         sys_time: avoid compiler warnings
33559         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33560         unconditional, fixing regression from 2010-03-29.
33561         Reported by Simon Josefsson.
33562
33563 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33564
33565         maint.mk: s/_header_without_use/_sc_header_without_use/
33566         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33567         (sc_prohibit_assert_without_use): Use the new name.
33568         (sc_prohibit_close_stream_without_use): Likewise.
33569         (sc_prohibit_getopt_without_use): Likewise.
33570         (sc_prohibit_quotearg_without_use): Likewise.
33571         (sc_prohibit_quote_without_use): Likewise.
33572         (sc_prohibit_long_options_without_use): Likewise.
33573         (sc_prohibit_inttostr_without_use): Likewise.
33574         (sc_prohibit_ignore_value_without_use): Likewise.
33575         (sc_prohibit_error_without_use): Likewise.
33576         (sc_prohibit_xalloc_without_use): Likewise.
33577         (sc_prohibit_hash_without_use): Likewise.
33578         (sc_prohibit_hash_pjw_without_use): Likewise.
33579         (sc_prohibit_safe_read_without_use): Likewise.
33580         (sc_prohibit_argmatch_without_use): Likewise.
33581         (sc_prohibit_canonicalize_without_use): Likewise.
33582         (sc_prohibit_root_dev_ino_without_use): Likewise.
33583         (sc_prohibit_openat_without_use): Likewise.
33584         (sc_prohibit_c_ctype_without_use): Likewise.
33585         (sc_prohibit_signal_without_use): Likewise.
33586         (sc_prohibit_intprops_without_use): Likewise.
33587
33588 2010-03-30  Eric Blake  <eblake@redhat.com>
33589
33590         maint: improve module indicators
33591         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33592         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33593         columns, and avoid extra macro expansion.
33594
33595         fdopendir: work around FreeBSD bug
33596         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33597         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33598         * modules/dirent (Makefile.am): Substitute it.
33599         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33600         declaration.
33601         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33602         fix.
33603         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33604
33605 2010-03-29  Bruno Haible  <bruno@clisp.org>
33606
33607         Emit #pragma system_header after the inclusion guard, not before.
33608         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
33609         guard that spans the entire file, not before. This enables an
33610         optimization in GCC's preprocessor.
33611         * lib/ctype.in.h: Likewise.
33612         * lib/dirent.in.h: Likewise.
33613         * lib/errno.in.h: Likewise.
33614         * lib/float.in.h: Likewise.
33615         * lib/getopt.in.h: Likewise.
33616         * lib/iconv.in.h: Likewise.
33617         * lib/langinfo.in.h: Likewise.
33618         * lib/locale.in.h: Likewise.
33619         * lib/math.in.h: Likewise.
33620         * lib/netdb.in.h: Likewise.
33621         * lib/netinet_in.in.h: Likewise.
33622         * lib/pty.in.h: Likewise.
33623         * lib/sched.in.h: Likewise.
33624         * lib/se-selinux.in.h: Likewise.
33625         * lib/search.in.h: Likewise.
33626         * lib/spawn.in.h: Likewise.
33627         * lib/stdarg.in.h: Likewise.
33628         * lib/stdint.in.h: Likewise.
33629         * lib/string.in.h: Likewise.
33630         * lib/strings.in.h: Likewise.
33631         * lib/sys_file.in.h: Likewise.
33632         * lib/sys_ioctl.in.h: Likewise.
33633         * lib/sys_time.in.h: Likewise.
33634         * lib/sys_times.in.h: Likewise.
33635         * lib/sys_utsname.in.h: Likewise.
33636         * lib/sys_wait.in.h: Likewise.
33637         * lib/sysexits.in.h: Likewise.
33638         * lib/wctype.in.h: Likewise.
33639
33640 2010-03-28  James Youngman  <jay@gnu.org>
33641
33642         save-cwd: don't leak a file descriptor when the caller execs.
33643         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
33644         saved file descriptor.
33645         * modules/save-cwd (Depends-on): Depend on cloexec.
33646
33647 2010-03-29  Bruno Haible  <bruno@clisp.org>
33648
33649         Remove vestiges of fts-lgpl module.
33650         * lib/fts_.h: Assume GNULIB_FTS is 1.
33651         * lib/fts.c: Likewise.
33652         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33653
33654 2010-03-28  Bruno Haible  <bruno@clisp.org>
33655
33656         Fix definition of tests witness macro.
33657         * gnulib-tool (func_import): Fix definition of witness macro.
33658
33659 2010-03-28  Bruno Haible  <bruno@clisp.org>
33660
33661         Fix ioctl's protoype on glibc systems.
33662         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
33663         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
33664         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
33665         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
33666         signature. If not, arrange to replace the ioctl function.
33667         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33668         REPLACE_IOCTL.
33669         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
33670         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
33671         Reported by Ludovic Courtès <ludo@gnu.org>.
33672
33673 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
33674
33675         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
33676         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
33677         made it so grep -r --include=GLOB* ... did not work.
33678
33679 2010-03-26  Jim Meyering  <meyering@redhat.com>
33680             Eric Blake  <eblake@redhat.com>
33681
33682         maint.mk: prohibit use of test's -o and -a operators
33683         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
33684
33685 2010-03-28  Bruno Haible  <bruno@clisp.org>
33686
33687         Remove unused GNULIB_XYZ macro definitions.
33688         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
33689         invocation.
33690
33691 2010-03-28  Bruno Haible  <bruno@clisp.org>
33692
33693         Mark privileged tests modules.
33694         * modules/idpriv-drop-tests (Status): New section.
33695         * modules/idpriv-droptemp-tests (Status): New section.
33696
33697 2010-03-28  Bruno Haible  <bruno@clisp.org>
33698
33699         Split C++ tests into separate tests modules.
33700         * modules/dirent-c++-tests: New file, extracted from
33701         modules/dirent-tests.
33702         * modules/dirent-tests: Depend on it.
33703         * modules/fcntl-h-c++-tests: New file, extracted from
33704         modules/fcntl-h-tests.
33705         * modules/fcntl-h-tests: Depend on it.
33706         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
33707         * modules/glob-tests: Depend on it.
33708         * modules/iconv-h-c++-tests: New file, extracted from
33709         modules/iconv-h-tests.
33710         * modules/iconv-h-tests: Depend on it.
33711         * modules/langinfo-c++-tests: New file, extracted from
33712         modules/langinfo-tests.
33713         * modules/langinfo-tests: Depend on it.
33714         * modules/locale-c++-tests: New file, extracted from
33715         modules/locale-tests.
33716         * modules/locale-tests: Depend on it.
33717         * modules/math-c++-tests: New file, extracted from modules/math-tests.
33718         * modules/math-tests: Depend on it.
33719         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
33720         * modules/pty-tests: Depend on it.
33721         * modules/search-c++-tests: New file, extracted from
33722         modules/search-tests.
33723         * modules/search-tests: Depend on it.
33724         * modules/signal-c++-tests: New file, extracted from
33725         modules/signal-tests.
33726         * modules/signal-tests: Depend on it.
33727         * modules/spawn-c++-tests: New file, extracted from
33728         modules/spawn-tests.
33729         * modules/spawn-tests: Depend on it.
33730         * modules/stdio-c++-tests: New file, extracted from
33731         modules/stdio-tests.
33732         * modules/stdio-tests: Depend on it.
33733         * modules/stdlib-c++-tests: New file, extracted from
33734         modules/stdlib-tests.
33735         * modules/stdlib-tests: Depend on it.
33736         * modules/string-c++-tests: New file, extracted from
33737         modules/string-tests.
33738         * modules/string-tests: Depend on it.
33739         * modules/sys_ioctl-c++-tests: New file, extracted from
33740         modules/sys_ioctl-tests.
33741         * modules/sys_ioctl-tests: Depend on it.
33742         * modules/sys_select-c++-tests: New file, extracted from
33743         modules/sys_select-tests.
33744         * modules/sys_select-tests: Depend on it.
33745         * modules/sys_socket-c++-tests: New file, extracted from
33746         modules/sys_socket-tests.
33747         * modules/sys_socket-tests: Depend on it.
33748         * modules/sys_stat-c++-tests: New file, extracted from
33749         modules/sys_stat-tests.
33750         * modules/sys_stat-tests: Depend on it.
33751         * modules/sys_time-c++-tests: New file, extracted from
33752         modules/sys_time-tests.
33753         * modules/sys_time-tests: Depend on it.
33754         * modules/time-c++-tests: New file, extracted from modules/time-tests.
33755         * modules/time-tests: Depend on it.
33756         * modules/unistd-c++-tests: New file, extracted from
33757         modules/unistd-tests.
33758         * modules/unistd-tests: Depend on it.
33759         * modules/wchar-c++-tests: New file, extracted from
33760         modules/wchar-tests.
33761         * modules/wchar-tests: Depend on it.
33762         * modules/wctype-c++-tests: New file, extracted from
33763         modules/wctype-tests.
33764         * modules/wctype-tests: Depend on it.
33765         Reported by Simon Josefsson.
33766
33767 2010-03-28  Bruno Haible  <bruno@clisp.org>
33768
33769         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
33770         * gnulib-tool (func_exists_module): New function, extracted from
33771         func_verify_module.
33772         (func_verify_module): Use it.
33773         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
33774         'foo' only if 'foo' exists.
33775         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
33776         module.
33777
33778 2010-03-28  Bruno Haible  <bruno@clisp.org>
33779
33780         gnulib-tool: Add support for special categories of tests.
33781         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
33782         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
33783         (func_usage): Document them.
33784         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
33785         inc_unportable_tests, inc_all_tests): New variables.
33786         (func_acceptable): Consider these variables.
33787         (func_modules_transitive_closure): Make it work when the 'Status' field
33788         consists of multiple words.
33789         (func_import): Store and restore the values of inc_cxx_tests,
33790         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
33791         inc_all_tests in gnulib-comp.m4.
33792         (func_create_testdir): Set inc_all_tests to true.
33793         * doc/gnulib.texi (Extra tests modules): New section.
33794         Suggested by Jim Meyering.
33795
33796 2010-03-28  Bruno Haible  <bruno@clisp.org>
33797
33798         ansi-c++-opt: Allow turning off the C++ build by default.
33799         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
33800         gl_CXX_CHOICE_DEFAULT_NO is defined.
33801         Requested by Eric Blake.
33802
33803 2010-03-28  Bruno Haible  <bruno@clisp.org>
33804
33805         unistd: Avoid #define replacements in C++ mode.
33806         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33807         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33808         setsockopt, shutdown, select): In C++, attach a warning to the function
33809         if possible, rather than #defining the symbol to a dysfunctional alias.
33810         Reported by John W. Eaton <jwe@gnu.org>.
33811
33812 2010-03-28  Bruno Haible  <bruno@clisp.org>
33813
33814         Fix link errors on mingw.
33815         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
33816         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
33817         $(LIBSOCKET).
33818         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
33819         $(LIBSOCKET).
33820
33821 2010-03-28  Bruno Haible  <bruno@clisp.org>
33822             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33823
33824         lib-ignore: Determine different options for different compilers.
33825         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
33826         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
33827         Add comments.
33828         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
33829         * NEWS: Mention the change.
33830
33831 2010-03-27  Bruno Haible  <bruno@clisp.org>
33832
33833         Remove unused GNULIB_XYZ macro definitions.
33834         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33835         * modules/fseek (configure.ac): Likewise.
33836         * modules/ioctl (configure.ac): Likewise.
33837         * modules/open (configure.ac): Likewise.
33838         * modules/stdlib-safer (configure.ac): Likewise.
33839
33840 2010-03-27  Bruno Haible  <bruno@clisp.org>
33841
33842         Add a remark about certain modules.
33843         * modules/malloc (Comment): New section.
33844         * modules/realloc (Comment): Likewise.
33845         * modules/sigpipe (Comment): Likewise.
33846
33847 2010-03-27  Bruno Haible  <bruno@clisp.org>
33848
33849         Resolve conflict between the two kinds of module indicators.
33850         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
33851         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
33852         * modules/canonicalize (configure.ac): Invoke
33853         gl_MODULE_INDICATOR_FOR_TESTS.
33854         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
33855         GNULIB_XYZ.
33856         * tests/test-dirent-c++.cc: Likewise.
33857         * tests/test-dirent-safer.c: Likewise.
33858         * tests/test-dup2.c: Likewise.
33859         * tests/test-fchdir.c: Likewise.
33860         * tests/test-fcntl-h-c++.cc: Likewise.
33861         * tests/test-getopt.c: Likewise.
33862         * tests/test-getopt.h: Likewise.
33863         * tests/test-langinfo-c++.cc: Likewise.
33864         * tests/test-locale-c++.cc: Likewise.
33865         * tests/test-math-c++.cc: Likewise.
33866         * tests/test-pty-c++.cc: Likewise.
33867         * tests/test-search-c++.cc: Likewise.
33868         * tests/test-signal-c++.cc: Likewise.
33869         * tests/test-spawn-c++.cc: Likewise.
33870         * tests/test-stdio-c++.cc: Likewise.
33871         * tests/test-stdlib-c++.cc: Likewise.
33872         * tests/test-string-c++.cc: Likewise.
33873         * tests/test-sys_ioctl-c++.cc: Likewise.
33874         * tests/test-sys_select-c++.cc: Likewise.
33875         * tests/test-sys_socket-c++.cc: Likewise.
33876         * tests/test-sys_stat-c++.cc: Likewise.
33877         * tests/test-sys_time-c++.cc: Likewise.
33878         * tests/test-time-c++.cc: Likewise.
33879         * tests/test-unistd-c++.cc: Likewise.
33880         * tests/test-wchar-c++.cc: Likewise.
33881         * tests/uninorm/test-u8-nfc.c: Likewise.
33882         * tests/uninorm/test-u8-nfd.c: Likewise.
33883         * tests/uninorm/test-u8-nfkc.c: Likewise.
33884         * tests/uninorm/test-u8-nfkd.c: Likewise.
33885         * tests/uninorm/test-u16-nfc.c: Likewise.
33886         * tests/uninorm/test-u16-nfd.c: Likewise.
33887         * tests/uninorm/test-u16-nfkc.c: Likewise.
33888         * tests/uninorm/test-u16-nfkd.c: Likewise.
33889         * tests/uninorm/test-u32-nfc.c: Likewise.
33890         * tests/uninorm/test-u32-nfc-big.c: Likewise.
33891         * tests/uninorm/test-u32-nfd.c: Likewise.
33892         * tests/uninorm/test-u32-nfd-big.c: Likewise.
33893         * tests/uninorm/test-u32-nfkc.c: Likewise.
33894         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
33895         * tests/uninorm/test-u32-nfkd.c: Likewise.
33896         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
33897         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33898
33899 2010-03-27  Bruno Haible  <bruno@clisp.org>
33900
33901         Distinguish two kinds of module indicators.
33902         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
33903         gl_MODULE_INDICATOR.
33904         (gl_MODULE_INDICATOR): New macro.
33905         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33906         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
33907         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33908         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33909         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33910         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33911         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33912         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33913         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33914         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33915         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33916         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33918         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33919         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33920         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33921         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33922         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33923         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33924         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33925         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33926         * modules/cloexec (configure.ac): Likewise.
33927         * modules/getopt-gnu (configure.ac): Likewise.
33928         * modules/uninorm/u8-normalize (configure.ac): Likewise.
33929         * modules/uninorm/u16-normalize (configure.ac): Likewise.
33930         * modules/uninorm/u32-normalize (configure.ac): Likewise.
33931         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
33932
33933 2010-03-27  Bruno Haible  <bruno@clisp.org>
33934
33935         New module description field 'Comment'.
33936         * gnulib-tool: New option --extract-comment.
33937         (func_usage): Document it.
33938         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
33939         (func_get_comment): New function.
33940         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
33941
33942 2010-03-27  Bruno Haible  <bruno@clisp.org>
33943
33944         Addendum to 2010-02-07 commit.
33945         * gnulib-tool (func_usage): Document --extract-applicability option.
33946
33947 2010-03-27  Bruno Haible  <bruno@clisp.org>
33948
33949         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
33950         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
33951         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
33952         rather than link errors.
33953
33954 2010-03-27  Bruno Haible  <bruno@clisp.org>
33955
33956         Avoid side effects from tests-related modules on the compilation of lib.
33957         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
33958         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
33959         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
33960         parameter. Emit into AM_CPPFLAGS a definition of the designated C
33961         macro.
33962         (func_import): Define a witness macro. Assign it a value that depends
33963         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
33964         tests-related modules.
33965         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
33966         Reported by Jim Meyering.
33967
33968 2010-03-27  Bruno Haible  <bruno@clisp.org>
33969
33970         Factorize common .m4 code.
33971         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
33972         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
33973         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
33974         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
33975         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33976         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
33977         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
33978         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33979         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33980         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33981         * m4/netdb_h.m4 (gl_NETDB_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/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
33987         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33988         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33989         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33990         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
33991         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
33992         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33993         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33994         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33995         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33996         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33997         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
33998         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
33999         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34000         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34001         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34002         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34003
34004 2010-03-27  Bruno Haible  <bruno@clisp.org>
34005
34006         Fix a compilation error on Cygwin with g++ >= 4.3.
34007         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34008         if it is undefined or if we alias it to chmod.
34009         (lstat): Don't warn about the use of this function if it is undefined
34010         or if we alias it to stat.
34011         Reported by Simon Josefsson.
34012
34013 2010-03-27  Bruno Haible  <bruno@clisp.org>
34014
34015         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34016         * modules/getlogin (configure.ac): Update.
34017
34018         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34019         * modules/getlogin_r (configure.ac): Update.
34020
34021         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34022         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34023         * modules/inet_ntop (configure.ac): Update.
34024
34025         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34026         * modules/inet_pton (configure.ac): Update.
34027
34028         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34029         * modules/mbslen (configure.ac): Update.
34030
34031         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34032         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34033         * modules/forkpty (configure.ac): Update.
34034         * modules/openpty (configure.ac): Update.
34035
34036 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34037
34038         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34039         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34040
34041 2010-03-25  Eric Blake  <eblake@redhat.com>
34042
34043         maint: use pragma consistently across replacement headers
34044         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34045         * lib/dirent.in.h (system_header): Likewise.
34046         * lib/errno.in.h (system_header): Likewise.
34047         * lib/float.in.h (system_header): Likewise.
34048         * lib/getopt.in.h (system_header): Likewise.
34049         * lib/iconv.in.h (system_header): Likewise.
34050         * lib/inttypes.in.h (system_header): Likewise.
34051         * lib/langinfo.in.h (system_header): Likewise.
34052         * lib/locale.in.h (system_header): Likewise.
34053         * lib/math.in.h (system_header): Likewise.
34054         * lib/netdb.in.h (system_header): Likewise.
34055         * lib/netinet_in.in.h (system_header): Likewise.
34056         * lib/pty.in.h (system_header): Likewise.
34057         * lib/sched.in.h (system_header): Likewise.
34058         * lib/se-selinux.in.h (system_header): Likewise.
34059         * lib/search.in.h (system_header): Likewise.
34060         * lib/spawn.in.h (system_header): Likewise.
34061         * lib/stdarg.in.h (system_header): Likewise.
34062         * lib/stdint.in.h (system_header): Likewise.
34063         * lib/string.in.h (system_header): Likewise.
34064         * lib/strings.in.h (system_header): Likewise.
34065         * lib/sys_file.in.h (system_header): Likewise.
34066         * lib/sys_ioctl.in.h (system_header): Likewise.
34067         * lib/sys_socket.in.h (system_header): Likewise.
34068         * lib/sys_times.in.h (system_header): Likewise.
34069         * lib/sys_utsname.in.h (system_header): Likewise.
34070         * lib/sys_wait.in.h (system_header): Likewise.
34071         * lib/sysexits.in.h (system_header): Likewise.
34072         * lib/unistd.in.h (system_header): Likewise.
34073         * lib/wctype.in.h (system_header): Likewise.
34074
34075         arpa/inet: fix mingw compilation warning
34076         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34077         Reported by Matthew Bolte.
34078
34079 2010-03-25  Bruno Haible  <bruno@clisp.org>
34080
34081         Avoid collision between gnulib wrapper and libintl wrapper.
34082         * lib/printf.c (printf): Don't define if a printf wrapper is already
34083         defined in intl/printf.c.
34084         Reported by Michel Boaventura <michel@michelboaventura.com>.
34085
34086 2010-03-25  Bruno Haible  <bruno@clisp.org>
34087
34088         Use ANSI C.
34089         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34090
34091 2010-03-25  Bruno Haible  <bruno@clisp.org>
34092
34093         Minor formatting changes.
34094         * lib/acosl.c: Insert space before function argument list.
34095         * lib/argz.c: Likewise.
34096         * lib/asinl.c: Likewise.
34097         * lib/expl.c: Likewise.
34098         * lib/gen-uni-tables.c: Likewise.
34099         * lib/gettext.h: Likewise.
34100         * lib/glthread/lock.h: Likewise.
34101         * lib/tanl.c: Likewise.
34102         * lib/uniname/uniname.c: Likewise.
34103         * tests/test-idpriv-drop.c: Likewise.
34104         * tests/test-idpriv-droptemp.c: Likewise.
34105         * tests/test-lock.c: Likewise.
34106         * tests/test-tls.c: Likewise.
34107         * lib/argp-help.c: Insert space before function-like macro argument
34108         list.
34109         * lib/memcmp.c: Likewise.
34110         * tests/test-base64.c: Likewise.
34111         * lib/localename.c: Insert space before sizeof's argument list.
34112         * lib/safe-alloc.h: Likewise.
34113         * lib/file-set.h: Insert space before macro argument list.
34114         * tests/test-argp.c: Likewise.
34115         * lib/argp-namefrob.h: Insert space before function parameter list.
34116         * lib/getaddrinfo.c: Likewise.
34117         * lib/netdb.in.h: Likewise.
34118         * lib/parse-duration.h: Likewise.
34119         * lib/parse-duration.c: Likewise.
34120         * lib/poll.c: Likewise.
34121         * lib/select.c: Likewise.
34122         * lib/trim.h: Likewise.
34123         * tests/test-usleep.c: Likewise.
34124         * lib/ldexpl.c: Insert space before function parameter list and before
34125         function argument list.
34126         * lib/logl.c: Likewise.
34127         * lib/sqrtl.c: Likewise.
34128         * lib/trim.c: Likewise.
34129         * lib/cosl.c: Use GNU style indentation. Insert space before function
34130         argument list.
34131         * lib/sinl.c: Likewise.
34132         * lib/tsearch.c: Insert space after 'for'.
34133         Reported by Jim Meyering.
34134
34135 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34136
34137         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34138         config header before grepping, as it's not present before
34139         autoreconf/configure are run.  Reported by Simon Josefsson.
34140
34141 2010-03-23  Bruno Haible  <bruno@clisp.org>
34142
34143         pt_chown: Make it work with automake < 1.11.
34144         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34145         Reported by Simon Josefsson.
34146
34147 2010-03-23  Bruno Haible  <bruno@clisp.org>
34148
34149         pt_chown: Don't depend on GPLed modules.
34150         * lib/pt_chown.c: Don't include idpriv.h.
34151         (main): Don't drop privileges.
34152         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34153         Reported by Simon Josefsson.
34154
34155 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34156
34157         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34158         suggestions from karl@freefriends.org (Karl Berry).
34159
34160 2010-03-22  Eric Blake  <eblake@redhat.com>
34161
34162         gethostname: further tweaks
34163         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34164         are overriding gethostname.
34165         Suggested by Bruno Haible.
34166
34167 2010-03-21  Bruno Haible  <bruno@clisp.org>
34168
34169         Fix comments.
34170         * lib/forkpty.c (rpl_forkpty): Fix comment.
34171         * lib/openpty.c (rpl_openpty): Likewise.
34172         Reported by Eric Blake.
34173
34174 2010-03-22  Eric Blake  <eblake@redhat.com>
34175
34176         gethostname: fix build on mingw
34177         * lib/unistd.in.h (includes): Work around fact that mingw
34178         <winsock2.h> re-includes <unistd.h>, by avoiding any
34179         redeclarations if we are being included by <winsock2.h>.
34180         Reported by Matthias Bolte.
34181
34182 2010-03-21  Bruno Haible  <bruno@clisp.org>
34183
34184         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34185         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34186         modifications.
34187         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34188         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34189         provide the replacement.
34190         * modules/forkpty (Depends-on): Add openpty, login_tty.
34191         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34192         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34193         * doc/glibc-functions/forkpty.texi: More supported platforms.
34194         * config/srclist.txt: Add forkpty.c (commented).
34195
34196 2010-03-21  Bruno Haible  <bruno@clisp.org>
34197
34198         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34199         (Makefile.am): Verify that PTY_LIB is defined.
34200
34201         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34202
34203 2010-03-21  Bruno Haible  <bruno@clisp.org>
34204
34205         Tests for module 'login_tty'.
34206         * modules/login_tty-tests: New file.
34207         * tests/test-login_tty.c: New file.
34208
34209         New module 'login_tty'.
34210         * lib/login_tty.c: New file.
34211         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34212         * modules/login_tty: New file.
34213         * doc/glibc-functions/login_tty.texi: Mention the new module.
34214
34215 2010-03-21  Bruno Haible  <bruno@clisp.org>
34216
34217         login_tty: Documentation.
34218         * doc/glibc-functions/login_tty.texi: New file.
34219         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34220
34221 2010-03-21  Bruno Haible  <bruno@clisp.org>
34222
34223         pty: Consistent macro naming.
34224         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34225         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34226         * modules/pty (configure.ac): Update.
34227
34228 2010-03-21  Bruno Haible  <bruno@clisp.org>
34229
34230         Tests for openpty: Make stricter.
34231         * tests/test-openpty.c (main): Add test of canonical processing and
34232         erase.
34233         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34234
34235         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34236         * lib/openpty.c (openpty): New replacement function.
34237         * lib/pty.in.h: Include <termios.h>.
34238         (openpty): Update declaration. Add comments.
34239         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34240         is not declared, arrange to provide the replacement. Check for _getpty
34241         and posix_openpt.
34242         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34243         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34244         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34245         * modules/pty-tests (test_pty_c___LDADD): New variable.
34246         * doc/glibc-functions/openpty.texi: More supported platforms.
34247
34248 2010-03-21  Bruno Haible  <bruno@clisp.org>
34249
34250         setenv: Tweaks.
34251         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34252         the test program.
34253         * doc/posix-functions/setenv.texi: Update platforms list.
34254
34255 2010-03-21  Bruno Haible  <bruno@clisp.org>
34256
34257         New module 'unlockpt'.
34258         * lib/unlockpt.c: New file, from glibc with modifications.
34259         * m4/unlockpt.m4: New file.
34260         * modules/unlockpt: New file.
34261         * lib/stdlib.in.h (unlockpt): New declaration.
34262         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34263         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34264         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34265         HAVE_UNLOCKPT.
34266         * doc/posix-functions/unlockpt.texi: Mention the new module.
34267         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34268         * config/srclist.txt: Add unlockpt.c (commented).
34269
34270 2010-03-21  Jim Meyering  <meyering@redhat.com>
34271
34272         maint.mk: prohibit inclusion of "intprops.h" without use
34273         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34274
34275 2010-03-21  Bruno Haible  <bruno@clisp.org>
34276
34277         New module 'grantpt'.
34278         * lib/grantpt.c: New file, from glibc with modifications.
34279         * m4/grantpt.m4: New file.
34280         * modules/grantpt: New file.
34281         * lib/stdlib.in.h (grantpt): New declaration.
34282         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34283         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34284         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34285         HAVE_GRANTPT.
34286         * doc/posix-functions/grantpt.texi: Mention the new module.
34287         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34288         * config/srclist.txt: Add grantpt.c (commented).
34289
34290 2010-03-21  Bruno Haible  <bruno@clisp.org>
34291
34292         New module 'pt_chown'.
34293         * lib/pt_chown.c: New file, from glibc with modifications.
34294         * lib/pty-private.h: New file, from glibc with modifications.
34295         * modules/pt_chown: New file.
34296         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34297
34298 2010-03-21  Bruno Haible  <bruno@clisp.org>
34299
34300         Tests for module 'ptsname'.
34301         * modules/ptsname-tests: New file.
34302         * tests/test-ptsname.c: New file.
34303
34304         New module 'ptsname'.
34305         * lib/ptsname.c: New file, from glibc with modifications.
34306         * m4/ptsname.m4: New file.
34307         * modules/ptsname: New file.
34308         * lib/stdlib.in.h (ptsname): New declaration.
34309         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34310         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34311         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34312         HAVE_PTSNAME.
34313         * doc/posix-functions/ptsname.texi: Mention the new module.
34314         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34315         * config/srclist.txt: Add ptsname.c (commented).
34316
34317 2010-03-21  Bruno Haible  <bruno@clisp.org>
34318
34319         Tests for module 'ttyname_r'.
34320         * modules/ttyname_r-tests: New file.
34321         * tests/test-ttyname_r.c: New file.
34322
34323         New module 'ttyname_r'.
34324         * lib/ttyname_r.c: New file.
34325         * m4/ttyname_r.m4: New file.
34326         * modules/ttyname_r: New file.
34327         * lib/unistd.in.h (ttyname_r): New declaration.
34328         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34329         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34330         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34331         HAVE_TTYNAME_R.
34332         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34333         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34334
34335 2010-03-20  Bruno Haible  <bruno@clisp.org>
34336
34337         signal: Undefine macro definitions in C++ mode.
34338         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34339         sigfillset): Undefine macro definitions from the system header in C++
34340         mode.
34341         Reported by John W. Eaton <jwe@gnu.org>.
34342
34343 2010-03-20  Bruno Haible  <bruno@clisp.org>
34344
34345         Ensure no #include statements inside extern "C" { ... }.
34346         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34347         contain #include statements.
34348         * lib/time.in.h: Likewise.
34349
34350 2010-03-20  Bruno Haible  <bruno@clisp.org>
34351
34352         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34353         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34354         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34355         Reported by John W. Eaton <jwe@gnu.org>.
34356
34357 2010-03-20  Bruno Haible  <bruno@clisp.org>
34358
34359         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34360         Reported by Jim Meyering.
34361
34362 2010-03-20  Bruno Haible  <bruno@clisp.org>
34363
34364         pipe: Set errno upon failure.
34365         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34366         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34367         errno value in error message.
34368
34369 2010-03-20  Bruno Haible  <bruno@clisp.org>
34370             Jim Meyering  <meyering@redhat.com>
34371
34372         lchown: Avoid "unused variable" warning.
34373         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34374
34375 2010-03-20  Bruno Haible  <bruno@clisp.org>
34376
34377         Work around unlink() bug on MacOS X 10.5.6.
34378         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34379         attempting to unlink a parent directory.
34380         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34381         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34382         activate for the replacement function.
34383         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34384
34385 2010-03-20  Bruno Haible  <bruno@clisp.org>
34386
34387         Fix link errors on Solaris 8.
34388         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34389         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34390
34391 2010-03-19  Jim Meyering  <meyering@redhat.com>
34392
34393         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34394         The _LIBC implementation of build_range_exp correctly honors the
34395         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34396         However, the non-_LIBC implementation would ignore that syntax-bit
34397         flag and return REG_ERANGE unconditionally.
34398         This change makes it honor that flag.
34399         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34400         Make two pointer parameters "const".
34401         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34402         (parse_bracket_exp): Update caller.
34403
34404         regex.m4: correct the reversed range endpoint ([b-a]) test
34405         * m4/regex.m4: When requiring that [b-a] evoke failure,
34406         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34407         test pass once again for x86-based systems.
34408
34409 2010-03-19  Bruno Haible  <bruno@clisp.org>
34410
34411         scandir: Fix link error on Solaris 8.
34412         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34413         macros.
34414
34415 2010-03-19  Bruno Haible  <bruno@clisp.org>
34416
34417         getusershell: Fix documentation.
34418         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34419         module.
34420         * doc/glibc-functions/setusershell.texi: Likewise.
34421
34422         getusershell: Provide declaration, missing on Solaris 9.
34423         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34424         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34425         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34426         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34428         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34429         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34430         HAVE_GETUSERSHELL.
34431         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34432
34433 2010-03-19  Bruno Haible  <bruno@clisp.org>
34434
34435         wctype: Provide iswblank function.
34436         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34437         exists and is fine.
34438         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34439         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34440         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34441         * doc/posix-functions/iswblank.texi: Update.
34442
34443 2010-03-19  Bruno Haible  <bruno@clisp.org>
34444
34445         Tests of module 'pty' in C++ mode.
34446         * modules/pty-tests: New file.
34447         * tests/test-pty-c++.cc: New file.
34448         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34449
34450 2010-03-19  Eric Blake  <eblake@redhat.com>
34451
34452         logb: fix documentation
34453         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34454         1.5 declaration bug.
34455
34456         forkpty, openpty: prefer glibc's const-safe prototype
34457         * lib/forkpty.c (rpl_forkpty): New file.
34458         * lib/openpty.c (rpl_openpty): Likewise.
34459         * modules/forkpty (Files): Distribute it.
34460         * modules/openpty (Files): Likewise.
34461         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34462         check...
34463         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34464         replacement for for non-const BSD signature.
34465         * modules/pty (Makefile.am): Substitute witnesses.
34466         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34467         * tests/test-forkpty.c: Update signature check.
34468         * tests/test-openpty.c: Likewise.
34469         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34470         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34471
34472         forkpty, openpty: split functions into new modules
34473         * modules/pty (Makefile.am): Substitute new witnesses.
34474         (Libraries): Move library detection...
34475         * modules/forkpty: ...into new module.
34476         * modules/openpty: Another new module.
34477         * modules/pty-tests: Rename and split...
34478         * modules/forkpty-tests: ...to this...
34479         * modules/openpty-tests: ...and this.
34480         * tests/test-pty.c: Rename and split...
34481         * tests/test-forkpty.c: ...to this...
34482         * tests/test-openpty.c: ...and this.
34483         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34484         (gl_PTY): Split library searching...
34485         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34486         (gl_FORKPTY, gl_OPENPTY): New macros.
34487         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34488         * NEWS: Mention the split.
34489         * MODULES.html.sh (Misc): Document the modules.
34490         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34491         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34492
34493         pty: improve replacement header
34494         * lib/pty.in.h: New file.
34495         * modules/pty (Files): Ship it.
34496         (Makefile.am): Always build replacement.
34497         * m4/pty.m4: Rename...
34498         * m4/pty_h.m4: ...to this.
34499         (gl_PTY): Modernize setting of witness macros; update check of
34500         forkpty to take proper advantage of cache.
34501         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34502
34503         getopt: avoid compiler warning
34504         * lib/getopt.c (attribute_hidden): Remove unused macro.
34505
34506 2010-03-18  Bruno Haible  <bruno@clisp.org>
34507
34508         Fix link errors on Solaris 8.
34509         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34510         * modules/search-tests (test_search_c___LDADD): Likewise.
34511         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34512         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34513         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34514         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34515         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34516         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34517         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34518
34519 2010-03-18  Bruno Haible  <bruno@clisp.org>
34520
34521         Fix bug introduced on 2010-03-14.
34522         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34523         (gl_SPAWN_H): Require it.
34524         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34525         Reported by Simon Josefsson.
34526
34527 2010-03-18  Bruno Haible  <bruno@clisp.org>
34528
34529         Fix typo introduced on 2009-12-31.
34530         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34531         posix_spawn_file_actions_adddup2.
34532
34533 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34534         and Eric Blake  <eblake@redhat.com>
34535
34536         test-vc-list-files-git: make more robust
34537         * tests/test-vc-list-files-git.sh: Unset problematic environment
34538         variables.  Chain commands together.
34539
34540 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34541
34542         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34543         `AC_CHECK_DECL' invocation.
34544
34545 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34546
34547         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34548         appears before executable statements. Suggested by Petr Sumbera
34549         <Petr.Sumbera@Sun.COM>.
34550
34551 2010-03-14  Bruno Haible  <bruno@clisp.org>
34552
34553         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34554         portability problems. Instead use a simpler test.
34555         (main): Check that invalid arguments are rejected only on Linux.
34556
34557 2010-03-14  Bruno Haible  <bruno@clisp.org>
34558
34559         Fix bug introduced on 2009-12-31.
34560         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34561         gl_PREREQ_SYS_H_WINSOCK2 always.
34562         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34563         SYS_SOCKET_H variable.
34564         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34565         Update comments.
34566         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34567         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34568         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34569         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34570         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34571
34572 2010-03-14  Bruno Haible  <bruno@clisp.org>
34573
34574         Fix values returned by sinl, cosl.
34575         * lib/trigl.h: Add specification comments.
34576         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34577         that combines the values from the precomputed table with the values of
34578         the Chebyshev polynomials.
34579
34580 2010-03-14  Bruno Haible  <bruno@clisp.org>
34581
34582         Fix compilation error when modules 'posix_spawn[p]' are not used.
34583         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34584         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34585
34586 2010-03-14  Bruno Haible  <bruno@clisp.org>
34587
34588         Fix compilation error on mingw when module 'time_r' is not used.
34589         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34590         is 1.
34591         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34592         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34593         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34594         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34595
34596 2010-03-14  Bruno Haible  <bruno@clisp.org>
34597
34598         Fix compilation error with Sun C.
34599         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34600         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34601         instead of GCC specific ULONG_LONG_MAX.
34602         * lib/xstrtoll.c: Likewise.
34603         * lib/xstrtoull.c: Likewise.
34604
34605 2010-03-13  Bruno Haible  <bruno@clisp.org>
34606
34607         Allow the user to disable C++ code and tests.
34608         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
34609         (gl_PROG_ANSI_CXX): Require it.
34610
34611 2010-03-13  Bruno Haible  <bruno@clisp.org>
34612
34613         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
34614         cases.
34615
34616 2010-03-13  Bruno Haible  <bruno@clisp.org>
34617
34618         Test that gnulib does not break the standard C++ headers.
34619         * tests/test-locale-c++2.cc: New file.
34620         * modules/locale-tests (Files): Add it.
34621         (Makefile.am): Compile it for test-locale-c++.
34622         * tests/test-math-c++2.cc: New file.
34623         * modules/math-tests (Files): Add it.
34624         (Makefile.am): Compile it for test-math-c++.
34625         * tests/test-signal-c++2.cc: New file.
34626         * modules/signal-tests (Files): Add it.
34627         (Makefile.am): Compile it for test-signal-c++.
34628         * tests/test-stdio-c++2.cc: New file.
34629         * modules/stdio-tests (Files): Add it.
34630         (Makefile.am): Compile it for test-stdio-c++.
34631         * tests/test-stdlib-c++2.cc: New file.
34632         * modules/stdlib-tests (Files): Add it.
34633         (Makefile.am): Compile it for test-stdlib-c++.
34634         * tests/test-string-c++2.cc: New file.
34635         * modules/string-tests (Files): Add it.
34636         (Makefile.am): Compile it for test-string-c++.
34637         * tests/test-time-c++2.cc: New file.
34638         * modules/time-tests (Files): Add it.
34639         (Makefile.am): Compile it for test-time-c++.
34640         Reported by John W. Eaton <jwe@gnu.org>.
34641
34642 2010-03-13  Bruno Haible  <bruno@clisp.org>
34643
34644         * gnulib-tool (func_usage): Clarify which options are available for
34645         --create-testdir and --create-megatestdir.
34646
34647 2010-03-13  Bruno Haible  <bruno@clisp.org>
34648
34649         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
34650         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
34651         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
34652         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
34653         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
34654         when appropriate.
34655         Reported by Jim Meyering.
34656
34657 2010-03-12  Simon Josefsson  <simon@josefsson.org>
34658
34659         * gnulib-tool (func_import): Explain origin of code.
34660
34661 2010-03-12  Bruno Haible  <bruno@clisp.org>
34662
34663         Fix problem with automake's definition of CXXLINK.
34664         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
34665         Reported by Simon Josefsson and Ludovic Courtès.
34666
34667 2010-03-12  Bruno Haible  <bruno@clisp.org>
34668
34669         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
34670         stable releases.
34671
34672 2010-03-11  Bruno Haible  <bruno@clisp.org>
34673
34674         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
34675         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
34676         whether the system provides one variant or multiple variants of the
34677         function.
34678         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
34679         C++ compilers.
34680         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
34681         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
34682         Reported by Jim Meyering.
34683
34684 2010-03-09  Simon Josefsson  <simon@josefsson.org>
34685
34686         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
34687
34688 2010-03-08  Bruno Haible  <bruno@clisp.org>
34689
34690         gnulib-tool: Add support for --libtool in --create-testdir.
34691         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
34692         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
34693
34694 2010-03-08  Eric Blake  <eblake@redhat.com>
34695
34696         gnulib-tool.texi: mention possibility of git submodule
34697         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
34698         submodules.
34699         * doc/.gitignore: Ignore another generated file.
34700
34701 2010-03-08  Karl Berry  <karl@gnu.org>
34702
34703         * doc/gnulib-tool.texi (VCS Issues): Mention third option
34704         of committing gnulib files while skipping others.
34705
34706 2010-03-07  Bruno Haible  <bruno@clisp.org>
34707
34708         Tests of module 'wctype' in C++ mode.
34709         * tests/test-wctype-c++.cc: New file.
34710         * modules/wctype-tests (Files): Add it and tests/signature.h.
34711         (Depends-on): Add ansi-c++-opt.
34712         (Makefile.am): Arrange to compile and run test-wctype-c++.
34713
34714         Tests of module 'wchar' in C++ mode.
34715         * tests/test-wchar-c++.cc: New file.
34716         * modules/wchar-tests (Files): Add it and tests/signature.h.
34717         (Depends-on): Add ansi-c++-opt.
34718         (Makefile.am): Arrange to compile and run test-wchar-c++.
34719         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
34720         gl_MODULE_INDICATOR.
34721
34722         Tests of module 'unistd' in C++ mode.
34723         * tests/test-unistd-c++.cc: New file.
34724         * modules/unistd-tests (Files): Add it and tests/signature.h.
34725         (Depends-on): Add ansi-c++-opt.
34726         (Makefile.am): Arrange to compile and run test-unistd-c++.
34727         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
34728         gl_MODULE_INDICATOR.
34729
34730         Tests of module 'time' in C++ mode.
34731         * tests/test-time-c++.cc: New file.
34732         * modules/time-tests (Files): Add it and tests/signature.h.
34733         (Depends-on): Add ansi-c++-opt.
34734         (Makefile.am): Arrange to compile and run test-time-c++.
34735         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34736
34737         Tests of module 'sys_time' in C++ mode.
34738         * tests/test-sys_time-c++.cc: New file.
34739         * modules/sys_time-tests (Files): Add it and tests/signature.h.
34740         (Depends-on): Add ansi-c++-opt.
34741         (Makefile.am): Arrange to compile and run test-sys_time-c++.
34742         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
34743         gl_MODULE_INDICATOR.
34744
34745         Tests of module 'sys_stat' in C++ mode.
34746         * tests/test-sys_stat-c++.cc: New file.
34747         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
34748         (Depends-on): Add ansi-c++-opt.
34749         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
34750         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
34751         gl_MODULE_INDICATOR.
34752
34753         Tests of module 'sys_socket' in C++ mode.
34754         * tests/test-sys_socket-c++.cc: New file.
34755         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
34756         (Depends-on): Add ansi-c++-opt.
34757         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
34758         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
34759         gl_MODULE_INDICATOR.
34760
34761         Tests of module 'sys_select' in C++ mode.
34762         * tests/test-sys_select-c++.cc: New file.
34763         * modules/sys_select-tests (Files): Add it and tests/signature.h.
34764         (Depends-on): Add ansi-c++-opt.
34765         (Makefile.am): Arrange to compile and run test-sys_select-c++.
34766         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
34767         gl_MODULE_INDICATOR.
34768
34769         Tests of module 'sys_ioctl' in C++ mode.
34770         * tests/test-sys_ioctl-c++.cc: New file.
34771         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
34772         (Depends-on): Add ansi-c++-opt.
34773         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
34774         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
34775         gl_MODULE_INDICATOR.
34776
34777         Tests of module 'string' in C++ mode.
34778         * tests/test-string-c++.cc: New file.
34779         * modules/string-tests (Files): Add it and tests/signature.h.
34780         (Depends-on): Add ansi-c++-opt.
34781         (Makefile.am): Arrange to compile and run test-string-c++.
34782         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
34783         gl_MODULE_INDICATOR.
34784
34785         Tests of module 'stdlib' in C++ mode.
34786         * tests/test-stdlib-c++.cc: New file.
34787         * modules/stdlib-tests (Files): Add it and tests/signature.h.
34788         (Depends-on): Add ansi-c++-opt.
34789         (Makefile.am): Arrange to compile and run test-stdlib-c++.
34790         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
34791         gl_MODULE_INDICATOR.
34792
34793         Tests of module 'stdio' in C++ mode.
34794         * tests/test-stdio-c++.cc: New file.
34795         * modules/stdio-tests (Files): Add it and tests/signature.h.
34796         (Depends-on): Add ansi-c++-opt.
34797         (Makefile.am): Arrange to compile and run test-stdio-c++.
34798         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
34799         gl_MODULE_INDICATOR.
34800
34801         Tests of module 'spawn' in C++ mode.
34802         * tests/test-spawn-c++.cc: New file.
34803         * modules/spawn-tests (Files): Add it and tests/signature.h.
34804         (Depends-on): Add ansi-c++-opt.
34805         (Makefile.am): Arrange to compile and run test-spawn-c++.
34806         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
34807         gl_MODULE_INDICATOR.
34808
34809         Tests of module 'signal' in C++ mode.
34810         * tests/test-signal-c++.cc: New file.
34811         * modules/signal-tests (Files): Add it and tests/signature.h.
34812         (Depends-on): Add ansi-c++-opt.
34813         (Makefile.am): Arrange to compile and run test-signal-c++.
34814         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
34815         gl_MODULE_INDICATOR.
34816
34817         Tests of module 'search' in C++ mode.
34818         * tests/test-search-c++.cc: New file.
34819         * modules/search-tests (Files): Add it and tests/signature.h.
34820         (Depends-on): Add ansi-c++-opt.
34821         (Makefile.am): Arrange to compile and run test-search-c++.
34822         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
34823         gl_MODULE_INDICATOR.
34824
34825         Tests of module 'math' in C++ mode.
34826         * tests/test-math-c++.cc: New file.
34827         * modules/math-tests (Files): Add it and tests/signature.h.
34828         (Depends-on): Add ansi-c++-opt.
34829         (Makefile.am): Arrange to compile and run test-math-c++.
34830         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34831
34832         Tests of module 'locale' in C++ mode.
34833         * tests/test-locale-c++.cc: New file.
34834         * modules/locale-tests (Files): Add it and tests/signature.h.
34835         (Depends-on): Add ansi-c++-opt.
34836         (Makefile.am): Arrange to compile and run test-locale-c++.
34837         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
34838         gl_MODULE_INDICATOR.
34839
34840         Tests of module 'langinfo' in C++ mode.
34841         * tests/test-langinfo-c++.cc: New file.
34842         * modules/langinfo-tests (Files): Add it and tests/signature.h.
34843         (Depends-on): Add ansi-c++-opt.
34844         (Makefile.am): Arrange to compile and run test-langinfo-c++.
34845         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
34846         gl_MODULE_INDICATOR.
34847
34848         Tests of module 'iconv-h' in C++ mode.
34849         * tests/test-iconv-h-c++.cc: New file.
34850         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
34851         (Depends-on): Add ansi-c++-opt.
34852         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
34853
34854         Tests of module 'glob' in C++ mode.
34855         * tests/test-glob-c++.cc: New file.
34856         * modules/glob-tests (Files): Add it.
34857         (Depends-on): Add ansi-c++-opt.
34858         (Makefile.am): Arrange to compile and run test-glob-c++.
34859
34860         Tests of module 'fcntl-h' in C++ mode.
34861         * tests/test-fcntl-h-c++.cc: New file.
34862         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
34863         (Depends-on): Add ansi-c++-opt.
34864         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
34865         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
34866         gl_MODULE_INDICATOR.
34867
34868         Tests of module 'dirent' in C++ mode.
34869         * tests/test-dirent-c++.cc: New file.
34870         * modules/dirent-tests (Files): Add it and tests/signature.h.
34871         (Depends-on): Add ansi-c++-opt.
34872         (Makefile.am): Arrange to compile and run test-dirent-c++.
34873         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34874         gl_MODULE_INDICATOR.
34875
34876         New module 'ansi-c++-opt'.
34877         * modules/ansi-c++-opt: New file.
34878         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
34879
34880         Document C++ namespace mode.
34881         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
34882
34883         wctype: Avoid #define replacements in C++ mode.
34884         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
34885         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
34886         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
34887         In C++, define a namespaced alias symbol.
34888         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
34889         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
34890         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
34891         rule.
34892
34893         wchar: Avoid #define replacements in C++ mode.
34894         * lib/wchar.in.h: Include c++defs.h.
34895         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
34896         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
34897         symbol.
34898         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
34899         * modules/wchar (Depends-on): Add c++defs.
34900         (Makefile.am): Update wchar.h rule.
34901
34902         unistd: Avoid #define replacements in C++ mode.
34903         * lib/unistd.in.h: Include c++defs.h.
34904         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
34905         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
34906         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
34907         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
34908         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
34909         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
34910         symbol.
34911         (environ): Update.
34912         * modules/unistd (Depends-on): Add c++defs.
34913         (Makefile.am): Update unistd.h rule.
34914
34915         time: Avoid #define replacements in C++ mode.
34916         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
34917         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
34918         define a namespaced alias symbol.
34919         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
34920         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
34921         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
34922         * modules/time (Depends-on): Add c++defs, warn-on-use.
34923         (Makefile.am): Update time.h rule.
34924         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34925         * modules/nanosleep (configure.ac): Likewise.
34926         * modules/strptime (configure.ac): Likewise.
34927         * modules/timegm (configure.ac): Likewise.
34928
34929         sys_time: Avoid #define replacements in C++ mode.
34930         * lib/sys_time.in.h: Include c++defs.h.
34931         (gettimeofday): In C++, define a namespaced alias symbol.
34932         * modules/sys_time (Depends-on): Add c++defs.
34933         (Makefile.am): Update sys/time.h rule.
34934
34935         sys_stat: Avoid #define replacements in C++ mode.
34936         * lib/sys_stat.in.h: Include c++defs.h.
34937         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
34938         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
34939         namespaced alias symbol.
34940         In C++, define a namespaced alias symbol.
34941         * modules/sys_stat (Depends-on): Add c++defs.
34942         (Makefile.am): Update sys/stat.h rule.
34943
34944         sys_socket: Avoid #define replacements in C++ mode.
34945         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
34946         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
34947         definitions also when the system has a <sys/socket.h>.
34948         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34949         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
34950         In C++, define a namespaced alias symbol.
34951         * modules/sys_socket (Depends-on): Add c++defs.
34952         (Makefile.am): Update sys/socket.h rule.
34953
34954         sys_select: Avoid #define replacements in C++ mode.
34955         * lib/sys_select.in.h: Include c++defs.h. Enable the function
34956         definitions also when the system has a <sys/select.h>.
34957         (select): In C++, define a namespaced alias symbol.
34958         * modules/sys_select (Depends-on): Add c++defs.
34959         (Makefile.am): Update sys/select.h rule.
34960
34961         sys_ioctl: Avoid #define replacements in C++ mode.
34962         * lib/sys_ioctl.in.h: Include c++defs.h.
34963         (ioctl): In C++, define a namespaced alias symbol.
34964         * modules/sys_ioctl (Depends-on): Add c++defs.
34965         (Makefile.am): Update sys/ioctl.h rule.
34966
34967         string: Avoid #define replacements in C++ mode.
34968         * lib/string.in.h: Include c++defs.h.
34969         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
34970         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34971         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34972         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
34973         strsignal, strverscmp): In C++, define a namespaced alias symbol.
34974         * modules/string (Depends-on): Add c++defs.
34975         (Makefile.am): Update string.h rule.
34976
34977         stdlib: Avoid #define replacements in C++ mode.
34978         * lib/stdlib.in.h: Include c++defs.h.
34979         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
34980         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
34981         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
34982         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
34983         symbol.
34984         * modules/stdlib (Depends-on): Add c++defs.
34985         (Makefile.am): Update stdlib.h rule.
34986
34987         stdio: Avoid #define replacements in C++ mode.
34988         * lib/stdio.in.h: Include c++defs.h.
34989         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
34990         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
34991         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
34992         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
34993         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
34994         namespaced alias symbol.
34995         * modules/stdio (Depends-on): Add c++defs.
34996         (Makefile.am): Update stdio.h rule.
34997
34998         spawn: Avoid #define replacements in C++ mode.
34999         * lib/spawn.in.h: Include c++defs.h.
35000         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35001         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35002         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35003         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35004         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35005         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35006         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35007         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35008         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35009         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35010         In C++, define a namespaced alias symbol.
35011         * modules/spawn (Depends-on): Add c++defs.
35012         (Makefile.am): Update spawn.h rule.
35013
35014         signal: Avoid #define replacements in C++ mode.
35015         * lib/signal.in.h: Include c++defs.h.
35016         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35017         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35018         namespaced alias symbol.
35019         * modules/signal (Depends-on): Add c++defs.
35020         (Makefile.am): Update signal.h rule.
35021
35022         search: Avoid #define replacements in C++ mode.
35023         * lib/search.in.h: Include c++defs.h.
35024         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35025         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35026         symbol.
35027         * modules/search (Depends-on): Add c++defs.
35028         (Makefile.am): Update search.h rule.
35029
35030         math: Avoid #define replacements in C++ mode.
35031         * lib/math.in.h: Include c++defs.h.
35032         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35033         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35034         trunc, truncl): In C++, define a namespaced alias symbol.
35035         * modules/math (Depends-on): Add c++defs.
35036         (Makefile.am): Update math.h rule.
35037
35038         locale: Avoid #define replacements in C++ mode.
35039         * lib/locale.in.h: Include c++defs.h.
35040         (duplocale): In C++, define a namespaced alias symbol.
35041         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35042         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35043         * modules/locale (Depends-on): Add c++defs.
35044         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35045
35046         langinfo: Avoid #define replacements in C++ mode.
35047         * lib/langinfo.in.h: Include c++defs.h.
35048         (nl_langinfo): In C++, define a namespaced alias symbol.
35049         * modules/langinfo (Depends-on): Add c++defs.
35050         (Makefile.am): Update langinfo.h rule.
35051
35052         iconv-h: Avoid #define replacements in C++ mode.
35053         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35054         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35055         symbol.
35056         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35057         whenever iconv is present.
35058         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35059         (Makefile.am): Update iconv.h rule.
35060
35061         glob: Avoid #define replacements in C++ mode.
35062         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35063         (_gl_glob_errfunc_fn): New type.
35064         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35065         symbol.
35066         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35067         (Makefile.am): Update glob.h rule.
35068
35069         fcntl-h: Avoid #define replacements in C++ mode.
35070         * lib/fcntl.in.h: Include c++defs.h.
35071         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35072         * modules/fcntl-h (Depends-on): Add c++defs.
35073         (Makefile.am): Update fcntl.h rule.
35074
35075         dirent: Avoid #define replacements in C++ mode.
35076         * lib/dirent.in.h: Include c++defs.h.
35077         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35078         namespaced alias symbol.
35079         (dirfd): Update declaration.
35080         * modules/dirent (Depends-on): Add c++defs.
35081         (Makefile.am): Update dirent.h rule.
35082
35083         ctype: Make it usable in C++ code.
35084         * lib/ctype.in.h: Include c++defs.h.
35085         (isblank): Declare as extern "C".
35086         * modules/ctype (Depends-on): Add c++defs.
35087         (Makefile.am): Update ctype.h rule.
35088
35089         New module 'c++defs'.
35090         * modules/c++defs: New file.
35091         * build-aux/c++defs.h: New file.
35092         Reported by John W. Eaton <jwe@gnu.org>.
35093
35094 2010-03-07  Bruno Haible  <bruno@clisp.org>
35095
35096         logb: Provide missing declaration for Cygwin.
35097         * lib/math.in.h (logb): New declaration.
35098         * m4/logb.m4: New file.
35099         * modules/logb (Files): Add m4/logb.m4.
35100         (Depends-on): Add math.
35101         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35102         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35103         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35104         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35105         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35106
35107 2010-03-07  Bruno Haible  <bruno@clisp.org>
35108
35109         Fix test-cond link error.
35110         * tests/test-cond.c: Include <stdio.h>.
35111
35112 2010-03-07  Bruno Haible  <bruno@clisp.org>
35113
35114         Fix test-dirent-safer link error.
35115         * modules/dirent-safer-tests (Makefile.am): Define
35116         test_dirent_safer_LDADD.
35117
35118 2010-03-07  Bruno Haible  <bruno@clisp.org>
35119
35120         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35121         among default module list.
35122
35123 2010-03-07  Bruno Haible  <bruno@clisp.org>
35124
35125         Fix link error on platforms with GNU libiconv.
35126         * modules/unistr/u8-strcoll-tests (Makefile): Define
35127         test_u8_strcoll_LDADD.
35128         * modules/unistr/u16-strcoll-tests (Makefile): Define
35129         test_u16_strcoll_LDADD.
35130         * modules/unistr/u32-strcoll-tests (Makefile): Define
35131         test_u32_strcoll_LDADD.
35132
35133 2010-03-07  Bruno Haible  <bruno@clisp.org>
35134
35135         Use POSIX declarations for socket functions.
35136         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35137         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35138         rpl_sendto): Change declaration to match POSIX.
35139         * lib/connect.c (rpl_connect): Likewise.
35140         * lib/accept.c (rpl_accept): Likewise.
35141         * lib/bind.c (rpl_bind): Likewise.
35142         * lib/getpeername.c (rpl_getpeername): Likewise.
35143         * lib/getsockname.c (rpl_getsockname): Likewise.
35144         * lib/recv.c (rpl_recv): Likewise.
35145         * lib/send.c (rpl_send): Likewise.
35146         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35147         * lib/sendto.c (rpl_sendto): Likewise.
35148
35149 2010-03-06  Bruno Haible  <bruno@clisp.org>
35150
35151         Clarify access, euidaccess, faccessat.
35152         * doc/posix-functions/faccessat.texi: Mention security problem under
35153         "Other problems", not "Portability problems".
35154         * doc/posix-functions/access.texi: Likewise. Mention a related security
35155         problem.
35156         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35157         * lib/euidaccess.c: Add comments about platforms.
35158         * lib/unistd.in.h (access, euidaccess): Add warnings.
35159
35160 2010-03-07  Bruno Haible  <bruno@clisp.org>
35161
35162         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35163         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35164         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35165         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35166         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35167         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35168         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35169         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35170         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35171         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35172         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35173         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35174         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35175         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35176         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35177         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35178         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35179         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35180         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35181         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35182         Likewise.
35183         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35184         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35185         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35186         Likewise.
35187         * tests/test-spawn.c (main): Make it work when
35188         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35189
35190 2010-03-07  Bruno Haible  <bruno@clisp.org>
35191
35192         Fix incorrect Makefile.am generation in German locale.
35193         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35194         Execute sed command with character range in C locale.
35195
35196 2010-03-06  Bruno Haible  <bruno@clisp.org>
35197
35198         Tests for module 'iconv-h'.
35199         * modules/iconv-h-tests: New file.
35200         * tests/test-iconv-h.c: New file.
35201
35202         New module 'iconv-h'.
35203         * modules/iconv-h: New file.
35204         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35205         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35206         (configure.ac): Remove gl_ICONV_H.
35207         (Makefile.am): Remove rule for iconv.h.
35208
35209 2010-03-06  Bruno Haible  <bruno@clisp.org>
35210
35211         More consistent naming of *.m4 files.
35212         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35213         * modules/wctype (Files): Update.
35214
35215         More consistent naming of *.m4 files.
35216         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35217         * modules/wchar (Files): Update.
35218
35219 2010-03-06  Jim Meyering  <meyering@redhat.com>
35220
35221         euidaccess: relax license to LGPLv2+
35222         * modules/euidaccess (License): Relax to LGPLv2+.
35223
35224 2010-03-06  Bruno Haible  <bruno@clisp.org>
35225
35226         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35227         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35228         (Makefile.am): Augment lib_SOURCES instead.
35229
35230 2010-03-04  Jim Meyering  <meyering@redhat.com>
35231
35232         utime: remove obsolete module
35233         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35234         unnecessary for years, and has been marked as obsolete for 10 months.
35235         * modules/utime: Remove file.
35236         * lib/utime.c: Remove file.
35237         * m4/utime.m4: Remove file.
35238         * m4/utimes-null.m4: Remove file.
35239         * doc/posix-functions/utime.texi (utime): Remove reference to
35240         the module.  Move the sole "fixed by gnulib" item into the
35241         "problems not fixed by Gnulib" list.
35242         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35243
35244 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35245
35246         * modules/exit (License): Relax license to LGPLv2+.
35247         (Status): Mark as obsolete.
35248         * NEWS: Mention deprecated 'exit' module.
35249         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35250         of now obsolete 'exit'.
35251
35252 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35253
35254         fts-lgpl: remove unused module
35255         * modules/fts-lgpl: Remove.
35256         * MODULES.html.sh (func_all_modules): Adjust.
35257         * check-module (find_included_lib_files): Adjust.
35258         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35259
35260 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35261
35262         copy-acl: enhance Solaris ACL error handling
35263         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35264         * lib/set-mode-acl.c (qset_acl): Likewise.
35265
35266 2010-03-02  Bruno Haible  <bruno@clisp.org>
35267
35268         spawn: Don't override the system defined values on FreeBSD 8.
35269         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35270         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35271         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35272         if HAVE_POSIX_SPAWN is 1.
35273         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35274
35275 2010-03-01  Bruno Haible  <bruno@clisp.org>
35276
35277         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35278         regarding Automake.
35279
35280 2010-02-25  Bruno Haible  <bruno@clisp.org>
35281
35282         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35283         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35284         setting, not afterwards.
35285         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35286
35287 2010-02-24  Eric Blake  <eblake@redhat.com>
35288
35289         bootstrap, git-version-gen: use timestamp
35290         * build-aux/git-version-gen (scriptversion): Force UTC.
35291         * build-aux/bootstrap (scriptversion): New variable.
35292
35293         bootstrap: allow older git
35294         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35295         older than 1.6.4.  Requested by the libvirt project.
35296
35297 2010-02-23  Eric Blake  <eblake@redhat.com>
35298
35299         warn-on-use: work with old autoconf
35300         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35301         AS_VAR semantics of autoconf 2.60.
35302         Reported by Bruno Haible.
35303
35304         bootstrap: improve some comments
35305         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35306         clarification comments.
35307
35308         gettimeofday: provide correct function
35309         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35310         when replacement is declared, otherwise provide gettimeofday.
35311         Reported by Michael Goffioul.
35312
35313 2010-02-23  Jim Meyering  <meyering@redhat.com>
35314
35315         lib-ignore: relax license to "unlimited", not LGPLv2+
35316         * modules/lib-ignore (License): Relax to "unlimited".
35317
35318 2010-02-23  Jim Meyering  <meyering@redhat.com>
35319
35320         lib-ignore: relax license to LGPLv2+
35321         * modules/lib-ignore (License): Relax to LGPLv2+.
35322
35323 2010-02-22  Eric Blake  <eblake@redhat.com>
35324
35325         lseek: avoid bash 3.2 broken pipe bug
35326         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35327         warning from bash 3.2.
35328         Reported by Ben Pfaff, with analysis from Bruno Haible.
35329
35330         bootstrap: support non-FSF copyright holder
35331         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35332         bootstrap.conf override of COPYRIGHT_HOLDER.
35333         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35334
35335         bootstrap: interoperate with gettext 0.14.1
35336         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35337
35338         bootstrap: allow for alternate submodule location
35339         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35340         hardcoding submodule location.
35341         (gnulib_mk): Allow direct use of Makefile.am.
35342
35343         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35344         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35345         rather than reconfiguring where the submodule points.
35346
35347         gettimeofday: restore support for platforms that lack function
35348         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35349         replacement if function is missing.
35350         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35351         * modules/sys_time (Makefile.am): Substitute it.
35352         * lib/sys_time.in.h (gettimeofday): Check it.
35353         Reported by Michael Goffioul.
35354
35355 2010-02-21  Bruno Haible  <bruno@clisp.org>
35356
35357         * lib/stdio.in.h (obstack_printf): Fix typo.
35358
35359 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35360
35361         vc-list-files: use bzr ls's -R option
35362         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35363         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35364
35365 2010-02-21  Jim Meyering  <meyering@redhat.com>
35366
35367         init.sh: fix EXEEXT shims to work also for names like test-prog
35368         * tests/init.sh: Re-exec a better shell, when needed.
35369         If the current shell lacks support for posix $(...), an init.sh-using
35370         test will now try to find a shell that supports that.  If EXEEXT is
35371         nonempty, we also require support for hyphen-in-alias-name and shell
35372         substitutions like ${var#glob}.  Failure to find such a shell results
35373         in a skipped test.
35374
35375 2010-02-21  Bruno Haible  <bruno@clisp.org>
35376
35377         Really work around around "broken pipe" error message from bash 3.2.
35378         * gnulib-tool (func_reset_sigpipe): Remove function.
35379         (echo): In bash 3.2, define to a function that uses printf.
35380         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35381
35382 2010-02-20  Bruno Haible  <bruno@clisp.org>
35383
35384         Restore support for automake 1.9.6 with autoconf 2.61.
35385         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35386         Reported by James Youngman <jay@gnu.org>.
35387
35388 2010-02-20  Bruno Haible  <bruno@clisp.org>
35389
35390         Improve *printf warning condition.
35391         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35392         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35393         and the function is overridden due to SIGPIPE emulation.
35394
35395 2010-02-20  Bruno Haible  <bruno@clisp.org>
35396
35397         * lib/stdio.in.h: Tweak comments.
35398
35399 2010-02-19  Bruno Haible  <bruno@clisp.org>
35400
35401         Make it easier to find modules. New gnulib-tool option '--find'.
35402         * gnulib-tool: New option --find.
35403         (func_usage): Document it.
35404         (func_sanitize_modulelist): New function, extracted from
35405         func_all_modules.
35406         (func_all_modules): Invoke it.
35407         * doc/gnulib-tool.texi (Which modules?): New node.
35408
35409 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35410
35411         * lib/sys_select.in.h: Provide select replacement even if
35412         sys/select.h exists on a system, for Interix.
35413
35414 2010-02-18  Jim Meyering  <meyering@redhat.com>
35415
35416         init.sh: don't use $(...) just yet
35417         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35418         to accommodate e.g., Solaris' /bin/sh.
35419
35420 2010-02-17  Bruno Haible  <bruno@clisp.org>
35421
35422         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35423         Reported by Ludovic Courtès <ludo@gnu.org>.
35424
35425 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35426
35427         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35428         linking with -lintl.
35429
35430 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35431
35432         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35433         if not provided by the system's netdb.h.  Reported by
35434         ludo@gnu.org (Ludovic Courtès).
35435
35436 2010-02-15  Jim Meyering  <meyering@redhat.com>
35437
35438         init.sh: improve portability and efficiency
35439         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35440         "dummy" in a for loop.
35441         Use '!', not '^' to select the complement of a character set used
35442         in a "case" statement.
35443         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35444         Suggestions from Eric Blake.
35445
35446         init.sh: automatically accommodate programs with the .exe suffix
35447         Automatically arrange for an invocation of "prog" to execute the
35448         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35449         may use the simpler "prog", yet still work when built on a system
35450         that requires specifying the added suffix.
35451         Do this by constructing a function named "prog" that invokes
35452         "prog.exe" for each .exe file in selected directories.
35453         * tests/init.sh (find_exe_basenames_): New function.
35454         (create_exe_shim_functions_): New function.
35455         (path_prepend_): Use it.
35456
35457         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35458         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35459         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35460
35461 2010-02-14  Jim Meyering  <meyering@redhat.com>
35462
35463         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35464         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35465         (sc_prohibit_hash_pjw_without_use): New rule.
35466
35467         maint.mk: allow the default upload destination dir to be overridden
35468         * top/maint.mk (upload_dest_dir_): Define with a default that
35469         preserves the status quo.
35470         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35471         Reported by Peter Simons.
35472
35473         maint.mk: prohibit inclusion of "hash.h" without_use
35474         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35475
35476 2010-02-10  Jim Meyering  <meyering@redhat.com>
35477
35478         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35479         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35480
35481 2010-02-09  Eric Blake  <ebb9@byu.net>
35482         and Bruno Haible  <bruno@clisp.org>
35483
35484         obstack-printf-posix: ensure declaration
35485         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35486         extracted from gl_FUNC_OBSTACK_PRINTF.
35487         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35488         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35489         Likewise.
35490         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35491         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35492         0.
35493
35494 2010-02-08  Bruno Haible  <bruno@clisp.org>
35495
35496         gnulib-tool: Fix typo in 2010-02-07 commit.
35497         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35498         Reported by Eric Blake.
35499
35500 2010-02-07  Bruno Haible  <bruno@clisp.org>
35501
35502         gnulib-tool: Fix up caching patches.
35503         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35504         option --no-cache. Use associative arrays when supported by the shell.
35505         (sed_comments): New variable.
35506         (modcache): Renamed from do_cache.
35507         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35508         abbreviate unnecessarily.
35509         (have_associative): New variable.
35510         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35511         way also for ksh and zsh.
35512         (func_init_sed_convert_to_cache_statements): New function, extracted
35513         from func_cache_lookup_module. Add support for associative arrays.
35514         Don't set the c_MODULE_cached variable here. Ignore all lines before
35515         the first field header. Remove only the final newline, not all trailing
35516         newlines. Support empty fields correctly. Limit the use of 'eval' to
35517         assignments.
35518         (func_get_description, func_get_status, func_get_notice,
35519         func_get_applicability, func_get_filelist, func_get_dependencies,
35520         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35521         func_get_automake_snippet, func_get_include_directive,
35522         func_get_link_directive, func_get_license, func_get_maintainer):
35523         Update documentation. List the unoptimized code first. Add support for
35524         associative arrays. Limit the use of 'eval' to assignments.
35525         (func_get_applicability): Undo stylistic pessimisations.
35526         (func_get_automake_snippet, func_get_include_directive): Reduce code
35527         duplication.
35528         (func_modules_transitive_closure, func_modules_add_dummy,
35529         func_modules_notice, func_modules_to_filelist, func_add_file,
35530         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35531         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35532         func_create_testdir, func_create_megatestdir): Update documentation.
35533
35534 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35535
35536         * gnulib-tool (func_cache_lookup_module): Store the module name
35537         belonging to the cache variable; error out if two different
35538         module names map to the same cache variable name.
35539
35540 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35541
35542         gnulib-tool: Make caching optional.
35543         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35544         Update matching short versions of --no-changelog.
35545         (func_usage): Update.
35546         (sed_extract_cache_prog): Renamed from ...
35547         (sed_extract_prog): ... this; revert to old extraction script.
35548         (func_get_description, func_get_status)
35549         (func_get_notice, func_get_applicability, func_get_filelist)
35550         (func_get_dependencies, func_get_autoconf_early_snippet)
35551         (func_get_autoconf_snippet, func_get_automake_snippet)
35552         (func_get_include_directive, func_get_link_directive)
35553         (func_get_license, func_get_maintainer): If $do_cache is false,
35554         use old, non-caching extraction scripts.
35555         Suggestion by Bruno Haible.
35556
35557 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35558
35559         gnulib-tool: cache module metainformation.
35560         * gnulib-tool (sed_extract_prog): Match newline before each
35561         header, and rewrite header to a shell variable suffix.
35562         (func_cache_var, func_cache_lookup_module): New functions,
35563         to turn a module name into a cache variable prefix, and to
35564         look up and cache module metainformation.
35565         (func_get_description, func_get_status)
35566         (func_get_notice, func_get_applicability, func_get_filelist)
35567         (func_get_dependencies, func_get_autoconf_early_snippet)
35568         (func_get_autoconf_snippet, func_get_automake_snippet)
35569         (func_get_include_directive, func_get_link_directive)
35570         (func_get_license, func_get_maintainer): Use
35571         func_cache_lookup_module.
35572
35573 2010-02-07  Bruno Haible  <bruno@clisp.org>
35574
35575         fnctl: Fix missing dependency.
35576         * modules/fcntl (Depends-on): Add getdtablesize.
35577         Reported by John W. Eaton <jwe@gnu.org>.
35578
35579 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35580
35581         Argp: fix recognition of short alias options.
35582
35583         * lib/argp-parse.c (convert_options): Fix improper use of
35584         `|' between character values.
35585         * tests/test-argp.c (group1_option): New alias option
35586         --read (-r).
35587         (group1_parser): Special handling for 'r'.
35588         (test15): New test case.
35589         (test_fun): Add test15.
35590         * tests/test-argp-2.sh: Update expected --help and --usage
35591         outputs.
35592
35593 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35594
35595         * tests/test-argp.c: Fix indentation.
35596
35597 2010-02-04  Eric Blake  <ebb9@byu.net>
35598
35599         gettimeofday: expose type of second argument
35600         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35601         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35602         * tests/test-gettimeofday.c: Use it to silence warning.
35603         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
35604         the issue.
35605
35606 2010-02-03  Jim Meyering  <meyering@redhat.com>
35607
35608         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
35609         * lib/regcomp.c (TYPE_SIGNED): Define.
35610         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
35611
35612         regcomp.c: avoid a new -Wshadow warning
35613         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
35614
35615 2010-02-01  Jim Meyering  <meyering@redhat.com>
35616
35617         removing useless parentheses in cpp #define directives
35618         For motivation, see commit c0221df4, "define STREQ(a,b)
35619         consistently, removing useless parentheses"
35620         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
35621         * lib/mountlist.c (MNT_IGNORE): Likewise.
35622         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
35623
35624 2010-02-01  Eric Blake  <ebb9@byu.net>
35625
35626         sys_time: use link-warning
35627         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
35628         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
35629         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
35630         * modules/sys_time (Depends-on): Add warn-on-use.
35631         (Makefile.am): Always build replacement.
35632         (configure.ac): Update substitutions.
35633         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
35634         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
35635         bother with SYS_TIME_H.
35636         * modules/gettimeofday (configure.ac): Declare indicator.
35637         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
35638         in use.
35639
35640         closein-tests: silence compiler warning
35641         * tests/test-closein.c (main): Ignore fread result.
35642         * modules/closein-tests (Depends-on): Add ignore-value.
35643
35644         tests: silence warning about system return
35645         * tests/test-areadlink-with-size.c (main): Ignore system result.
35646         * tests/test-areadlink.c (main): Likewise.
35647         * tests/test-areadlinkat-with-size.c (main): Likewise.
35648         * tests/test-areadlinkat.c (main): Likewise.
35649         * tests/test-canonicalize-lgpl.c (main): Likewise.
35650         * tests/test-canonicalize.c (main): Likewise.
35651         * tests/test-chown.c (main): Likewise.
35652         * tests/test-fchownat.c (main): Likewise.
35653         * tests/test-fdutimensat.c (main): Likewise.
35654         * tests/test-fstatat.c (main): Likewise.
35655         * tests/test-futimens.c (main): Likewise.
35656         * tests/test-lchown.c (main): Likewise.
35657         * tests/test-link.c (main): Likewise.
35658         * tests/test-linkat.c (main): Likewise.
35659         * tests/test-lstat.c (main): Likewise.
35660         * tests/test-mkdir.c (main): Likewise.
35661         * tests/test-mkdirat.c (main): Likewise.
35662         * tests/test-mkfifo.c (main): Likewise.
35663         * tests/test-mkfifoat.c (main): Likewise.
35664         * tests/test-mknod.c (main): Likewise.
35665         * tests/test-readlink.c (main): Likewise.
35666         * tests/test-remove.c (main): Likewise.
35667         * tests/test-rename.c (main): Likewise.
35668         * tests/test-renameat.c (main): Likewise.
35669         * tests/test-rmdir.c (main): Likewise.
35670         * tests/test-symlink.c (main): Likewise.
35671         * tests/test-symlinkat.c (main): Likewise.
35672         * tests/test-unlink.c (main): Likewise.
35673         * tests/test-unlinkat.c (main): Likewise.
35674         * tests/test-utimens.c (main): Likewise.
35675         * tests/test-utimensat.c (main): Likewise.
35676         * modules/areadlink-tests (Depends-on): Add ignore-value.
35677         * modules/areadlink-with-size-tests (Depends-on): Likewise.
35678         * modules/areadlinkat-tests (Depends-on): Likewise.
35679         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
35680         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35681         * modules/canonicalize-tests (Depends-on): Likewise.
35682         * modules/chown-tests (Depends-on): Likewise.
35683         * modules/fdutimensat-tests (Depends-on): Likewise.
35684         * modules/futimens-tests (Depends-on): Likewise.
35685         * modules/lchown-tests (Depends-on): Likewise.
35686         * modules/link-tests (Depends-on): Likewise.
35687         * modules/linkat-tests (Depends-on): Likewise.
35688         * modules/lstat-tests (Depends-on): Likewise.
35689         * modules/mkdir-tests (Depends-on): Likewise.
35690         * modules/mkfifo-tests (Depends-on): Likewise.
35691         * modules/mkfifoat-tests (Depends-on): Likewise.
35692         * modules/mknod-tests (Depends-on): Likewise.
35693         * modules/openat-tests (Depends-on): Likewise.
35694         * modules/readlink-tests (Depends-on): Likewise.
35695         * modules/remove-tests (Depends-on): Likewise.
35696         * modules/rename-tests (Depends-on): Likewise.
35697         * modules/renameat-tests (Depends-on): Likewise.
35698         * modules/rmdir-tests (Depends-on): Likewise.
35699         * modules/symlink-tests (Depends-on): Likewise.
35700         * modules/symlinkat-tests (Depends-on): Likewise.
35701         * modules/unlink-tests (Depends-on): Likewise.
35702         * modules/utimens-tests (Depends-on): Likewise.
35703         * modules/utimensat-tests (Depends-on): Likewise.
35704
35705 2010-01-31  Bruno Haible  <bruno@clisp.org>
35706
35707         Perform the same test for many <math.h> functions.
35708         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
35709         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
35710         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
35711         of gl_MATHFUNC.
35712         * modules/acos (configure.ac): Likewise.
35713         * modules/asin (configure.ac): Likewise.
35714         * modules/atan (configure.ac): Likewise.
35715         * modules/atan2 (configure.ac): Likewise.
35716         * modules/cbrt (configure.ac): Likewise.
35717         * modules/copysign (configure.ac): Likewise.
35718         * modules/cos (configure.ac): Likewise.
35719         * modules/cosh (configure.ac): Likewise.
35720         * modules/erf (configure.ac): Likewise.
35721         * modules/erfc (configure.ac): Likewise.
35722         * modules/exp (configure.ac): Likewise.
35723         * modules/fmod (configure.ac): Likewise.
35724         * modules/hypot (configure.ac): Likewise.
35725         * modules/j0 (configure.ac): Likewise.
35726         * modules/j1 (configure.ac): Likewise.
35727         * modules/jn (configure.ac): Likewise.
35728         * modules/lgamma (configure.ac): Likewise.
35729         * modules/log (configure.ac): Likewise.
35730         * modules/log10 (configure.ac): Likewise.
35731         * modules/log1p (configure.ac): Likewise.
35732         * modules/pow (configure.ac): Likewise.
35733         * modules/remainder (configure.ac): Likewise.
35734         * modules/sin (configure.ac): Likewise.
35735         * modules/sinh (configure.ac): Likewise.
35736         * modules/tan (configure.ac): Likewise.
35737         * modules/tanh (configure.ac): Likewise.
35738         * modules/y0 (configure.ac): Likewise.
35739         * modules/y1 (configure.ac): Likewise.
35740         * modules/yn (configure.ac): Likewise.
35741         Suggested by Paolo Bonzini.
35742
35743 2010-01-31  Bruno Haible  <bruno@clisp.org>
35744
35745         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
35746
35747 2010-01-31  Bruno Haible  <bruno@clisp.org>
35748
35749         Work around getdelim() bug on FreeBSD 8.0.
35750         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
35751         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
35752         not work.
35753         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
35754         is 1.
35755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
35756         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
35757         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
35758         a non-zero size.
35759         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
35760
35761 2010-01-31  Bruno Haible  <bruno@clisp.org>
35762
35763         Work around getline() bug on FreeBSD 8.0.
35764         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
35765         and a non-zero size.
35766         * tests/test-getline.c (main): Likewise.
35767         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
35768         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
35769
35770 2010-01-28  Eric Blake  <ebb9@byu.net>
35771
35772         regex: fix build failure
35773         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
35774         platforms.
35775
35776 2010-01-28  Jim Meyering  <meyering@redhat.com>
35777
35778         regex: do not ignore memory allocation failure
35779         * lib/regex_internal.c (create_cd_newstate): Detect
35780         re_node_set_init_copy failure.   Extracted from glibc commit
35781         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35782
35783         regex: sync more white-space changes from libc
35784         * lib/regex_internal.c: White-space only changes.
35785         * lib/regexec.c: Likewise.
35786
35787         regex: add many uses of __attribute_warn_unused_result__
35788         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
35789         * lib/regexec.c: Likewise.
35790         Extracted from a messy glibc commit.
35791
35792         regcomp.c: spelling and merge-artifact from glibc
35793         * lib/regcomp.c: Merge remainder of glibc's
35794         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35795
35796         regcomp.c: sync white-space changes from glibc
35797         * lib/regcomp.c: Merge to accommodate white space
35798         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35799
35800         regcomp.c: do not ignore internal return values
35801         * lib/regcomp.c: Do not ignore internal return values.
35802         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
35803         but without its white-space changes and spelling fixes.
35804
35805         regex_internal.h: define __attribute_warn_unused_result__
35806         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
35807
35808         maint: add a syntax-check rule to check for vulnerable Makefile.in
35809         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
35810
35811 2010-01-27  Jim Meyering  <meyering@redhat.com>
35812
35813         ncftpput-ftp: clean up spaces
35814         * build-aux/ncftpput-ftp: Make Copyright line consistent.
35815         Remove trailing blanks.
35816
35817 2010-01-27  Simon Josefsson  <simon@josefsson.org>
35818
35819         * build-aux/git-version-gen: Fix copyright statement.
35820         * build-aux/gnupload: Likewise.
35821         * tests/test-arcfour.c: Likewise.
35822         * tests/test-arctwo.c: Likewise.
35823         * tests/test-count-one-bits.c: Likewise.
35824         * tests/test-crc.c: Likewise.
35825         * tests/test-des.c: Likewise.
35826         * tests/test-gc-arcfour.c: Likewise.
35827         * tests/test-gc-arctwo.c: Likewise.
35828         * tests/test-gc-des.c: Likewise.
35829         * tests/test-gc-hmac-md5.c: Likewise.
35830         * tests/test-gc-hmac-sha1.c: Likewise.
35831         * tests/test-gc-md2.c: Likewise.
35832         * tests/test-gc-md4.c: Likewise.
35833         * tests/test-gc-md5.c: Likewise.
35834         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35835         * tests/test-gc-rijndael.c: Likewise.
35836         * tests/test-gc-sha1.c: Likewise.
35837         * tests/test-gc.c: Likewise.
35838         * tests/test-gethostname.c: Likewise.
35839         * tests/test-gettimeofday.c: Likewise.
35840         * tests/test-hash.c: Likewise.
35841         * tests/test-hmac-md5.c: Likewise.
35842         * tests/test-hmac-sha1.c: Likewise.
35843         * tests/test-md2.c: Likewise.
35844         * tests/test-md4.c: Likewise.
35845         * tests/test-md5.c: Likewise.
35846         * tests/test-memchr.c: Likewise.
35847         * tests/test-memchr2.c: Likewise.
35848         * tests/test-memcmp.c: Likewise.
35849         * tests/test-memmem.c: Likewise.
35850         * tests/test-memrchr.c: Likewise.
35851         * tests/test-rawmemchr.c: Likewise.
35852         * tests/test-read-file.c: Likewise.
35853         * tests/test-rijndael.c: Likewise.
35854         * tests/test-sockets.c: Likewise.
35855         * tests/test-strchrnul.c: Likewise.
35856         * tests/test-strstr.c: Likewise.
35857         * tests/test-strtod.c: Likewise.
35858         * build-aux/ncftpput-ftp: Likewise.
35859
35860 2010-01-26  Eric Blake  <ebb9@byu.net>
35861
35862         ignore-value: update recommended header name
35863         * modules/ignore-value (Include): Only use <> for headers that
35864         exist in glibc.
35865
35866 2010-01-26  Jim Meyering  <meyering@redhat.com>
35867
35868         test-userspec.c: avoid compiler warnings
35869         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
35870         and "initialization discards qualifiers..." warnings.
35871         Put the first "uid" in its own scope, and make char* members "const".
35872
35873 2010-01-25  Bruno Haible  <bruno@clisp.org>
35874
35875         gnulib-tool: Make warning diagnostics consistent.
35876         * gnulib-tool (func_warning): New function.
35877         Use it everywhere where gnulib-tool produces output to stderr and it is
35878         not a fatal error.
35879
35880 2010-01-25  Bruno Haible  <bruno@clisp.org>
35881
35882         Fix test dependencies.
35883         * modules/xstrtol-tests (Depends-on): Add inttypes.
35884         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
35885
35886 2010-01-25 Pádraig Brady <P@draigBrady.com>
35887
35888         syntax-check: detect incorrect boolean macro values in config.h
35889         * modules/maintainer-makefile (configure.ac): Parameterize the location
35890         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
35891         The logic is from Eric Blake and the location indicated by Jim Meyering.
35892         Note the more natural CONFIG_HEADER name is prohibited by automake
35893         for backwards compatibility reasons.
35894         * top/maint.mk (sc_Wundef_boolean): New rule.
35895
35896 2010-01-25  Jim Meyering  <meyering@redhat.com>
35897
35898         bootstrap: detect MacOS 10.6's shasum, too
35899         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
35900         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
35901
35902 2010-01-23  Jim Meyering  <meyering@redhat.com>
35903
35904         xstrtoll: new module
35905         * modules/xstrtoll: New file.
35906         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
35907         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
35908         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
35909         ./configure fails if you use this module and lack "long long".
35910         * modules/xstrtoll-tests: New module.
35911         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
35912         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
35913         new init.sh-based test framework.
35914
35915 2010-01-24  Bruno Haible  <bruno@clisp.org>
35916
35917         Tests for module 'yn'.
35918         * modules/yn-tests: New file.
35919         * tests/test-yn.c: New file.
35920
35921         Tests for module 'y1'.
35922         * modules/y1-tests: New file.
35923         * tests/test-y1.c: New file.
35924
35925         Tests for module 'y0'.
35926         * modules/y0-tests: New file.
35927         * tests/test-y0.c: New file.
35928
35929         Tests for module 'tanh'.
35930         * modules/tanh-tests: New file.
35931         * tests/test-tanh.c: New file.
35932
35933         Tests for module 'tan'.
35934         * modules/tan-tests: New file.
35935         * tests/test-tan.c: New file.
35936
35937         Tests for module 'sqrt'.
35938         * modules/sqrt-tests: New file.
35939         * tests/test-sqrt.c: New file.
35940
35941         Tests for module 'sinh'.
35942         * modules/sinh-tests: New file.
35943         * tests/test-sinh.c: New file.
35944
35945         Tests for module 'sin'.
35946         * modules/sin-tests: New file.
35947         * tests/test-sin.c: New file.
35948
35949         Tests for module 'rint'.
35950         * modules/rint-tests: New file.
35951         * tests/test-rint.c: New file.
35952
35953         Tests for module 'remainder'.
35954         * modules/remainder-tests: New file.
35955         * tests/test-remainder.c: New file.
35956
35957         Tests for module 'pow'.
35958         * modules/pow-tests: New file.
35959         * tests/test-pow.c: New file.
35960
35961         Tests for module 'nextafter'.
35962         * modules/nextafter-tests: New file.
35963         * tests/test-nextafter.c: New file.
35964
35965         Tests for module 'modf'.
35966         * modules/modf-tests: New file.
35967         * tests/test-modf.c: New file.
35968
35969         Tests for module 'logb'.
35970         * modules/logb-tests: New file.
35971         * tests/test-logb.c: New file.
35972
35973         Tests for module 'log1p'.
35974         * modules/log1p-tests: New file.
35975         * tests/test-log1p.c: New file.
35976
35977         Tests for module 'log10'.
35978         * modules/log10-tests: New file.
35979         * tests/test-log10.c: New file.
35980
35981         Tests for module 'log'.
35982         * modules/log-tests: New file.
35983         * tests/test-log.c: New file.
35984
35985         Tests for module 'lgamma'.
35986         * modules/lgamma-tests: New file.
35987         * tests/test-lgamma.c: New file.
35988
35989         Tests for module 'ldexp'.
35990         * modules/ldexp-tests: New file.
35991         * tests/test-ldexp.c: New file.
35992
35993         Tests for module 'jn'.
35994         * modules/jn-tests: New file.
35995         * tests/test-jn.c: New file.
35996
35997         Tests for module 'j1'.
35998         * modules/j1-tests: New file.
35999         * tests/test-j1.c: New file.
36000
36001         Tests for module 'j0'.
36002         * modules/j0-tests: New file.
36003         * tests/test-j0.c: New file.
36004
36005         Tests for module 'hypot'.
36006         * modules/hypot-tests: New file.
36007         * tests/test-hypot.c: New file.
36008
36009         Tests for module 'fmod'.
36010         * modules/fmod-tests: New file.
36011         * tests/test-fmod.c: New file.
36012
36013         Tests for module 'fabs'.
36014         * modules/fabs-tests: New file.
36015         * tests/test-fabs.c: New file.
36016
36017         Tests for module 'exp'.
36018         * modules/exp-tests: New file.
36019         * tests/test-exp.c: New file.
36020
36021         Tests for module 'erfc'.
36022         * modules/erfc-tests: New file.
36023         * tests/test-erfc.c: New file.
36024
36025         Tests for module 'erf'.
36026         * modules/erf-tests: New file.
36027         * tests/test-erf.c: New file.
36028
36029         Tests for module 'cosh'.
36030         * modules/cosh-tests: New file.
36031         * tests/test-cosh.c: New file.
36032
36033         Tests for module 'cos'.
36034         * modules/cos-tests: New file.
36035         * tests/test-cos.c: New file.
36036
36037         Tests for module 'copysign'.
36038         * modules/copysign-tests: New file.
36039         * tests/test-copysign.c: New file.
36040
36041         Tests for module 'cbrt'.
36042         * modules/cbrt-tests: New file.
36043         * tests/test-cbrt.c: New file.
36044
36045         Tests for module 'atan2'.
36046         * modules/atan2-tests: New file.
36047         * tests/test-atan2.c: New file.
36048
36049         Tests for module 'atan'.
36050         * modules/atan-tests: New file.
36051         * tests/test-atan.c: New file.
36052
36053         Tests for module 'asin'.
36054         * modules/asin-tests: New file.
36055         * tests/test-asin.c: New file.
36056
36057         Tests for module 'acos'.
36058         * modules/acos-tests: New file.
36059         * tests/test-acos.c: New file.
36060
36061 2010-01-24  Bruno Haible  <bruno@clisp.org>
36062
36063         Fix tests for common <math.h> functions.
36064         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36065         code snippet that references the function pointer, rather than merely
36066         calling the function. Substitute the FUNC_LIBM variable.
36067         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36068         * modules/acos (configure.ac): Likewise.
36069         * modules/asin (configure.ac): Likewise.
36070         * modules/atan (configure.ac): Likewise.
36071         * modules/atan2 (configure.ac): Likewise.
36072         * modules/cbrt (configure.ac): Likewise.
36073         * modules/copysign (configure.ac): Likewise.
36074         * modules/cos (configure.ac): Likewise.
36075         * modules/cosh (configure.ac): Likewise.
36076         * modules/erf (configure.ac): Likewise.
36077         * modules/erfc (configure.ac): Likewise.
36078         * modules/exp (configure.ac): Likewise.
36079         * modules/fabs (configure.ac): Likewise.
36080         * modules/fmod (configure.ac): Likewise.
36081         * modules/hypot (configure.ac): Likewise.
36082         * modules/j0 (configure.ac): Likewise.
36083         * modules/j1 (configure.ac): Likewise.
36084         * modules/jn (configure.ac): Likewise.
36085         * modules/ldexp (configure.ac): Likewise.
36086         * modules/lgamma (configure.ac): Likewise.
36087         * modules/log (configure.ac): Likewise.
36088         * modules/log10 (configure.ac): Likewise.
36089         * modules/log1p (configure.ac): Likewise.
36090         * modules/logb (configure.ac): Likewise.
36091         * modules/modf (configure.ac): Likewise.
36092         * modules/nextafter (configure.ac): Likewise.
36093         * modules/pow (configure.ac): Likewise.
36094         * modules/remainder (configure.ac): Likewise.
36095         * modules/rint (configure.ac): Likewise.
36096         * modules/sin (configure.ac): Likewise.
36097         * modules/sinh (configure.ac): Likewise.
36098         * modules/tan (configure.ac): Likewise.
36099         * modules/tanh (configure.ac): Likewise.
36100         * modules/y0 (configure.ac): Likewise.
36101         * modules/y1 (configure.ac): Likewise.
36102         * modules/yn (configure.ac): Likewise.
36103
36104 2010-01-24  Bruno Haible  <bruno@clisp.org>
36105
36106         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36107         * tests/test-acosl.c (x): New variable.
36108         (main): Store argument in x and fetch it from x.
36109         * tests/test-asinl.c (x): New variable.
36110         (main): Store argument in x and fetch it from x.
36111         * tests/test-atanl.c (x): New variable.
36112         (main): Store argument in x and fetch it from x.
36113         * tests/test-cosl.c (x): New variable.
36114         (main): Store argument in x and fetch it from x.
36115         * tests/test-expl.c (x): New variable.
36116         (main): Store argument in x and fetch it from x.
36117         * tests/test-logl.c (x): New variable.
36118         (main): Store argument in x and fetch it from x.
36119         * tests/test-sinl.c (x): New variable.
36120         (main): Store argument in x and fetch it from x.
36121         * tests/test-sqrtl.c (x): New variable.
36122         (main): Store argument in x and fetch it from x.
36123         * tests/test-tanl.c (x): New variable.
36124         (main): Store argument in x and fetch it from x.
36125
36126 2010-01-24  Bruno Haible  <bruno@clisp.org>
36127
36128         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36129         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36130         assignments to the initial TESTS_ENVIRONMENT.
36131         * doc/gnulib.texi (Unit test modules): Document it.
36132         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36133         TESTS_ENVIRONMENT.
36134         * modules/btowc-tests (Makefile.am): Likewise.
36135         * modules/c-stack-tests (Makefile.am): Likewise.
36136         * modules/c-strcase-tests (Makefile.am): Likewise.
36137         * modules/copy-file-tests (Makefile.am): Likewise.
36138         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36139         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36140         * modules/mbrtowc-tests (Makefile.am): Likewise.
36141         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36142         * modules/mbscasestr-tests (Makefile.am): Likewise.
36143         * modules/mbschr-tests (Makefile.am): Likewise.
36144         * modules/mbscspn-tests (Makefile.am): Likewise.
36145         * modules/mbsinit-tests (Makefile.am): Likewise.
36146         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36147         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36148         * modules/mbspbrk-tests (Makefile.am): Likewise.
36149         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36150         * modules/mbsrchr-tests (Makefile.am): Likewise.
36151         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36152         * modules/mbsspn-tests (Makefile.am): Likewise.
36153         * modules/mbsstr-tests (Makefile.am): Likewise.
36154         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36155         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36156         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36157         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36158         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36159         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36160         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36161         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36162         * modules/wcrtomb-tests (Makefile.am): Likewise.
36163         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36164         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36165         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36166         assignments from TESTS_ENVIRONMENT.
36167         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36168         augmentation.
36169         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36170         * modules/atexit-tests (Makefile.am): Likewise.
36171         * modules/binary-io-tests (Makefile.am): Likewise.
36172         * modules/closein-tests (Makefile.am): Likewise.
36173         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36174         * modules/exclude-tests (Makefile.am): Likewise.
36175         * modules/fflush-tests (Makefile.am): Likewise.
36176         * modules/fpending-tests (Makefile.am): Likewise.
36177         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36178         * modules/freadahead-tests (Makefile.am): Likewise.
36179         * modules/freadptr-tests (Makefile.am): Likewise.
36180         * modules/freadseek-tests (Makefile.am): Likewise.
36181         * modules/fseek-tests (Makefile.am): Likewise.
36182         * modules/fseeko-tests (Makefile.am): Likewise.
36183         * modules/ftell-tests (Makefile.am): Likewise.
36184         * modules/ftello-tests (Makefile.am): Likewise.
36185         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36186         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36187         * modules/lseek-tests (Makefile.am): Likewise.
36188         * modules/parse-duration-tests (Makefile.am): Likewise.
36189         * modules/perror-tests (Makefile.am): Likewise.
36190         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36191         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36192         * modules/pipe-tests (Makefile.am): Likewise.
36193         * modules/pread-tests (Makefile.am): Likewise.
36194         * modules/printf-posix-tests (Makefile.am): Likewise.
36195         * modules/select-tests (Makefile.am): Likewise.
36196         * modules/sigpipe-tests (Makefile.am): Likewise.
36197         * modules/tsearch-tests (Makefile.am): Likewise.
36198         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36199         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36200         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36201         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36202         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36203         * modules/version-etc-tests (Makefile.am): Likewise.
36204         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36205         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36206         * modules/xalloc-die-tests (Makefile.am): Likewise.
36207         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36208         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36209         * modules/xstrtol-tests (Makefile.am): Likewise.
36210         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36211         * modules/yesno-tests (Makefile.am): Likewise.
36212         Suggested by Jim Meyering.
36213
36214 2010-01-24  Bruno Haible  <bruno@clisp.org>
36215
36216         More documentation.
36217         * doc/gnulib.texi (Writing modules): New chapter.
36218         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36219         the new chapter.
36220
36221 2010-01-24  Jim Meyering  <meyering@redhat.com>
36222
36223         maint.mk: do not prepend "./" after filtering
36224         * top/maint.mk (_prepend_srcdir_prefix): New variable
36225         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36226         "./" when $(srcdir) is ".".
36227
36228         define STREQ(a,b) consistently, removing useless parentheses
36229         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36230         since the only risk is that "a" or "b" contains an unparenthesized
36231         comma, but if either did that, STREQ would have 3 or more arguments.
36232         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36233         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36234         * lib/hash-triple.c (STREQ): Likewise.
36235         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36236         * lib/getugroups.c (STREQ): Likewise.
36237
36238 2010-01-23  Jim Meyering  <meyering@redhat.com>
36239
36240         maint.mk: fix syntax-check in a non-srcdir build directory
36241         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36242         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36243
36244 2010-01-22  Jim Meyering  <meyering@redhat.com>
36245
36246         userspec: add unit tests
36247         * tests/test-userspec.c: New file.
36248         * modules/userspec-tests: Likewise.
36249
36250 2010-01-21  Jim Meyering  <meyering@redhat.com>
36251
36252         maint.mk: handle source file names containing "." robustly
36253         * top/maint.mk (_dot_escaped_srcdir): Define.
36254         (VC_LIST): Use it in LHS of sed substitution.
36255
36256 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36257
36258         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36259         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36260         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36261         from a non-srcdir build.
36262
36263 2010-01-20  Eric Blake  <ebb9@byu.net>
36264
36265         warn-on-use: use instead of link-warning
36266         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36267         * modules/unistd (Depends-on, Makefile.am): Likewise.
36268         * modules/arpa_inet (Depends-on): Replace link-warning with
36269         warn-on-use.
36270         (Makefile.am): Update rules accordingly.
36271         * modules/ctype (Depends-on, Makefile.am): Likewise.
36272         * modules/dirent (Depends-on, Makefile.am): Likewise.
36273         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36274         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36275         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36276         * modules/locale (Depends-on, Makefile.am): Likewise.
36277         * modules/math (Depends-on, Makefile.am): Likewise.
36278         * modules/search (Depends-on, Makefile.am): Likewise.
36279         * modules/signal (Depends-on, Makefile.am): Likewise.
36280         * modules/spawn (Depends-on, Makefile.am): Likewise.
36281         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36282         * modules/string (Depends-on, Makefile.am): Likewise.
36283         * modules/strings (Depends-on, Makefile.am): Likewise.
36284         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36285         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36286         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36287         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36288         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36289         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36290         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36291         * modules/wchar (Depends-on, Makefile.am): Likewise.
36292         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36293         should be poisoned.
36294         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36295         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36296         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36297         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36298         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36299         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36300         * m4/math_h.m4 (gl_MATH_H): Likewise.
36301         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36302         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36303         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36304         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36305         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36306         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36307         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36308         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36309         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36310         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36312         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36313         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36314         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36315         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36316         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36317         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36318         GL_LINK_WARNING.
36319         * lib/ctype.in.h: Likewise.
36320         * lib/dirent.in.h: Likewise.
36321         * lib/fcntl.in.h: Likewise.
36322         * lib/inttypes.in.h: Likewise.
36323         * lib/langinfo.in.h: Likewise.
36324         * lib/locale.in.h: Likewise.
36325         * lib/math.in.h: Likewise.
36326         * lib/search.in.h: Likewise.
36327         * lib/signal.in.h: Likewise.
36328         * lib/spawn.in.h: Likewise.
36329         * lib/stdio.in.h: Likewise.
36330         * lib/stdlib.in.h: Likewise.
36331         * lib/string.in.h: Likewise.
36332         * lib/strings.in.h: Likewise.
36333         * lib/sys_file.in.h: Likewise.
36334         * lib/sys_ioctl.in.h: Likewise.
36335         * lib/sys_select.in.h: Likewise.
36336         * lib/sys_socket.in.h: Likewise.
36337         * lib/sys_stat.in.h: Likewise.
36338         * lib/sys_times.in.h: Likewise.
36339         * lib/sys_utsname.in.h: Likewise.
36340         * lib/unistd.in.h: Likewise.
36341         * lib/wchar.in.h: Likewise.
36342
36343 2010-01-20  Bruno Haible  <bruno@clisp.org>
36344
36345         Avoid duplicate -lm.
36346         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36347         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36348         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36349         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36350         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36351         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36352         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36353         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36354         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36355         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36356         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36357         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36358         Reported by Paolo Bonzini.
36359
36360 2010-01-19  Bruno Haible  <bruno@clisp.org>
36361
36362         langinfo, nl_langinfo: Relicense under LGPLv2+.
36363         * modules/langinfo (License): Change to LGPLv2+.
36364         * modules/nl_langinfo (License): Likewise.
36365         Patch by David Lutterkort <lutter@redhat.com>.
36366
36367 2010-01-19  Bruno Haible  <bruno@clisp.org>
36368
36369         Avoid compilation error with cc on OSF/1 5.1.
36370         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36371         statement, not before.
36372         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36373
36374 2010-01-18  Bruno Haible  <bruno@clisp.org>
36375
36376         Avoid a link error due to the __printf__ symbol.
36377         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36378         and 2.6.x.
36379         (__format__, __printf__): Remove definitions.
36380         * lib/argp-fmtstream.h: Likewise.
36381         * lib/argp.h: Likewise.
36382         * lib/error.h: Likewise.
36383         * lib/vasnprintf.h: Likewise.
36384         * lib/xprintf.h: Likewise.
36385         * lib/xvasprintf.h: Likewise.
36386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36387
36388 2010-01-18  Bruno Haible  <bruno@clisp.org>
36389
36390         Tests for module 'tanl'.
36391         * modules/tanl-tests: New file.
36392         * tests/test-tanl.c: New file.
36393
36394         Tests for module 'sqrtl'.
36395         * modules/sqrtl-tests: New file.
36396         * tests/test-sqrtl.c: New file.
36397
36398         Tests for module 'sinl'.
36399         * modules/sinl-tests: New file.
36400         * tests/test-sinl.c: New file.
36401
36402         Tests for module 'logl'.
36403         * modules/logl-tests: New file.
36404         * tests/test-logl.c: New file.
36405
36406         Tests for module 'expl'.
36407         * modules/expl-tests: New file.
36408         * tests/test-expl.c: New file.
36409
36410         Tests for module 'cosl'.
36411         * modules/cosl-tests: New file.
36412         * tests/test-cosl.c: New file.
36413
36414         Tests for module 'atanl'.
36415         * modules/atanl-tests: New file.
36416         * tests/test-atanl.c: New file.
36417
36418         Tests for module 'asinl'.
36419         * modules/asinl-tests: New file.
36420         * tests/test-asinl.c: New file.
36421
36422         Tests for module 'acosl'.
36423         * modules/acosl-tests: New file.
36424         * tests/test-acosl.c: New file.
36425
36426         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36427         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36428         tanl): Use the standard gnulib idiom.
36429         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36430         * lib/sinl.c: Likewise.
36431         * lib/tanl.c: Don't include trigl.c.
36432         (kernel_tanl): Make static.
36433         * lib/sincosl.c: Include trigl.h first.
36434         * lib/trigl.c: Likewise.
36435         * m4/acosl.m4: New file.
36436         * m4/asinl.m4: New file.
36437         * m4/atanl.m4: New file.
36438         * m4/cosl.m4: New file.
36439         * m4/expl.m4: New file.
36440         * m4/logl.m4: New file.
36441         * m4/sinl.m4: New file.
36442         * m4/sqrtl.m4: New file.
36443         * m4/tanl.m4: New file.
36444         * m4/mathl.m4: Remove file.
36445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36446         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36447         Don't initialize GNULIB_MATHL.
36448         * modules/acosl: New file.
36449         * modules/asinl: New file.
36450         * modules/atanl: New file.
36451         * modules/cosl: New file.
36452         * modules/expl: New file.
36453         * modules/logl: New file.
36454         * modules/sinl: New file.
36455         * modules/sqrtl: New file.
36456         * modules/tanl: New file.
36457         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36458         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36459         substitute GNULIB_MATHL.
36460         * modules/mathl: Rewritten.
36461         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36462         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36463         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36464         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36465         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36466         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36467         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36468         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36469         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36470
36471 2010-01-18  Bruno Haible  <bruno@clisp.org>
36472
36473         sqrt: Make gl_FUNC_SQRT requirable.
36474         * m4/sqrt.m4: New file.
36475         * modules/sqrt (Files): Add it.
36476         (configure.ac): Invoke gl_FUNC_SQRT.
36477
36478 2010-01-18  Bruno Haible  <bruno@clisp.org>
36479
36480         New modules for common <math.h> functions.
36481         * m4/mathfunc.m4: New file.
36482         * modules/acos: New file.
36483         * modules/asin: New file.
36484         * modules/atan: New file.
36485         * modules/atan2: New file.
36486         * modules/cbrt: New file.
36487         * modules/copysign: New file.
36488         * modules/cos: New file.
36489         * modules/cosh: New file.
36490         * modules/erf: New file.
36491         * modules/erfc: New file.
36492         * modules/exp: New file.
36493         * modules/fabs: New file.
36494         * modules/fmod: New file.
36495         * modules/hypot: New file.
36496         * modules/j0: New file.
36497         * modules/j1: New file.
36498         * modules/jn: New file.
36499         * modules/ldexp: New file.
36500         * modules/lgamma: New file.
36501         * modules/log: New file.
36502         * modules/log10: New file.
36503         * modules/log1p: New file.
36504         * modules/logb: New file.
36505         * modules/modf: New file.
36506         * modules/nextafter: New file.
36507         * modules/pow: New file.
36508         * modules/remainder: New file.
36509         * modules/rint: New file.
36510         * modules/sin: New file.
36511         * modules/sinh: New file.
36512         * modules/sqrt: New file.
36513         * modules/tan: New file.
36514         * modules/tanh: New file.
36515         * modules/y0: New file.
36516         * modules/y1: New file.
36517         * modules/yn: New file.
36518         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36519         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36520         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36521         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36522         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36523         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36524         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36525         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36526         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36527         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36528         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36529         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36530         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36531         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36532         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36533         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36534         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36535         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36536         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36537         * doc/posix-functions/log.texi: Mention the 'log' module.
36538         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36539         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36540         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36541         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36542         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36543         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36544         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36545         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36546         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36547         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36548         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36549         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36550         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36551         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36552         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36553         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36554
36555 2010-01-18  Jim Meyering  <meyering@redhat.com>
36556
36557         ignore-value: relax license to LGPLv2+
36558         * modules/ignore-value (License): Relax to LGPLv2+.
36559
36560         getdate: don't leak when TZ contains two or more '"'s
36561         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36562         double quote in TZ after the first one.
36563
36564         readtokens: do not leak internal token_lengths buffer
36565         * lib/readtokens.c (readtokens): Free the local, lengths,
36566         when the supplied "token_lengths" parameter is NULL.
36567
36568 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36569
36570         Fix a couple of missing LIBTHREAD link failures on AIX.
36571         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36572         $(LIBTHREAD).
36573         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36574
36575         Link test-poll against INET_PTON_LIB.
36576         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36577         for inet_pton on Solaris 10.
36578
36579 2010-01-17  Bruno Haible  <bruno@clisp.org>
36580
36581         unistdio/*-sprintf: Fix typo in module description.
36582         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36583         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36584         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36585         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36586         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36587         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36588         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36589         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36590
36591 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36592
36593         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36594         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36595         variables in shell case patterns, for AIX and HP-UX ksh.
36596
36597         Split large sed scripts, for HP-UX sed.
36598         * modules/stdio: Split sed scripts around 50 sed commands,
36599         to avoid HP-UX limit of 99 commands, in the near future.
36600         * modules/string: Likewise.
36601         * modules/unistd: Likewise.
36602
36603         gnulib-tool: avoid writing in the current directory.
36604         * gnulib-tool (func_emit_lib_Makefile_am)
36605         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
36606         not in the current directory, so concurrent gnulib-tool
36607         instances do not interfere.
36608
36609 2010-01-16  Jim Meyering  <meyering@redhat.com>
36610
36611         doc: update users.txt
36612         * users.txt: Add grep.
36613         (diffutils, gzip): Update URLs.
36614
36615 2010-01-12  Bruno Haible  <bruno@clisp.org>
36616
36617         posix_spawn: Avoid test failure on Cygwin.
36618         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
36619         characters.
36620         Reported by Simon Josefsson.
36621
36622 2010-01-12  Bruno Haible  <bruno@clisp.org>
36623
36624         * tests/test-cond.c (main): When skipping the test, show the reason.
36625
36626 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36627
36628         * lib/striconv.c (str_cd_iconv): Avoid if before free.
36629
36630 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36631
36632         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
36633         VC_LIST_ALWAYS_EXCLUDE_REGEX.
36634
36635 2010-01-12  Eric Blake  <ebb9@byu.net>
36636
36637         build: guarantee AS_VAR_IF
36638         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
36639         (gl_AS_VAR_IF): Move...
36640         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
36641         Reported by Simon Josefsson.
36642
36643 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36644
36645         * lib/stdio.in.h: Fix typo.
36646
36647 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36648
36649         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
36650         libgpg-error.
36651
36652 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36653
36654         * tests/test-xalloc-die.sh: Use $EXEEXT.
36655
36656 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36657             Bruno Haible  <bruno@clisp.org>
36658
36659         getlogin, getlogin_r: Avoid test failure.
36660         * tests/test-getlogin.c: Include <stdio.h>.
36661         (main): Skip the test when the function fails because stdin is not a
36662         tty.
36663         * tests/test-getlogin_r.c: Include <stdio.h>.
36664         (main): Skip the test when the function fails because stdin is not a
36665         tty.
36666
36667 2010-01-11  Eric Blake  <ebb9@byu.net>
36668
36669         tests: avoid more large file warnings
36670         * tests/test-fflush.c: Avoid warning about ftell use.
36671         * tests/test-fseek.c: Avoid warning about fseek use.
36672
36673 2010-01-10  Bruno Haible  <bruno@clisp.org>
36674
36675         nproc: Work better on Linux when /proc and /sys are not mounted.
36676         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
36677         as lower bound when, on glibc/Linux systems,
36678         sysconf (_SC_NPROCESSORS_CONF) returns 1.
36679         Suggested by Pádraig Brady <P@draigbrady.com>.
36680         Reported by Dmitry V. Levin <ldv@altlinux.org>.
36681
36682         nproc: Refactor.
36683         * lib/nproc.c (num_processors_via_affinity_mask): New function,
36684         extracted from num_processors.
36685         (num_processors): Call it.
36686
36687 2010-01-11  Jim Meyering  <meyering@redhat.com>
36688
36689         utimecmp: avoid new warning from upcoming gcc-4.5.0
36690         * lib/utimecmp.c (BILLION): Define using #define rather than an
36691         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
36692
36693 2010-01-11  Eric Blake  <ebb9@byu.net>
36694
36695         math: add portability warnings for classification macros
36696         * modules/math (Depends-on): Add warn-on-use.
36697         (Makefile.am): Provide new substitutions.
36698         * m4/math_h.m4 (gl_MATH_H): Require inline.
36699         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
36700         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
36701         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
36702         implement warnings.
36703
36704         unistd: warn on use of environ without module
36705         * modules/unistd (Depends-on): Add warn-on-use.
36706         (Makefile.am): Provide new substitutions.
36707         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
36708         * lib/unistd.in.h (environ): Wrap with a warning helper function.
36709
36710         stdio: warn on suspicious uses
36711         * modules/stdio (Depends-on): Add warn-on-use.
36712         (Makefile.am): Provide new substitutions.
36713         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
36714         fseeko.
36715         * lib/stdio.in.h (gets): Always warn on use.
36716         (fseek, ftell): Adjust when warnings are issued, and honor
36717         _GL_NO_LARGE_FILES as a way to silence the warning.
36718         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
36719         any warning about large file offsets.
36720         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
36721         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
36722         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
36723         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
36724         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
36725         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
36726         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
36727         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
36728
36729         warn-on-use: new module
36730         * modules/warn-on-use: New file.
36731         * build-aux/warn-on-use.h: Likewise.
36732         * m4/warn-on-use.m4: Likewise.
36733         * MODULES.html.sh (Support for building): Mention it.
36734
36735 2010-01-10  Bruno Haible  <bruno@clisp.org>
36736
36737         Tests for module 'unistr/u32-strdup'.
36738         * modules/unistr/u32-strdup-tests: New file.
36739         * tests/unistr/test-u32-strdup.c: New file.
36740
36741         Tests for module 'unistr/u16-strdup'.
36742         * modules/unistr/u16-strdup-tests: New file.
36743         * tests/unistr/test-u16-strdup.c: New file.
36744
36745         Tests for module 'unistr/u8-strdup'.
36746         * modules/unistr/u8-strdup-tests: New file.
36747         * tests/unistr/test-u8-strdup.c: New file.
36748         * tests/unistr/test-strdup.h: New file.
36749
36750         Tests for module 'unistr/u32-strncmp'.
36751         * modules/unistr/u32-strncmp-tests: New file.
36752         * tests/unistr/test-u32-strncmp.c: New file.
36753
36754         Tests for module 'unistr/u16-strncmp'.
36755         * modules/unistr/u16-strncmp-tests: New file.
36756         * tests/unistr/test-u16-strncmp.c: New file.
36757
36758         Tests for module 'unistr/u8-strncmp'.
36759         * modules/unistr/u8-strncmp-tests: New file.
36760         * tests/unistr/test-u8-strncmp.c: New file.
36761         * tests/unistr/test-strncmp.h: New file.
36762
36763         Tests for module 'unistr/u32-strcoll'.
36764         * modules/unistr/u32-strcoll-tests: New file.
36765         * tests/unistr/test-u32-strcoll.c: New file.
36766
36767         Tests for module 'unistr/u16-strcoll'.
36768         * modules/unistr/u16-strcoll-tests: New file.
36769         * tests/unistr/test-u16-strcoll.c: New file.
36770
36771         Tests for module 'unistr/u8-strcoll'.
36772         * modules/unistr/u8-strcoll-tests: New file.
36773         * tests/unistr/test-u8-strcoll.c: New file.
36774
36775         Tests for module 'unistr/u32-strcmp'.
36776         * modules/unistr/u32-strcmp-tests: New file.
36777         * tests/unistr/test-u32-strcmp.c: New file.
36778         * tests/unistr/test-u32-strcmp.h: New file.
36779
36780         Tests for module 'unistr/u16-strcmp'.
36781         * modules/unistr/u16-strcmp-tests: New file.
36782         * tests/unistr/test-u16-strcmp.c: New file.
36783         * tests/unistr/test-u16-strcmp.h: New file.
36784
36785         Tests for module 'unistr/u8-strcmp'.
36786         * modules/unistr/u8-strcmp-tests: New file.
36787         * tests/unistr/test-u8-strcmp.c: New file.
36788         * tests/unistr/test-u8-strcmp.h: New file.
36789         * tests/unistr/test-strcmp.h: New file.
36790
36791         Tests for module 'unistr/u32-strncat'.
36792         * modules/unistr/u32-strncat-tests: New file.
36793         * tests/unistr/test-u32-strncat.c: New file.
36794
36795         Tests for module 'unistr/u16-strncat'.
36796         * modules/unistr/u16-strncat-tests: New file.
36797         * tests/unistr/test-u16-strncat.c: New file.
36798
36799         Tests for module 'unistr/u8-strncat'.
36800         * modules/unistr/u8-strncat-tests: New file.
36801         * tests/unistr/test-u8-strncat.c: New file.
36802         * tests/unistr/test-strncat.h: New file.
36803
36804         Tests for module 'unistr/u32-strcat'.
36805         * modules/unistr/u32-strcat-tests: New file.
36806         * tests/unistr/test-u32-strcat.c: New file.
36807
36808         Tests for module 'unistr/u16-strcat'.
36809         * modules/unistr/u16-strcat-tests: New file.
36810         * tests/unistr/test-u16-strcat.c: New file.
36811
36812         Tests for module 'unistr/u8-strcat'.
36813         * modules/unistr/u8-strcat-tests: New file.
36814         * tests/unistr/test-u8-strcat.c: New file.
36815         * tests/unistr/test-strcat.h: New file.
36816
36817         Tests for module 'unistr/u32-stpncpy'.
36818         * modules/unistr/u32-stpncpy-tests: New file.
36819         * tests/unistr/test-u32-stpncpy.c: New file.
36820
36821         Tests for module 'unistr/u16-stpncpy'.
36822         * modules/unistr/u16-stpncpy-tests: New file.
36823         * tests/unistr/test-u16-stpncpy.c: New file.
36824
36825         Tests for module 'unistr/u8-stpncpy'.
36826         * modules/unistr/u8-stpncpy-tests: New file.
36827         * tests/unistr/test-u8-stpncpy.c: New file.
36828         * tests/unistr/test-stpncpy.h: New file.
36829
36830         Tests for module 'unistr/u32-strncpy'.
36831         * modules/unistr/u32-strncpy-tests: New file.
36832         * tests/unistr/test-u32-strncpy.c: New file.
36833
36834         Tests for module 'unistr/u16-strncpy'.
36835         * modules/unistr/u16-strncpy-tests: New file.
36836         * tests/unistr/test-u16-strncpy.c: New file.
36837
36838         Tests for module 'unistr/u8-strncpy'.
36839         * modules/unistr/u8-strncpy-tests: New file.
36840         * tests/unistr/test-u8-strncpy.c: New file.
36841         * tests/unistr/test-strncpy.h: New file.
36842
36843         Tests for module 'unistr/u32-stpcpy'.
36844         * modules/unistr/u32-stpcpy-tests: New file.
36845         * tests/unistr/test-u32-stpcpy.c: New file.
36846
36847         Tests for module 'unistr/u16-stpcpy'.
36848         * modules/unistr/u16-stpcpy-tests: New file.
36849         * tests/unistr/test-u16-stpcpy.c: New file.
36850
36851         Tests for module 'unistr/u8-stpcpy'.
36852         * modules/unistr/u8-stpcpy-tests: New file.
36853         * tests/unistr/test-u8-stpcpy.c: New file.
36854         * tests/unistr/test-stpcpy.h: New file.
36855
36856         Tests for module 'unistr/u32-strcpy'.
36857         * modules/unistr/u32-strcpy-tests: New file.
36858         * tests/unistr/test-u32-strcpy.c: New file.
36859
36860         Tests for module 'unistr/u16-strcpy'.
36861         * modules/unistr/u16-strcpy-tests: New file.
36862         * tests/unistr/test-u16-strcpy.c: New file.
36863
36864         Tests for module 'unistr/u8-strcpy'.
36865         * modules/unistr/u8-strcpy-tests: New file.
36866         * tests/unistr/test-u8-strcpy.c: New file.
36867         * tests/unistr/test-strcpy.h: New file.
36868
36869         Tests for module 'unistr/u32-strnlen'.
36870         * modules/unistr/u32-strnlen-tests: New file.
36871         * tests/unistr/test-u32-strnlen.c: New file.
36872
36873         Tests for module 'unistr/u16-strnlen'.
36874         * modules/unistr/u16-strnlen-tests: New file.
36875         * tests/unistr/test-u16-strnlen.c: New file.
36876
36877         Tests for module 'unistr/u8-strnlen'.
36878         * modules/unistr/u8-strnlen-tests: New file.
36879         * tests/unistr/test-u8-strnlen.c: New file.
36880         * tests/unistr/test-strnlen.h: New file.
36881
36882         Tests for module 'unistr/u32-strlen'.
36883         * modules/unistr/u32-strlen-tests: New file.
36884         * tests/unistr/test-u32-strlen.c: New file.
36885
36886         Tests for module 'unistr/u16-strlen'.
36887         * modules/unistr/u16-strlen-tests: New file.
36888         * tests/unistr/test-u16-strlen.c: New file.
36889
36890         Tests for module 'unistr/u8-strlen'.
36891         * modules/unistr/u8-strlen-tests: New file.
36892         * tests/unistr/test-u8-strlen.c: New file.
36893
36894         Tests for module 'unistr/u32-prev'.
36895         * modules/unistr/u32-prev-tests: New file.
36896         * tests/unistr/test-u32-prev.c: New file.
36897
36898         Tests for module 'unistr/u16-prev'.
36899         * modules/unistr/u16-prev-tests: New file.
36900         * tests/unistr/test-u16-prev.c: New file.
36901
36902         Tests for module 'unistr/u8-prev'.
36903         * modules/unistr/u8-prev-tests: New file.
36904         * tests/unistr/test-u8-prev.c: New file.
36905
36906         Tests for module 'unistr/u32-next'.
36907         * modules/unistr/u32-next-tests: New file.
36908         * tests/unistr/test-u32-next.c: New file.
36909
36910         Tests for module 'unistr/u16-next'.
36911         * modules/unistr/u16-next-tests: New file.
36912         * tests/unistr/test-u16-next.c: New file.
36913
36914         Tests for module 'unistr/u8-next'.
36915         * modules/unistr/u8-next-tests: New file.
36916         * tests/unistr/test-u8-next.c: New file.
36917
36918         Tests for module 'unistr/u32-strmbtouc'.
36919         * modules/unistr/u32-strmbtouc-tests: New file.
36920         * tests/unistr/test-u32-strmbtouc.c: New file.
36921
36922         Tests for module 'unistr/u16-strmbtouc'.
36923         * modules/unistr/u16-strmbtouc-tests: New file.
36924         * tests/unistr/test-u16-strmbtouc.c: New file.
36925
36926         Tests for module 'unistr/u8-strmbtouc'.
36927         * modules/unistr/u8-strmbtouc-tests: New file.
36928         * tests/unistr/test-u8-strmbtouc.c: New file.
36929
36930         Tests for module 'unistr/u32-strmblen'.
36931         * modules/unistr/u32-strmblen-tests: New file.
36932         * tests/unistr/test-u32-strmblen.c: New file.
36933
36934         Tests for module 'unistr/u16-strmblen'.
36935         * modules/unistr/u16-strmblen-tests: New file.
36936         * tests/unistr/test-u16-strmblen.c: New file.
36937
36938         Tests for module 'unistr/u8-strmblen'.
36939         * modules/unistr/u8-strmblen-tests: New file.
36940         * tests/unistr/test-u8-strmblen.c: New file.
36941
36942         Tests for module 'unistr/u32-cpy-alloc'.
36943         * modules/unistr/u32-cpy-alloc-tests: New file.
36944         * tests/unistr/test-u32-cpy-alloc.c: New file.
36945
36946         Tests for module 'unistr/u16-cpy-alloc'.
36947         * modules/unistr/u16-cpy-alloc-tests: New file.
36948         * tests/unistr/test-u16-cpy-alloc.c: New file.
36949
36950         Tests for module 'unistr/u8-cpy-alloc'.
36951         * modules/unistr/u8-cpy-alloc-tests: New file.
36952         * tests/unistr/test-u8-cpy-alloc.c: New file.
36953         * tests/unistr/test-cpy-alloc.h: New file.
36954
36955         Tests for module 'unistr/u32-mbsnlen'.
36956         * modules/unistr/u32-mbsnlen-tests: New file.
36957         * tests/unistr/test-u32-mbsnlen.c: New file.
36958
36959         Tests for module 'unistr/u16-mbsnlen'.
36960         * modules/unistr/u16-mbsnlen-tests: New file.
36961         * tests/unistr/test-u16-mbsnlen.c: New file.
36962
36963         Tests for module 'unistr/u8-mbsnlen'.
36964         * modules/unistr/u8-mbsnlen-tests: New file.
36965         * tests/unistr/test-u8-mbsnlen.c: New file.
36966
36967         Tests for module 'unistr/u32-chr'.
36968         * modules/unistr/u32-chr-tests: New file.
36969         * tests/unistr/test-u32-chr.c: New file.
36970
36971         Tests for module 'unistr/u16-chr'.
36972         * modules/unistr/u16-chr-tests: New file.
36973         * tests/unistr/test-u16-chr.c: New file.
36974
36975         Tests for module 'unistr/u8-chr'.
36976         * modules/unistr/u8-chr-tests: New file.
36977         * tests/unistr/test-u8-chr.c: New file.
36978         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
36979
36980         Tests for module 'unistr/u32-cmp2'.
36981         * modules/unistr/u32-cmp2-tests: New file.
36982         * tests/unistr/test-u32-cmp2.c: New file.
36983
36984         Tests for module 'unistr/u16-cmp2'.
36985         * modules/unistr/u16-cmp2-tests: New file.
36986         * tests/unistr/test-u16-cmp2.c: New file.
36987
36988         Tests for module 'unistr/u8-cmp2'.
36989         * modules/unistr/u8-cmp2-tests: New file.
36990         * tests/unistr/test-u8-cmp2.c: New file.
36991         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
36992
36993         Tests for module 'unistr/u32-cmp'.
36994         * modules/unistr/u32-cmp-tests: New file.
36995         * tests/unistr/test-u32-cmp.c: New file.
36996
36997         Tests for module 'unistr/u16-cmp'.
36998         * modules/unistr/u16-cmp-tests: New file.
36999         * tests/unistr/test-u16-cmp.c: New file.
37000
37001         Tests for module 'unistr/u8-cmp'.
37002         * modules/unistr/u8-cmp-tests: New file.
37003         * tests/unistr/test-u8-cmp.c: New file.
37004         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37005
37006         Tests for module 'unistr/u32-set'.
37007         * modules/unistr/u32-set-tests: New file.
37008         * tests/unistr/test-u32-set.c: New file.
37009
37010         Tests for module 'unistr/u16-set'.
37011         * modules/unistr/u16-set-tests: New file.
37012         * tests/unistr/test-u16-set.c: New file.
37013
37014         Tests for module 'unistr/u8-set'.
37015         * modules/unistr/u8-set-tests: New file.
37016         * tests/unistr/test-u8-set.c: New file.
37017         * tests/unistr/test-set.h: New file.
37018
37019         Tests for module 'unistr/u32-move'.
37020         * modules/unistr/u32-move-tests: New file.
37021         * tests/unistr/test-u32-move.c: New file.
37022
37023         Tests for module 'unistr/u16-move'.
37024         * modules/unistr/u16-move-tests: New file.
37025         * tests/unistr/test-u16-move.c: New file.
37026
37027         Tests for module 'unistr/u8-move'.
37028         * modules/unistr/u8-move-tests: New file.
37029         * tests/unistr/test-u8-move.c: New file.
37030         * tests/unistr/test-move.h: New file.
37031
37032         Tests for module 'unistr/u32-cpy'.
37033         * modules/unistr/u32-cpy-tests: New file.
37034         * tests/unistr/test-u32-cpy.c: New file.
37035
37036         Tests for module 'unistr/u16-cpy'.
37037         * modules/unistr/u16-cpy-tests: New file.
37038         * tests/unistr/test-u16-cpy.c: New file.
37039
37040         Tests for module 'unistr/u8-cpy'.
37041         * modules/unistr/u8-cpy-tests: New file.
37042         * tests/unistr/test-u8-cpy.c: New file.
37043         * tests/unistr/test-cpy.h: New file.
37044
37045 2010-01-09  Bruno Haible  <bruno@clisp.org>
37046
37047         Tests for module 'unistr/u32-uctomb'.
37048         * modules/unistr/u32-uctomb-tests: New file.
37049         * tests/unistr/test-u32-uctomb.c: New file.
37050
37051         Tests for module 'unistr/u16-uctomb'.
37052         * modules/unistr/u16-uctomb-tests: New file.
37053         * tests/unistr/test-u16-uctomb.c: New file.
37054
37055         Tests for module 'unistr/u8-uctomb'.
37056         * modules/unistr/u8-uctomb-tests: New file.
37057         * tests/unistr/test-u8-uctomb.c: New file.
37058
37059         Tests for module 'unistr/u32-mbtoucr'.
37060         * modules/unistr/u32-mbtoucr-tests: New file.
37061         * tests/unistr/test-u32-mbtoucr.c: New file.
37062
37063         Tests for module 'unistr/u16-mbtoucr'.
37064         * modules/unistr/u16-mbtoucr-tests: New file.
37065         * tests/unistr/test-u16-mbtoucr.c: New file.
37066
37067         Tests for module 'unistr/u8-mbtoucr'.
37068         * modules/unistr/u8-mbtoucr-tests: New file.
37069         * tests/unistr/test-u8-mbtoucr.c: New file.
37070
37071         Tests for module 'unistr/u32-mbtouc'.
37072         * modules/unistr/u32-mbtouc-tests: New file.
37073         * tests/unistr/test-u32-mbtouc.c: New file.
37074
37075         Tests for module 'unistr/u16-mbtouc'.
37076         * modules/unistr/u16-mbtouc-tests: New file.
37077         * tests/unistr/test-u16-mbtouc.c: New file.
37078
37079         Tests for module 'unistr/u8-mbtouc'.
37080         * modules/unistr/u8-mbtouc-tests: New file.
37081         * tests/unistr/test-u8-mbtouc.c: New file.
37082
37083         Tests for module 'unistr/u32-mbtouc-unsafe'.
37084         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37085         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37086         * tests/unistr/test-u32-mbtouc.h: New file.
37087
37088         Tests for module 'unistr/u16-mbtouc-unsafe'.
37089         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37090         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37091         * tests/unistr/test-u16-mbtouc.h: New file.
37092
37093         Tests for module 'unistr/u8-mbtouc-unsafe'.
37094         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37095         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37096         * tests/unistr/test-u8-mbtouc.h: New file.
37097
37098         Tests for module 'unistr/u32-mblen'.
37099         * modules/unistr/u32-mblen-tests: New file.
37100         * tests/unistr/test-u32-mblen.c: New file.
37101
37102         Tests for module 'unistr/u16-mblen'.
37103         * modules/unistr/u16-mblen-tests: New file.
37104         * tests/unistr/test-u16-mblen.c: New file.
37105
37106         Tests for module 'unistr/u8-mblen'.
37107         * modules/unistr/u8-mblen-tests: New file.
37108         * tests/unistr/test-u8-mblen.c: New file.
37109
37110         Tests for module 'unistr/u32-to-u16'.
37111         * modules/unistr/u32-to-u16-tests: New file.
37112         * tests/unistr/test-u32-to-u16.c: New file.
37113
37114         Tests for module 'unistr/u32-to-u8'.
37115         * modules/unistr/u32-to-u8-tests: New file.
37116         * tests/unistr/test-u32-to-u8.c: New file.
37117
37118         Tests for module 'unistr/u16-to-u32'.
37119         * modules/unistr/u16-to-u32-tests: New file.
37120         * tests/unistr/test-u16-to-u32.c: New file.
37121
37122         Tests for module 'unistr/u16-to-u8'.
37123         * modules/unistr/u16-to-u8-tests: New file.
37124         * tests/unistr/test-u16-to-u8.c: New file.
37125
37126         Tests for module 'unistr/u8-to-u32'.
37127         * modules/unistr/u8-to-u32-tests: New file.
37128         * tests/unistr/test-u8-to-u32.c: New file.
37129
37130         Tests for module 'unistr/u8-to-u16'.
37131         * modules/unistr/u8-to-u16-tests: New file.
37132         * tests/unistr/test-u8-to-u16.c: New file.
37133
37134         Tests for module 'unistr/u32-check'.
37135         * modules/unistr/u32-check-tests: New file.
37136         * tests/unistr/test-u32-check.c: New file.
37137
37138         Tests for module 'unistr/u16-check'.
37139         * modules/unistr/u16-check-tests: New file.
37140         * tests/unistr/test-u16-check.c: New file.
37141
37142         Tests for module 'unistr/u8-check'.
37143         * modules/unistr/u8-check-tests: New file.
37144         * tests/unistr/test-u8-check.c: New file.
37145
37146         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37147         (category_equals): New function.
37148         (main): Add more tests.
37149         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37150
37151         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37152
37153 2010-01-10  Bruno Haible  <bruno@clisp.org>
37154
37155         unistr/u*-strcoll: Try harder to distinguish different strings.
37156         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37157         compare s1 and s2 to see if they are different.
37158
37159 2010-01-10  Bruno Haible  <bruno@clisp.org>
37160
37161         unistr/u*-stpncpy: Fix the return value.
37162         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37163         description of the return value consistent with stpncpy in glibc.
37164         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37165         written non-NUL unit.
37166
37167 2010-01-10  Bruno Haible  <bruno@clisp.org>
37168
37169         unistr/u*-next: Add missing dependencies.
37170         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37171         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37172         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37173
37174 2010-01-10  Bruno Haible  <bruno@clisp.org>
37175
37176         unistr/u8-mbsnlen: Fix return value for incomplete character.
37177         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37178         u8_mblen.
37179         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37180         Remove unistr/u8-mblen.
37181         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37182         u16_mblen.
37183         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37184         Remove unistr/u16-mblen.
37185
37186 2010-01-10  Bruno Haible  <bruno@clisp.org>
37187
37188         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37189         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37190         Reported by Brian Gough <bjg@gnu.org> and
37191         Chris Clayton <chris2553@googlemail.com> via
37192         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37193
37194 2010-01-09  Bruno Haible  <bruno@clisp.org>
37195
37196         unistr/u16-to-u32: Reject invalid input.
37197         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37198         u16_mbtouc.
37199         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37200         Remove unistr/u16-mbtouc.
37201
37202         unistr/u16-to-u8: Reject invalid input.
37203         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37204         u16_mbtouc.
37205         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37206         Remove unistr/u16-mbtouc.
37207
37208         unistr/u8-to-u32: Reject invalid input.
37209         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37210         u8_mbtouc.
37211         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37212         Remove unistr/u8-mbtouc.
37213
37214         unistr/u8-to-u16: Reject invalid input.
37215         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37216         u8_mbtouc.
37217         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37218         Remove unistr/u8-mbtouc.
37219
37220 2010-01-09  Bruno Haible  <bruno@clisp.org>
37221
37222         Tests for module 'getlogin'.
37223         * modules/getlogin-tests: New file.
37224         * tests/test-getlogin.c: New file.
37225
37226         New module 'getlogin'.
37227         * lib/unistd.in.h (getlogin): New declaration.
37228         * lib/getlogin.c: New file.
37229         * m4/getlogin.m4: New file.
37230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37231         HAVE_GETLOGIN.
37232         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37233         HAVE_GETLOGIN.
37234         * modules/getlogin: New file.
37235         * doc/posix-functions/getlogin.texi: Mention the new module.
37236         Reported by John W. Eaton <jwe@gnu.org>.
37237
37238 2010-01-09  Bruno Haible  <bruno@clisp.org>
37239
37240         getlogin_r: Support for native Windows.
37241         * lib/getlogin_r.c: Include <windows.h>
37242         (getlogin_r): Implement for native Windows.
37243         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37244         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37245         via John W. Eaton <jwe@gnu.org>.
37246
37247 2010-01-09  Bruno Haible  <bruno@clisp.org>
37248
37249         getlogin_r: Small fixes.
37250         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37251         succeeds.
37252         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37253         before testing whether getlogin_r is declared. No need to set
37254         HAVE_DECL_GETLOGIN_R to 1.
37255         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37256
37257 2010-01-09  Bruno Haible  <bruno@clisp.org>
37258
37259         * lib/unistd.in.h (getlogin_r): Add comment.
37260
37261 2010-01-09  Bruno Haible  <bruno@clisp.org>
37262
37263         Tests for module 'getlogin_r'.
37264         * modules/getlogin_r-tests: New file.
37265         * tests/test-getlogin_r.c: New file.
37266
37267 2010-01-09  Jim Meyering  <meyering@redhat.com>
37268
37269         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37270         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37271         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37272
37273 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37274
37275         * lib/dup2.c (rpl_dup2): Improve comment.
37276
37277 2010-01-08  Eric Blake  <ebb9@byu.net>
37278
37279         maint.mk: allow packages to add makefile @@ exceptions
37280         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37281         (sc_makefile_check): Rename...
37282         (sc_makefile_at_at_check): ...to this, and use hook.
37283
37284         dup2: work around mingw bug
37285         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37286         Reported by Simon Josefsson.
37287
37288 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37289
37290         glob: Fix C++ compilation.
37291         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37292         C++.
37293
37294 2010-01-07  Bruno Haible  <bruno@clisp.org>
37295
37296         Fix indentation of wctype.in.h, broken since 2007-01-06.
37297         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37298
37299 2010-01-07  Bruno Haible  <bruno@clisp.org>
37300
37301         mbslen: Avoid collision with system function.
37302         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37303         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37304         * m4/mbslen.m4: New file.
37305         * modules/mbslen (Files): Add it.
37306         (configure.ac): Invoke gl_MBSLEN.
37307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37308         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37309         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37310         via Ian Beckwith <ianb@erislabs.net>.
37311
37312 2010-01-07  Bruno Haible  <bruno@clisp.org>
37313
37314         dirent: Document the last fix.
37315         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37316
37317 2010-01-07  Bruno Haible  <bruno@clisp.org>
37318
37319         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37320         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37321         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37322         va_list are defined.
37323         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37324         Reported by Eric Blake.
37325
37326 2010-01-07  Bruno Haible  <bruno@clisp.org>
37327
37328         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37329         * modules/xlist (Depends-on): Add 'list',
37330         * modules/xoset (Depends-on): Add 'oset'.
37331         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37332
37333 2010-01-07  Bruno Haible  <bruno@clisp.org>
37334
37335         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37336         * doc/posix-functions/strncasecmp.texi: Likewise.
37337
37338 2010-01-07  Bruno Haible  <bruno@clisp.org>
37339
37340         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37341
37342 2010-01-07  John W. Eaton  <jwe@octave.org>
37343
37344         wctype: allow C++ use
37345         * lib/wctype.in.h: Add extern "C" block for C++.
37346
37347 2010-01-06  Eric Blake  <ebb9@byu.net>
37348
37349         maint.mk: detect incorrect GFDL usage
37350         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37351
37352 2010-01-06  Jim Meyering  <meyering@redhat.com>
37353         and Eric Blake  <ebb9@byu.net>
37354
37355         maint.mk: ignore multi-line copyright in NEWS
37356         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37357
37358 2010-01-06  Eric Blake  <ebb9@byu.net>
37359
37360         select: add missing dependency
37361         * modules/select-tests (Depends-on): Move sockets dependency...
37362         * modules/select (Depends-on): ...here.
37363         Reported by Ian Beckwith.
37364
37365         doc: regenerate INSTALL
37366         * doc/INSTALL: Reflect recent autoconf update.
37367         * doc/INSTALL.ISO: Likewise.
37368         * doc/INSTALL.UTF-8: Likewise.
37369
37370         pread: fix compilation on glibc
37371         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37372         Reported by Ralf Wildenhues.
37373
37374         dirent: fix test failure
37375         * lib/dirent.in.h (includes): Guarantee ino_t.
37376         Reported by Ralf Wildenhues.
37377
37378 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37379
37380         linkat, renameat: avoid bad free
37381         * lib/at-func2.c (at_func2): Fix typo.
37382         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37383
37384 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37385
37386         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37387         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37388         to avoid failure of symlink test later.
37389
37390 2010-01-06  Eric Blake  <ebb9@byu.net>
37391
37392         stdio, unistd: guarantee ssize_t
37393         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37394         2008 are exposed when needed.
37395         * lib/stdio.in.h (includes): Likewise.
37396         Reported by Ralf Wildenhues.
37397
37398 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37399
37400         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37401         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37402         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37403
37404 2010-01-06  Jim Meyering  <meyering@redhat.com>
37405
37406         readtokens: this module *does* require xalloc.h
37407         It uses only functions that were omitted by the old syntax-check rule.
37408         * lib/readtokens.c: Include "xalloc.h" once again.
37409         * modules/readtokens (Depends-on): Add xalloc.
37410         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37411
37412 2010-01-05  Eric Blake  <ebb9@byu.net>
37413
37414         maint: support 'make announcement' from a VPATH build
37415         * top/maint.mk (announcement): Look for correct NEWS file.
37416
37417 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37418
37419         utimens (fdutimens): ignore a negative FD, per contract
37420         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37421         when we have a valid file descriptor.  Otherwise, using a brand
37422         new glibc (with just-patched futimens that now fails with EBADF)
37423         would cause this function to fail with ENOSYS.
37424         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37425         See also http://bugzilla.redhat.com/552320.
37426
37427 2010-01-05  Eric Blake  <ebb9@byu.net>
37428
37429         strcase: document what it provides
37430         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37431         gnulib module.
37432         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37433         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37434
37435 2010-01-05  Jim Meyering  <meyering@redhat.com>
37436
37437         maint: remove useless inclusions of "xalloc.h"
37438         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37439         * lib/readtokens.c: Likewise.
37440         * lib/same.c: Likewise.
37441         * modules/getloadavg (Depends-on): Remove xalloc.
37442         * modules/readtokens: Likewise.
37443         * modules/same: Likewise.
37444
37445         maint.mk: include 4 more function names in alloca.h-checking regexp
37446         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37447         regexp.  Before, we would give a false-positive (saying alloca.h
37448         is included unnecessarily) when the only uses involved omitted symbols.
37449
37450         xalloc.h: use consistent formatting
37451         * lib/xalloc.h: Move declarations to start in the first column.
37452
37453 2010-01-05  Eric Blake  <ebb9@byu.net>
37454
37455         mkdir: avoid xalloc
37456         * lib/mkdir.c (includes): Drop unused header.
37457         Reported by John W. Eaton.
37458
37459 2010-01-04  Jim Meyering  <meyering@redhat.com>
37460
37461         nl_langinfo: avoid configure-time syntax error
37462         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37463         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37464         the empty string.  Don't let that provoke a shell syntax error.
37465
37466         regcomp, regexec, fnmatch: avoid array bounds read error
37467         * lib/regcomp.c (build_equiv_class): From glibc:
37468         Use only the low 24 bits of a findidx return value as an index
37469         into the weights array.  Patch by Ulrich Drepper:
37470         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37471         * lib/regexec.c (check_node_accept_bytes): Likewise.
37472         * lib/fnmatch_loop.c (FCT): Likewise.
37473
37474         regcomp: skip collseq lookup when there are no rules
37475         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37476         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37477
37478         regcomp: recognize ill-formed { } expressions
37479         * lib/regcomp.c (parse_dup_op): From glibc:
37480         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37481
37482         regcomp: fix typo in comment
37483         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37484         s/satisfy/satisfies/.
37485
37486         regcomp: sync from glibc: remove dead store
37487         * lib/regcomp.c (duplicate_node_closure): Remove useless
37488         search_duplicated_node call and dead store.
37489
37490         regcomp: sync from glibc; always use nl_langinfo
37491         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37492         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37493         * modules/regex (Depends-on): Add nl_langinfo.
37494
37495 2010-01-04  Eric Blake  <ebb9@byu.net>
37496
37497         fdopendir: fix configure test
37498         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37499
37500 2010-01-01  Bruno Haible  <bruno@clisp.org>
37501
37502         wchar: Remove unused configure check.
37503         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37504
37505 2010-01-01  Eric Blake  <ebb9@byu.net>
37506
37507         headers: make check of system header explicit
37508         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37509         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37510         ourselves.
37511         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37512         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37513         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37514         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37515         internals.
37516         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37517         missing.
37518         Suggested by Bruno Haible.
37519
37520 2010-01-01  Jim Meyering  <meyering@redhat.com>
37521
37522         ChangeLog: tweak to eliminate unnecessary copyright line
37523         * ChangeLog: Remove a copyright line that was mistakenly updated
37524         by today's update-copyright run.  Reported by Eric Blake.
37525
37526         test-update-copyright: don't let envvar setting cause test failure
37527         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37528
37529 2010-01-01  Bruno Haible  <bruno@clisp.org>
37530
37531         localename: Avoid gcc warning.
37532         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37533         function if it is not used.
37534
37535 2010-01-01  Jim Meyering  <meyering@redhat.com>
37536
37537         update nearly all FSF copyright year lists to include 2010
37538         Use the same procedure as for 2009, outlined in
37539         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37540
37541         version-etc: set COPYRIGHT_YEAR to 2010
37542         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37543
37544 2009-12-31  Eric Blake  <ebb9@byu.net>
37545
37546         doc: correct availability of cygwin 1.5.x getopt
37547         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37548         variables.
37549         * doc/posix-functions/opterr.texi (opterr): Likewise.
37550         * doc/posix-functions/optind.texi (optind): Likewise.
37551         * doc/posix-functions/optopt.texi (optopt): Likewise.
37552         * doc/posix-functions/tzname.texi (tzname): Likewise.
37553
37554         openat: update maintainer
37555         * modules/openat (Maintainer): Add myself.
37556
37557         utimens: avoid shadowing warning
37558         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37559         buffers into one, to avoid shadowing, as well as avoiding a
37560         redundant stat.
37561         Reported by Jim Meyering.
37562
37563         test-dup2: avoid compiler warning
37564         * tests/test-dup2.c (is_inheritable): Only define if used.
37565
37566 2010-01-01  Bruno Haible  <bruno@clisp.org>
37567
37568         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37569         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37570         defined, use wctomb instead of wcrtomb.
37571
37572 2010-01-01  Bruno Haible  <bruno@clisp.org>
37573
37574         iconv: Reject native Solaris iconv.
37575         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37576         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37577
37578 2009-12-31  Bruno Haible  <bruno@clisp.org>
37579
37580         * tests/test-signal.c (main): Remove test of 'SIG'.
37581
37582 2009-12-31  Bruno Haible  <bruno@clisp.org>
37583
37584         spawn: Fix incomplete fix.
37585         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37586         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37587         warnings for GNULIB_POSIXCHECK again.
37588         Reported by Eric Blake.
37589
37590 2009-12-31  Bruno Haible  <bruno@clisp.org>
37591
37592         Avoid namespace pollution on glibc systems.
37593         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37594         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37595         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37596         glibc systems.
37597
37598 2009-12-31  Bruno Haible  <bruno@clisp.org>
37599
37600         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37601         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37602         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
37603         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37604         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37605         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37606         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37607
37608 2009-12-31  Bruno Haible  <bruno@clisp.org>
37609
37610         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37611         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
37612         afterwards.
37613
37614 2009-12-31  Bruno Haible  <bruno@clisp.org>
37615
37616         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
37617         SYS_UTSNAME_H.
37618
37619 2009-12-31  Bruno Haible  <bruno@clisp.org>
37620
37621         spawn: Fix misapplied patch.
37622         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37623         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37624         warnings for GNULIB_POSIXCHECK.
37625
37626 2009-12-31  Bruno Haible  <bruno@clisp.org>
37627
37628         times: Update after sys_times changed.
37629         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
37630         * modules/times (Files): Add it.
37631         (configure.ac): Invoke gl_FUNC_TIMES.
37632
37633 2009-12-31  Bruno Haible  <bruno@clisp.org>
37634
37635         Use AC_C_INLINE where necessary.
37636         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
37637         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37638         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37639         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37640         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37641         * m4/mbiter.m4 (gl_MBITER): Likewise.
37642         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37643         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37644         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
37645         * modules/u64 (configure.ac): Likewise.
37646
37647 2009-12-31  Bruno Haible  <bruno@clisp.org>
37648
37649         Use AC_C_INLINE instead of module 'inline' where possible.
37650         * modules/inline (Description): Clarify purpose.
37651         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
37652         * modules/count-one-bits (Depends-on): Remove inline.
37653         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
37654         * modules/openat (Depends-on): Remove inline.
37655         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
37656         instead of depending on module 'inline'.
37657         * modules/filevercmp (Depends-on, configure.ac): Likewise.
37658         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
37659         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
37660         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
37661         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
37662         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
37663         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
37664         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
37665         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
37666         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
37667         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
37668         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
37669         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
37670         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
37671         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
37672         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
37673         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
37674         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
37675         Likewise.
37676         * modules/unictype/property-ascii-hex-digit (Depends-on,
37677         configure.ac): Likewise.
37678         * modules/unictype/property-bidi-arabic-digit (Depends-on,
37679         configure.ac): Likewise.
37680         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
37681         configure.ac): Likewise.
37682         * modules/unictype/property-bidi-block-separator (Depends-on,
37683         configure.ac): Likewise.
37684         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
37685         configure.ac): Likewise.
37686         * modules/unictype/property-bidi-common-separator (Depends-on,
37687         configure.ac): Likewise.
37688         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
37689         Likewise.
37690         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
37691         configure.ac): Likewise.
37692         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
37693         configure.ac): Likewise.
37694         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
37695         configure.ac): Likewise.
37696         * modules/unictype/property-bidi-european-digit (Depends-on,
37697         configure.ac): Likewise.
37698         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
37699         configure.ac): Likewise.
37700         * modules/unictype/property-bidi-left-to-right (Depends-on,
37701         configure.ac): Likewise.
37702         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
37703         configure.ac): Likewise.
37704         * modules/unictype/property-bidi-other-neutral (Depends-on,
37705         configure.ac): Likewise.
37706         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
37707         Likewise.
37708         * modules/unictype/property-bidi-segment-separator (Depends-on,
37709         configure.ac): Likewise.
37710         * modules/unictype/property-bidi-whitespace (Depends-on,
37711         configure.ac): Likewise.
37712         * modules/unictype/property-combining (Depends-on, configure.ac):
37713         Likewise.
37714         * modules/unictype/property-composite (Depends-on, configure.ac):
37715         Likewise.
37716         * modules/unictype/property-currency-symbol (Depends-on,
37717         configure.ac): Likewise.
37718         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
37719         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
37720         Likewise.
37721         * modules/unictype/property-default-ignorable-code-point (Depends-on,
37722         configure.ac): Likewise.
37723         * modules/unictype/property-deprecated (Depends-on, configure.ac):
37724         Likewise.
37725         * modules/unictype/property-diacritic (Depends-on, configure.ac):
37726         Likewise.
37727         * modules/unictype/property-extender (Depends-on, configure.ac):
37728         Likewise.
37729         * modules/unictype/property-format-control (Depends-on, configure.ac):
37730         Likewise.
37731         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
37732         Likewise.
37733         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
37734         Likewise.
37735         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
37736         Likewise.
37737         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
37738         Likewise.
37739         * modules/unictype/property-hyphen (Depends-on, configure.ac):
37740         Likewise.
37741         * modules/unictype/property-id-continue (Depends-on, configure.ac):
37742         Likewise.
37743         * modules/unictype/property-id-start (Depends-on, configure.ac):
37744         Likewise.
37745         * modules/unictype/property-ideographic (Depends-on, configure.ac):
37746         Likewise.
37747         * modules/unictype/property-ids-binary-operator (Depends-on,
37748         configure.ac): Likewise.
37749         * modules/unictype/property-ids-trinary-operator (Depends-on,
37750         configure.ac): Likewise.
37751         * modules/unictype/property-ignorable-control (Depends-on,
37752         configure.ac): Likewise.
37753         * modules/unictype/property-iso-control (Depends-on, configure.ac):
37754         Likewise.
37755         * modules/unictype/property-join-control (Depends-on, configure.ac):
37756         Likewise.
37757         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
37758         Likewise.
37759         * modules/unictype/property-line-separator (Depends-on, configure.ac):
37760         Likewise.
37761         * modules/unictype/property-logical-order-exception (Depends-on,
37762         configure.ac): Likewise.
37763         * modules/unictype/property-lowercase (Depends-on, configure.ac):
37764         Likewise.
37765         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
37766         * modules/unictype/property-non-break (Depends-on, configure.ac):
37767         Likewise.
37768         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
37769         Likewise.
37770         * modules/unictype/property-numeric (Depends-on, configure.ac):
37771         Likewise.
37772         * modules/unictype/property-other-alphabetic (Depends-on,
37773         configure.ac): Likewise.
37774         * modules/unictype/property-other-default-ignorable-code-point
37775         (Depends-on, configure.ac): Likewise.
37776         * modules/unictype/property-other-grapheme-extend (Depends-on,
37777         configure.ac): Likewise.
37778         * modules/unictype/property-other-id-continue (Depends-on,
37779         configure.ac): Likewise.
37780         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
37781         Likewise.
37782         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
37783         Likewise.
37784         * modules/unictype/property-other-math (Depends-on, configure.ac):
37785         Likewise.
37786         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
37787         Likewise.
37788         * modules/unictype/property-paired-punctuation (Depends-on,
37789         configure.ac): Likewise.
37790         * modules/unictype/property-paragraph-separator (Depends-on,
37791         configure.ac): Likewise.
37792         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
37793         Likewise.
37794         * modules/unictype/property-pattern-white-space (Depends-on,
37795         configure.ac): Likewise.
37796         * modules/unictype/property-private-use (Depends-on, configure.ac):
37797         Likewise.
37798         * modules/unictype/property-punctuation (Depends-on, configure.ac):
37799         Likewise.
37800         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
37801         Likewise.
37802         * modules/unictype/property-radical (Depends-on, configure.ac):
37803         Likewise.
37804         * modules/unictype/property-sentence-terminal (Depends-on,
37805         configure.ac): Likewise.
37806         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
37807         Likewise.
37808         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
37809         * modules/unictype/property-terminal-punctuation (Depends-on,
37810         configure.ac): Likewise.
37811         * modules/unictype/property-titlecase (Depends-on, configure.ac):
37812         Likewise.
37813         * modules/unictype/property-unassigned-code-value (Depends-on,
37814         configure.ac): Likewise.
37815         * modules/unictype/property-unified-ideograph (Depends-on,
37816         configure.ac): Likewise.
37817         * modules/unictype/property-uppercase (Depends-on, configure.ac):
37818         Likewise.
37819         * modules/unictype/property-variation-selector (Depends-on,
37820         configure.ac): Likewise.
37821         * modules/unictype/property-white-space (Depends-on, configure.ac):
37822         Likewise.
37823         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
37824         Likewise.
37825         * modules/unictype/property-xid-start (Depends-on, configure.ac):
37826         Likewise.
37827         * modules/unictype/property-zero-width (Depends-on, configure.ac):
37828         Likewise.
37829         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
37830         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
37831         Likewise.
37832
37833 2009-12-31  Bruno Haible  <bruno@clisp.org>
37834
37835         Remove unnecessary AC_C_INLINE invocation.
37836         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
37837         since 2009-08-21.
37838
37839 2009-12-31  Jim Meyering  <meyering@redhat.com>
37840
37841         maint.mk: don't require explicit gpg_key_ID in cfg.mk
37842         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
37843         With this change, we can all remove the gpg_key_ID = ... definition
37844         from our respective cfg.mk files.
37845
37846         maint.mk: create announcement template in ~/, not in /tmp
37847         * top/maint.mk (emit_upload_commands): Adjust.
37848         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
37849         Remove temporary file, .ci-msg.
37850
37851 2009-12-31  Eric Blake  <ebb9@byu.net>
37852
37853         link-warning: always build headers with link warnings
37854         * modules/arpa_inet (Makefile.am): Always build replacement
37855         header.
37856         * modules/ctype (Makefile.am): Likewise.
37857         * modules/dirent (Makefile.am): Likewise.
37858         * modules/inttypes (Makefile.am): Likewise.
37859         * modules/langinfo (Makefile.am): Likewise.
37860         * modules/locale (Makefile.am): Likewise.
37861         * modules/spawn (Makefile.am): Likewise.
37862         * modules/sys_file (Makefile.am): Likewise.
37863         * modules/sys_ioctl (Makefile.am): Likewise.
37864         * modules/sys_select (Makefile.am): Likewise.
37865         * modules/sys_socket (Makefile.am): Likewise.
37866         * modules/sys_times (Makefile.am): Likewise.
37867         * modules/sys_utsname (Makefile.am): Likewise.
37868         * modules/sys_wait (Makefile.am): Likewise.
37869         * modules/wchar (Makefile.am): Likewise.
37870         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
37871         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
37872         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
37873         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
37874         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
37875         Likewise.
37876         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37877         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37878         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
37879         Likewise.
37880         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
37881         Likewise.
37882         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37883         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
37884         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
37885         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37886         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37887         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37888         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37889         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
37890         (gl_WCHAR_H_DEFAULTS): Likewise.
37891
37892 2009-12-31  Eric Blake  <ebb9@byu.net>
37893
37894         signal, spawn: use link warnings
37895         * lib/signal.in.h (sigset_t): Make unconditional.
37896         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
37897         (sigpending, sigprocmask, sigaction): Add link warnings.
37898         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
37899         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
37900         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
37901         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
37902         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
37903         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
37904         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
37905         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
37906         (posix_spawn_file_actions_destroy)
37907         (posix_spawn_file_actions_addopen)
37908         (posix_spawn_file_actions_addclose)
37909         (posix_spawn_file_actions_adddup2): Likewise.
37910         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
37911         * tests/test-signal.c (main): Enhance test.
37912
37913         spawn: improve wrapper support
37914         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
37915         (gl_SPAWN_H_DEFAULTS): New defaults.
37916         * modules/spawn (Makefile.am): Substitute them.
37917         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
37918         Only declare if missing or broken.
37919
37920         sys_times, sys_utsname: use include_next
37921         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
37922         header.
37923         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
37924         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37925         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37926         * modules/sys_times (Depends-on): Add include_next.
37927         (Makefile.am): Substitute additional values.
37928         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37929         * lib/sys_times.in.h (includes): Include native header, if
37930         available.
37931         * lib/sys_utsname.in.h (includes): Likewise.
37932         * tests/test-sys_times.c (main): Enhance test.
37933
37934         fdutimensat: revert prior patch
37935         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
37936         utimens.h.
37937         Reported by Bruno Haible.
37938
37939 2009-12-30  Eric Blake  <ebb9@byu.net>
37940
37941         sys_wait: drop link-warning dependency
37942         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
37943         link-warning efforts.
37944         * lib/sys_wait.in.h: Likewise.
37945
37946         fdutimensat: remove bogus dependency
37947         * modules/fdutimensat (Depends-on): Drop inline.
37948
37949         unistd: fix typo
37950         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
37951
37952 2009-12-30  Bruno Haible  <bruno@clisp.org>
37953
37954         Fix compilation error with Solaris cc.
37955         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
37956         * lib/unicase/u16-is-invariant.c: Likewise.
37957         * lib/unicase/u32-is-invariant.c: Likewise.
37958         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37959
37960 2009-12-30  Bruno Haible  <bruno@clisp.org>
37961
37962         Fix test crash.
37963         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
37964         locales.
37965         Reported by Simon Josefsson <simon@josefsson.org>.
37966
37967 2009-12-30  Bruno Haible  <bruno@clisp.org>
37968
37969         Fix compilation error on most platforms.
37970         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
37971         Reported by Simon Josefsson <simon@josefsson.org>
37972         and Nelson H. F. Beebe <beebe@math.utah.edu>.
37973
37974 2009-12-30  Eric Blake  <ebb9@byu.net>
37975
37976         futimens, utimensat: work around ntfs-3g bug
37977         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
37978         a ctime bug is present, and expand workaround to cover ntfs-3g.
37979         * lib/utimens.c (fdutimens, lutimens): Likewise.
37980         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
37981         (validate_timespec): Adjust return value.
37982         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
37983         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37984         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
37985
37986 2009-12-29  Eric Blake  <ebb9@byu.net>
37987
37988         link-warning: make usage consistent
37989         * modules/ctype (Depends-on): Add link-warning.
37990         (Makefile.am): Update rules accordingly.
37991         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37992         * modules/locale (Depends-on, Makefile.am): Likewise.
37993         * modules/sys_file (Makefile.am): Likewise.
37994         * modules/getopt-posix (Makefile.am): Delete unused link warning
37995         efforts.
37996         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
37997         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
37998         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
37999         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38000
38001         stdio: remove unused variables
38002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38003         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38004         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38005
38006         tests: test more substitute headers
38007         * modules/ctype-tests: New file.
38008         * modules/dirent-tests: Likewise.
38009         * modules/spawn-tests: Likewise.
38010         * modules/sys_file-tests: Likewise.
38011         * modules/sys_ioctl-tests: Likewise.
38012         * modules/sys_wait-tests: Likewise.
38013         * tests/test-ctype.c: Likewise.
38014         * tests/test-dirent.c: Likewise.
38015         * tests/test-spawn.c: Likewise.
38016         * tests/test-sys_file.c: Likewise.
38017         * tests/test-sys_ioctl.c: Likewise.
38018         * tests/test-sys_wait.c: Likewise.
38019         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38020         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38021         whether or not flock is in use.
38022
38023         tests: remove License section from module
38024         * modules/arpa_inet-tests: Remove unneeded section.
38025         * modules/byteswap-tests: Likewise.
38026         * modules/ceilf-tests: Likewise.
38027         * modules/ceill-tests: Likewise.
38028         * modules/crypto/des-tests: Likewise.
38029         * modules/crypto/gc-arcfour-tests: Likewise.
38030         * modules/crypto/gc-arctwo-tests: Likewise.
38031         * modules/crypto/gc-des-tests: Likewise.
38032         * modules/crypto/gc-hmac-md5-tests: Likewise.
38033         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38034         * modules/crypto/gc-md2-tests: Likewise.
38035         * modules/crypto/gc-md4-tests: Likewise.
38036         * modules/crypto/gc-md5-tests: Likewise.
38037         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38038         * modules/crypto/gc-rijndael-tests: Likewise.
38039         * modules/crypto/gc-sha1-tests: Likewise.
38040         * modules/crypto/gc-tests: Likewise.
38041         * modules/crypto/md2-tests: Likewise.
38042         * modules/crypto/md4-tests: Likewise.
38043         * modules/fcntl-h-tests: Likewise.
38044         * modules/floorf-tests: Likewise.
38045         * modules/floorl-tests: Likewise.
38046         * modules/frexp-nolibm-tests: Likewise.
38047         * modules/frexp-tests: Likewise.
38048         * modules/frexpl-nolibm-tests: Likewise.
38049         * modules/frexpl-tests: Likewise.
38050         * modules/getaddrinfo-tests: Likewise.
38051         * modules/inttypes-tests: Likewise.
38052         * modules/isfinite-tests: Likewise.
38053         * modules/isinf-tests: Likewise.
38054         * modules/ldexpl-tests: Likewise.
38055         * modules/locale-tests: Likewise.
38056         * modules/math-tests: Likewise.
38057         * modules/netdb-tests: Likewise.
38058         * modules/netinet_in-tests: Likewise.
38059         * modules/printf-frexp-tests: Likewise.
38060         * modules/printf-frexpl-tests: Likewise.
38061         * modules/priv-set-tests: Likewise.
38062         * modules/random_r-tests: Likewise.
38063         * modules/round-tests: Likewise.
38064         * modules/roundf-tests: Likewise.
38065         * modules/roundl-tests: Likewise.
38066         * modules/search-tests: Likewise.
38067         * modules/select-tests: Likewise.
38068         * modules/signal-tests: Likewise.
38069         * modules/stdbool-tests: Likewise.
38070         * modules/stddef-tests: Likewise.
38071         * modules/stdint-tests: Likewise.
38072         * modules/stdio-tests: Likewise.
38073         * modules/stdlib-tests: Likewise.
38074         * modules/string-tests: Likewise.
38075         * modules/strings-tests: Likewise.
38076         * modules/sys_select-tests: Likewise.
38077         * modules/sys_socket-tests: Likewise.
38078         * modules/sys_stat-tests: Likewise.
38079         * modules/sys_time-tests: Likewise.
38080         * modules/sys_utsname-tests: Likewise.
38081         * modules/sysexits-tests: Likewise.
38082         * modules/time-tests: Likewise.
38083         * modules/trunc-tests: Likewise.
38084         * modules/truncf-tests: Likewise.
38085         * modules/truncl-tests: Likewise.
38086         * modules/tsearch-tests: Likewise.
38087         * modules/unistd-tests: Likewise.
38088         * modules/wchar-tests: Likewise.
38089         * modules/wctype-tests: Likewise.
38090
38091         tests: fix license on several tests
38092         * tests/test-des.c: Update to GPLv3+.
38093         * tests/test-flock.c: Likewise.
38094         * tests/test-fsync.c: Likewise.
38095         * tests/test-futimens.h: Likewise.
38096         * tests/test-gc-arcfour.c: Likewise.
38097         * tests/test-gc-arctwo.c: Likewise.
38098         * tests/test-gc-des.c: Likewise.
38099         * tests/test-gc-hmac-md5.c: Likewise.
38100         * tests/test-gc-hmac-sha1.c: Likewise.
38101         * tests/test-gc-md2.c: Likewise.
38102         * tests/test-gc-md4.c: Likewise.
38103         * tests/test-gc-md5.c: Likewise.
38104         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38105         * tests/test-gc-rijndael.c: Likewise.
38106         * tests/test-gc-sha1.c: Likewise.
38107         * tests/test-gc.c: Likewise.
38108         * tests/test-getcwd.c: Likewise.
38109         * tests/test-link.c: Likewise.
38110         * tests/test-link.h: Likewise.
38111         * tests/test-lutimens.h: Likewise.
38112         * tests/test-md2.c: Likewise.
38113         * tests/test-md4.c: Likewise.
38114         * tests/test-mkdir.h: Likewise.
38115         * tests/test-rename.c: Likewise.
38116         * tests/test-rename.h: Likewise.
38117         * tests/test-safe-alloc.c: Likewise.
38118         * tests/test-utimens-common.h: Likewise.
38119         * tests/test-utimens.h: Likewise.
38120
38121         maint: sync license texts
38122         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38123         * doc/gpl-3.0.texi: Revert copyright year update.
38124         * doc/lgpl-3.0.texi: Likewise.
38125
38126 2009-12-29  Jim Meyering  <meyering@redhat.com>
38127
38128         update nearly all FSF copyright year lists to include 2009
38129         The files named by the following are exempted:
38130             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38131               test -f "$dst" && { echo "$dst"; continue; }
38132               test -d "$dst" || continue
38133               echo "$dst"/$(basename "$src")
38134             done > exempt
38135             git ls-files tests/unictype >> exempt
38136         In the remaining files, convert to all-interval notation if
38137         - there is already at least one year interval like 2000-2003
38138         - the file is maintained by me
38139         - the file is in lib/uni*/, where that style already prevails
38140         Otherwise, use update-copyright's default.
38141
38142 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38143         and Eric Blake  <ebb9@byu.net>
38144
38145         tests: don't require debug system() to pass
38146         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38147         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38148         * tests/test-unlink.h (test_unlink_func): Likewise.
38149         * tests/test-fstatat.c (main): ...into callers.
38150         * tests/test-lstat.c (main): Likewise.
38151         * tests/test-rmdir.c (main): Likewise.
38152         * tests/test-unlink.c (main): Likewise.
38153         * tests/test-unlinkat.c (main): Likewise.
38154         * tests/test-areadlink-with-size.c (main): Don't require a
38155         debug-only system call to pass, aiding cross-testing to mingw.
38156         * tests/test-areadlink.c (main): Likewise.
38157         * tests/test-areadlinkat-with-size.c (main): Likewise.
38158         * tests/test-areadlinkat.c (main): Likewise.
38159         * tests/test-canonicalize-lgpl.c (main): Likewise.
38160         * tests/test-canonicalize.c (main): Likewise.
38161         * tests/test-chown.c (main): Likewise.
38162         * tests/test-fchownat.c (main): Likewise.
38163         * tests/test-lchown.c (main): Likewise.
38164         * tests/test-fdutimensat.c (main): Likewise.
38165         * tests/test-futimens.c (main): Likewise.
38166         * tests/test-link.c (main): Likewise.
38167         * tests/test-linkat.c (main): Likewise.
38168         * tests/test-mkdir.c (main): Likewise.
38169         * tests/test-mkdirat.c (main): Likewise.
38170         * tests/test-mkfifo.c (main): Likewise.
38171         * tests/test-mkfifoat.c (main): Likewise.
38172         * tests/test-mknod.c (main): Likewise.
38173         * tests/test-readlink.c (main): Likewise.
38174         * tests/test-remove.c (main): Likewise.
38175         * tests/test-rename.c (main): Likewise.
38176         * tests/test-renameat.c (main): Likewise.
38177         * tests/test-symlink.c (main): Likewise.
38178         * tests/test-symlinkat.c (main): Likewise.
38179         * tests/test-utimens.c (main): Likewise.
38180         * tests/test-utimensat.c (main): Likewise.
38181
38182 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38183
38184         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38185         on $(UNUSED_PARAMETER_H) to avoid build failure.
38186
38187 2009-12-28  Jim Meyering  <meyering@redhat.com>
38188
38189         update-copyright: you may specify a max. line length other than 72
38190         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38191
38192         maint: use consistent FSF copyright line syntax
38193         * lib/posixtm.c: Add missing comma in FSF copyright line.
38194         * lib/posixtm.h: Likewise.
38195         * lib/getugroups.c: Add missing ", Inc.".
38196
38197         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38198         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38199         FSF copyright line.  Remove trailing blanks.
38200
38201 2009-12-28  Eric Blake  <ebb9@byu.net>
38202
38203         test-dup2: reduce dependencies
38204         * modules/cloexec (Configure.ac): Set witness.
38205         * modules/dup2-tests (Depends-on): Drop cloexec.
38206         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38207         not present.
38208         Suggested by Bruno Haible.
38209
38210 2009-12-26  Bruno Haible  <bruno@clisp.org>
38211
38212         Remove an unneeded dependency.
38213         * modules/fseterr (Depends-on): Remove dup2.
38214
38215 2009-12-26  Eric Blake  <ebb9@byu.net>
38216
38217         tests: use macros.h in more places
38218         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38219         (ASSERT_STREAM): Provide default of stderr.
38220         * tests/test-dirent-safer.c: Include macros.h, using alternate
38221         stream for assertions.
38222         * tests/test-dup-safer.c: Likewise.
38223         * tests/test-freopen-safer.c: Likewise.
38224         * tests/test-getopt.c: Likewise.
38225         * tests/test-openat-safer.c: Likewise.
38226         * tests/test-pipe.c: Likewise.
38227         * tests/test-popen-safer.c: Likewise.
38228         * modules/dirent-safer-tests (Files): Include macros.h.
38229         * modules/unistd-safer-tests (Files): Likewise.
38230         * modules/freopen-safer-tests (Files): Likewise.
38231         * modules/getopt-posix-tests (Files): Likewise.
38232         * modules/openat-safer-tests (Files): Likewise.
38233         * modules/pipe-tests (Files): Likewise.
38234
38235 2009-12-26  Bruno Haible  <bruno@clisp.org>
38236
38237         javacomp: Portability fix.
38238         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38239         that it also works on Solaris.
38240
38241 2009-12-26  Bruno Haible  <bruno@clisp.org>
38242
38243         localename: Fix storage allocation of gl_locale_name_thread's result.
38244         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38245         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38246         all platforms that have 'uselocale'.
38247         (gl_locale_name_thread_unsafe): New function, extracted from
38248         gl_locale_name_thread.
38249         (gl_locale_name_thread): Call struniq on all platforms that have
38250         'uselocale'.
38251         * tests/test-localename.c (test_locale_name_thread): Check that the
38252         resulting strings are permanently allocated.
38253         * modules/localename-tests (Depends-on): Add strdup.
38254
38255 2009-12-26  Bruno Haible  <bruno@clisp.org>
38256
38257         * tests/test-localename.c (categories): Fill in the strings.
38258
38259 2009-12-26  Jim Meyering  <meyering@redhat.com>
38260
38261         isdir: complete the removal of m4/isdir.m4
38262         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38263
38264         isdir: clean up, since at least grep still uses it
38265         * lib/isdir.c: Include "isdir.h".
38266         (S_ISDIR): Remove now-unneeded definition.
38267         * modules/isdir (Files): Add lib/isdir.h.
38268         * lib/isdir.h: New file, with declaration.
38269         * m4/isdir.m4: Remove file -- unneeded.
38270
38271 2009-12-25  Bruno Haible  <bruno@clisp.org>
38272
38273         selinux-h: Make generated .h files standalone.
38274         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38275         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38276         * lib/se-selinux.in.h: Likewise.
38277         * modules/selinux-h (Depends-on): Add unused-parameter.
38278         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38279         selinux/selinux.h and selinux/context.h.
38280         Suggested by Eric Blake.
38281
38282 2009-12-25  Bruno Haible  <bruno@clisp.org>
38283
38284         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38285         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38286         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38287         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38288         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38289
38290 2009-12-24  Bruno Haible  <bruno@clisp.org>
38291
38292         openat: Fix warning.
38293         * lib/openat-proc.c: Include <unistd.h>.
38294
38295 2009-12-24  Bruno Haible  <bruno@clisp.org>
38296
38297         New module 'unused-parameter'.
38298         * build-aux/unused-parameter.h: New file, extracted from earlier
38299         gnulib-common.m4.
38300         * modules/unused-parameter: New file.
38301         * lib/unistr.h: Include unused-parameter.h.
38302         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38303         _GL_UNUSED.
38304         * modules/unistr/base (Depends-on): Add unused-parameter.
38305
38306 2009-12-24  Bruno Haible  <bruno@clisp.org>
38307
38308         Add missing dependencies to 'extensions' module.
38309         * m4/extensions.m4: Add comment.
38310         * modules/accept4 (Depends-on): Add extensions.
38311         * modules/dup3 (Depends-on): Likewise.
38312         * modules/fcntl (Depends-on): Likewise.
38313         * modules/futimens (Depends-on): Likewise.
38314         * modules/mknod (Depends-on): Likewise.
38315         * modules/pipe2 (Depends-on): Likewise.
38316         * modules/stat-time (Depends-on): Likewise.
38317         * modules/strcasestr-simple (Depends-on): Likewise.
38318         * modules/strsignal (Depends-on): Likewise.
38319         * modules/utimensat (Depends-on): Likewise.
38320         * modules/localcharset (Depends-on): Likewise. Needed because of
38321         gl_FCNTL_O_FLAGS.
38322         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38323         AC_TYPE_MBSTATE_T.
38324         * modules/wcsnrtombs (Depends-on): Likewise.
38325         * modules/wcsrtombs (Depends-on): Likewise.
38326
38327 2009-12-24  Bruno Haible  <bruno@clisp.org>
38328
38329         binary-io: Avoid gcc warning due to SET_BINARY.
38330         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38331         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38332
38333 2009-12-24  Bruno Haible  <bruno@clisp.org>
38334
38335         Avoid future namespace pollution on glibc systems.
38336         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38337         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38338         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38339         glibc systems.
38340
38341 2009-12-24  Bruno Haible  <bruno@clisp.org>
38342
38343         Refactor common macros used in tests.
38344         * tests/macros.h: New file.
38345         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38346         and/or <stdlib.h>, if appropriate.
38347         (ASSERT, SIZEOF): Remove macros.
38348         * tests/test-areadlink-with-size.c: Likewise.
38349         * tests/test-areadlinkat.c: Likewise.
38350         * tests/test-areadlinkat-with-size.c: Likewise.
38351         * tests/test-argmatch.c: Likewise.
38352         * tests/test-argv-iter.c: Likewise.
38353         * tests/test-array-mergesort.c: Likewise.
38354         * tests/test-array_list.c: Likewise.
38355         * tests/test-array_oset.c: Likewise.
38356         * tests/test-avltree_list.c: Likewise.
38357         * tests/test-avltree_oset.c: Likewise.
38358         * tests/test-avltreehash_list.c: Likewise.
38359         * tests/test-base64.c: Likewise.
38360         * tests/test-binary-io.c: Likewise.
38361         * tests/test-bitrotate.c: Likewise.
38362         * tests/test-btowc.c: Likewise.
38363         * tests/test-byteswap.c: Likewise.
38364         * tests/test-c-ctype.c: Likewise.
38365         * tests/test-c-stack.c: Likewise.
38366         * tests/test-c-strcasecmp.c: Likewise.
38367         * tests/test-c-strcasestr.c: Likewise.
38368         * tests/test-c-strncasecmp.c: Likewise.
38369         * tests/test-c-strstr.c: Likewise.
38370         * tests/test-canonicalize-lgpl.c: Likewise.
38371         * tests/test-canonicalize.c: Likewise.
38372         * tests/test-carray_list.c: Likewise.
38373         * tests/test-ceilf1.c: Likewise.
38374         * tests/test-ceilf2.c: Likewise.
38375         * tests/test-ceill.c: Likewise.
38376         * tests/test-chown.c: Likewise.
38377         * tests/test-cloexec.c: Likewise.
38378         * tests/test-copy-acl.c: Likewise.
38379         * tests/test-copy-file.c: Likewise.
38380         * tests/test-count-one-bits.c: Likewise.
38381         * tests/test-dprintf-posix.c: Likewise.
38382         * tests/test-dup2.c: Likewise.
38383         * tests/test-dup3.c: Likewise.
38384         * tests/test-duplocale.c: Likewise.
38385         * tests/test-fbufmode.c: Likewise.
38386         * tests/test-fchdir.c: Likewise.
38387         * tests/test-fchownat.c: Likewise.
38388         * tests/test-fcntl-safer.c: Likewise.
38389         * tests/test-fcntl.c: Likewise.
38390         * tests/test-fdopendir.c: Likewise.
38391         * tests/test-fdutimensat.c: Likewise.
38392         * tests/test-fflush2.c: Likewise.
38393         * tests/test-file-has-acl.c: Likewise.
38394         * tests/test-filevercmp.c: Likewise.
38395         * tests/test-flock.c: Likewise.
38396         * tests/test-floorf1.c: Likewise.
38397         * tests/test-floorf2.c: Likewise.
38398         * tests/test-floorl.c: Likewise.
38399         * tests/test-fnmatch.c: Likewise.
38400         * tests/test-fopen.h: Likewise.
38401         * tests/test-fpending.c: Likewise.
38402         * tests/test-fprintf-posix.c: Likewise.
38403         * tests/test-fpurge.c: Likewise.
38404         * tests/test-freadable.c: Likewise.
38405         * tests/test-freadahead.c: Likewise.
38406         * tests/test-freading.c: Likewise.
38407         * tests/test-freadptr.c: Likewise.
38408         * tests/test-freadptr2.c: Likewise.
38409         * tests/test-freadseek.c: Likewise.
38410         * tests/test-freopen.c: Likewise.
38411         * tests/test-frexp.c: Likewise.
38412         * tests/test-frexpl.c: Likewise.
38413         * tests/test-fseek.c: Likewise.
38414         * tests/test-fseeko.c: Likewise.
38415         * tests/test-fstatat.c: Likewise.
38416         * tests/test-fstrcmp.c: Likewise.
38417         * tests/test-fsync.c: Likewise.
38418         * tests/test-ftell.c: Likewise.
38419         * tests/test-ftello.c: Likewise.
38420         * tests/test-func.c: Likewise.
38421         * tests/test-futimens.c: Likewise.
38422         * tests/test-fwritable.c: Likewise.
38423         * tests/test-fwriting.c: Likewise.
38424         * tests/test-getcwd.c: Likewise.
38425         * tests/test-getdate.c: Likewise.
38426         * tests/test-getdelim.c: Likewise.
38427         * tests/test-getdtablesize.c: Likewise.
38428         * tests/test-getgroups.c: Likewise.
38429         * tests/test-getline.c: Likewise.
38430         * tests/test-getndelim2.c: Likewise.
38431         * tests/test-glob.c: Likewise.
38432         * tests/test-hash.c: Likewise.
38433         * tests/test-i-ring.c: Likewise.
38434         * tests/test-iconv-utf.c: Likewise.
38435         * tests/test-iconv.c: Likewise.
38436         * tests/test-idpriv-drop.c: Likewise.
38437         * tests/test-idpriv-droptemp.c: Likewise.
38438         * tests/test-inet_ntop.c: Likewise.
38439         * tests/test-inet_pton.c: Likewise.
38440         * tests/test-isblank.c: Likewise.
38441         * tests/test-isfinite.c: Likewise.
38442         * tests/test-isinf.c: Likewise.
38443         * tests/test-isnan.c: Likewise.
38444         * tests/test-isnand.h: Likewise.
38445         * tests/test-isnanf.h: Likewise.
38446         * tests/test-isnanl.h: Likewise.
38447         * tests/test-lchown.c: Likewise.
38448         * tests/test-ldexpl.c: Likewise.
38449         * tests/test-link.c: Likewise.
38450         * tests/test-linkat.c: Likewise.
38451         * tests/test-linked_list.c: Likewise.
38452         * tests/test-linkedhash_list.c: Likewise.
38453         * tests/test-localename.c: Likewise.
38454         * tests/test-lseek.c: Likewise.
38455         * tests/test-lstat.c: Likewise.
38456         * tests/test-mbmemcasecmp.c: Likewise.
38457         * tests/test-mbmemcasecoll.c: Likewise.
38458         * tests/test-mbrtowc.c: Likewise.
38459         * tests/test-mbscasecmp.c: Likewise.
38460         * tests/test-mbscasestr1.c: Likewise.
38461         * tests/test-mbscasestr2.c: Likewise.
38462         * tests/test-mbscasestr3.c: Likewise.
38463         * tests/test-mbscasestr4.c: Likewise.
38464         * tests/test-mbschr.c: Likewise.
38465         * tests/test-mbscspn.c: Likewise.
38466         * tests/test-mbsinit.c: Likewise.
38467         * tests/test-mbsncasecmp.c: Likewise.
38468         * tests/test-mbsnrtowcs.c: Likewise.
38469         * tests/test-mbspbrk.c: Likewise.
38470         * tests/test-mbspcasecmp.c: Likewise.
38471         * tests/test-mbsrchr.c: Likewise.
38472         * tests/test-mbsrtowcs.c: Likewise.
38473         * tests/test-mbsspn.c: Likewise.
38474         * tests/test-mbsstr1.c: Likewise.
38475         * tests/test-mbsstr2.c: Likewise.
38476         * tests/test-mbsstr3.c: Likewise.
38477         * tests/test-memchr.c: Likewise.
38478         * tests/test-memchr2.c: Likewise.
38479         * tests/test-memcmp.c: Likewise.
38480         * tests/test-memmem.c: Likewise.
38481         * tests/test-memrchr.c: Likewise.
38482         * tests/test-mkdir.c: Likewise.
38483         * tests/test-mkdirat.c: Likewise.
38484         * tests/test-mkfifo.c: Likewise.
38485         * tests/test-mkfifoat.c: Likewise.
38486         * tests/test-mknod.c: Likewise.
38487         * tests/test-nanosleep.c: Likewise.
38488         * tests/test-nl_langinfo.c: Likewise.
38489         * tests/test-obstack-printf.c: Likewise.
38490         * tests/test-open.c: Likewise.
38491         * tests/test-openat.c: Likewise.
38492         * tests/test-pipe-filter-gi1.c: Likewise.
38493         * tests/test-pipe-filter-gi2-main.c: Likewise.
38494         * tests/test-pipe-filter-ii1.c: Likewise.
38495         * tests/test-pipe-filter-ii2-main.c: Likewise.
38496         * tests/test-pipe2.c: Likewise.
38497         * tests/test-popen.h: Likewise.
38498         * tests/test-posixtm.c: Likewise.
38499         * tests/test-pread.c: Likewise.
38500         * tests/test-printf-frexp.c: Likewise.
38501         * tests/test-printf-frexpl.c: Likewise.
38502         * tests/test-printf-posix.c: Likewise.
38503         * tests/test-priv-set.c: Likewise.
38504         * tests/test-quotearg.c: Likewise.
38505         * tests/test-random_r.c: Likewise.
38506         * tests/test-rawmemchr.c: Likewise.
38507         * tests/test-rbtree_list.c: Likewise.
38508         * tests/test-rbtree_oset.c: Likewise.
38509         * tests/test-rbtreehash_list.c: Likewise.
38510         * tests/test-readlink.c: Likewise.
38511         * tests/test-remove.c: Likewise.
38512         * tests/test-rename.c: Likewise.
38513         * tests/test-renameat.c: Likewise.
38514         * tests/test-rmdir.c: Likewise.
38515         * tests/test-round1.c: Likewise.
38516         * tests/test-roundf1.c: Likewise.
38517         * tests/test-roundl.c: Likewise.
38518         * tests/test-safe-alloc.c: Likewise.
38519         * tests/test-sameacls.c: Likewise.
38520         * tests/test-set-mode-acl.c: Likewise.
38521         * tests/test-setenv.c: Likewise.
38522         * tests/test-sigaction.c: Likewise.
38523         * tests/test-signbit.c: Likewise.
38524         * tests/test-sleep.c: Likewise.
38525         * tests/test-snprintf-posix.c: Likewise.
38526         * tests/test-snprintf.c: Likewise.
38527         * tests/test-sprintf-posix.c: Likewise.
38528         * tests/test-stat-time.c: Likewise.
38529         * tests/test-stat.c: Likewise.
38530         * tests/test-strcasestr.c: Likewise.
38531         * tests/test-strchrnul.c: Likewise.
38532         * tests/test-strerror.c: Likewise.
38533         * tests/test-striconv.c: Likewise.
38534         * tests/test-striconveh.c: Likewise.
38535         * tests/test-striconveha.c: Likewise.
38536         * tests/test-strsignal.c: Likewise.
38537         * tests/test-strstr.c: Likewise.
38538         * tests/test-strtod.c: Likewise.
38539         * tests/test-strverscmp.c: Likewise.
38540         * tests/test-symlink.c: Likewise.
38541         * tests/test-symlinkat.c: Likewise.
38542         * tests/test-trunc1.c: Likewise.
38543         * tests/test-trunc2.c: Likewise.
38544         * tests/test-truncf1.c: Likewise.
38545         * tests/test-truncf2.c: Likewise.
38546         * tests/test-truncl.c: Likewise.
38547         * tests/test-uname.c: Likewise.
38548         * tests/test-unlink.c: Likewise.
38549         * tests/test-unlinkat.c: Likewise.
38550         * tests/test-unsetenv.c: Likewise.
38551         * tests/test-usleep.c: Likewise.
38552         * tests/test-utimens.c: Likewise.
38553         * tests/test-utimensat.c: Likewise.
38554         * tests/test-vasnprintf-posix.c: Likewise.
38555         * tests/test-vasnprintf-posix2.c: Likewise.
38556         * tests/test-vasnprintf.c: Likewise.
38557         * tests/test-vasprintf-posix.c: Likewise.
38558         * tests/test-vasprintf.c: Likewise.
38559         * tests/test-vdprintf-posix.c: Likewise.
38560         * tests/test-vfprintf-posix.c: Likewise.
38561         * tests/test-vprintf-posix.c: Likewise.
38562         * tests/test-vsnprintf-posix.c: Likewise.
38563         * tests/test-vsnprintf.c: Likewise.
38564         * tests/test-vsprintf-posix.c: Likewise.
38565         * tests/test-wcrtomb.c: Likewise.
38566         * tests/test-wcsnrtombs.c: Likewise.
38567         * tests/test-wcsrtombs.c: Likewise.
38568         * tests/test-wctype.c: Likewise.
38569         * tests/test-wcwidth.c: Likewise.
38570         * tests/test-xfprintf-posix.c: Likewise.
38571         * tests/test-xmemdup0.c: Likewise.
38572         * tests/test-xprintf-posix.c: Likewise.
38573         * tests/test-xvasprintf.c: Likewise.
38574         * tests/unicase/test-locale-language.c: Likewise.
38575         * tests/unicase/test-mapping-part1.h: Likewise.
38576         * tests/unicase/test-predicate-part1.h: Likewise.
38577         * tests/unicase/test-u8-casecmp.c: Likewise.
38578         * tests/unicase/test-u8-casecoll.c: Likewise.
38579         * tests/unicase/test-u8-casefold.c: Likewise.
38580         * tests/unicase/test-u8-is-cased.c: Likewise.
38581         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38582         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38583         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38584         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38585         * tests/unicase/test-u8-tolower.c: Likewise.
38586         * tests/unicase/test-u8-totitle.c: Likewise.
38587         * tests/unicase/test-u8-toupper.c: Likewise.
38588         * tests/unicase/test-u16-casecmp.c: Likewise.
38589         * tests/unicase/test-u16-casecoll.c: Likewise.
38590         * tests/unicase/test-u16-casefold.c: Likewise.
38591         * tests/unicase/test-u16-is-cased.c: Likewise.
38592         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38593         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38594         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38595         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38596         * tests/unicase/test-u16-tolower.c: Likewise.
38597         * tests/unicase/test-u16-totitle.c: Likewise.
38598         * tests/unicase/test-u16-toupper.c: Likewise.
38599         * tests/unicase/test-u32-casecmp.c: Likewise.
38600         * tests/unicase/test-u32-casecoll.c: Likewise.
38601         * tests/unicase/test-u32-casefold.c: Likewise.
38602         * tests/unicase/test-u32-is-cased.c: Likewise.
38603         * tests/unicase/test-u32-is-casefolded.c: Likewise.
38604         * tests/unicase/test-u32-is-lowercase.c: Likewise.
38605         * tests/unicase/test-u32-is-titlecase.c: Likewise.
38606         * tests/unicase/test-u32-is-uppercase.c: Likewise.
38607         * tests/unicase/test-u32-tolower.c: Likewise.
38608         * tests/unicase/test-u32-totitle.c: Likewise.
38609         * tests/unicase/test-u32-toupper.c: Likewise.
38610         * tests/unicase/test-ulc-casecmp.c: Likewise.
38611         * tests/unicase/test-ulc-casecoll.c: Likewise.
38612         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38613         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38614         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38615         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38616         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38617         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38618         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38619         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38620         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38621         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38622         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38623         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38624         * tests/unictype/test-bidi_byname.c: Likewise.
38625         * tests/unictype/test-bidi_name.c: Likewise.
38626         * tests/unictype/test-bidi_of.c: Likewise.
38627         * tests/unictype/test-bidi_test.c: Likewise.
38628         * tests/unictype/test-block_list.c: Likewise.
38629         * tests/unictype/test-block_of.c: Likewise.
38630         * tests/unictype/test-block_test.c: Likewise.
38631         * tests/unictype/test-categ_and.c: Likewise.
38632         * tests/unictype/test-categ_and_not.c: Likewise.
38633         * tests/unictype/test-categ_byname.c: Likewise.
38634         * tests/unictype/test-categ_name.c: Likewise.
38635         * tests/unictype/test-categ_none.c: Likewise.
38636         * tests/unictype/test-categ_of.c: Likewise.
38637         * tests/unictype/test-categ_or.c: Likewise.
38638         * tests/unictype/test-categ_test_withtable.c: Likewise.
38639         * tests/unictype/test-combining.c: Likewise.
38640         * tests/unictype/test-decdigit.c: Likewise.
38641         * tests/unictype/test-digit.c: Likewise.
38642         * tests/unictype/test-mirror.c: Likewise.
38643         * tests/unictype/test-numeric.c: Likewise.
38644         * tests/unictype/test-pr_byname.c: Likewise.
38645         * tests/unictype/test-pr_test.c: Likewise.
38646         * tests/unictype/test-predicate-part1.h: Likewise.
38647         * tests/unictype/test-scripts.c: Likewise.
38648         * tests/unictype/test-sy_c_ident.c: Likewise.
38649         * tests/unictype/test-sy_java_ident.c: Likewise.
38650         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
38651         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
38652         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
38653         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
38654         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
38655         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
38656         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
38657         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
38658         * tests/uninorm/test-canonical-decomposition.c: Likewise.
38659         * tests/uninorm/test-compat-decomposition.c: Likewise.
38660         * tests/uninorm/test-composition.c: Likewise.
38661         * tests/uninorm/test-decomposing-form.c: Likewise.
38662         * tests/uninorm/test-decomposition.c: Likewise.
38663         * tests/uninorm/test-u8-nfc.c: Likewise.
38664         * tests/uninorm/test-u8-nfd.c: Likewise.
38665         * tests/uninorm/test-u8-nfkc.c: Likewise.
38666         * tests/uninorm/test-u8-nfkd.c: Likewise.
38667         * tests/uninorm/test-u8-normcmp.c: Likewise.
38668         * tests/uninorm/test-u8-normcoll.c: Likewise.
38669         * tests/uninorm/test-u16-nfc.c: Likewise.
38670         * tests/uninorm/test-u16-nfd.c: Likewise.
38671         * tests/uninorm/test-u16-nfkc.c: Likewise.
38672         * tests/uninorm/test-u16-nfkd.c: Likewise.
38673         * tests/uninorm/test-u16-normcmp.c: Likewise.
38674         * tests/uninorm/test-u16-normcoll.c: Likewise.
38675         * tests/uninorm/test-u32-nfc.c: Likewise.
38676         * tests/uninorm/test-u32-nfd.c: Likewise.
38677         * tests/uninorm/test-u32-nfkc.c: Likewise.
38678         * tests/uninorm/test-u32-nfkd.c: Likewise.
38679         * tests/uninorm/test-u32-normalize-big.c: Likewise.
38680         * tests/uninorm/test-u32-normcmp.c: Likewise.
38681         * tests/uninorm/test-u32-normcoll.c: Likewise.
38682         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
38683         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38684         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38685         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38686         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38687         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38688         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38689         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38690         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38691         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38692         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38693         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38694         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38695         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38696         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38697         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38698         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38699         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38700         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38701         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38702         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38703         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38704         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38705         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38706         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38707         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38708         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38709         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38710         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38711         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
38712         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
38713         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
38714         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
38715         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38716         * tests/uniwidth/test-u8-width.c: Likewise.
38717         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38718         * tests/uniwidth/test-u16-width.c: Likewise.
38719         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38720         * tests/uniwidth/test-u32-width.c: Likewise.
38721         * tests/uniwidth/test-uc_width.c: Likewise.
38722         * tests/uniwidth/test-uc_width2.c: Likewise.
38723         * modules/acl-tests (Files): Add tests/macros.h.
38724         * modules/areadlink-tests (Files): Likewise.
38725         * modules/areadlink-with-size-tests (Files): Likewise.
38726         * modules/areadlinkat-tests (Files): Likewise.
38727         * modules/areadlinkat-with-size-tests (Files): Likewise.
38728         * modules/argmatch-tests (Files): Likewise.
38729         * modules/argv-iter-tests (Files): Likewise.
38730         * modules/array-list-tests (Files): Likewise.
38731         * modules/array-mergesort-tests (Files): Likewise.
38732         * modules/array-oset-tests (Files): Likewise.
38733         * modules/avltree-list-tests (Files): Likewise.
38734         * modules/avltree-oset-tests (Files): Likewise.
38735         * modules/avltreehash-list-tests (Files): Likewise.
38736         * modules/base64-tests (Files): Likewise.
38737         * modules/binary-io-tests (Files): Likewise.
38738         * modules/bitrotate-tests (Files): Likewise.
38739         * modules/btowc-tests (Files): Likewise.
38740         * modules/byteswap-tests (Files): Likewise.
38741         * modules/c-ctype-tests (Files): Likewise.
38742         * modules/c-stack-tests (Files): Likewise.
38743         * modules/c-strcase-tests (Files): Likewise.
38744         * modules/c-strcasestr-tests (Files): Likewise.
38745         * modules/c-strstr-tests (Files): Likewise.
38746         * modules/canonicalize-lgpl-tests (Files): Likewise.
38747         * modules/canonicalize-tests (Files): Likewise.
38748         * modules/carray-list-tests (Files): Likewise.
38749         * modules/ceilf-tests (Files): Likewise.
38750         * modules/ceill-tests (Files): Likewise.
38751         * modules/chown-tests (Files): Likewise.
38752         * modules/cloexec-tests (Files): Likewise.
38753         * modules/copy-file-tests (Files): Likewise.
38754         * modules/count-one-bits-tests (Files): Likewise.
38755         * modules/dprintf-posix-tests (Files): Likewise.
38756         * modules/dup2-tests (Files): Likewise.
38757         * modules/dup3-tests (Files): Likewise.
38758         * modules/duplocale-tests (Files): Likewise.
38759         * modules/fbufmode-tests (Files): Likewise.
38760         * modules/fchdir-tests (Files): Likewise.
38761         * modules/fcntl-safer-tests (Files): Likewise.
38762         * modules/fcntl-tests (Files): Likewise.
38763         * modules/fdopendir-tests (Files): Likewise.
38764         * modules/fdutimensat-tests (Files): Likewise.
38765         * modules/fflush-tests (Files): Likewise.
38766         * modules/filevercmp-tests (Files): Likewise.
38767         * modules/flock-tests (Files): Likewise.
38768         * modules/floorf-tests (Files): Likewise.
38769         * modules/floorl-tests (Files): Likewise.
38770         * modules/fnmatch-tests (Files): Likewise.
38771         * modules/fopen-safer-tests (Files): Likewise.
38772         * modules/fopen-tests (Files): Likewise.
38773         * modules/fpending-tests (Files): Likewise.
38774         * modules/fprintf-posix-tests (Files): Likewise.
38775         * modules/fpurge-tests (Files): Likewise.
38776         * modules/freadable-tests (Files): Likewise.
38777         * modules/freadahead-tests (Files): Likewise.
38778         * modules/freading-tests (Files): Likewise.
38779         * modules/freadptr-tests (Files): Likewise.
38780         * modules/freadseek-tests (Files): Likewise.
38781         * modules/freopen-tests (Files): Likewise.
38782         * modules/frexp-nolibm-tests (Files): Likewise.
38783         * modules/frexp-tests (Files): Likewise.
38784         * modules/frexpl-nolibm-tests (Files): Likewise.
38785         * modules/frexpl-tests (Files): Likewise.
38786         * modules/fseek-tests (Files): Likewise.
38787         * modules/fseeko-tests (Files): Likewise.
38788         * modules/fstrcmp-tests (Files): Likewise.
38789         * modules/fsync-tests (Files): Likewise.
38790         * modules/ftell-tests (Files): Likewise.
38791         * modules/ftello-tests (Files): Likewise.
38792         * modules/func-tests (Files): Likewise.
38793         * modules/futimens-tests (Files): Likewise.
38794         * modules/fwritable-tests (Files): Likewise.
38795         * modules/fwriting-tests (Files): Likewise.
38796         * modules/getcwd-tests (Files): Likewise.
38797         * modules/getdate-tests (Files): Likewise.
38798         * modules/getdelim-tests (Files): Likewise.
38799         * modules/getdtablesize-tests (Files): Likewise.
38800         * modules/getgroups-tests (Files): Likewise.
38801         * modules/getline-tests (Files): Likewise.
38802         * modules/getndelim2-tests (Files): Likewise.
38803         * modules/glob-tests (Files): Likewise.
38804         * modules/hash-tests (Files): Likewise.
38805         * modules/i-ring-tests (Files): Likewise.
38806         * modules/iconv-tests (Files): Likewise.
38807         * modules/iconv_open-utf-tests (Files): Likewise.
38808         * modules/idpriv-drop-tests (Files): Likewise.
38809         * modules/idpriv-droptemp-tests (Files): Likewise.
38810         * modules/inet_ntop-tests (Files): Likewise.
38811         * modules/inet_pton-tests (Files): Likewise.
38812         * modules/isblank-tests (Files): Likewise.
38813         * modules/isfinite-tests (Files): Likewise.
38814         * modules/isinf-tests (Files): Likewise.
38815         * modules/isnan-tests (Files): Likewise.
38816         * modules/isnand-nolibm-tests (Files): Likewise.
38817         * modules/isnand-tests (Files): Likewise.
38818         * modules/isnanf-nolibm-tests (Files): Likewise.
38819         * modules/isnanf-tests (Files): Likewise.
38820         * modules/isnanl-nolibm-tests (Files): Likewise.
38821         * modules/isnanl-tests (Files): Likewise.
38822         * modules/lchown-tests (Files): Likewise.
38823         * modules/ldexpl-tests (Files): Likewise.
38824         * modules/link-tests (Files): Likewise.
38825         * modules/linkat-tests (Files): Likewise.
38826         * modules/linked-list-tests (Files): Likewise.
38827         * modules/linkedhash-list-tests (Files): Likewise.
38828         * modules/localename-tests (Files): Likewise.
38829         * modules/lseek-tests (Files): Likewise.
38830         * modules/lstat-tests (Files): Likewise.
38831         * modules/mbmemcasecmp-tests (Files): Likewise.
38832         * modules/mbmemcasecoll-tests (Files): Likewise.
38833         * modules/mbrtowc-tests (Files): Likewise.
38834         * modules/mbscasecmp-tests (Files): Likewise.
38835         * modules/mbscasestr-tests (Files): Likewise.
38836         * modules/mbschr-tests (Files): Likewise.
38837         * modules/mbscspn-tests (Files): Likewise.
38838         * modules/mbsinit-tests (Files): Likewise.
38839         * modules/mbsncasecmp-tests (Files): Likewise.
38840         * modules/mbsnrtowcs-tests (Files): Likewise.
38841         * modules/mbspbrk-tests (Files): Likewise.
38842         * modules/mbspcasecmp-tests (Files): Likewise.
38843         * modules/mbsrchr-tests (Files): Likewise.
38844         * modules/mbsrtowcs-tests (Files): Likewise.
38845         * modules/mbsspn-tests (Files): Likewise.
38846         * modules/mbsstr-tests (Files): Likewise.
38847         * modules/memchr-tests (Files): Likewise.
38848         * modules/memchr2-tests (Files): Likewise.
38849         * modules/memcmp-tests (Files): Likewise.
38850         * modules/memmem-tests (Files): Likewise.
38851         * modules/memrchr-tests (Files): Likewise.
38852         * modules/mkdir-tests (Files): Likewise.
38853         * modules/mkfifo-tests (Files): Likewise.
38854         * modules/mkfifoat-tests (Files): Likewise.
38855         * modules/mknod-tests (Files): Likewise.
38856         * modules/nanosleep-tests (Files): Likewise.
38857         * modules/nl_langinfo-tests (Files): Likewise.
38858         * modules/obstack-printf-tests (Files): Likewise.
38859         * modules/open-tests (Files): Likewise.
38860         * modules/openat-tests (Files): Likewise.
38861         * modules/pipe-filter-gi-tests (Files): Likewise.
38862         * modules/pipe-filter-ii-tests (Files): Likewise.
38863         * modules/pipe2-tests (Files): Likewise.
38864         * modules/popen-safer-tests (Files): Likewise.
38865         * modules/popen-tests (Files): Likewise.
38866         * modules/posixtm-tests (Files): Likewise.
38867         * modules/pread-tests (Files): Likewise.
38868         * modules/printf-frexp-tests (Files): Likewise.
38869         * modules/printf-frexpl-tests (Files): Likewise.
38870         * modules/printf-posix-tests (Files): Likewise.
38871         * modules/priv-set-tests (Files): Likewise.
38872         * modules/quotearg-tests (Files): Likewise.
38873         * modules/random_r-tests (Files): Likewise.
38874         * modules/rawmemchr-tests (Files): Likewise.
38875         * modules/rbtree-list-tests (Files): Likewise.
38876         * modules/rbtree-oset-tests (Files): Likewise.
38877         * modules/rbtreehash-list-tests (Files): Likewise.
38878         * modules/readlink-tests (Files): Likewise.
38879         * modules/remove-tests (Files): Likewise.
38880         * modules/rename-tests (Files): Likewise.
38881         * modules/renameat-tests (Files): Likewise.
38882         * modules/rmdir-tests (Files): Likewise.
38883         * modules/round-tests (Files): Likewise.
38884         * modules/roundf-tests (Files): Likewise.
38885         * modules/roundl-tests (Files): Likewise.
38886         * modules/safe-alloc-tests (Files): Likewise.
38887         * modules/setenv-tests (Files): Likewise.
38888         * modules/sigaction-tests (Files): Likewise.
38889         * modules/signbit-tests (Files): Likewise.
38890         * modules/sleep-tests (Files): Likewise.
38891         * modules/snprintf-posix-tests (Files): Likewise.
38892         * modules/snprintf-tests (Files): Likewise.
38893         * modules/sprintf-posix-tests (Files): Likewise.
38894         * modules/stat-tests (Files): Likewise.
38895         * modules/stat-time-tests (Files): Likewise.
38896         * modules/strcasestr-tests (Files): Likewise.
38897         * modules/strchrnul-tests (Files): Likewise.
38898         * modules/strerror-tests (Files): Likewise.
38899         * modules/striconv-tests (Files): Likewise.
38900         * modules/striconveh-tests (Files): Likewise.
38901         * modules/striconveha-tests (Files): Likewise.
38902         * modules/strsignal-tests (Files): Likewise.
38903         * modules/strstr-tests (Files): Likewise.
38904         * modules/strtod-tests (Files): Likewise.
38905         * modules/strverscmp-tests (Files): Likewise.
38906         * modules/symlink-tests (Files): Likewise.
38907         * modules/symlinkat-tests (Files): Likewise.
38908         * modules/trunc-tests (Files): Likewise.
38909         * modules/truncf-tests (Files): Likewise.
38910         * modules/truncl-tests (Files): Likewise.
38911         * modules/uname-tests (Files): Likewise.
38912         * modules/unicase/cased-tests (Files): Likewise.
38913         * modules/unicase/ignorable-tests (Files): Likewise.
38914         * modules/unicase/locale-language-tests (Files): Likewise.
38915         * modules/unicase/tolower-tests (Files): Likewise.
38916         * modules/unicase/totitle-tests (Files): Likewise.
38917         * modules/unicase/toupper-tests (Files): Likewise.
38918         * modules/unicase/u8-casecmp-tests (Files): Likewise.
38919         * modules/unicase/u8-casecoll-tests (Files): Likewise.
38920         * modules/unicase/u8-casefold-tests (Files): Likewise.
38921         * modules/unicase/u8-is-cased-tests (Files): Likewise.
38922         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
38923         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
38924         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
38925         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
38926         * modules/unicase/u8-tolower-tests (Files): Likewise.
38927         * modules/unicase/u8-totitle-tests (Files): Likewise.
38928         * modules/unicase/u8-toupper-tests (Files): Likewise.
38929         * modules/unicase/u16-casecmp-tests (Files): Likewise.
38930         * modules/unicase/u16-casecoll-tests (Files): Likewise.
38931         * modules/unicase/u16-casefold-tests (Files): Likewise.
38932         * modules/unicase/u16-is-cased-tests (Files): Likewise.
38933         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
38934         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
38935         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
38936         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
38937         * modules/unicase/u16-tolower-tests (Files): Likewise.
38938         * modules/unicase/u16-totitle-tests (Files): Likewise.
38939         * modules/unicase/u16-toupper-tests (Files): Likewise.
38940         * modules/unicase/u32-casecmp-tests (Files): Likewise.
38941         * modules/unicase/u32-casecoll-tests (Files): Likewise.
38942         * modules/unicase/u32-casefold-tests (Files): Likewise.
38943         * modules/unicase/u32-is-cased-tests (Files): Likewise.
38944         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
38945         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
38946         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
38947         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
38948         * modules/unicase/u32-tolower-tests (Files): Likewise.
38949         * modules/unicase/u32-totitle-tests (Files): Likewise.
38950         * modules/unicase/u32-toupper-tests (Files): Likewise.
38951         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
38952         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
38953         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
38954         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
38955         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
38956         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
38957         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
38958         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
38959         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
38960         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
38961         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
38962         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
38963         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
38964         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
38965         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
38966         * modules/unictype/bidicategory-name-tests (Files): Likewise.
38967         * modules/unictype/bidicategory-of-tests (Files): Likewise.
38968         * modules/unictype/bidicategory-test-tests (Files): Likewise.
38969         * modules/unictype/block-list-tests (Files): Likewise.
38970         * modules/unictype/block-of-tests (Files): Likewise.
38971         * modules/unictype/block-test-tests (Files): Likewise.
38972         * modules/unictype/category-C-tests (Files): Likewise.
38973         * modules/unictype/category-Cc-tests (Files): Likewise.
38974         * modules/unictype/category-Cf-tests (Files): Likewise.
38975         * modules/unictype/category-Cn-tests (Files): Likewise.
38976         * modules/unictype/category-Co-tests (Files): Likewise.
38977         * modules/unictype/category-Cs-tests (Files): Likewise.
38978         * modules/unictype/category-L-tests (Files): Likewise.
38979         * modules/unictype/category-Ll-tests (Files): Likewise.
38980         * modules/unictype/category-Lm-tests (Files): Likewise.
38981         * modules/unictype/category-Lo-tests (Files): Likewise.
38982         * modules/unictype/category-Lt-tests (Files): Likewise.
38983         * modules/unictype/category-Lu-tests (Files): Likewise.
38984         * modules/unictype/category-M-tests (Files): Likewise.
38985         * modules/unictype/category-Mc-tests (Files): Likewise.
38986         * modules/unictype/category-Me-tests (Files): Likewise.
38987         * modules/unictype/category-Mn-tests (Files): Likewise.
38988         * modules/unictype/category-N-tests (Files): Likewise.
38989         * modules/unictype/category-Nd-tests (Files): Likewise.
38990         * modules/unictype/category-Nl-tests (Files): Likewise.
38991         * modules/unictype/category-No-tests (Files): Likewise.
38992         * modules/unictype/category-P-tests (Files): Likewise.
38993         * modules/unictype/category-Pc-tests (Files): Likewise.
38994         * modules/unictype/category-Pd-tests (Files): Likewise.
38995         * modules/unictype/category-Pe-tests (Files): Likewise.
38996         * modules/unictype/category-Pf-tests (Files): Likewise.
38997         * modules/unictype/category-Pi-tests (Files): Likewise.
38998         * modules/unictype/category-Po-tests (Files): Likewise.
38999         * modules/unictype/category-Ps-tests (Files): Likewise.
39000         * modules/unictype/category-S-tests (Files): Likewise.
39001         * modules/unictype/category-Sc-tests (Files): Likewise.
39002         * modules/unictype/category-Sk-tests (Files): Likewise.
39003         * modules/unictype/category-Sm-tests (Files): Likewise.
39004         * modules/unictype/category-So-tests (Files): Likewise.
39005         * modules/unictype/category-Z-tests (Files): Likewise.
39006         * modules/unictype/category-Zl-tests (Files): Likewise.
39007         * modules/unictype/category-Zp-tests (Files): Likewise.
39008         * modules/unictype/category-Zs-tests (Files): Likewise.
39009         * modules/unictype/category-and-not-tests (Files): Likewise.
39010         * modules/unictype/category-and-tests (Files): Likewise.
39011         * modules/unictype/category-byname-tests (Files): Likewise.
39012         * modules/unictype/category-name-tests (Files): Likewise.
39013         * modules/unictype/category-none-tests (Files): Likewise.
39014         * modules/unictype/category-of-tests (Files): Likewise.
39015         * modules/unictype/category-or-tests (Files): Likewise.
39016         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39017         * modules/unictype/combining-class-tests (Files): Likewise.
39018         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39019         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39020         * modules/unictype/ctype-blank-tests (Files): Likewise.
39021         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39022         * modules/unictype/ctype-digit-tests (Files): Likewise.
39023         * modules/unictype/ctype-graph-tests (Files): Likewise.
39024         * modules/unictype/ctype-lower-tests (Files): Likewise.
39025         * modules/unictype/ctype-print-tests (Files): Likewise.
39026         * modules/unictype/ctype-punct-tests (Files): Likewise.
39027         * modules/unictype/ctype-space-tests (Files): Likewise.
39028         * modules/unictype/ctype-upper-tests (Files): Likewise.
39029         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39030         * modules/unictype/decimal-digit-tests (Files): Likewise.
39031         * modules/unictype/digit-tests (Files): Likewise.
39032         * modules/unictype/mirror-tests (Files): Likewise.
39033         * modules/unictype/numeric-tests (Files): Likewise.
39034         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39035         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39036         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39037         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39038         Likewise.
39039         * modules/unictype/property-bidi-block-separator-tests (Files):
39040         Likewise.
39041         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39042         Likewise.
39043         * modules/unictype/property-bidi-common-separator-tests (Files):
39044         Likewise.
39045         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39046         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39047         Likewise.
39048         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39049         Likewise.
39050         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39051         Likewise.
39052         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39053         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39054         Likewise.
39055         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39056         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39057         Likewise.
39058         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39059         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39060         * modules/unictype/property-bidi-segment-separator-tests (Files):
39061         Likewise.
39062         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39063         * modules/unictype/property-byname-tests (Files): Likewise.
39064         * modules/unictype/property-combining-tests (Files): Likewise.
39065         * modules/unictype/property-composite-tests (Files): Likewise.
39066         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39067         * modules/unictype/property-dash-tests (Files): Likewise.
39068         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39069         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39070         Likewise.
39071         * modules/unictype/property-deprecated-tests (Files): Likewise.
39072         * modules/unictype/property-diacritic-tests (Files): Likewise.
39073         * modules/unictype/property-extender-tests (Files): Likewise.
39074         * modules/unictype/property-format-control-tests (Files): Likewise.
39075         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39076         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39077         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39078         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39079         * modules/unictype/property-hyphen-tests (Files): Likewise.
39080         * modules/unictype/property-id-continue-tests (Files): Likewise.
39081         * modules/unictype/property-id-start-tests (Files): Likewise.
39082         * modules/unictype/property-ideographic-tests (Files): Likewise.
39083         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39084         * modules/unictype/property-ids-trinary-operator-tests (Files):
39085         Likewise.
39086         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39087         * modules/unictype/property-iso-control-tests (Files): Likewise.
39088         * modules/unictype/property-join-control-tests (Files): Likewise.
39089         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39090         * modules/unictype/property-line-separator-tests (Files): Likewise.
39091         * modules/unictype/property-logical-order-exception-tests (Files):
39092         Likewise.
39093         * modules/unictype/property-lowercase-tests (Files): Likewise.
39094         * modules/unictype/property-math-tests (Files): Likewise.
39095         * modules/unictype/property-non-break-tests (Files): Likewise.
39096         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39097         * modules/unictype/property-numeric-tests (Files): Likewise.
39098         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39099         * modules/unictype/property-other-default-ignorable-code-point-tests
39100         (Files): Likewise.
39101         * modules/unictype/property-other-grapheme-extend-tests (Files):
39102         Likewise.
39103         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39104         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39105         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39106         * modules/unictype/property-other-math-tests (Files): Likewise.
39107         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39108         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39109         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39110         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39111         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39112         * modules/unictype/property-private-use-tests (Files): Likewise.
39113         * modules/unictype/property-punctuation-tests (Files): Likewise.
39114         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39115         * modules/unictype/property-radical-tests (Files): Likewise.
39116         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39117         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39118         * modules/unictype/property-space-tests (Files): Likewise.
39119         * modules/unictype/property-terminal-punctuation-tests (Files):
39120         Likewise.
39121         * modules/unictype/property-test-tests (Files): Likewise.
39122         * modules/unictype/property-titlecase-tests (Files): Likewise.
39123         * modules/unictype/property-unassigned-code-value-tests (Files):
39124         Likewise.
39125         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39126         * modules/unictype/property-uppercase-tests (Files): Likewise.
39127         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39128         * modules/unictype/property-white-space-tests (Files): Likewise.
39129         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39130         * modules/unictype/property-xid-start-tests (Files): Likewise.
39131         * modules/unictype/property-zero-width-tests (Files): Likewise.
39132         * modules/unictype/scripts-tests (Files): Likewise.
39133         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39134         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39135         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39136         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39137         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39138         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39139         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39140         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39141         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39142         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39143         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39144         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39145         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39146         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39147         * modules/uninorm/composition-tests (Files): Likewise.
39148         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39149         * modules/uninorm/decomposition-tests (Files): Likewise.
39150         * modules/uninorm/filter-tests (Files): Likewise.
39151         * modules/uninorm/nfc-tests (Files): Likewise.
39152         * modules/uninorm/nfd-tests (Files): Likewise.
39153         * modules/uninorm/nfkc-tests (Files): Likewise.
39154         * modules/uninorm/nfkd-tests (Files): Likewise.
39155         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39156         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39157         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39158         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39159         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39160         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39161         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39162         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39163         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39164         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39165         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39166         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39167         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39168         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39169         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39170         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39171         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39172         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39173         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39174         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39175         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39176         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39177         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39178         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39179         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39180         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39181         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39182         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39183         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39184         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39185         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39186         * modules/uniwidth/u8-width-tests (Files): Likewise.
39187         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39188         * modules/uniwidth/u16-width-tests (Files): Likewise.
39189         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39190         * modules/uniwidth/u32-width-tests (Files): Likewise.
39191         * modules/uniwidth/width-tests (Files): Likewise.
39192         * modules/unlink-tests (Files): Likewise.
39193         * modules/unsetenv-tests (Files): Likewise.
39194         * modules/usleep-tests (Files): Likewise.
39195         * modules/utimens-tests (Files): Likewise.
39196         * modules/utimensat-tests (Files): Likewise.
39197         * modules/vasnprintf-posix-tests (Files): Likewise.
39198         * modules/vasnprintf-tests (Files): Likewise.
39199         * modules/vasprintf-posix-tests (Files): Likewise.
39200         * modules/vasprintf-tests (Files): Likewise.
39201         * modules/vdprintf-posix-tests (Files): Likewise.
39202         * modules/vfprintf-posix-tests (Files): Likewise.
39203         * modules/vprintf-posix-tests (Files): Likewise.
39204         * modules/vsnprintf-posix-tests (Files): Likewise.
39205         * modules/vsnprintf-tests (Files): Likewise.
39206         * modules/vsprintf-posix-tests (Files): Likewise.
39207         * modules/wcrtomb-tests (Files): Likewise.
39208         * modules/wcsnrtombs-tests (Files): Likewise.
39209         * modules/wcsrtombs-tests (Files): Likewise.
39210         * modules/wctype-tests (Files): Likewise.
39211         * modules/wcwidth-tests (Files): Likewise.
39212         * modules/xmemdup0-tests (Files): Likewise.
39213         * modules/xprintf-posix-tests (Files): Likewise.
39214         * modules/xvasprintf-tests (Files): Likewise.
39215
39216 2009-12-24  Eric Blake  <ebb9@byu.net>
39217
39218         test-nanosleep: fix typo
39219         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39220         patch.
39221         Reported by Bruno Haible.
39222
39223 2009-12-24  Bruno Haible  <bruno@clisp.org>
39224
39225         Reduce namespace pollution on glibc systems.
39226         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39227         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39228         systems.
39229         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39230         <getopt.h> on glibc systems.
39231         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39232         systems.
39233         * lib/fcntl.c: Include <unistd.h> here instead.
39234
39235 2009-12-24  Bruno Haible  <bruno@clisp.org>
39236
39237         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39238
39239 2009-12-24  Eric Blake  <ebb9@byu.net>
39240
39241         tests: add signature checks
39242         * tests/signature.h (SIGNATURE_CHECK): New file.
39243         * modules/atexit-tests (Files): Use it.
39244         * modules/btowc-tests (Files): Likewise.
39245         * modules/canonicalize-lgpl-tests (Files): Likewise.
39246         * modules/ceilf-tests (Files): Likewise.
39247         * modules/ceill-tests (Files): Likewise.
39248         * modules/chown-tests (Files): Likewise.
39249         * modules/dprintf-posix-tests (Files): Likewise.
39250         * modules/dup2-tests (Files): Likewise.
39251         * modules/dup3-tests (Files): Likewise.
39252         * modules/duplocale-tests (Files): Likewise.
39253         * modules/fchdir-tests (Files): Likewise.
39254         * modules/fcntl-tests (Files): Likewise.
39255         * modules/fdopendir-tests (Files): Likewise.
39256         * modules/fflush-tests (Files): Likewise.
39257         * modules/flock-tests (Files): Likewise.
39258         * modules/floorf-tests (Files): Likewise.
39259         * modules/floorl-tests (Files): Likewise.
39260         * modules/fnmatch-tests (Files): Likewise.
39261         * modules/fopen-tests (Files): Likewise.
39262         * modules/fprintf-posix-tests (Files): Likewise.
39263         * modules/freopen-tests (Files): Likewise.
39264         * modules/frexp-nolibm-tests (Files): Likewise.
39265         * modules/frexp-tests (Files): Likewise.
39266         * modules/frexpl-nolibm-tests (Files): Likewise.
39267         * modules/frexpl-tests (Files): Likewise.
39268         * modules/fseek-tests (Files): Likewise.
39269         * modules/fseeko-tests (Files): Likewise.
39270         * modules/fsync-tests (Files): Likewise.
39271         * modules/ftell-tests (Files): Likewise.
39272         * modules/ftello-tests (Files): Likewise.
39273         * modules/futimens-tests (Files): Likewise.
39274         * modules/getaddrinfo-tests (Files): Likewise.
39275         * modules/getcwd-tests (Files): Likewise.
39276         * modules/getdelim-tests (Files): Likewise.
39277         * modules/getdtablesize-tests (Files): Likewise.
39278         * modules/getgroups-tests (Files): Likewise.
39279         * modules/gethostname-tests (Files): Likewise.
39280         * modules/getline-tests (Files): Likewise.
39281         * modules/getopt-posix-tests (Files): Likewise.
39282         * modules/gettimeofday-tests (Files): Likewise.
39283         * modules/glob-tests (Files): Likewise.
39284         * modules/iconv-tests (Files): Likewise.
39285         * modules/inet_ntop-tests (Files): Likewise.
39286         * modules/inet_pton-tests (Files): Likewise.
39287         * modules/isblank-tests (Files): Likewise.
39288         * modules/lchown-tests (Files): Likewise.
39289         * modules/ldexpl-tests (Files): Likewise.
39290         * modules/link-tests (Files): Likewise.
39291         * modules/linkat-tests (Files): Likewise.
39292         * modules/lseek-tests (Files): Likewise.
39293         * modules/lstat-tests (Files): Likewise.
39294         * modules/mbrtowc-tests (Files): Likewise.
39295         * modules/mbsinit-tests (Files): Likewise.
39296         * modules/mbsnrtowcs-tests (Files): Likewise.
39297         * modules/mbsrtowcs-tests (Files): Likewise.
39298         * modules/memchr-tests (Files): Likewise.
39299         * modules/memcmp-tests (Files): Likewise.
39300         * modules/memmem-tests (Files): Likewise.
39301         * modules/memrchr-tests (Files): Likewise.
39302         * modules/mkdir-tests (Files): Likewise.
39303         * modules/mkfifo-tests (Files): Likewise.
39304         * modules/mkfifoat-tests (Files): Likewise.
39305         * modules/mknod-tests (Files): Likewise.
39306         * modules/nanosleep-tests (Files): Likewise.
39307         * modules/nl_langinfo-tests (Files): Likewise.
39308         * modules/obstack-printf-tests (Files): Likewise.
39309         * modules/open-tests (Files): Likewise.
39310         * modules/openat-tests (Files): Likewise.
39311         * modules/perror-tests (Files): Likewise.
39312         * modules/pipe2-tests (Files): Likewise.
39313         * modules/poll-tests (Files): Likewise.
39314         * modules/popen-tests (Files): Likewise.
39315         * modules/posix_spawn-tests (Files): Likewise.
39316         * modules/posix_spawnp-tests (Files): Likewise.
39317         * modules/pread-tests (Files): Likewise.
39318         * modules/printf-posix-tests (Files): Likewise.
39319         * modules/pty-tests (Files): Likewise.
39320         * modules/random_r-tests (Files): Likewise.
39321         * modules/rawmemchr-tests (Files): Likewise.
39322         * modules/readlink-tests (Files): Likewise.
39323         * modules/remove-tests (Files): Likewise.
39324         * modules/rename-tests (Files): Likewise.
39325         * modules/renameat-tests (Files): Likewise.
39326         * modules/rmdir-tests (Files): Likewise.
39327         * modules/round-tests (Files): Likewise.
39328         * modules/roundf-tests (Files): Likewise.
39329         * modules/roundl-tests (Files): Likewise.
39330         * modules/select-tests (Files): Likewise.
39331         * modules/setenv-tests (Files): Likewise.
39332         * modules/sigaction-tests (Files): Likewise.
39333         * modules/sleep-tests (Files): Likewise.
39334         * modules/snprintf-posix-tests (Files): Likewise.
39335         * modules/snprintf-tests (Files): Likewise.
39336         * modules/sprintf-posix-tests (Files): Likewise.
39337         * modules/stat-tests (Files): Likewise.
39338         * modules/strcasestr-tests (Files): Likewise.
39339         * modules/strchrnul-tests (Files): Likewise.
39340         * modules/strerror-tests (Files): Likewise.
39341         * modules/strsignal-tests (Files): Likewise.
39342         * modules/strstr-tests (Files): Likewise.
39343         * modules/strtod-tests (Files): Likewise.
39344         * modules/strverscmp-tests (Files): Likewise.
39345         * modules/symlink-tests (Files): Likewise.
39346         * modules/symlinkat-tests (Files): Likewise.
39347         * modules/times-tests (Files): Likewise.
39348         * modules/trunc-tests (Files): Likewise.
39349         * modules/truncf-tests (Files): Likewise.
39350         * modules/truncl-tests (Files): Likewise.
39351         * modules/tsearch-tests (Files): Likewise.
39352         * modules/uname-tests (Files): Likewise.
39353         * modules/unlink-tests (Files): Likewise.
39354         * modules/unsetenv-tests (Files): Likewise.
39355         * modules/usleep-tests (Files): Likewise.
39356         * modules/utimensat-tests (Files): Likewise.
39357         * modules/vasprintf-tests (Files): Likewise.
39358         * modules/vdprintf-posix-tests (Files): Likewise.
39359         * modules/vfprintf-posix-tests (Files): Likewise.
39360         * modules/vprintf-posix-tests (Files): Likewise.
39361         * modules/vsnprintf-posix-tests (Files): Likewise.
39362         * modules/vsnprintf-tests (Files): Likewise.
39363         * modules/vsprintf-posix-tests (Files): Likewise.
39364         * modules/wcrtomb-tests (Files): Likewise.
39365         * modules/wcsnrtombs-tests (Files): Likewise.
39366         * modules/wcsrtombs-tests (Files): Likewise.
39367         * modules/wcwidth-tests (Files): Likewise.
39368         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39369         * tests/test-isinf.c (isinf): Likewise.
39370         * tests/test-isnan.c (isnan): Likewise.
39371         * tests/test-signbit.c (signbit): Likewise.
39372         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39373         declaration, either as macro or with correct signature.
39374         (select): Ensure function under test is declared with correct
39375         signature in correct header.
39376         * tests/test-atexit.c (atexit): Likewise.
39377         * tests/test-btowc.c (btowc): Likewise.
39378         * tests/test-canonicalize-lgpl.c (realpath)
39379         (canonicalize_file_name): Likewise.
39380         * tests/test-ceilf1.c (ceilf): Likewise.
39381         * tests/test-ceill.c (ceill): Likewise.
39382         * tests/test-chown.c (chown): Likewise.
39383         * tests/test-dprintf-posix.c (dprintf): Likewise.
39384         * tests/test-dup2.c (dup2): Likewise.
39385         * tests/test-dup3.c (dup3): Likewise.
39386         * tests/test-duplocale.c (duplocale): Likewise.
39387         * tests/test-fchdir.c (fchdir): Likewise.
39388         * tests/test-fchownat.c (fchownat): Likewise.
39389         * tests/test-fcntl.c (fcntl): Likewise.
39390         * tests/test-fdopendir.c (fdopendir): Likewise.
39391         * tests/test-fflush.c (fflush): Likewise.
39392         * tests/test-flock.c (flock): Likewise.
39393         * tests/test-floorf1.c (floorf): Likewise.
39394         * tests/test-floorl.c (floorl): Likewise.
39395         * tests/test-fnmatch.c (fnmatch): Likewise.
39396         * tests/test-fopen.c (fopen): Likewise.
39397         * tests/test-fprintf-posix.c (fprintf): Likewise.
39398         * tests/test-freopen.c (freopen): Likewise.
39399         * tests/test-frexp.c (frexp): Likewise.
39400         * tests/test-frexpl.c (frexpl): Likewise.
39401         * tests/test-fseek.c (fseek): Likewise.
39402         * tests/test-fseeko.c (fseeko): Likewise.
39403         * tests/test-fstatat.c (fstatat): Likewise.
39404         * tests/test-fsync.c (fsync): Likewise.
39405         * tests/test-ftell.c (ftell): Likewise.
39406         * tests/test-ftello.c (ftello): Likewise.
39407         * tests/test-futimens.c (futimens): Likewise.
39408         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39409         (gai_strerror): Likewise.
39410         * tests/test-getcwd.c (getcwd): Likewise.
39411         * tests/test-getdelim.c (getdelim): Likewise.
39412         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39413         * tests/test-getgroups.c (getgroups): Likewise.
39414         * tests/test-gethostname.c (gethostname): Likewise.
39415         * tests/test-getline.c (getline): Likewise.
39416         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39417         Likewise.
39418         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39419         * tests/test-glob.c (glob, globfree): Likewise.
39420         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39421         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39422         * tests/test-inet_pton.c (inet_pton): Likewise.
39423         * tests/test-isblank.c (isblank): Likewise.
39424         * tests/test-lchown.c (lchown): Likewise.
39425         * tests/test-ldexpl.c (ldexpl): Likewise.
39426         * tests/test-link.c (link): Likewise.
39427         * tests/test-linkat.c (linkat): Likewise.
39428         * tests/test-lseek.c (lseek): Likewise.
39429         * tests/test-lstat.c (lstat): Likewise.
39430         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39431         * tests/test-mbsinit.c (mbsinit): Likewise.
39432         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39433         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39434         * tests/test-memchr.c (memchr): Likewise.
39435         * tests/test-memcmp.c (memcmp): Likewise.
39436         * tests/test-memmem.c (memmem): Likewise.
39437         * tests/test-memrchr.c (memrchr): Likewise.
39438         * tests/test-mkdir.c (mkdir): Likewise.
39439         * tests/test-mkdirat.c (mkdirat): Likewise.
39440         * tests/test-mkfifo.c (mkfifo): Likewise.
39441         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39442         * tests/test-mknod.c (mknod): Likewise.
39443         * tests/test-nanosleep.c (nanosleep): Likewise.
39444         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39445         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39446         Likewise.
39447         * tests/test-open.c (open): Likewise.
39448         * tests/test-openat.c (openat): Likewise.
39449         * tests/test-perror.c (perror): Likewise.
39450         * tests/test-pipe2.c (pipe2): Likewise.
39451         * tests/test-poll.c (poll): Likewise.
39452         * tests/test-popen.c (popen, pclose): Likewise.
39453         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39454         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39455         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39456         (posix_spawn_file_actions_destroy)
39457         (posix_spawn_file_actions_addclose)
39458         (posix_spawn_file_actions_addopen)
39459         (posix_spawn_file_actions_adddup2): Likewise.
39460         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39461         * tests/test-pread.c (pread): Likewise.
39462         * tests/test-printf-posix.c (printf): Likewise.
39463         * tests/test-pty.c (openpty, forkpty): Likewise.
39464         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39465         (random_r): Likewise.
39466         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39467         * tests/test-readlink.c (readlink): Likewise.
39468         * tests/test-remove.c (remove): Likewise.
39469         * tests/test-rename.c (rename): Likewise.
39470         * tests/test-renameat.c (renameat): Likewise.
39471         * tests/test-rmdir.c (rmdir): Likewise.
39472         * tests/test-round1.c (round): Likewise.
39473         * tests/test-roundf1.c (roundf): Likewise.
39474         * tests/test-roundl.c (roundl): Likewise.
39475         * tests/test-setenv.c (setenv): Likewise.
39476         * tests/test-sigaction.c (sigaction): Likewise.
39477         * tests/test-sleep.c (sleep): Likewise.
39478         * tests/test-snprintf.c (snprintf): Likewise.
39479         * tests/test-sprintf-posix.c (sprintf): Likewise.
39480         * tests/test-stat.c (stat): Likewise.
39481         * tests/test-stpncpy.c (stpncpy): Likewise.
39482         * tests/test-strcasestr.c (strcasestr): Likewise.
39483         * tests/test-strchrnul.c (strchrnul): Likewise.
39484         * tests/test-strerror.c (strerror): Likewise.
39485         * tests/test-strsignal.c (strsignal): Likewise.
39486         * tests/test-strstr.c (strstr): Likewise.
39487         * tests/test-strtod.c (strtod): Likewise.
39488         * tests/test-strverscmp.c (strverscmp): Likewise.
39489         * tests/test-symlink.c (symlink): Likewise.
39490         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39491         * tests/test-times.c (times): Likewise.
39492         * tests/test-trunc1.c (trunc): Likewise.
39493         * tests/test-truncf1.c (truncf): Likewise.
39494         * tests/test-truncl.c (truncl): Likewise.
39495         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39496         Likewise.
39497         * tests/test-uname.c (uname): Likewise.
39498         * tests/test-unlink.c (unlink): Likewise.
39499         * tests/test-unlinkat.c (unlinkat): Likewise.
39500         * tests/test-unsetenv.c (unsetenv): Likewise.
39501         * tests/test-usleep.c (usleep): Likewise.
39502         * tests/test-utimensat.c (utimensat): Likewise.
39503         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39504         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39505         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39506         * tests/test-vprintf-posix.c (vprintf): Likewise.
39507         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39508         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39509         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39510         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39511         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39512         * tests/test-wcwidth.c (wcwidth): Likewise.
39513
39514         build: pull in conditional headers during GNULIB_POSIXCHECK
39515         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39516         definitions from any conditionally-included headers.
39517         * lib/stdlib.in.h (includes): Likewise.
39518         * lib/unistd.in.h (includes): Likewise.
39519
39520 2009-12-24  Bruno Haible  <bruno@clisp.org>
39521
39522         * tests/test-argv-iter.c: Include header file being tested immediately
39523         after config.h.
39524         * tests/test-base64.c: Likewise.
39525         * tests/test-flock.c: Likewise.
39526         * tests/test-fsync.c: Likewise.
39527         * tests/test-getdate.c: Likewise.
39528         * tests/test-getndelim2.c: Likewise.
39529         * tests/test-isfinite.c: Likewise.
39530         * tests/test-isinf.c: Likewise.
39531         * tests/test-strerror.c: Likewise.
39532         * tests/test-strsignal.c: Likewise.
39533
39534 2009-12-23  Eric Blake  <ebb9@byu.net>
39535
39536         unistd: work around cygwin bug
39537         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39538         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39539         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39540
39541 2009-12-23  Bruno Haible  <bruno@clisp.org>
39542
39543         localename: More tests.
39544         * tests/test-localename.c (SIZEOF): New macro.
39545         (categories): New variable.
39546         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39547         test_locale_name_default): Add test w.r.t. thread locale.
39548         (test_locale_name_thread): New function.
39549         (main): Invoke it.
39550
39551         localename: Make aware of thread locale.
39552         * lib/localename.h (gl_locale_name_thread): New declaration.
39553         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39554         behaviour with respect to thread locale.
39555         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39556         <langinfo.h>, glthread/lock.h.
39557         (SIZE_BITS): New macro.
39558         (string_hash): New function.
39559         (struct hash_node): New type.
39560         (HASH_TABLE_SIZE): New macro.
39561         (struniq_hash_table, struniq_lock): New variables.
39562         (struniq): New function.
39563         (gl_locale_name_thread): New function.
39564         (gl_locale_name): Invoke it.
39565         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39566         * modules/localename (Depends-on): Add lock.
39567         Reported by Mike Gran <spk121@yahoo.com>.
39568
39569 2009-12-23  Eric Blake  <ebb9@byu.net>
39570
39571         va-args: new module
39572         * modules/va-args: New file.
39573         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39574         * MODULES.html.sh (Core language properties): Mention it.
39575
39576         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39577         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39578         named alias for __attribute__((__unused__)).
39579         * lib/chown.c: Update client.
39580         * lib/fchmodat.c: Likewise.
39581         * lib/fts.c: Likewise.
39582         * lib/getdate.y: Likewise.
39583         * lib/getgroups.c: Likewise.
39584         * lib/getopt.c: Likewise.
39585         * lib/getugroups.c: Likewise.
39586         * lib/mkdir.c: Likewise.
39587         * lib/mkfifo.c: Likewise.
39588         * lib/mkfifoat.c: Likewise.
39589         * lib/mknod.c: Likewise.
39590         * lib/mknodat.c: Likewise.
39591         * lib/readlink.c: Likewise.
39592         * lib/se-context.in.h: Likewise.
39593         * lib/se-selinux.in.h: Likewise.
39594         * lib/sockets.c: Likewise.
39595         * lib/symlink.c: Likewise.
39596         * lib/symlinkat.c: Likewise.
39597         * lib/unicodeio.c: Likewise.
39598         * lib/unistr.h: Likewise.
39599         * tests/test-areadlink.c: Likewise.
39600         * tests/test-areadlinkat.c: Likewise.
39601         * tests/test-filenamecat.c: Likewise.
39602         * tests/test-fseeko.c: Likewise.
39603         * tests/test-ftello.c: Likewise.
39604         * tests/test-getdate.c: Likewise.
39605         * tests/test-getgroups.c: Likewise.
39606         * tests/test-gethostname.c: Likewise.
39607         * tests/test-quotearg.c: Likewise.
39608         * tests/test-version-etc.c: Likewise.
39609         * tests/test-xalloc-die.c: Likewise.
39610         * tests/test-xfprintf-posix.c: Likewise.
39611         * tests/test-xprintf-posix.c: Likewise.
39612         * tests/test-xvasprintf.c: Likewise.
39613
39614         tests: avoid compiler warnings
39615         * tests/test-fcntl.c (main): Delete unused parameters.
39616         * tests/test-freopen-safer.c (main): Likewise.
39617         * tests/test-xalloc-die.c (main): Mark unused parameters.
39618         * tests/test-fseeko.c (main): Likewise.
39619         * tests/test-ftello.c (main): Likewise.
39620         * tests/test-nanosleep.c (main): Avoid declaration warning.
39621         * tests/test-sleep.c (main): Likewise.
39622         * tests/test-unsetenv.c (main): Silence warning about string
39623         literal.
39624         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
39625
39626 2009-12-23  Bruno Haible  <bruno@clisp.org>
39627
39628         * tests/test-localename.c (test_locale_name): New function, extracted
39629         from main. Also test mixed situations.
39630         (test_locale_name_posix, test_locale_name_environ,
39631         test_locale_name_default): New functions.
39632         (main): Invoke them all.
39633         * modules/localename-tests (configure.ac): Test for newlocale.
39634
39635 2009-12-23  Bruno Haible  <bruno@clisp.org>
39636
39637         unistd: Ensure getcwd gets declared before being overridden.
39638         * lib/unistd.in.h: Conditionally include <io.h>.
39639
39640 2009-12-22  Bruno Haible  <bruno@clisp.org>
39641
39642         wchar: Diagnose broken combination of glibc and gcc versions and flags.
39643         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
39644         (gl_WCHAR_H): Invoke it.
39645         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
39646         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
39647         Reported by Karl Berry <karl@freefriends.org>.
39648
39649 2009-12-22  Eric Blake  <ebb9@byu.net>
39650
39651         math, unistd: avoid redundant includes
39652         * lib/math.in.h (isnan): No need to re-include <math.h>.
39653         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
39654
39655         getsubopt: work around cygwin bug
39656         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
39657         avoid conflicting with system getsubopt.
39658         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
39659         bug.
39660
39661         getopt: synchronize from glibc
39662         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
39663         parameter order.  Adjust all callers.
39664         (_getopt_internal_r, main): Adjust quoting in error messages.
39665         Drop considerations for outdated POSIX 1003.2 error message.
39666         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
39667         callers.
39668         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
39669
39670         test-getopt: test stderr behavior
39671         * modules/getopt-posix-tests (Depends-on): Add dup2.
39672         * tests/test-getopt.c (ASSERT): Avoid stderr.
39673         (main): Move stderr to a temporary file.
39674         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
39675         Instead, add parameter to inform caller if output occurred.
39676         (test_getopt): Adjust all existing tests to expect silence, and
39677         add new tests of leading ":".
39678         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39679         glibc shortcomings with leading "-:" or "+:" in optstring.
39680         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39681         Likewise.
39682         * doc/posix-functions/getopt.texi (getopt): Likewise.
39683
39684         test-getopt: enhance test
39685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
39686         supports optind=0.
39687         * tests/test-getopt.c (OPTIND_MIN): Move...
39688         * tests/test-getopt.h (OPTIND_MIN): ...here.
39689         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
39690         Require that optind=0 works, since modern BSD supports it in
39691         addition to optreset, and since coreutils expects it.
39692         (test_getopt_long_only): New test.
39693         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39694         glibc shortcomings with 'W;', and enforcement of optind=0.
39695         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39696         Likewise.
39697
39698 2009-12-21  Bruno Haible  <bruno@clisp.org>
39699
39700         localename: Improvements for MacOS X and Cygwin.
39701         * lib/localename.h (gl_locale_name_environ): New declaration.
39702         * lib/localename.c (gl_locale_name_environ): New function, extracted from
39703         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
39704         (gl_locale_name_posix): Invoke it.
39705         (gl_locale_name_default): Add comments. Use Windows native API also on
39706         Cygwin.
39707
39708 2009-12-21  Bruno Haible  <bruno@clisp.org>
39709
39710         Update list of Win32 locale ids.
39711         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
39712         (LANG_SAMI): Renamed from LANG_SAAMI.
39713         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
39714         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
39715         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
39716         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
39717         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
39718         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
39719         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
39720         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
39721         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
39722         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
39723         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
39724         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
39725         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
39726         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
39727         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
39728         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
39729         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
39730         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
39731         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
39732         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
39733         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
39734         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
39735         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
39736         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
39737         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
39738         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
39739         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
39740         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
39741         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
39742         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
39743         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
39744         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
39745         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
39746         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
39747         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
39748         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
39749         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
39750         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
39751         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
39752         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
39753         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
39754         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
39755         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
39756         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
39757         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
39758         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
39759         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
39760         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
39761         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
39762         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
39763         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
39764         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
39765         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
39766         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
39767         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
39768         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
39769         Add more languages and countries for Sami, Sorbian. Add more countries
39770         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
39771         for Pashto. Change country for Syriac, Tswana.
39772
39773 2009-12-21  Eric Blake  <ebb9@byu.net>
39774
39775         test-utimens: avoid spurious failure
39776         * tests/test-chown.h (nap): Factor...
39777         * tests/nap.h: ...into new file.
39778         * tests/test-lchown.h (nap): Avoid duplication.
39779         * tests/test-utimens-common.h (nap): Use shared implementation,
39780         necessary on file systems with 1-second resolution.
39781         * modules/chown-tests (Files): Include new file.
39782         * modules/fdutimensat-tests (Files): Likewise.
39783         * modules/futimens-tests (Files): Likewise.
39784         * modules/lchown-tests (Files): Likewise.
39785         * modules/openat-tests (Files): Likewise.
39786         * modules/utimens-tests (Files): Likewise.
39787         * modules/utimensat-tests (Files): Likewise.
39788
39789 2009-12-19  Eric Blake  <ebb9@byu.net>
39790
39791         futimens, utimensat: work around Linux bug
39792         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
39793         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39794         * lib/utimensat.c (rpl_utimensat): Work around it.
39795         * lib/futimens.c (rpl_futimens): Adjust comment.
39796
39797         utimens: work around Linux ctime bug
39798         * lib/utimens.c (detect_ctime_bug): New helper function.
39799         (update_timespec): Differentiate between workaround needed for
39800         this bug vs. what is needed for systems that lack utimensat.
39801         (fdutimens, lutimens): Work around bug.
39802
39803         utimens: check for ctime update
39804         * tests/test-utimens-common.h (check_ctime): Define.
39805         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
39806         * tests/test-futimens.h (test_futimens): Likewise.
39807         * tests/test-lutimens.h (test_lutimens): Likewise.
39808         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39809         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39810
39811 2009-12-19  Bruno Haible  <bruno@clisp.org>
39812
39813         dprintf-posix: Check against memory leak fixed on 2009-12-15.
39814         * tests/test-dprintf-posix2.sh: New file.
39815         * tests/test-dprintf-posix2.c: New file.
39816         * modules/dprintf-posix-tests (Files): Add them.
39817         (configure.ac): Check for getrlimit and setrlimit.
39818         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39819
39820 2009-12-19  Bruno Haible  <bruno@clisp.org>
39821
39822         fprintf-posix: Check against memory leak fixed on 2009-12-15.
39823         * tests/test-fprintf-posix3.sh: New file.
39824         * tests/test-fprintf-posix3.c: New file.
39825         * modules/fprintf-posix-tests (Files): Add them.
39826         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39827
39828 2009-12-19  Eric Blake  <ebb9@byu.net>
39829
39830         dirfd: fix prototype
39831         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
39832         * lib/dirfd.c (dirfd): Likewise.
39833
39834         canonicalize: reduce memory usage
39835         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
39836         allocation to size.
39837         Reported by Solar Designer <solar@openwall.com>.
39838
39839 2009-12-19  Bruno Haible  <bruno@clisp.org>
39840
39841         New module attribute 'Applicability'.
39842         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
39843         * gnulib-tool: New option --extract-applicability.
39844         (func_usage): Document it.
39845         (sed_extract_prog): Recognize it.
39846         (func_get_applicability): New function.
39847         (func_import): Generalize handling of 'link-warning' module.
39848         * modules/link-warning (Applicability): New section.
39849         * modules/arg-nonnull (Applicability): New section.
39850         Repoted by Simon Josefsson <simon@josefsson.org>.
39851
39852 2009-12-19  Bruno Haible  <bruno@clisp.org>
39853
39854         fflush: tweak
39855         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
39856         * lib/fseeko.c (rpl_fseeko): Likewise.
39857
39858 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
39859
39860         * lib/gl_list.h: Fix typo in comment.
39861
39862 2009-12-16  Eric Blake  <ebb9@byu.net>
39863
39864         fcntl: use to simplify other modules
39865         * modules/cloexec (Depends-on): Add fcntl.
39866         * modules/fchdir (Depends-on): Likewise.
39867         * modules/fd-safer-flag (Depends-on): Likewise.
39868         * modules/unistd-safer (Depends-on): Likewise.
39869         * modules/dup3 (configure.ac): Set module indicator.
39870         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
39871         missing.
39872         * lib/fchdir.c (_gl_register_dup): Fix comment.
39873         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
39874         * lib/dup-safer.c (dup_safer): Likewise.
39875         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
39876         * lib/dup3.c (dup3): Likewise.
39877         * tests/test-fchdir.c (main): Enhance test.
39878         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
39879
39880         fcntl: port portions of fcntl to mingw
39881         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
39882         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
39883         replacement for mingw.
39884         * modules/fcntl (Description): Update.
39885         (Depends-on): Add dup2.
39886         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
39887         * modules/fcntl-h (Makefile.am): Substitute it.
39888         * lib/fcntl.in.h (fcntl): Update declaration.
39889         (F_DUPFD, F_GETFD): New macros, when needed.
39890         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39891         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
39892         * tests/test-fcntl.c (check_flags, main): Enhance test for items
39893         we now guarantee.
39894
39895         fcntl: work around cygwin bug in F_DUPFD
39896         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
39897         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
39898         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
39899         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
39900         * doc/posix-functions/fcntl.texi (fcntl): Document it.
39901
39902         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
39903         * modules/fcntl (Files): List new files.
39904         (configure.ac): Run a test.
39905         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
39906         * lib/fcntl.c (rpl_fcntl): Likewise.
39907         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
39908         (gl_FCNTL_H): Always replace fcntl.h.
39909         * modules/fcntl-h (Makefile.am): Substitute witnesses.
39910         * lib/fcntl.in.h (fcntl): Declare replacement.
39911         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
39912         needed, plus a witness.
39913         * doc/posix-functions/fcntl.texi (fcntl): Document this.
39914         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39915         * tests/test-fcntl.c: New file.
39916         * modules/fcntl-tests: Likewise.
39917
39918         binary-io: avoid potential compilation warning
39919         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
39920         directives.
39921
39922         fflush: avoid compilation error on NetBSD
39923         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
39924         between off_t and fpos_t, since the latter is sometimes a struct.
39925         * lib/fseeko.c (rpl_fseeko): Likewise.
39926         Reported by Alexander Nasonov <alnsn@yandex.ru>.
39927
39928 2009-12-15  Eric Blake  <ebb9@byu.net>
39929
39930         fcntl-h, stdio, sys_ioctl: fix declarations
39931         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
39932         function must not take arguments.
39933         * lib/sys_ioctl.in.h (ioctl): Likewise.
39934         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
39935         (open): Add a link warning.
39936
39937 2009-12-15  Jim Meyering  <meyering@redhat.com>
39938
39939         areadlink, areadlink-with-size: relax license to LGPLv2+
39940         * modules/areadlink (License): Relax to LGPLv2+.
39941         * modules/areadlink-with-size (License): Likewise.
39942
39943 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
39944             Bruno Haible  <bruno@clisp.org>
39945
39946         *printf: Fix memory leak.
39947         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
39948         * lib/vfprintf.c (vfprintf): Likewise.
39949         * lib/dprintf.c (dprintf): Likewise.
39950         * lib/vdprintf.c (vdprintf): Likewise.
39951
39952 2009-12-14  Eric Blake  <ebb9@byu.net>
39953
39954         accept4: adjust module dependencies
39955         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
39956
39957         utimens: one more try at avoiding compiler warning
39958         * lib/utimens.c (lutimens): Lower scope of result.
39959
39960 2009-12-13  Bruno Haible  <bruno@clisp.org>
39961
39962         Move the malloc checking from module 'list' to new module 'xlist'.
39963         * modules/xlist: New file.
39964         * lib/gl_xlist.h: New file.
39965         * lib/gl_xlist.c: New file.
39966         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
39967         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
39968         gl_list_add_last, gl_list_add_before, gl_list_add_after,
39969         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
39970         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
39971         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
39972         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
39973         gl_sortedlist_nx_add): New declarations.
39974         (struct gl_list_implementation): Rename and change methods accordingly.
39975         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
39976         (gl_list_nx_create): Renamed from gl_list_create.
39977         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39978         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39979         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39980         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39981         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39982         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39983         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39984         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39985         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
39986         gl_list_create_empty.
39987         (gl_list_nx_create): Renamed from gl_list_create.
39988         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39989         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39990         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39991         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39992         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39993         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39994         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39995         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39996         * lib/gl_array_list.c: Don't include xalloc.h.
39997         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
39998         NULL upon out-of-memory.
39999         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40000         out-of-memory.
40001         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40002         Change return type to 'int'.
40003         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40004         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40005         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40006         upon out-of-memory.
40007         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40008         upon out-of-memory.
40009         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40010         upon out-of-memory.
40011         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40012         upon out-of-memory.
40013         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40014         out-of-memory.
40015         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40016         Update.
40017         (gl_array_list_implementation): Update.
40018         * lib/gl_carray_list.c: Don't include xalloc.h.
40019         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40020         Return NULL upon out-of-memory.
40021         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40022         out-of-memory.
40023         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40024         Change return type to 'int'.
40025         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40026         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40027         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40028         upon out-of-memory.
40029         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40030         upon out-of-memory.
40031         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40032         out-of-memory.
40033         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40034         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40035         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40036         Update.
40037         (gl_carray_list_implementation): Update.
40038         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40039         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40040         gl_linked_create_empty. Return NULL upon out-of-memory.
40041         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40042         out-of-memory.
40043         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40044         Change return type to 'int'. Return -1 upon out-of-memory.
40045         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40046         out-of-memory.
40047         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40048         upon out-of-memory.
40049         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40050         upon out-of-memory.
40051         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40052         NULL upon out-of-memory.
40053         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40054         upon out-of-memory.
40055         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40056         out-of-memory.
40057         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40058         Update.
40059         * lib/gl_linked_list.c: Don't include xalloc.h.
40060         (gl_linked_list_implementation): Update.
40061         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40062         (add_to_bucket): Change return type to 'int'.
40063         (gl_linkedhash_list_implementation): Update.
40064         * lib/gl_anytree_list1.h (free_subtree): New function.
40065         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40066         gl_tree_create_empty. Return NULL upon out-of-memory.
40067         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40068         Change return type to 'int'. Return -1 upon out-of-memory.
40069         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40070         out-of-memory.
40071         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40072         (gl_tree_remove_node): New function, moved here from
40073         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40074         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40075         Update.
40076         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40077         malloc, not xmalloc. Return NULL upon out-of-memory.
40078         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40079         out-of-memory.
40080         (gl_tree_remove_node_from_tree): New function, extracted from
40081         gl_tree_remove_node.
40082         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40083         upon out-of-memory.
40084         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40085         out-of-memory.
40086         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40087         upon out-of-memory.
40088         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40089         upon out-of-memory.
40090         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40091         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40092         not xmalloc. Return NULL upon out-of-memory.
40093         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40094         out-of-memory.
40095         (gl_tree_remove_node_from_tree): New function, extracted from
40096         gl_tree_remove_node.
40097         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40098         upon out-of-memory.
40099         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40100         out-of-memory.
40101         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40102         upon out-of-memory.
40103         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40104         upon out-of-memory.
40105         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40106         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40107         gl_anytree_list1.h before gl_anyavltree_list2.h.
40108         (gl_avltree_list_implementation): Update.
40109         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40110         gl_anytree_list1.h before gl_anyavltree_list2.h.
40111         (gl_rbtree_list_implementation): Update.
40112         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40113         Change return type to 'int'. Return -1 upon out-of-memory. Use
40114         __builtin_expect.
40115         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40116         (gl_avltreehash_list_implementation): Update.
40117         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40118         (gl_rbtreehash_list_implementation): Update.
40119         * modules/array-list (Depends-on): Remove xalloc.
40120         * modules/carray-list (Depends-on): Likewise.
40121         * modules/linked-list (Depends-on): Likewise.
40122         * modules/linkedhash-list (Depends-on): Likewise.
40123         * modules/avltree-list (Depends-on): Likewise.
40124         * modules/rbtree-list (Depends-on): Likewise.
40125         * modules/avltreehash-list (Depends-on): Likewise.
40126         * modules/rbtreehash-list (Depends-on): Likewise.
40127
40128         * modules/xsublist: New file.
40129         * lib/gl_xsublist.h: New file.
40130         * lib/gl_xsublist.c: New file.
40131         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40132         (gl_sublist_nx_create): New declaration.
40133         * lib/gl_sublist.c: Don't include xalloc.h.
40134         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40135         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40136         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40137         Change return type to 'int'. Return -1 upon out-of-memory.
40138         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40139         upon out-of-memory.
40140         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40141         NULL upon out-of-memory.
40142         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40143         upon out-of-memory.
40144         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40145         NULL upon out-of-memory.
40146         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40147         NULL upon out-of-memory.
40148         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40149         upon out-of-memory.
40150         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40151         (gl_sublist_list_implementation): Update.
40152         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40153         upon out-of-memory.
40154         * modules/sublist (Depends-on): Remove xalloc.
40155
40156         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40157         * tests/test-carray_list.c: Likewise.
40158         * tests/test-linked_list.c: Likewise.
40159         * tests/test-linkedhash_list.c: Likewise.
40160         * tests/test-avltree_list.c: Likewise.
40161         * tests/test-rbtree_list.c: Likewise.
40162         * tests/test-avltreehash_list.c: Likewise.
40163         * tests/test-rbtreehash_list.c: Likewise.
40164         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40165         * modules/carray-list-tests (Makefile.am): Likewise.
40166         * modules/linked-list-tests (Makefile.am): Likewise.
40167         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40168         * modules/avltree-list-tests (Makefile.am): Likewise.
40169         * modules/rbtree-list-tests (Makefile.am): Likewise.
40170         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40171         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40172
40173         * NEWS: Mention the changes.
40174
40175         * lib/clean-temp.c: Include gl_xlist.h.
40176         * modules/clean-temp (Depends-on): Add xlist.
40177
40178         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40179         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40180
40181         * tests/test-array_oset.c: Include gl_xlist.h.
40182         * modules/array-oset-tests (Depends-on): Add xlist.
40183
40184         Reported by José E. Marchesi <jemarch@gnu.org>.
40185
40186 2009-12-13  Bruno Haible  <bruno@clisp.org>
40187
40188         Move the malloc checking from module 'oset' to new module 'xoset'.
40189         * modules/xoset: New file.
40190         * lib/gl_xoset.h: New file.
40191         * lib/gl_xoset.c: New file.
40192         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40193         declarations.
40194         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40195         (struct gl_oset_implementation): Rename and change methods accordingly.
40196         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40197         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40198         'int'. Mark as __warn_unused_result__.
40199         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40200         gl_oset_create_empty.
40201         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40202         'int'.
40203         * lib/gl_array_oset.c: Don't include xalloc.h.
40204         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40205         malloc, not xmalloc.
40206         (grow): Change return type to 'int'. Don't call xalloc_die.
40207         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40208         to 'int'.
40209         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40210         'int'.
40211         (gl_array_oset_implementation): Update.
40212         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40213         gl_tree_create_empty.
40214         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40215         'int'.
40216         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40217         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40218         xmalloc.
40219         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40220         not xmalloc.
40221         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40222         xmalloc.
40223         (gl_avltree_oset_implementation): Update.
40224         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40225         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40226         xmalloc.
40227         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40228         not xmalloc.
40229         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40230         xmalloc.
40231         (gl_rbtree_oset_implementation): Update.
40232         * modules/array-oset (Depends-on): Remove xalloc.
40233         * modules/avltree-oset (Depends-on): Likewise.
40234         * modules/rbtree-oset (Depends-on): Likewise.
40235         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40236         * tests/test-avltree_oset.c: Likewise.
40237         * tests/test-rbtree_oset.c: Likewise.
40238         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40239         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40240         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40241         * NEWS: Mention the change.
40242
40243 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40244
40245         maint.mk: allow a project to override release-prep commands
40246         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40247         commands into a new rule.
40248         (release-prep): New rule.
40249         (release-prep-hook): New overridable variable.
40250
40251 2009-12-13  Bruno Haible  <bruno@clisp.org>
40252
40253         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40254
40255 2009-12-13  Jim Meyering  <meyering@redhat.com>
40256
40257         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40258         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40259
40260 2009-12-12  Bruno Haible  <bruno@clisp.org>
40261
40262         duplocale: Tweak.
40263         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40264
40265 2009-12-12  Karl Berry  <karl@gnu.org>
40266
40267         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40268
40269 2009-12-12  Bruno Haible  <bruno@clisp.org>
40270
40271         * m4/po.m4: Undo incorrect untabification.
40272
40273 2009-12-12  Bruno Haible  <bruno@clisp.org>
40274
40275         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40276         * modules/c-strtod (Depends-on): Add locale.
40277         * modules/c-strtold (Depends-on): Likewise.
40278
40279 2009-12-12  Bruno Haible  <bruno@clisp.org>
40280
40281         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40282
40283 2009-12-11  Eric Blake  <ebb9@byu.net>
40284
40285         setenv: relax requirement in light of POSIX ruling
40286         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40287         not NULL.
40288         * tests/test-setenv.c (main): Relax test.
40289         * tests/test-unsetenv.c (main): Likewise.
40290         * doc/posix-functions/setenv.texi (setenv): Document this.
40291         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40292
40293 2009-12-11  Bruno Haible  <bruno@clisp.org>
40294
40295         New module 'fd-safer-flag'.
40296         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40297         * lib/dup-safer.c (dup_safer_flag): Remove function.
40298         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40299         * lib/fd-safer.c (fd_safer_flag): Remove function.
40300         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40301         * modules/cloexec (configure.ac): Drop indicator macro.
40302         * modules/fd-safer-flag: New file.
40303         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40304         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40305         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40306
40307 2009-12-11  Bruno Haible  <bruno@clisp.org>
40308
40309         Tests for module 'nl_langinfo'.
40310         * modules/nl_langinfo-tests: New file.
40311         * tests/test-nl_langinfo.sh: New file.
40312         * tests/test-nl_langinfo.c: New file.
40313
40314         New module 'nl_langinfo'.
40315         * lib/nl_langinfo.c: New file.
40316         * m4/nl_langinfo.m4: New file.
40317         * modules/nl_langinfo: New file.
40318         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40319
40320 2009-12-11  Bruno Haible  <bruno@clisp.org>
40321
40322         Tests for module 'langinfo'.
40323         * modules/langinfo-tests: New file.
40324         * tests/test-langinfo.c: New file.
40325
40326         New module 'langinfo'.
40327         * lib/langinfo.in.h: New file.
40328         * m4/langinfo_h.m4: New file.
40329         * modules/langinfo: New file.
40330         * doc/posix-headers/langinfo.texi: Mention the new module.
40331
40332 2009-12-11  Bruno Haible  <bruno@clisp.org>
40333
40334         * lib/config.charset: Untabify.
40335
40336 2009-12-11  Bruno Haible  <bruno@clisp.org>
40337
40338         * modules/unistd-safer (configure.ac): Drop indicator macro.
40339
40340 2009-12-11  Bruno Haible  <bruno@clisp.org>
40341
40342         Move pipe2-safer code to its own file.
40343         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40344         * lib/pipe-safer.c (pipe2_safer): Remove function.
40345         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40346         (Makefile.am): Add it to lib_SOURCES.
40347
40348 2009-12-10  Bruno Haible  <bruno@clisp.org>
40349
40350         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40351
40352 2009-12-10  Bruno Haible  <bruno@clisp.org>
40353
40354         Declare which arguments expect non-NULL values, for GCC and clang.
40355         * build-aux/arg-nonnull.h: New file.
40356         * modules/arg-nonnull: New file.
40357         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40358         (inet_ntop, inet_pton): Use it.
40359         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40360         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40361         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40362         (open, openat): Use it.
40363         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40364         (fnmatch): Use it.
40365         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40366         (getopt, getopt_long, getopt_long_only): Use it.
40367         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40368         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40369         Use it.
40370         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40371         (iconv_open): Use it.
40372         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40373         (strtoimax, strtoumax): Use it.
40374         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40375         (duplocale): Use it.
40376         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40377         (frexp, frexpl): Use it.
40378         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40379         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40380         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40381         (tsearch, tfind, tdelete, twalk): Use it.
40382         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40383         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40384         sigpending): Use it.
40385         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40386         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40387         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40388         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40389         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40390         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40391         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40392         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40393         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40394         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40395         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40396         Use it.
40397         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40398         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40399         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40400         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40401         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40402         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40403         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40404         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40405         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40406         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40407         strtoull, unsetenv): Use it.
40408         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40409         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40410         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40411         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40412         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40413         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40414         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40415         (strcasecmp, strncasecmp): Use it.
40416         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40417         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40418         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40419         rpl_setsockopt): Use it.
40420         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40421         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40422         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40423         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40424         (gettimeofday): Use it.
40425         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40426         (times): Use it.
40427         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40428         (uname): Use it.
40429         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40430         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40431         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40432         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40433         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40434         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40435         unlinkat, write): Use it.
40436         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40437         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40438         * lib/argv-iter.h: Include arg-nonnull.h.
40439         (_ATTRIBUTE_NONNULL_): Remove macro.
40440         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40441         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40442         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40443         optimization.
40444         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40445         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40446         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40447         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40448         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40449         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40450         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40451         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40452         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40453         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40454         * modules/dirent (Depends-on): Add arg-nonnull.
40455         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40456         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40457         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40458         * modules/fnmatch (Depends-on): Add arg-nonnull.
40459         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40460         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40461         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40462         * modules/glob (Depends-on): Add arg-nonnull.
40463         (Makefile.am): Insert arg-nonnull.h into glob.h.
40464         * modules/iconv_open (Depends-on): Add arg-nonnull.
40465         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40466         * modules/inttypes (Depends-on): Add arg-nonnull.
40467         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40468         * modules/locale (Depends-on): Add arg-nonnull.
40469         (Makefile.am): Insert arg-nonnull.h into locale.h.
40470         * modules/math (Depends-on): Add arg-nonnull.
40471         (Makefile.am): Insert arg-nonnull.h into math.h.
40472         * modules/netdb (Depends-on): Add arg-nonnull.
40473         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40474         * modules/search (Depends-on): Add arg-nonnull.
40475         (Makefile.am): Insert arg-nonnull.h into search.h.
40476         * modules/signal (Depends-on): Add arg-nonnull.
40477         (Makefile.am): Insert arg-nonnull.h into signal.h.
40478         * modules/spawn (Depends-on): Add arg-nonnull.
40479         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40480         * modules/stdio (Depends-on): Add arg-nonnull.
40481         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40482         * modules/stdlib (Depends-on): Add arg-nonnull.
40483         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40484         * modules/string (Depends-on): Add arg-nonnull.
40485         (Makefile.am): Insert arg-nonnull.h into string.h.
40486         * modules/strings (Depends-on): Add arg-nonnull.
40487         (Makefile.am): Insert arg-nonnull.h into strings.h.
40488         * modules/sys_socket (Depends-on): Add arg-nonnull.
40489         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40490         * modules/sys_stat (Depends-on): Add arg-nonnull.
40491         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40492         * modules/sys_time (Depends-on): Add arg-nonnull.
40493         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40494         * modules/sys_times (Depends-on): Add arg-nonnull.
40495         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40496         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40497         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40498         * modules/time (Depends-on): Add arg-nonnull.
40499         (Makefile.am): Insert arg-nonnull.h into time.h.
40500         * modules/unistd (Depends-on): Add arg-nonnull.
40501         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40502         * modules/wchar (Depends-on): Add arg-nonnull.
40503         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40504         * modules/argv-iter (Depends-on): Add arg-nonnull.
40505         * tests/test-canonicalize.c (null_ptr): New function.
40506         (main): Use it.
40507         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40508         (main): Use it.
40509         * tests/test-memmem.c (null_ptr): New function.
40510         (main): Use it.
40511         Reported by Jim Meyering.
40512
40513 2009-12-10  Bruno Haible  <bruno@clisp.org>
40514
40515         Use spaces for indentation, not tabs.
40516         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40517         * m4/*.m4: Untabify.
40518         * build-aux/*.h: Untabify.
40519         * tests/**/*.[hc]: Untabify.
40520         * README: New section "Indent with spaces, not TABs", based on
40521         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40522         * NEWS: Mention the change.
40523
40524 2009-12-10  Bruno Haible  <bruno@clisp.org>
40525
40526         pty test: Fix link error.
40527         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40528         test_pty_LDADD.
40529
40530 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40531
40532         * modules/pty: New file.
40533         * modules/pty-tests: New file.
40534         * m4/pty.m4: New file.
40535         * tests/test-pty.c: New file.
40536         * doc/glibc-headers/pty.texi: Modified.
40537         * doc/glibc-functions/forkpty.texi: Modified.
40538         * doc/glibc-functions/openpty.texi: Modified.
40539
40540 2009-12-10  Bruno Haible  <bruno@clisp.org>
40541
40542         Avoid syntax error in C++ mode.
40543         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40544
40545 2009-12-10  Bruno Haible  <bruno@clisp.org>
40546
40547         Use sed with option -e.
40548         * gnulib-tool (func_version, func_emit_copyright_notice,
40549         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40550         option -e to sed.
40551         * modules/link-warning (Makefile.am): Likewise.
40552
40553 2009-12-10  Jim Meyering  <meyering@redhat.com>
40554
40555         mgetgroups: do not write bytes beyond end of malloc'd buffer
40556         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40557         username, we call getgroups with a one-element-shorter buffer,
40558         but still told it the length was original, max_n_groups.
40559
40560 2009-12-09  Eric Blake  <ebb9@byu.net>
40561
40562         cloexec: relax license
40563         * modules/cloexec (Maintainer): Add myself.
40564         (License): Use LGPL, not GPL.
40565
40566         link-warning: optimize generation
40567         * modules/link-warning (Makefile.am): Reduce process usage.
40568
40569 2009-12-09  Bruno Haible  <bruno@clisp.org>
40570
40571         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40572         workaround was added on 2009-11-17.
40573
40574 2009-12-09  Jim Meyering  <meyering@redhat.com>
40575             Bruno Haible  <bruno@clisp.org>
40576
40577         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40578         * modules/link-warning (Makefile.am): Make the comment-removing sed
40579         command more robust in the face of bootstrap-prepended comment lines.
40580
40581 2009-12-09  Bruno Haible  <bruno@clisp.org>
40582
40583         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40584         most one group.
40585
40586 2009-12-09  Simon Josefsson <simon@josefsson.org>
40587             Bruno Haible  <bruno@clisp.org>
40588
40589         * build-aux/link-warning.h: Add copyright notice.
40590         * modules/link-warning (Makefile.am): Generate link-warning.h from
40591         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40592         * NEWS: Mention change in link-warning module.
40593         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40594         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40595         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40596         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40597         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40598         * modules/math (Makefile.am): Add dependency to math.h.
40599         * modules/search (Makefile.am): Add dependency to search.h.
40600         * modules/signal (Makefile.am): Add dependency to signal.h.
40601         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40602         * modules/stdio (Makefile.am): Add dependency to stdio.h.
40603         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
40604         * modules/string (Makefile.am): Add dependency to string.h.
40605         * modules/strings (Makefile.am): Add dependency to strings.h.
40606         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
40607         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
40608         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
40609         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
40610         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
40611         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
40612         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
40613         * modules/unistd (Makefile.am): Add dependency to unistd.h.
40614         * modules/wchar (Makefile.am): Add dependency to wchar.h.
40615
40616 2009-12-09  Bruno Haible  <bruno@clisp.org>
40617
40618         fchdir: Optimize away rpl_fstat when possible.
40619         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
40620         REPLACE_OPEN_DIRECTORY.
40621         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
40622
40623 2009-12-09  Bruno Haible  <bruno@clisp.org>
40624
40625         * lib/fchdir.c: Update comment.
40626
40627 2009-12-09  Bruno Haible  <bruno@clisp.org>
40628
40629         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
40630
40631 2009-12-08  Eric Blake  <ebb9@byu.net>
40632
40633         fchdir: avoid memory leak on re-registration.
40634         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
40635
40636 2009-12-08  Jim Meyering  <meyering@redhat.com>
40637
40638         init.sh: avoid Solaris 10 /bin/sh portability problem
40639         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
40640         sourced script:
40641           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
40642           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
40643           bar
40644         tests/init.sh relied on that, accepting a --set-path=DIR argument,
40645         and two tests used that idiom.
40646         * tests/init.sh: Update suggested usage comments.
40647         (path_prepend_): New function, to be used in place
40648         of the --src-path=DIR option.
40649         (setup_): Move PATH-prepending code into path_prepend_.
40650         * tests/test-pread.sh: Adapt to new usage.
40651         * tests/test-xalloc-die.sh: Likewise.
40652
40653 2009-12-08  Simon Josefsson  <simon@josefsson.org>
40654
40655         * doc/gnulib.texi (Glibc pty.h): Add.
40656         * doc/glibc-functions/forkpty.texi: Add.
40657         * doc/glibc-functions/openpty.texi: Add.
40658         Suggested by Bruno Haible.
40659
40660 2009-12-08  Eric Blake  <ebb9@byu.net>
40661
40662         fchdir: fix logic bugs
40663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
40664         * tests/test-fchdir.c (main): Enhance test.
40665         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
40666         is in use.
40667
40668         dup2: fix logic bugs
40669         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
40670         REPLACE_DUP2 to decide when rpl_dup2 is needed.
40671         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
40672         exists.
40673         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
40674
40675 2009-12-07  Eric Blake  <ebb9@byu.net>
40676
40677         unlink: fix m4 detection
40678         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
40679
40680         unistd-safer: add unit test
40681         * modules/unistd-safer-tests: New file.
40682         * tests/test-dup-safer.c: Likewise.
40683         * tests/test-cloexec.c (setmode): Avoid compiler warning.
40684         * tests/test-dup2.c (setmode): Likewise.
40685         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
40686
40687         cloexec: preserve text vs. binary across dup_cloexec
40688         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
40689         mode.
40690         * modules/dup2-tests (Depends-on): Add binary-io.
40691         * modules/cloexec-tests (Depends-on): Likewise.
40692         * tests/test-dup2.c (setmode, is_mode): New helpers.
40693         (main): Add tests that translation mode is preserved.
40694         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
40695         Reported by Bruno Haible.
40696
40697         mgetgroups: reduce duplicate listings
40698         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
40699         resulting array.
40700         * tests/test-chown.h (test_chown): Simplify client.
40701         * tests/test-lchown.h (test_lchown): Likewise.
40702
40703 2009-12-06  Bruno Haible  <bruno@clisp.org>
40704
40705         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
40706         value.
40707
40708 2009-12-06  Bruno Haible  <bruno@clisp.org>
40709
40710         * lib/progname.c: Include stdio.h, stdlib.h.
40711         (set_program_name): Reject a NULL argument.
40712
40713 2009-12-05  Eric Blake  <ebb9@byu.net>
40714
40715         pipe2-safer: new module
40716         * modules/pipe2-safer: New file.
40717         * lib/unistd-safer.h (pipe2_safer): New prototype.
40718         * lib/unistd--.h (pipe2): New wrapper.
40719         * lib/pipe-safer.c (pipe2_safer): New function.
40720         * modules/pipe (Depends-on): Add pipe2-safer.
40721         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
40722
40723         stdlib-safer: preserve cloexec flag for mkostemp[s]
40724         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
40725         fd_safer_flag.
40726
40727         unistd-safer: allow preservation of cloexec status via flag
40728         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
40729         prototypes.
40730         * lib/dup-safer.c (dup_safer_flag): New function.
40731         * lib/fd-safer.c (fd_safer_flag): Likewise.
40732         * modules/cloexec (configure.ac): Set witness.
40733
40734         test-dup2: enhance test
40735         * modules/dup2-tests (Depends-on): Add cloexec.
40736         * tests/test-dup2.c (main): Enhance test.
40737
40738         cloexec: add dup_cloexec
40739         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
40740         header and comments.
40741         * lib/cloexec.c (set_cloexec_flag): Add comments.
40742         (dup_cloexec): New function, with mingw implementation borrowed
40743         from...
40744         * lib/w32spawn.h (dup_noinherit): ...here.
40745         * modules/execute (Depends-on): Add cloexec.
40746         * modules/pipe (Depends-on): Likewise.
40747         * modules/cloexec (Depends-on): Add dup2.
40748         * modules/cloexec-tests (Files): New file.
40749         * tests/test-cloexec.c: Likewise.
40750
40751         test-xalloc-die: fix test for mingw
40752         * modules/xalloc-die-tests (Files): Add tests/init.sh.
40753         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
40754         directory and .exe suffix off argv[0] output.
40755
40756         test-fseeko: fix test for mingw
40757         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
40758         than undefining fseek, so test will pass on mingw.
40759
40760 2009-12-05  Bruno Haible  <bruno@clisp.org>
40761
40762         * lib/progname.h (set_program_name): Clarify specification.
40763         * lib/progname.c (set_program_name): Likewise.
40764         Reported by Jim Meyering.
40765
40766 2009-12-05  Jim Meyering  <meyering@redhat.com>
40767
40768         maint.mk: backslash-escape parens in default regexp
40769         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
40770         backslash-escape the literal parentheses.
40771
40772         maint.mk: news-date-check: use grep -E
40773         * top/maint.mk (today): Define a Make variable, not a...
40774         (news-date-check): ...shell variable.
40775         (news-date-regexp): Use the Make variable.
40776         Use grep's -E option.  Change the failing diagnostic to mention
40777         the variable, $(news-date-regexp).
40778
40779 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
40780
40781         maintainer-makefile: allow customization of NEWS entry format
40782         * top/maint.mk (news-date-regexp): New overridable variable.
40783         (news-date-check): Use it.
40784
40785 2009-12-04  Eric Blake  <ebb9@byu.net>
40786
40787         mgetgroups: add xgetgroups, and avoid ENOSYS failures
40788         * lib/mgetgroups.h (xgetgroups): New prototype.
40789         * lib/mgetgroups.c (xgetgroups): New wrapper.
40790         (mgetgroups): Handle ENOSYS.
40791         * modules/mgetgroups (Depends-on): Add realloc.
40792         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
40793
40794         mgetgroups: avoid argument promotion issues with -1
40795         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
40796         for invalid gid_t.
40797         * tests/test-chown.h (getegid, test_chown): Likewise.
40798         * tests/test-lchown.h (getegid, test_lchown): Likewise.
40799
40800 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
40801
40802         exclude: Fix header file problems.
40803         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
40804
40805 2009-12-01  Jim Meyering  <meyering@redhat.com>
40806
40807         fts: fts_open: do not let an empty string cause immediate failure
40808         This is required in support of GNU rm, for which the command
40809         "rm A '' B" must process and remove both A and B, in spite of
40810         the empty string argument.
40811         * lib/fts.c (fts_open): Do not let the presence of an empty string
40812         cause fts_open to fail immediately.  Most fts-using tools must be
40813         able to process all arguments, in order, and can be expected to
40814         diagnose such arguments themselves.
40815
40816 2009-11-30  Eric Blake  <ebb9@byu.net>
40817
40818         utimens: fix compilation error
40819         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
40820         Declare variable at right scope.
40821
40822 2009-11-29  Jim Meyering  <meyering@redhat.com>
40823
40824         bootstrap: handle perl-5.11's changed --version output
40825         * build-aux/bootstrap (get_version): Handle perl separately,
40826         since perl-5.11's --version output is different.
40827
40828 2009-11-28  Jim Meyering  <meyering@redhat.com>
40829
40830         userspec: depend on the inttostr module, too
40831         * modules/userspec (Depends-on): Add inttostr.
40832
40833         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
40834         * lib/userspec.c (parse_with_separator): Do not accept a user ID
40835         number of MAXUID when it evaluates to (uid_t) -1.
40836         Likewise for group ID.  Reported by Matt McCutchen in
40837         <http://savannah.gnu.org/bugs/?28113>
40838
40839         userspec: reformat to use spaces, not TABs
40840         * lib/userspec.c: Expand TABs to spaces.
40841         Add Emacs' "indent-tabs-mode: nil" hint.
40842
40843 2009-11-27  Eric Blake  <ebb9@byu.net>
40844
40845         getopt-gnu: flush out another BSD bug
40846         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
40847         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
40848         flush out BSD bug.
40849         * tests/test-getopt.h (test_getopt): End lists with NULL.
40850         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40851         (test_getopt_long_posix): Enhance test.
40852         * modules/getopt-posix-tests (Depends-on): Add stdbool.
40853         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
40854         getopt-gnu.
40855         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40856         Likewise.
40857
40858 2009-11-27  Simon Josefsson  <simon@josefsson.org>
40859
40860         * modules/idpriv-droptemp-tests (Notice): Fix text.
40861
40862 2009-11-27  Jim Meyering  <meyering@redhat.com>
40863
40864         test-xalloc-die: avoid spurious failure due to libtool argv difference
40865         In a libtool-enabled project, this test would fail due to a difference
40866         in the emitted program name, e.g.,
40867         -test-xalloc-die: memory exhausted
40868         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
40869         Use program to avoid that.
40870         * modules/xalloc-die-tests (Depends-on): Add progname.
40871         * tests/test-xalloc-die.c: Include progname.h".
40872         (program_name): Remove decl.
40873         (main): Call set_program_name.
40874         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
40875
40876 2009-11-26  Richard Jones  <rjones@redhat.com>
40877
40878         w32sock: leave win32 error in place.
40879         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
40880
40881 2009-11-26  Eric Blake  <ebb9@byu.net>
40882
40883         init.sh: suggest to use skip_ and fail_ functions in comments
40884         * tests/init.sh: Add a sentence.
40885
40886 2009-11-25  Bruno Haible  <bruno@clisp.org>
40887
40888         init.sh: add documentation in comments
40889         * tests/init.sh: Add some developer and user documentation.
40890
40891 2009-11-26  Jim Meyering  <meyering@redhat.com>
40892
40893         init.sh: accommodate even those who specify bogus srcdir manually
40894         * tests/init.sh: Normally, srcdir is guaranteed by automake and
40895         configure-time tests to be sanitized, so that there is no need to
40896         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
40897         (with no double quotes) suffices.  However, since tests may be
40898         invoked manually, and since you may explicitly set srcdir to the
40899         name of a directory containing spaces, do quote its uses here.
40900         * tests/test-pread.sh: Likewise.
40901         Suggested by Bruno Haible.
40902
40903         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
40904         * tests/test-pread.sh: Write no data into the pipe, because
40905         test-pread actually reads none.  This avoids a diagnostic,
40906         "bash: echo: write error: Broken pipe", that arises in the unusual
40907         event something is ignoring SIGPIPE, and might be interpreted
40908         as some sort of failure.  Reported by Bruno Haible.
40909
40910 2009-11-25  Jim Meyering  <meyering@redhat.com>
40911
40912         test-pread: cover failure with ESPIPE and EINVAL
40913         * tests/test-pread.c (main): Test for failure, too.
40914         * tests/test-pread.sh: Invoke with stdin on a pipe.
40915         Suggested by Eric Blake.
40916
40917         pread: improvement and fix
40918         * modules/pread (Depends-on): Depend on lseek, for portability to
40919         e.g., mingw.  Suggested by Eric Blake.
40920         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
40921
40922         unistd.in.h: correct declaration of pread
40923         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
40924         Reported by Richard W.M. Jones.
40925
40926         test-pread.sh: distribute the test script
40927         * modules/pread-tests (Files): Include test-pread.sh.
40928
40929         test-pread.sh: clean up
40930         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
40931         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
40932         That is unnecessary, since it's always ".".
40933         Suggestion from Eric Blake.
40934
40935         test-pread.sh: make executable
40936         * tests/test-pread.sh: Set executable bit.
40937         Reported by Eric Blake.
40938
40939         correct typo in test-pread.sh
40940         * tests/test-pread.sh: Add #! line.
40941
40942         test pread
40943         * tests/test-pread.c: New file.
40944         * tests/test-pread.sh: Likewise.
40945         * modules/pread-tests: Likewise.
40946
40947         pread: new module
40948         * modules/pread: New file.
40949         * lib/unistd.in.h (pread): Define/declare.
40950         * lib/pread.c (pread): New file.
40951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
40952         * modules/unistd (Makefile.am): Substitute witnesses.
40953         * doc/posix-functions/pread.texi (pread): Update.
40954         * MODULES.html.sh: Add pread.
40955
40956 2009-11-25  Jim Meyering  <meyering@redhat.com>
40957
40958         tests/init.sh: new file to be used via most *.sh tests
40959         * tests/init.sh: New file.
40960
40961 2009-11-25  Eric Blake  <ebb9@byu.net>
40962
40963         utimens: work around older Linux failure with symlinks
40964         * lib/utimens.c (lutimensat_works_really): New variable.
40965         (fdutimens, lutimens): Use it to manage kernels that support
40966         nanosecond times on files, but not on symlinks.
40967         Reported by OndÅ™ej Vašík.
40968
40969         utimes: fix configure grammar
40970         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
40971
40972 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
40973
40974         regex: Fix fastmap for multibyte character ranges.
40975         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
40976         characters when a multibyte character range is included.
40977
40978 2009-11-22  Andy Wingo  <wingo@pobox.com>
40979
40980         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
40981         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
40982
40983 2009-11-24  Bruno Haible  <bruno@clisp.org>
40984
40985         doc: Most *_l functions exist in MacOS X 10.5.
40986         * doc/posix-functions/duplocale.texi: Update platforms list.
40987         * doc/posix-functions/freelocale.texi: Likewise.
40988         * doc/posix-functions/newlocale.texi: Likewise.
40989         * doc/posix-functions/uselocale.texi: Likewise.
40990         * doc/posix-functions/isalnum_l.texi: Likewise.
40991         * doc/posix-functions/isalpha_l.texi: Likewise.
40992         * doc/posix-functions/isblank_l.texi: Likewise.
40993         * doc/posix-functions/iscntrl_l.texi: Likewise.
40994         * doc/posix-functions/isdigit_l.texi: Likewise.
40995         * doc/posix-functions/isgraph_l.texi: Likewise.
40996         * doc/posix-functions/islower_l.texi: Likewise.
40997         * doc/posix-functions/isprint_l.texi: Likewise.
40998         * doc/posix-functions/ispunct_l.texi: Likewise.
40999         * doc/posix-functions/isspace_l.texi: Likewise.
41000         * doc/posix-functions/isupper_l.texi: Likewise.
41001         * doc/posix-functions/iswalnum_l.texi: Likewise.
41002         * doc/posix-functions/iswalpha_l.texi: Likewise.
41003         * doc/posix-functions/iswblank_l.texi: Likewise.
41004         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41005         * doc/posix-functions/iswctype_l.texi: Likewise.
41006         * doc/posix-functions/iswdigit_l.texi: Likewise.
41007         * doc/posix-functions/iswgraph_l.texi: Likewise.
41008         * doc/posix-functions/iswlower_l.texi: Likewise.
41009         * doc/posix-functions/iswprint_l.texi: Likewise.
41010         * doc/posix-functions/iswpunct_l.texi: Likewise.
41011         * doc/posix-functions/iswspace_l.texi: Likewise.
41012         * doc/posix-functions/iswupper_l.texi: Likewise.
41013         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41014         * doc/posix-functions/isxdigit_l.texi: Likewise.
41015         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41016         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41017         * doc/posix-functions/strcoll_l.texi: Likewise.
41018         * doc/posix-functions/strfmon_l.texi: Likewise.
41019         * doc/posix-functions/strftime_l.texi: Likewise.
41020         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41021         * doc/posix-functions/strxfrm_l.texi: Likewise.
41022         * doc/posix-functions/tolower_l.texi: Likewise.
41023         * doc/posix-functions/toupper_l.texi: Likewise.
41024         * doc/posix-functions/towctrans_l.texi: Likewise.
41025         * doc/posix-functions/towlower_l.texi: Likewise.
41026         * doc/posix-functions/towupper_l.texi: Likewise.
41027         * doc/posix-functions/wcscoll_l.texi: Likewise.
41028         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41029         * doc/posix-functions/wctrans_l.texi: Likewise.
41030         * doc/posix-functions/wctype_l.texi: Likewise.
41031         * doc/glibc-functions/strptime_l.texi: Likewise.
41032         * doc/glibc-functions/strtod_l.texi: Likewise.
41033         * doc/glibc-functions/strtof_l.texi: Likewise.
41034         * doc/glibc-functions/strtol_l.texi: Likewise.
41035         * doc/glibc-functions/strtold_l.texi: Likewise.
41036         * doc/glibc-functions/strtoll_l.texi: Likewise.
41037         * doc/glibc-functions/strtoul_l.texi: Likewise.
41038         * doc/glibc-functions/strtoull_l.texi: Likewise.
41039         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41040         * doc/glibc-functions/wcstod_l.texi: Likewise.
41041         * doc/glibc-functions/wcstof_l.texi: Likewise.
41042         * doc/glibc-functions/wcstol_l.texi: Likewise.
41043         * doc/glibc-functions/wcstold_l.texi: Likewise.
41044         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41045         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41046         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41047
41048 2009-11-24  Bruno Haible  <bruno@clisp.org>
41049
41050         duplocale: Fix logic bug.
41051         * lib/duplocale.c: Don't include <langinfo.h>.
41052         (_NL_LOCALE_NAME): Remove macro.
41053         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41054         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41055
41056 2009-11-23  Jim Meyering  <meyering@redhat.com>
41057
41058         test-update-copyright: don't hard-code /usr/bin/perl
41059         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41060         perl to print the current year.  Gilles Espinasse reported that
41061         the replaced use of perl was hard-coded as /usr/bin/perl.
41062
41063 2009-11-23  Bruno Haible  <bruno@clisp.org>
41064
41065         duplocale: Add support for glibc 2.3.x.
41066         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41067
41068 2009-11-22  Bruno Haible  <bruno@clisp.org>
41069
41070         vasnprintf: Tiny optimization.
41071         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41072         MacOS X.
41073
41074 2009-11-22  Bruno Haible  <bruno@clisp.org>
41075
41076         Tests for module 'duplocale'.
41077         * modules/duplocale-tests: New file.
41078         * tests/test-duplocale.c: New file.
41079
41080         New module 'duplocale'.
41081         * m4/duplocale.m4: New file.
41082         * lib/locale.in.h (duplocale): New declaration.
41083         * lib/duplocale.c: New file.
41084         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41085         gl_LOCALE_H_DEFAULTS): New macros.
41086         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41087         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41088         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41089         REPLACE_DUPLOCALE.
41090         * modules/duplocale: New file.
41091         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41092
41093 2009-11-22  Bruno Haible  <bruno@clisp.org>
41094
41095         * modules/locale-tests (configure.ac): Test for newlocale function.
41096         * tests/test-locale.c: When the system has extended locale functions,
41097         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41098
41099         locale: Make locale_t available when possible.
41100         * lib/locale.in.h: Include <xlocale.h> when it exists.
41101         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41102         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41103         * modules/locale (Depends-on): Add extensions.
41104         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41105         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41106
41107 2009-11-22  Bruno Haible  <bruno@clisp.org>
41108
41109         Add comments.
41110         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41111         invocation.
41112         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41113         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41114         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41115
41116 2009-11-22  Bruno Haible  <bruno@clisp.org>
41117
41118         error: account for the possibility of freopen (stdout).
41119         * lib/error.c: Include <unistd.h>.
41120         (flush_stdout): New function, extracted from error and error_at_line.
41121         Determine stdout's fd dynamically.
41122         (error, error_at_line): Invoke flush_stdout.
41123         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41124         * modules/error (Depends-on): Add unistd.
41125
41126 2009-11-22  Bruno Haible  <bruno@clisp.org>
41127
41128         diffseq: Add comment.
41129         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41130
41131 2009-11-22  Jim Meyering  <meyering@redhat.com>
41132
41133         c-stack: avoid defining an unused static function
41134         * lib/c-stack.c (find_stack_direction): Do not define this function
41135         when it will not be used.
41136
41137         diffseq: avoid spurious gcc warnings
41138         * lib/diffseq.h (IF_LINT2): Define.
41139         (compareseq): Use it to initialize two members of "part".
41140         This avoids two used-uninitialized warnings.
41141
41142 2009-11-21  Jim Meyering  <meyering@redhat.com>
41143
41144         c-stack: avoid "ignoring return value of `write'" warning
41145         * lib/c-stack.c: Include "ignore-value.h".
41146         (die): Explicitly ignore each write return value.
41147         * modules/c-stack (Depends-on): Add ignore-value.
41148
41149 2009-11-21  Bruno Haible  <bruno@clisp.org>
41150
41151         diffseq: reduce scope of variable 'best'.
41152         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41153         variable, earlier used for two different purposes.
41154
41155 2009-11-21  Jim Meyering  <meyering@redhat.com>
41156
41157         diffseq: remove useless assignment to "best"
41158         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41159         assignment.  At that point "best" is already guaranteed to be zero.
41160
41161 2009-11-20  Eric Blake  <ebb9@byu.net>
41162
41163         build: mention ftp redirector in release announcements
41164         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41165         values that used to come from cfg.mk; mention FTP redirect URL.
41166         * build-aux/announce-gen: Mention the mirror list.
41167         Suggested by Karl Berry.
41168
41169         nanosleep: improve port to mingw
41170         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41172         LIB_NANOSLEEP, but only when needed.
41173         * modules/select (Link): Document LIBSOCKET.
41174         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41175         enough.
41176
41177         nanosleep: work around cygwin bug
41178         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41179         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41180         bug.
41181         (getnow): Delete, not needed.
41182         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41183         LIB_CLOCK_GETTIME.
41184         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41185         clock-time, gettime.
41186         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41187         bug.
41188         * modules/nanosleep-tests: New test.
41189         * tests/test-nanosleep.c: New file.
41190
41191         sleep: work around cygwin bug
41192         * lib/sleep.c (rpl_sleep): Work around the bug.
41193         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41194         (gl_PREREQ_SLEEP): Delete unused macro.
41195         * modules/sleep (Depends-on): Add verify.
41196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41197         * modules/unistd (Makefile.am): Substitute witness.
41198         * lib/unistd.in.h (sleep): Update prototype.
41199         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41200         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41201         * modules/sleep-tests (Depends-on): Check for alarm.
41202
41203 2009-11-20  Jim Meyering  <meyering@redhat.com>
41204
41205         maint.mk: improve sc_prohibit_magic_number_exit
41206         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41207         so it does not match uses like System.exit(1).
41208         Add comments showing how to correct all offenders.
41209
41210 2009-11-19  Eric Blake  <ebb9@byu.net>
41211
41212         xalloc-die-tests: add missing library
41213         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41214
41215         test-xvasprintf: silence compiler warnings
41216         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41217         empty string from gcc.
41218
41219 2009-11-19  Jim Meyering  <meyering@redhat.com>
41220
41221         xfreopen: new module, from coreutils
41222         * modules/xfreopen: New module.
41223         * lib/xfreopen.c: New file.
41224         * lib/xfreopen.h: New file.
41225         * MODULES.html.sh (File stream based Input/Output"): Add it.
41226
41227 2009-11-19  Eric Blake  <ebb9@byu.net>
41228
41229         manywarnings: depend on warnings
41230         * modules/manywarnings (Depends-on): Add warnings.
41231
41232         build: avoid compiler warnings
41233         * lib/select.c (rpl_select): Delete unused variable.
41234         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41235
41236 2009-11-18  Eric Blake  <ebb9@byu.net>
41237
41238         tests: avoid false negative with --with-packager
41239         * tests/test-version-etc.sh: Discard packager information.
41240         * tests/test-argp-version-etc-1.sh: Likewise.
41241         Reported by Mike Frysinger.
41242
41243         utimens: fix regression on Solaris
41244         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41245         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41246         can only change fd timestamps via futimesat.  Instead, use an
41247         additional witness macro to avoid BSD bug.
41248         Reported by Jim Meyering.
41249
41250 2009-11-17  Eric Blake  <ebb9@byu.net>
41251
41252         usleep: use it to simplify tests
41253         * modules/stat-time-tests (Depends-on): Add usleep.
41254         (configure.ac): Drop usleep check.
41255         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41256         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41257         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41258         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41259         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41260         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41261         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41262         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41263         Likewise.
41264         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41265         * tests/test-lchown.h (nap): Likewise.
41266         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41267         * tests/test-stat-time.c (nap): Likewise.
41268         * tests/test-utimens-common.h (nap): Update comments.
41269
41270         usleep: new module
41271         * modules/usleep: New file.
41272         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41273         * lib/usleep.c (usleep): Likewise.
41274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41275         * modules/unistd (Makefile.am): Substitute witnesses.
41276         * lib/unistd.in.h (usleep): Add declaration.
41277         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41278         * MODULES.html.sh (Date and time): Likewise.
41279         * modules/usleep-tests (Depends-on): New test.
41280         * tests/test-usleep.c: New file.
41281
41282         chown: work around OpenBSD bug
41283         * lib/chown.c (rpl_chown): Work around the bug.
41284         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41285         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41286         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41287         * modules/chown (Depends-on): Add stdbool.
41288         * modules/lchown (Depends-on): Likewise.
41289         * doc/posix-functions/chown.texi (chown): Document the bug.
41290         * doc/posix-functions/lchown.texi (lchown): Likewise.
41291         * tests/test-lchown.h (test_chown): Relax test.
41292
41293         mkstemp: avoid conflict with C++ keyword template
41294         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41295         * lib/mkostemp.c (mkostemp): Likewise.
41296         * lib/mkostemps.c (mkostemps): Likewise.
41297         * lib/mkstemp.c (mkstemp): Likewise.
41298         * lib/mkstemps.c (mkstemps): Likewise.
41299
41300         xalloc-die-tests: optimize
41301         * tests/test-xalloc-die.sh: Reduce number of processes.
41302
41303 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41304
41305         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41306         patch from ludo@gnu.org (Ludovic Courtès).
41307
41308 2009-11-17  Jim Meyering  <meyering@redhat.com>
41309
41310         version-etc: use proper license string
41311         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41312         * modules/version-etc-fsf: Likewise.
41313
41314 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41315
41316         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41317         printed to stdout.  Deal with EOL differences.
41318
41319 2009-11-17  Eric Blake  <ebb9@byu.net>
41320
41321         unsetenv: work around Solaris bug
41322         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41323         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41324         Reported by Jim Meyering.
41325
41326         vasnprintf: avoid compiler warnings
41327         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41328         variables.
41329         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41330
41331 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41332
41333         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41334         settings since xalloc-die is no longer the self test,
41335         xalloc-die.sh is.
41336
41337 2009-11-17  Jim Meyering  <meyering@redhat.com>
41338
41339         test-xalloc-die.sh: make the code agree with the commit log
41340         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41341         at the end, just in case you happen to have a test-xalloc-die
41342         program in some other PATH directory.
41343
41344         test-xalloc-die.sh: fix a portability bug
41345         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41346         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41347         Otherwise, argv[0] (as often seen in diagnostics) would be too
41348         system-dependent, sometimes with, and sometimes without the leading "./".
41349
41350         version-etc-fsf: relax license to LGPLv3+
41351         * modules/version-etc-fsf (License): Relax license.
41352
41353 2009-11-16  Eric Blake  <ebb9@byu.net>
41354
41355         xalloc-die-tests: avoid printing null pointer
41356         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41357         shell script.
41358         * tests/test-xalloc-die.c (program_name): Declare.
41359         * tests/test-xalloc-die.sh (tmpfiles): New file.
41360
41361         setenv, unsetenv: work around various bugs
41362         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41363         (setenv) [HAVE_SETENV]: Work around bugs.
41364         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41365         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41366         for bugs.
41367         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41368         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41370         * modules/stdlib (Makefile.am): Update substitutions.
41371         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41372         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41373         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41374         * modules/setenv-tests: New test.
41375         * modules/unsetenv-tests: Likewise.
41376         * tests/test-setenv.c: New file.
41377         * tests/test-unsetenv.c: Likewise.
41378
41379 2009-11-16  Jim Meyering  <meyering@redhat.com>
41380
41381         version-etc: relax license to LGPLv3+
41382         * modules/version-etc (License): Relax license.
41383
41384         better AC_REQUIRE expanded-before-required-warning avoidance
41385         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41386         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41387         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41388         which is no longer needed.
41389
41390 2009-11-16  Eric Blake  <ebb9@byu.net>
41391
41392         test-freading: clean up temporary file
41393         * tests/test-freading.c (main): Remove file on success, and use
41394         ASSERT more liberally.
41395         Reported by Jim Meyering.
41396
41397 2009-11-16  Jim Meyering  <meyering@redhat.com>
41398
41399         avoid new AC_REQUIRE expanded-before-required warnings
41400         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41401         merely using it.
41402         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41403         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41404
41405 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41406
41407         * tests/test-xalloc-die.c: New file.
41408         * modules/xalloc-die-tests: New file.
41409         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41410         XFAIL_TESTS so it can be appended by modules.
41411
41412 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41413
41414         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41415         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41416
41417 2009-11-14  Eric Blake  <ebb9@byu.net>
41418
41419         fnmatch: avoid compiler warning
41420         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41421         to silence compiler warning about mismatch signedness in ?:.
41422         Reported by Robert Millan.
41423
41424         intprops: add double-inclusion guard
41425         * lib/intprops.h: Allow idempotent includes.
41426         Suggested by Bruce Korb.
41427
41428         openat: detect Solaris fchownat bug
41429         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41430         penalizing glibc chownat when only lchownat is broken.
41431         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41432         trailing slash bugs.
41433         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41434         * modules/openat-tests (Files): Include more files.
41435         (Depends-on): Add mgetgroups, sleep, stat-time.
41436         (configure.ac): Add additional checks.
41437         (Makefile.am): Build new test.
41438         * tests/test-fchownat.c: New file.
41439
41440         lchown: detect Solaris and FreeBSD bug
41441         * lib/lchown.c (rpl_lchown): Work around bug.
41442         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41444         * modules/unistd (Makefile.am): Populate it.
41445         * lib/unistd.in.h (lchown): Update declaration.
41446         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41447         * modules/lchown-tests: New file.
41448         * tests/test-lchown.h (test_lchown): Likewise.
41449         * tests/test-lchown.c (main): Likewise.
41450
41451         chown: detect Solaris and FreeBSD bug
41452         * lib/chown.c (rpl_chown): Work around bug.
41453         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41454         (gl_PREREQ_CHOWN): Delete.
41455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41456         * modules/unistd (Makefile.am): Populate it.
41457         * lib/unistd.in.h (chown): Update declaration.
41458         * lib/lchown.c (chown): Update client.
41459         * modules/lchown (Depends-on): Add lstat.
41460         * doc/posix-functions/chown.texi (chown): Document the bug.
41461         * doc/posix-functions/getgroups.texi (getgroups): Document
41462         getgroups pitfall.
41463         * modules/chown-tests: New file.
41464         * tests/test-chown.h (test_chown): Likewise.
41465         * tests/test-chown.c (main): Likewise.
41466
41467 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41468
41469         gnulib-tool: correctly detect absence of m4 directories
41470         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41471
41472 2009-11-14  Jim Meyering  <meyering@redhat.com>
41473
41474         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41475         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41476
41477 2009-11-14  John W. Eaton  <jwe@gnu.org>
41478
41479         strftime.h: wrap function declaration in extern "C" block
41480         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41481
41482 2009-11-13  Eric Blake  <ebb9@byu.net>
41483
41484         getgroups: avoid compiler warning
41485         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41486
41487         getgroups: work around FreeBSD bug
41488         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41489         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41490         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41491         * tests/test-getgroups.c (main): Fix buffer overrun.
41492
41493         getgroups: avoid compilation failure
41494         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41495         * modules/getgroups (Depends-on): Add stdint.
41496
41497 2009-11-13  Jim Meyering  <meyering@redhat.com>
41498
41499         test-getgroups: avoid compilation failure
41500         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41501
41502 2009-11-13  Eric Blake  <ebb9@byu.net>
41503
41504         mgetgroups: new module, taken from coreutils
41505         * modules/mgetgroups: New file.
41506         * lib/mgetgroups.h: Likewise.
41507         * lib/mgetgroups.c (mgetgroups): Likewise.
41508         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41509         * MODULES.html.sh (Users and groups): Mention it.
41510
41511         getgroups: don't expose GETGROUPS_T to user
41512         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41513         an element at a time if GETGROUPS_T is wrong size.
41514         * lib/getugroups.h (getugroups): Change signature.
41515         * lib/unistd.in.h (getgroups): Likewise.
41516         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41517         signature needs fixing.
41518         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41519         AC_TYPE_GETGROUPS.
41520         * modules/group-member (Depends-on): Add getgroups.
41521         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41522         (group_member): Rely on getgroups replacement.
41523         * lib/getugroups.c (getugroups): Use gid_t.
41524         * tests/test-getgroups.c (main): Likewise.
41525         * NEWS: Mention the signature change.
41526         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41527         problem with signature.
41528         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41529         GETGROUPS_T is still useful for setgroups.
41530
41531         getgroups, getugroups: provide stubs for mingw
41532         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41533         * lib/getugroups.c (getugroups): Likewise.
41534         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41535         function.  Modernize replacement scheme.
41536         (gl_PREREQ_GETGROUPS): Delete.
41537         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41538         * modules/getgroups (configure.ac): Declare witness.
41539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41540         * modules/unistd (Depends-on): Substitute witness.
41541         * lib/unistd.in.h (getgroups): Declare replacement.
41542
41543         getgroups: avoid calling exit
41544         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41545         drop xalloc.
41546         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41547         dependencies.
41548         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41549         exiting, in the rare case of malloc failure.
41550
41551         getgroups: fix logic error
41552         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41553         has more than 20 groups.
41554         * modules/getgroups-tests: New test.
41555         * tests/test-getgroups.c: New file.
41556
41557 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41558
41559         * tests/test-base64.c: Improve.
41560
41561 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41562
41563         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41564         Blake <ebb9@byu.net>.
41565
41566 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41567
41568         * tests/test-xvasprintf.c: Add %s%s related checks.
41569
41570 2009-11-12  Eric Blake  <ebb9@byu.net>
41571
41572         version-etc: match standards.texi style
41573         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41574         and use <> only for URLs.
41575
41576 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41577
41578         fts: do not fail on a submount during traversal
41579         * lib/fts.c (fts_build): Read the stat info again after opening
41580         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41581         Original report at http://bugzilla.redhat.com/501848.
41582
41583 2009-11-12  Jim Meyering  <meyering@redhat.com>
41584
41585         bootstrap: sync from coreutils
41586         * build-aux/bootstrap (bootstrap_epilogue): New function.
41587         Use git_modules_config in one more place.  This make bootstrap's
41588         --gnulib-srcdir option more useful for testing.
41589
41590         bootstrap: generalize autoheader check
41591         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41592         AC_CONFIG_HEADERS.
41593
41594 2009-11-11  Eric Blake  <ebb9@byu.net>
41595
41596         mkfifoat: use new modules for Solaris and BSD bugs
41597         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41598         * lib/mkfifoat.c (mknodat): Split...
41599         * lib/mknodat.c (mknodat): ...into new file.
41600         * modules/mkfifoat (Files): Ship new file.
41601         (Depends-on): Add mkfifo, mknod.
41602         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
41603         (Depends-on): Add symlink.
41604         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
41605         redundant with test_mkfifo.h.
41606         (do_mkfifoat, do_mknodat): New helpers.
41607
41608         mknod: new module
41609         * modules/mknod: New file.
41610         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
41611         * lib/mknod.c (mknod): Likewise.
41612         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41613         defaults.
41614         * modules/sys_stat (Makefile.am): Substitute them.
41615         * lib/sys_stat.in.h (mknod): Declare replacement.
41616         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41617         Document it.
41618         * doc/posix-functions/mknod.texi (mknod): Likewise.
41619         * modules/mknod-tests: New test.
41620         * tests/test-mknod.c: Likewise.
41621
41622         mkfifo: new module
41623         * modules/mkfifo: New file.
41624         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41625         * lib/mkfifo.c (mkfifo): Likewise.
41626         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41627         defaults.
41628         * modules/sys_stat (Makefile.am): Substitute them.
41629         * lib/sys_stat.in.h (mkfifo): Declare replacement.
41630         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41631         Document it.
41632         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
41633         * modules/mkfifo-tests: New test.
41634         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
41635         from test-mkfifoat.c.
41636         * tests/test-mkfifo.c: New file.
41637
41638         readlink: detect FreeBSD bug
41639         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
41640         slash on symlink.
41641         * doc/posix-functions/readlink.texi (readlink): Document the bug.
41642         * tests/test-readlink.h (test_readlink): Enhance test.
41643
41644         symlink: detect FreeBSD bug
41645         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
41646         slash on symlink.
41647         * doc/posix-functions/symlink.texi (symlink): Document the bug.
41648         * tests/test-symlink.h (test_symlink): Enhance test.
41649
41650 2009-11-10  Eric Blake  <ebb9@byu.net>
41651
41652         link: detect FreeBSD bug
41653         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
41654         symlink.
41655         * doc/posix-functions/link.texi (link): Document the bug.
41656         * tests/test-link.h (test_link): Enhance test.
41657         * tests/test-linkat.c (main): Update caller.
41658
41659         unlink, remove: detect FreeBSD bug
41660         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
41661         slash on symlink.
41662         * doc/posix-functions/unlink.texi (unlink): Document the bug.
41663         * doc/posix-functions/remove.texi (remove): Likewise.
41664         * tests/test-unlink.h (test_unlink): Enhance test.
41665         * tests/test-remove.c (main): Likewise.
41666
41667 2009-11-09  Eric Blake  <ebb9@byu.net>
41668
41669         rename: detect FreeBSD bug
41670         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
41671         slash on symlink.
41672         * modules/renameat-tests (Depends-on): Add filenamecat.
41673         * tests/test-rename.h (test_rename): Allow one more errno.
41674         * tests/test-renameat.c (main): Likewise.
41675         * doc/posix-functions/rename.texi (rename): Document the bug.
41676
41677         open: detect FreeBSD bug
41678         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
41679         symlink.
41680         * doc/posix-functions/open.texi (open): Document the bug.
41681         * doc/posix-functions/utimes.texi (utimes): Likewise.
41682         * tests/test-open.h (test_open): Add parameters, and test symlink
41683         handling.
41684         * tests/test-open.c (main): Adjust caller.
41685         * tests/test-fcntl-safer.c (main): Likewise.
41686         * modules/open-tests (Depends-on): Add stdbool, symlink.
41687         * modules/fcntl-safer-tests (Depends-on): Likewise.
41688         * tests/test-openat.c (main): Add test-open tests.
41689
41690         stat: detect FreeBSD bug
41691         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
41692         symlink.
41693         * doc/posix-functions/stat.texi (stat): Document the bug.
41694         * tests/test-stat.h (test_stat_func): Add argument.
41695         * tests/test-stat.c (main): Adjust caller.
41696         * tests/test-fstatat.c (main): Likewise.
41697         * modules/stat-tests (Depends-on): Add stdbool, symlink.
41698         Reported by Jim Meyering.
41699
41700 2009-11-09  James Youngman  <jay@gnu.org>
41701
41702         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
41703         * lib/strftime.c: Correct placement of #include "ignore-value.h".
41704
41705 2009-11-08  Jim Meyering  <meyering@redhat.com>
41706
41707         utimens: remove invalid futimesat call
41708         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
41709         It used the file descriptor of the target file as the DIR_FD
41710         parameter and NULL as the file name.  That caused failure with
41711         errno == EFAULT on FreeBSD-8.0-rc2
41712
41713 2009-11-07  Eric Blake  <ebb9@byu.net>
41714
41715         fflush, freadseek: use fseeko, not fseek
41716         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
41717         (clear_ungetc_buffer): Avoid potential problems on large files.
41718         * lib/freadseek.c (freadseek): Likewise.
41719         * modules/freadseek (Depends-on): Add fseeko.
41720         * modules/fseek (configure.ac): Set a witness.
41721         * tests/test-fflush.c (main): Use fseeko.
41722         * tests/test-fpurge.c (fseek): Disable link warning.
41723         * tests/test-freadable.c (fseek): Likewise.
41724         * tests/test-freading.c (fseek): Likewise.
41725         * tests/test-fseeko.c (fseek): Likewise.
41726         * tests/test-ftell.c (fseek): Likewise.
41727         * tests/test-ftello.c (fseek): Likewise.
41728         * tests/test-fwritable.c (fseek): Likewise.
41729         * tests/test-fwriting.c (fseek): Likewise.
41730
41731 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41732
41733         * modules/memchr (Depends-on): Drop getpagesize dependency.
41734
41735 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41736
41737         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
41738         Reported by Ludovic Courtès.
41739         * build-aux/pmccabe2html: Improve example usage.
41740         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
41741
41742 2009-11-06  Jim Meyering  <meyering@redhat.com>
41743
41744         do-release-commit-and-tag: New module.
41745         Automate the release-commit and tag process.
41746         * build-aux/do-release-commit-and-tag: New script, from coreutils.
41747         * modules/do-release-commit-and-tag: New file.
41748         * MODULES.html.sh (Support for maintaining and releasing): Add it.
41749
41750 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41751
41752         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
41753         because test-select.c uses inet_pton.
41754
41755 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41756
41757         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
41758         GETADDRINFO_LIB.  Bump serial number.
41759         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
41760         Suggested by Eric Blake <ebb9@byu.net>.
41761
41762 2009-11-05  Eric Blake  <ebb9@byu.net>
41763
41764         strtod: detect darwin bug
41765         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
41766         Reported by Leo Davis.
41767
41768         freopen-safer: new module
41769         * modules/freopen-safer: New module.
41770         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
41771         * lib/freopen-safer.c (freopen_safer): New file.
41772         * lib/stdio-safer.h (freopen_safer): New declaration.
41773         * lib/stdio--.h (freopen): New override.
41774         * MODULES.html.sh (File stream based Input/Output): Mention it.
41775         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
41776         freopen-safer module.
41777         * doc/posix-functions/stderr.texi (stderr): Likewise.
41778         * doc/posix-functions/stdin.texi (stdin): Likewise.
41779         * doc/posix-functions/stdout.texi (stdout): Likewise.
41780         * modules/freopen-safer-tests: New test.
41781         * tests/test-reopen-safer.c: New file.
41782
41783 2009-11-05  Jim Meyering  <meyering@redhat.com>
41784
41785         maint.mk: Prohibit inclusion of "close-stream.h" without use.
41786         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41787
41788 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41789
41790         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
41791
41792 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41793
41794         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
41795
41796 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41797
41798         Fix link error.
41799         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41800         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41801
41802 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41803
41804         * tests/test-func.c: Also test value of __func__.
41805
41806 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41807
41808         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
41809         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
41810
41811 2009-11-05  Bruno Haible  <bruno@clisp.org>
41812
41813         Fix link error.
41814         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41815         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41816         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
41817
41818 2009-11-05  Bruno Haible  <bruno@clisp.org>
41819
41820         Tests for module 'inet_pton'.
41821         * modules/inet_pton-tests: New file.
41822         * tests/test-inet_pton.c: New file.
41823
41824 2009-11-05  Bruno Haible  <bruno@clisp.org>
41825
41826         Tests for module 'inet_ntop'.
41827         * modules/inet_ntop-tests: New file.
41828         * tests/test-inet_ntop.c: New file.
41829
41830 2009-11-04  Eric Blake  <ebb9@byu.net>
41831
41832         stdlib-safer: wrap all mkstemp variants
41833         * modules/mkostemp (configure.ac): Set witness.
41834         * modules/mkostemps (configure.ac): Likewise.
41835         * modules/mkstemps (configure.ac): Likewise.
41836         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
41837         (mkstemps_safer): Wrap more functions.
41838         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
41839         wrapping.
41840         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
41841         (mkstemps_safer): Implement the wrappers.
41842
41843         mkstemps, mkostemps: new modules
41844         * modules/mkostemps: New module.
41845         * modules/mkstemps: Likewise.
41846         * lib/mkostemps.c (mkostemps): New file.
41847         * lib/mkstemps.c (mkstemps): Likewise.
41848         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
41849         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
41850         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
41851         * modules/stdlib (Makefile.am): Substitute them.
41852         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
41853         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
41854         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41855         * doc/gnulib.texi (Glibc stdlib.h): Include them.
41856         * MODULES.html.sh (File system functions): Mention them.
41857
41858         tempname: resync from glibc
41859         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
41860         same values for __GT_FILE as glibc.  Abort even when assertions
41861         are disabled.
41862         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
41863         match its value otherwise.  Allow idempotent inclusion.
41864         * lib/mkdtemp.c (mkdtemp): Adjust caller.
41865         * lib/mkostemp.c (mkostemp): Likewise.
41866         * lib/mkstemp.c (mkstemp): Likewise.
41867         * lib/tmpfile.c (tmpfile): Likewise.
41868         * NEWS: Document this.
41869
41870         utimens: fix use of futimens on older Linux
41871         * lib/utimens.c (fdutimens): Use updated, rather than original,
41872         timespec to avoid bug in older Linux kernel.
41873         Reported by Simon Josefsson.
41874
41875 2009-11-04  Bruno Haible  <bruno@clisp.org>
41876
41877         Make num_processors more flexible and consistent.
41878         * lib/nproc.h (enum nproc_query): New type.
41879         (num_processors): Add a 'query' argument.
41880         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
41881         (num_processors): Add a 'query' argument. Test the value of the
41882         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
41883         mingw, count the number of CPUs available for the current process.
41884         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
41885         Check for sched_getaffinity and sched_getaffinity_np.
41886         * modules/nproc (Depends-on): Add c-ctype, extensions.
41887         * NEWS: Mention the change.
41888
41889 2009-11-03  Bruno Haible  <bruno@clisp.org>
41890
41891         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
41892
41893 2009-11-03  Jim Meyering  <meyering@redhat.com>
41894
41895         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
41896         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
41897         if it is defined.
41898
41899 2009-11-02  Eric Blake  <ebb9@byu.net>
41900
41901         mktime, timegm: share common declaration
41902         * lib/mktime-internal.h: New file.
41903         * lib/mktime.c: Use it rather than open-coding a declaration.
41904         * lib/timegm.c: Likewise.
41905         * modules/mktime (Files): Ship it.
41906         * modules/timegm (Files): Likewise.
41907         Suggested by Bruno Haible.
41908
41909         test-update-copyright: update test to match script changes
41910         * tests/test-update-copyright.sh: Avoid hard-coding perl
41911         location.  Don't update *.bak created by earlier runs.
41912
41913 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41914             Simon Josefsson  <simon@josefsson.org>
41915             Bruno Haible  <bruno@clisp.org>
41916
41917         Fix link error on Solaris 8.
41918         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
41919         also in libnsl. Define also INET_PTON_LIB.
41920         * modules/inet_pton (Link): New section.
41921
41922 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41923             Bruno Haible  <bruno@clisp.org>
41924
41925         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
41926         * modules/inet_ntop (Link): New section.
41927         Reported by Boyan Kasarov <bkasarov@gmail.com>.
41928
41929 2009-11-02  Eric Blake  <ebb9@byu.net>
41930
41931         maint: avoid compiler warnings in m4 macros
41932         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
41933         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
41934
41935 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41936
41937         * m4/pmccabe2html.m4: Remove file.
41938         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
41939         function.  Change maintainer.
41940         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
41941         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
41942         Courtès).
41943
41944 2009-10-31  Eric Blake  <ebb9@byu.net>
41945
41946         fseeko: fix m4 regression
41947         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
41948         regression from 2009-10-27.
41949         Reported by Ralf Wildenhues.
41950
41951 2009-10-31  Jim Meyering  <meyering@redhat.com>
41952
41953         inttostr: aesthetics and improved (compile-time) safety
41954         Define inttype_is_signed rather than inttype_is_unsigned,
41955         since the sole use is via "#if inttype_is_signed".
41956         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
41957         inttype_is_unsigned.
41958         * lib/offtostr.c (inttype_is_signed): Likewise.
41959         * lib/uinttostr.c (inttype_is_signed): Likewise.
41960         * lib/umaxtostr.c (inttype_is_signed): Likewise.
41961         * lib/inttostr.c (inttostr): Use verify to cross-check the
41962         inttype_is_signed value and the signedness of the actual type.
41963         * modules/inttostr (Depends-on): Add verify.
41964
41965 2009-10-30  Eric Blake  <ebb9@byu.net>
41966
41967         build: avoid compiler warnings
41968         * lib/fchmodat.c (lchmod): Mark unused variables.
41969         * lib/getopt.c (_getopt_initialize): Likewise.
41970         * lib/mktime.c (__mktime_internal): Provide prototype.
41971         * lib/inttostr.c (inttostr): Avoid compiler warning even with
41972         older gcc that do not understand #pragma GCC diagnostic.
41973         * lib/uinttostr.c (inttype_is_unsigned): Define.
41974         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
41975
41976 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
41977
41978         stat: fix compilation on AIX
41979         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
41980         only see struct stat64.
41981
41982 2009-10-30  Eric Blake  <ebb9@byu.net>
41983
41984         exclude: make more robust
41985         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
41986         rather than masking a coding bug.
41987         Suggested by Bruno Haible.
41988
41989 2009-10-30  Jim Meyering  <meyering@redhat.com>
41990
41991         perl scripts: remove #!/usr/bin/perl in favor of more portable...
41992         Rather than putting #!/usr/bin/perl on the first line,
41993         start with a variant of what's recommended by "man perlrun" that
41994         invokes the first "perl" program from your shell's search path.
41995         * build-aux/gitlog-to-changelog: Replace #!... as above.
41996         Add a "Local Variables" perl mode setting.
41997         Prompted by a patch from Ludovic Courtès.
41998         Improved by Eric Blake.
41999         * build-aux/useless-if-before-free: Likewise.
42000         * build-aux/announce-gen: Likewise.
42001         * build-aux/update-copyright: Likewise.
42002
42003 2009-10-29  Eric Blake  <ebb9@byu.net>
42004
42005         filenamecat-lgpl: adjust clients
42006         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42007         filenamecat.
42008         * modules/renameat (Depends-on): Likewise.
42009
42010         filenamecat: split into filenamecat-lgpl
42011         * modules/filenamecat-lgpl: New module.
42012         * modules/filenamecat (Files): Move library-safe files into
42013         filenamecat-lgpl.
42014         (Depends-on): Add filenamecat-lgpl.
42015         (configure.ac): Declare witness.
42016         * lib/filenamecat.h (file_name_concat): Only declare when using
42017         GPL module.
42018         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42019         Move...
42020         * lib/filenamecat-lgpl.c: ...into new file.
42021         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42022         (gl_FILE_NAME_CONCAT): Use it.
42023         * MODULES.html.sh (File system functions): Mention new module.
42024
42025         argp: avoid memory leak
42026         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42027         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42028         base_name, since the latter malloc()s and can call exit().
42029         Leak introduced 2006-07-03.
42030
42031         dirname-lgpl: adjust clients that don't need full dirname
42032         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42033         * modules/filenamecat (Depends-on): Likewise.
42034         * modules/linkat (Depends-on): Likewise.
42035         * modules/mkancesdirs (Depends-on): Likewise.
42036         * modules/mkdir (Depends-on): Likewise.
42037         * modules/openat (Depends-on): Likewise.
42038         * modules/savewd (Depends-on): Likewise.
42039         * modules/rename (Depends-on): Likewise.
42040         (License): Relax license.
42041         * modules/mkdir-tests (Depends-on): Drop progname.
42042         (Makefile.am): Delete unneeded LDADD.
42043         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42044
42045         dirname: split into dirname-lgpl
42046         * modules/dirname-lgpl: New module.
42047         * modules/dirname (Files): Move library-safe files into
42048         dirname-lgpl.
42049         (Depends-on): Add dirname-lgpl.
42050         (configure.ac): Declare witness.
42051         * modules/double-slash-root (License): Relax license.
42052         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42053         module.
42054         * lib/dirname.c (dir_len, mdir_name): Move...
42055         * lib/dirname-lgpl.c: ...into new file.
42056         * lib/basename.c (last_component, base_len): Move...
42057         * lib/basename-lgpl.c: ...into new file.
42058         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42059         (gl_DIRNAME): Use it.
42060         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42061         Mention new module.
42062         * modules/dirname-tests (Depends-on): Add progname.
42063         * tests/test-dirname.c (program_name): Delete.
42064
42065         mkdir: make safe for libraries
42066         * modules/mkdir (Depends-on): Drop xalloc.
42067         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42068         exit.
42069
42070         tests: avoid some compiler warnings
42071         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42072         literals.
42073         * tests/test-memchr.c (main): Avoid type mismatch.
42074         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42075         * tests/test-base64.c (main): Likewise.
42076         * tests/test-getdelim.c (main): Likewise.
42077         * tests/test-gethostname.c (main): Likewise.
42078         * tests/test-getline.c (main): Likewise.
42079         * tests/test-netinet_in.c (main): Likewise.
42080         * tests/test-select.c (open_server_socket, main): Likewise.
42081         * tests/test-select-stdin.c (main): Likewise.
42082         * tests/test-sockets.c (main): Likewise.
42083         * tests/test-strsignal.c (main): Likewise.
42084         * tests/test-sys_select.c (main): Likewise.
42085         * tests/test-sys_socket.c (main): Likewise.
42086         * tests/test-u64.c (main): Likewise.
42087         * tests/test-xfprintf-posix.c (main): Likewise.
42088         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42089
42090         sockets: avoid compiler warning
42091         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42092
42093         maint: detect usage(1) and other suspicious exits
42094         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42095
42096 2009-10-29  Jim Meyering  <meyering@redhat.com>
42097
42098         timespec: long-to-int truncation could make timespec_cmp malfunction
42099         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42100         a multiple of 2^32 nanoseconds as no difference.
42101
42102 2009-10-28  Jim Meyering  <meyering@redhat.com>
42103
42104         fprintftime: wrap macro code argument in "do {...} while(0)"
42105         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42106         cpy macro must be a statement that can be followed by a semicolon.
42107         Now that the else clause contains a comment and is hence longer
42108         than one line, I require curly braces.  That in turn requires
42109         that we wrap this code block in the standard do...while(0).
42110
42111         fprintftime: remove stray semicolon from previous change
42112         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42113
42114         fprintftime: avoid a warning about ignored fwrite return value
42115         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42116         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42117         that is unsafe.
42118         * modules/fprintftime (Depends-on): Add ignore-value.
42119
42120         exclude: avoid an unwarranted warning
42121         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42122
42123 2009-10-27  Eric Blake  <ebb9@byu.net>
42124
42125         fseek: avoid compilation failure when fflush is replaced
42126         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42127         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42128         module is in use.
42129         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42130         module is not in use; since REPLACE_FSEEK worked otherwise.
42131         (GNULIB_FTELLO): Likewise for ftell.
42132         Reported by Ian Beckwith and others.
42133
42134 2009-10-27  Bruno Haible  <bruno@clisp.org>
42135
42136         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42137         Reported by Jim Meyering.
42138
42139 2009-10-27  Jim Meyering  <jim@meyering.net>
42140             Bruno Haible  <bruno@clisp.org>
42141
42142         Avoid warning despite dropping the return value of fwrite.
42143         * lib/unicodeio.c: Include ignore-value.h.
42144         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42145         * modules/unicodeio (Depends-on): Add ignore-value.
42146
42147 2009-10-26  Eric Blake  <ebb9@byu.net>
42148
42149         areadlinkat: fix fallback path
42150         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42151         pointer and zero.
42152
42153 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42154
42155         Use a better IO block size for modern systems
42156         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42157         * lib/md2.c: Likewise.
42158         * lib/md4.c: Likewise.
42159         * lib/md5.c: Likewise.
42160         * lib/sha1.c: Likewise.
42161         * lib/sha256.c: Likewise.
42162         * lib/sha512.c: Likewise.
42163
42164 2009-10-22  Eric Blake  <ebb9@byu.net>
42165
42166         tests: avoid several compiler warnings
42167         * tests/test-getcwd.c (main): Avoid buffer underflow.
42168         * tests/test-getdate.c (main): String literals are not safe with
42169         putenv, so use setenv.  Declare unused argument.
42170         * modules/getdate-tests (Depends-on): Add setenv.
42171         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42172         problems with string literals in char *.
42173         * tests/test-hash.c (main): Avoid shadowing declaration.
42174         (insert_new): Treat string literals as char const *.
42175         * tests/test-getopt.h (test_getopt): Likewise.
42176         (getopt_loop): Alter types to minimize casting elsewhere.
42177         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42178         (test_getopt_long_posix): Likewise.
42179         (do_getopt_long): Add wrapper to minimize casting.
42180         * tests/test-atexit.c (clear_temp_file): Use void.
42181         * tests/test-areadlink-with-size.c (main): Declare unused
42182         arguments.
42183         * tests/test-areadlink.c (main): Likewise.
42184         * tests/test-areadlinkat-with-size.c (main): Likewise.
42185         * tests/test-areadlinkat.c (main): Likewise.
42186         * tests/test-canonicalize-lgpl.c (main): Likewise.
42187         * tests/test-canonicalize.c (main): Likewise.
42188         * tests/test-dirent-safer.c (main): Likewise.
42189         * tests/test-dirname.c (main): Likewise.
42190         * tests/test-dup2.c (main): Likewise.
42191         * tests/test-fchdir.c (main): Likewise.
42192         * tests/test-fcntl-h.c (main): Likewise.
42193         * tests/test-fcntl-safer.c (main): Likewise.
42194         * tests/test-fdopendir.c (main): Likewise.
42195         * tests/test-fdutimensat.c (main): Likewise.
42196         * tests/test-fflush.c (main): Likewise.
42197         * tests/test-filenamecat.c (main): Likewise.
42198         * tests/test-filevercmp.c (main): Likewise.
42199         * tests/test-fopen-safer.c (main): Likewise.
42200         * tests/test-fopen.c (main): Likewise.
42201         * tests/test-fpending.c (main): Likewise.
42202         * tests/test-fpurge.c (main): Likewise.
42203         * tests/test-freading.c (main): Likewise.
42204         * tests/test-fstatat.c (main): Likewise.
42205         * tests/test-fsync.c (main): Likewise.
42206         * tests/test-futimens.c (main): Likewise.
42207         * tests/test-getndelim2.c (main): Likewise.
42208         * tests/test-gettimeofday.c (main): Likewise.
42209         * tests/test-getopt.c (main): Likewise.
42210         * tests/test-i-ring.c (main): Likewise.
42211         * tests/test-inttypes.c (main): Likewise.
42212         * tests/test-link.c (main): Likewise.
42213         * tests/test-lstat.c (main): Likewise.
42214         * tests/test-math.c (main): Likewise.
42215         * tests/test-md5.c (main): Likewise.
42216         * tests/test-memchr2.c (main): Likewise.
42217         * tests/test-memrchr.c (main): Likewise.
42218         * tests/test-mkdir.c (main): Likewise.
42219         * tests/test-mkdirat.c (main): Likewise.
42220         * tests/test-mkfifoat.c (main): Likewise.
42221         * tests/test-open.c (main): Likewise.
42222         * tests/test-openat-safer.c (main): Likewise.
42223         * tests/test-openat.c (main): Likewise.
42224         * tests/test-quotearg.c (main): Likewise.
42225         * tests/test-rawmemchr.c (main): Likewise.
42226         * tests/test-readlink.c (main): Likewise.
42227         * tests/test-remove.c (main): Likewise.
42228         * tests/test-rename.c (main): Likewise.
42229         * tests/test-renameat.c (main): Likewise.
42230         * tests/test-rmdir.c (main): Likewise.
42231         * tests/test-sha1.c (main): Likewise.
42232         * tests/test-signal.c (main): Likewise.
42233         * tests/test-sigaction.c (main): Likewise.
42234         * tests/test-stat.c (main): Likewise.
42235         * tests/test-stat-time.c (main): Likewise.
42236         * tests/test-stddef.c (main): Likewise.
42237         * tests/test-stdint.c (main): Likewise.
42238         * tests/test-stdio.c (main): Likewise.
42239         * tests/test-stdlib.c (main): Likewise.
42240         * tests/test-strchrnul.c (main): Likewise.
42241         * tests/test-strerror.c (main): Likewise.
42242         * tests/test-string.c (main): Likewise.
42243         * tests/test-strtod.c (main): Likewise.
42244         * tests/test-strverscmp.c (main): Likewise.
42245         * tests/test-symlink.c (main): Likewise.
42246         * tests/test-symlinkat.c (main): Likewise.
42247         * tests/test-sys_stat.c (main): Likewise.
42248         * tests/test-sys_time.c (main): Likewise.
42249         * tests/test-time.c (main): Likewise.
42250         * tests/test-unistd.c (main): Likewise.
42251         * tests/test-unlink.c (main): Likewise.
42252         * tests/test-unlinkat.c (main): Likewise.
42253         * tests/test-utimens.c (main): Likewise.
42254         * tests/test-utimensat.c (main): Likewise.
42255         * tests/test-version-etc.c (main): Likewise.
42256         * tests/test-wchar.c (main): Likewise.
42257         * tests/test-wctype.c (main): Likewise.
42258         * tests/test-xprintf-posix.c (main): Likewise.
42259         * tests/test-posixtm.c (main): Likewise.
42260         (STREQ): Delete unused macro.
42261         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42262         shadowed variables.
42263         * tests/test-memchr.c (main): Likewise.
42264
42265 2009-10-21  Eric Blake  <ebb9@byu.net>
42266
42267         areadlinkat: avoid failure on older glibc
42268         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42269         rather than mis-comparing 0 against FUNC_RESULT of char*.
42270
42271 2009-10-21  Bruno Haible  <bruno@clisp.org>
42272
42273         * modules/stpncpy (License): Relicense under LGPLv2+.
42274         Reported by David Lutterkort <lutter@redhat.com>.
42275
42276 2009-10-20  Eric Blake  <ebb9@byu.net>
42277
42278         utimensat: work around Solaris 9 bug
42279         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42280         has trailing slash bugs.
42281         * tests/test-lutimens.h (test_lutimens): Enhance test.
42282         * tests/test-utimens.h (test_utimens): Likewise.
42283         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42284         * doc/posix-functions/utimes.texi (utimes): Likewise.
42285         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42286         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42287         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42288         * doc/posix-functions/futimens.texi (futimens): Likewise.
42289
42290         fdutimensat: new module
42291         * modules/fdutimensat: New file.
42292         * lib/fdutimensat.c (fdutimensat): Likewise.
42293         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42294         * MODULES.html.sh (File system functions): Mention module.
42295         * modules/fdutimensat-tests: New test.
42296         * tests/test-fdutimensat.c: Likewise.
42297
42298         doc: regenerate INSTALL
42299         * doc/INSTALL: Reflect recent autoconf update.
42300         * doc/INSTALL.ISO: Likewise.
42301         * doc/INSTALL.UTF-8: Likewise.
42302
42303 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42304
42305         acl: warn if ACL support is not detected
42306         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42307
42308 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42309
42310         * lib/nproc.h: Add extern "C" block for C++.
42311
42312 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42313             Bruno Haible  <bruno@clisp.org>
42314
42315         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42316         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42317         * doc/posix-functions/isalpha.texi: Likewise.
42318         * doc/posix-functions/isblank.texi: Likewise.
42319         * doc/posix-functions/iscntrl.texi: Likewise.
42320         * doc/posix-functions/isdigit.texi: Likewise.
42321         * doc/posix-functions/isgraph.texi: Likewise.
42322         * doc/posix-functions/islower.texi: Likewise.
42323         * doc/posix-functions/isprint.texi: Likewise.
42324         * doc/posix-functions/ispunct.texi: Likewise.
42325         * doc/posix-functions/isspace.texi: Likewise.
42326         * doc/posix-functions/isupper.texi: Likewise.
42327         * doc/posix-functions/isxdigit.texi: Likewise.
42328
42329 2009-10-18  Bruno Haible  <bruno@clisp.org>
42330
42331         Tests for module 'isblank'.
42332         * modules/isblank-tests: New file.
42333         * tests/test-isblank.c: New file.
42334
42335         New module 'isblank'.
42336         * lib/isblank.c: New file.
42337         * m4/isblank.m4: New file.
42338         * modules/isblank: New file.
42339         * doc/posix-functions/isblank.texi: Mention the new module.
42340
42341 2009-10-18  Bruno Haible  <bruno@clisp.org>
42342
42343         New module 'ctype'.
42344         * lib/ctype.in.h: New file.
42345         * m4/ctype.m4: New file.
42346         * modules/ctype: New file.
42347         * doc/posix-headers/ctype.texi: Mention the new module.
42348
42349 2009-10-18  Jim Meyering  <meyering@redhat.com>
42350
42351         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42352         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42353         right after its initialization, rather than farther down.
42354         Keeping these in close proximity makes it easier to ensure
42355         that each such variable is initialized.  E.g.,
42356
42357             LIB_CLOCK_GETTIME=
42358             AC_SUBST([LIB_CLOCK_GETTIME])
42359
42360         This change also increments these serial numbers.
42361         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42362         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42363         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42364
42365 2009-10-18  Bruno Haible  <bruno@clisp.org>
42366
42367         Don't let environment variables perturb build.
42368         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42369         (gl_PREREQ_GETHRXTIME): ... not here.
42370
42371 2009-10-18  Bruno Haible  <bruno@clisp.org>
42372
42373         Avoid symlink attack in localcharset module.
42374         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42375         (O_NOFOLLOW): Define fallback.
42376         (get_charset_aliases): Don't open the file if it is a symbolic link.
42377         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42378         gl_FCNTL_H.
42379         (gl_FCNTL_H): Require it.
42380         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42381         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42382         Reported by Fergal Glynn <fglynn@veracode.com>.
42383
42384 2009-10-18  Bruno Haible  <bruno@clisp.org>
42385
42386         Implement nproc for mingw.
42387         * lib/nproc.c: Include <windows.h>
42388         (num_processors): On native Windows platforms, try GetSystemInfo.
42389
42390 2009-10-18  Bruno Haible  <bruno@clisp.org>
42391
42392         Implement nproc for IRIX.
42393         * lib/nproc.c: Include <sys/sysmp.h>.
42394         (num_processors): On IRIX systems, try sysmp.
42395         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42396
42397 2009-10-18  Bruno Haible  <bruno@clisp.org>
42398
42399         Implement nproc for HP-UX.
42400         * lib/nproc.c: Include <sys/pstat.h>
42401         (num_processors): On HP-UX systems, try pstat_getdynamic.
42402         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42403         pstat_getdynamic.
42404
42405 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42406             Bruno Haible  <bruno@clisp.org>
42407
42408         Implement nproc for NetBSD, OpenBSD.
42409         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42410         (ARRAY_SIZE): New macro.
42411         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42412         * m4/nproc.m4: New file.
42413         * modules/nproc (Files): Add m4/nproc.m4.
42414         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42415         (Makefile.am): Instead, augment lib_SOURCES.
42416
42417 2009-10-18  Bruno Haible  <bruno@clisp.org>
42418
42419         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42420         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42421         sys/param.h.
42422
42423 2009-10-16  Eric Blake  <ebb9@byu.net>
42424
42425         utimensat: new module
42426         * modules/utimensat: New file.
42427         * lib/utimensat.c (utimensat): Likewise.
42428         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42429         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42430         so we can work around Linux bugs.
42431         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42432         * modules/sys_stat (Makefile.am): Substitute them.
42433         * lib/sys_stat.in.h (utimensat): Declare it.
42434         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42435         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42436         * modules/utimensat-tests: New test.
42437         * tests/test-utimensat.c: Likewise.
42438
42439         utimens: let lutimens work on non-symlinks
42440         * lib/utimens.c (lutimens): Fall back to utimens rather than
42441         failing with ENOSYS, when file is not a symlink.
42442         (utimens): Reduce redirection.
42443         * tests/test-lutimens.h (test_lutimens): Update test to cover
42444         non-symlinks.
42445         * tests/test-utimens.h (test_utimens): Update test to cover
42446         symlinks.
42447         * tests/test-utimens.c (main): Update caller.
42448
42449         utimens: cache whether utimensat syscall works
42450         * lib/utimens.c (utimensat_works_really): New cache variable.
42451         (fdutimens, lutimens): Use it to avoid failing syscall.
42452
42453         test-stat-time, test-utimens: improve portability
42454         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42455         ext4 on alpha, and for cygwin.
42456         * tests/test-utimens-common.h: New file.
42457         (nap): Factor delays into single function.
42458         * tests/test-lutimens.h (test_lutimens): Use new header.
42459         * tests/test-futimens.h (test_futimens): Likewise.
42460         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42461         timestamps to occur from same machine, as was done previously for
42462         test_utimens.
42463         * modules/utimens-tests (Files): Ship new file.
42464         * modules/futimens-tests (Files): Likewise.
42465         Reported in part by Jim Meyering.
42466
42467         sys_stat: sort replacement declarations
42468         * lib/sys_stat.in.h: Sort declarations.
42469         * lib/futimens.c (futimens): Fix typo.
42470
42471 2009-10-15  Jim Meyering  <meyering@redhat.com>
42472
42473         don't let environment settings perturb build
42474         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42475         could cause a configure-time and/or build-time malfunction.
42476         Typically, a configure-time function-in-library test is performed
42477         via code like this:
42478
42479           LIB_VAR=
42480           AC_SUBST([LIB_VAR])
42481           prefix_saved_LIBS=$LIBS
42482             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42483                        [test "$ac_cv_search_FUNC" = "none required" ||
42484                         LIB_VAR=$ac_cv_search_FUNC])
42485           LIBS=$prefix_saved_LIBS
42486
42487         However, in each of the files affected by this change, the LIB_VAR=
42488         initialization was omitted.  Thus, when set in the environment, its
42489         value would propagate into generated Makefiles when FUNC is not found
42490         in LIB_NAME.
42491         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42492         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42493         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42494
42495 2009-10-14  Eric Blake  <ebb9@byu.net>
42496
42497         fchdir: avoid infinite recursion in mingw
42498         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42499         recursing.
42500
42501         test-stat-time: port to mingw
42502         * tests/test-stat-time.c (force_unlink): Return a value.
42503         (test_ctime) [W32]: Fix compilation error.
42504         (nap): Don't call usleep with too large an argument.  Use
42505         force_unlink.
42506         * doc/pastposix-functions/usleep.texi (usleep): Document the
42507         portability issue.
42508
42509 2009-10-13  Jim Meyering  <meyering@redhat.com>
42510
42511         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42512         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42513         * modules/pipe-filter-ii: Likewise.
42514         * modules/sys_socket-tests: Likewise.
42515         * modules/tsearch-tests: Likewise.
42516         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42517         (check): Depend on it.
42518
42519 2009-10-12  Eric Blake  <ebb9@byu.net>
42520
42521         utimens-tests: port to NFS file systems
42522         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42523         comparisons to avoid spurious failures from timestamp drift
42524         between NFS machines.
42525
42526 2009-10-12  Eric Blake  <ebb9@byu.net>
42527
42528         stat-time-tests: minor cleanups
42529         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42530         * tests/test-stat-time.c (nap): Separate assignment from call.
42531         Suggested by Paolo Bonzini and Bruno Haible.
42532
42533         sys_stat: guarantee struct timespec
42534         * lib/sys_stat.in.h (includes): Always include <time.h>
42535         * modules/sys_stat (Depends-on): Add time.
42536         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42537         mode_t permission values.
42538         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42539         get at subsecond timestamps.
42540
42541 2009-10-10  Eric Blake  <ebb9@byu.net>
42542
42543         futimens: new module
42544         * modules/futimens: New file.
42545         * lib/futimens.c (futimens): Likewise.
42546         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42547         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42548         we can work around Linux bugs.
42549         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42550         * modules/sys_stat (Makefile.am): Substitute them.
42551         * lib/sys_stat.in.h (futimens): Declare it.
42552         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42553         * doc/posix-functions/futimens.texi (futimens): Likewise.
42554         * modules/futimens-tests: New test.
42555         * tests/test-futimens.c: Likewise.
42556
42557         utimens: introduce fdutimens
42558         * lib/utimens.h (fdutimens): New prototype.
42559         * lib/utimens.c (gl_futimens): Move guts...
42560         (fdutimens): ...to new interface.
42561         * tests/test-utimens.c (do_fdutimens): Use it.
42562
42563         utimens: add UTIME_NOW and UTIME_OMIT support
42564         * lib/utimens.c (validate_timespec, update_timespec): New helper
42565         functions.
42566         (gl_futimens, lutimens): Use them.
42567         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42568         stdbool, sys_stat.
42569         (Link): Mention resulting library dependency.
42570         * modules/utimecmp (Link): Likewise.
42571         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42572         (Makefile.am): Pick up library dependency.
42573         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42574         definition.
42575         * tests/test-sys_stat.c: Test the definitions.
42576         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42577         * NEWS: Document library dependency.
42578
42579         utimecmp: support symlink timestamps
42580         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42581         hashing when possible.  Use pathconf when available.
42582         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42583         * modules/utimecmp (Depends-on): Add lstat.
42584
42585         utimens: add lutimens interface
42586         * lib/utimens.c (lutimens): New function.
42587         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42588         * lib/utimens.h (lutimens): Declare new interface.
42589         * tests/test-utimens.c (main): Enhance test.
42590         * tests/test-lutimens.h (test_lutimens): New file.
42591         * modules/utimens-tests (Files): Distribute it.
42592         (Depends-on): Add symlink.
42593         (configure.ac): Check for usleep.
42594
42595         utimens: validate futimens usage
42596         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42597         fewer syscalls on failure later on.  Avoid compiler warning on
42598         mingw.
42599         * modules/utimens (Depends-on): Add dup2.
42600
42601         utimens: add test
42602         * modules/utimens-tests: New test.
42603         * tests/test-utimens.h: New file.
42604         * tests/test-futimens.h: Likewise.
42605         * tests/test-utimens.c: Likewise.
42606
42607         doc: mention timestamp portability issues
42608         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
42609         instead.
42610         * doc/posix-functions/utime.texi (utime): Likewise.
42611         * doc/posix-functions/utimes.texi (utimes): Likewise.
42612         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
42613         instead.
42614         * doc/posix-functions/futimens.texi (futimens): Mention utimens
42615         module.
42616         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42617         Mention weakness with symlink timestamps.
42618         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
42619         to utimensat/futimens instead.
42620         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
42621
42622         test-dup2: enhance test
42623         * tests/test-dup2.c (main): Also check AT_FDCWD.
42624
42625         test-stat-time: avoid more spurious failures
42626         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
42627         xfs; and avoid race if the two timestamps cross quantization edge.
42628
42629         relocatable: prefer 'file system' over 'filesystem'
42630         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
42631         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
42632         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
42633         * doc/relocatable.texi (Enabling Relocatability): Likewise.
42634         * lib/relocatable.c (compute_curr_prefix): Likewise.
42635
42636 2009-10-10  Jim Meyering  <meyering@redhat.com>
42637
42638         stat-time-tests: check for the usleep function
42639         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
42640
42641 2009-10-10  Bruno Haible  <bruno@clisp.org>
42642
42643         * modules/xnanosleep: Put the Link section after the Include section.
42644
42645 2009-10-09  Eric Blake  <ebb9@byu.net>
42646
42647         dup2: work around FreeBSD 6.1 bug
42648         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
42649         * doc/posix-functions/dup2.texi (dup2): Document it.
42650         Reported by Nelson H. F. Beebe and Jim Meyering.
42651
42652         test-stat-time: port to buggy NFS clients
42653         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
42654         (test_ctime): Also skip test if mtime and ctime are skewed.
42655
42656         maint: prefer 'file system' over 'filesystem'
42657         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42658         * doc/posix-functions/lstat.texi (lstat): Likewise.
42659         * lib/file-has-acl.c (file_has_acl): Likewise.
42660         * lib/fwriteerror.c [TEST]: Likewise.
42661         * tests/test-areadlink.h (test_areadlink): Likewise.
42662         * tests/test-areadlinkat-with-size.c (main): Likewise.
42663         * tests/test-areadlinkat.c (main): Likewise.
42664         * tests/test-canonicalize-lgpl.c (main): Likewise.
42665         * tests/test-canonicalize.c (main): Likewise.
42666         * tests/test-fstatat.c (main): Likewise.
42667         * tests/test-linkat.c (main): Likewise.
42668         * tests/test-lstat.h (test_lstat_func): Likewise.
42669         * tests/test-mkdir.h (test_mkdir): Likewise.
42670         * tests/test-readlink.h (test_readlink): Likewise.
42671         * tests/test-remove.c (main): Likewise.
42672         * tests/test-rename.h (test_rename): Likewise.
42673         * tests/test-renameat.c (main): Likewise.
42674         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42675         * tests/test-symlink.h (test_symlink): Likewise.
42676         * tests/test-symlinkat.c (main): Likewise.
42677         * tests/test-unlink.h (test_unlink_func): Likewise.
42678         * tests/test-unlinkat.c (main): Likewise.
42679
42680         maint: make realtime library usage explicit
42681         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
42682         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
42683         * modules/settime (Link): Likewise.
42684         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
42685
42686         test-stat-time: speed up execution
42687         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
42688         warning on mingw.
42689         (nap): New helper function.
42690         (prepare_test): Use it to reduce sleep time.
42691         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
42692         execution.
42693         * modules/stat-time-tests (configure.ac): Check for usleep.
42694
42695 2009-10-09  Jim Meyering  <meyering@redhat.com>
42696
42697         selinux-h: always use getfilecon wrappers
42698         * lib/getfilecon.c: New file.
42699         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
42700         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
42701         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
42702         (fgetfilecon): Provide a stub.
42703         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
42704         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
42705         file unconditionally.
42706         When <selinux/selinux.h> is found, arrange to use wrappers.
42707         * modules/selinux-h (Files): Add getfilecon.c.
42708         (Makefile.am): Substitute include-next-related bits
42709         into the now-always-generated selinux/selinux.h file.
42710         * doc/glibc-functions/lgetfilecon.texi: New file.
42711         * doc/glibc-functions/fgetfilecon.texi: New file.
42712         * doc/glibc-functions/getfilecon.texi: New file.
42713         * doc/glibc-functions/getfilecon-desc.texi: New file.
42714         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
42715         which to pull in the new files.
42716         * MODULES.html.sh (Misc): Add selinux-h.
42717
42718 2009-10-08  Jim Meyering  <meyering@redhat.com>
42719
42720         unistd: fix comment typo
42721         * lib/unistd.in.h (euidaccess): Fix a comment typo.
42722
42723 2009-10-08  Eric Blake  <ebb9@byu.net>
42724
42725         areadlink: use SIZE_MAX consistently
42726         * modules/areadlink (Depends-on): Add stdint.
42727         * modules/areadlink-with-size (Depends-on): Likewise.
42728         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
42729         gives NULL; drop sys/types, since unistd gives size_t; and add
42730         stdint for SIZE_MAX.
42731         (SIZE_MAX): Rely on headers.
42732         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
42733         and add stdint.
42734         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
42735         (SIZE_MAX): Likewise.
42736         (INITIAL_BUF_SIZE): Turn into enum.
42737         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
42738
42739 2009-10-08  Jim Meyering  <meyering@redhat.com>
42740
42741         areadlinkat: avoid compilation failure
42742         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
42743         Fix typo in comment.
42744
42745 2009-10-07  Eric Blake  <ebb9@byu.net>
42746
42747         areadlinkat-with-size: new module
42748         * modules/areadlinkat-with-size: New module.
42749         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
42750         * lib/areadlink.h (areadlinkat): Declare it.
42751         * MODULES.html.sh (File system functions): Mention it.
42752         * modules/areadlinkat-with-size-tests: New test.
42753         * tests/test-areadlinkat-with-size.c: New file.
42754
42755         xreadlinkat: new module
42756         * modules/xreadlinkat: New module.
42757         * lib/xreadlinkat.c (xreadlinkat): New file.
42758         * lib/xreadlink.h (xreadlinkat): Declare it.
42759         * MODULES.html.sh (File system functions): Mention it.
42760
42761         areadlinkat: new module
42762         * lib/at-func.c (FUNC_FAIL): New define.
42763         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
42764         * modules/areadlinkat: New module.
42765         * lib/linkat.c (areadlinkat): Move...
42766         * lib/areadlinkat.c (areadlinkat): ...to new file.
42767         * lib/areadlink.h (areadlinkat): Declare it.
42768         * modules/linkat (Depends-on): Add areadlinkat.
42769         * MODULES.html.sh (File system functions): Mention it.
42770         * modules/areadlinkat-tests: New test.
42771         * tests/test-areadlinkat.c: New file.
42772
42773         areadlink, areadlink-with-size: add tests
42774         * modules/areadlink-tests: New test.
42775         * modules/areadlink-with-size-tests: Likewise.
42776         * tests/test-areadlink.h: New file.
42777         * tests/test-areadlink.c: Likewise.
42778         * tests/test-areadlink-with-size.c: Likewise.
42779
42780         maint: minor cleanups
42781         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
42782         _UNUSED_PARAMETER_ instead.
42783         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
42784         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
42785         * modules/linkat-tests (Files): Distribute test-link.h.
42786
42787         openat, utimens: whitespace cleanup
42788         * lib/openat.c: Prefer space throughout, rather than mix of 8
42789         spaces vs. tabs.
42790         * lib/at-func.c: Likewise.
42791         * lib/utimens.c: Likewise.
42792
42793         openat: avoid using wrong fd
42794         * lib/openat.c (openat_permissive): Reject user's fd if saving the
42795         working directory chooses same fd.
42796         * lib/at-func.c (AT_FUNC_NAME): Likewise.
42797
42798         mkdir, mkdirat: fix cygwin 1.5.x bug
42799         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
42800         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
42801         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
42802         bug.
42803         (gl_PREREQ_MKDIR): Delete unused macro.
42804         * modules/mkdir (Files): Track file rename.
42805         (configure.ac): Update macro name.
42806         * modules/openat (Depends-on): Add mkdir.
42807         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
42808
42809         mkdir, mkdirat: add tests
42810         * modules/mkdir-tests: New test.
42811         * tests/test-mkdir.h: New file.
42812         * tests/test-mkdir.c: Likewise.
42813         * tests/test-mkdirat.c: Likewise.
42814         * modules/openat-tests (Files): Add new files.
42815         (Makefile.am): Run new test.
42816
42817 2009-10-06  Eric Blake  <ebb9@byu.net>
42818
42819         doc: tweak *at function documentation
42820         * doc/posix-functions/faccessat.texi (faccessat): Mention
42821         known issue with replacement.
42822         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
42823         * doc/posix-functions/linkat.texi (linkat): Likewise.
42824         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42825         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42826         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42827         * doc/posix-functions/renameat.texi (renameat): Likewise.
42828         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42829
42830         openat: fix GNU/Hurd bug in unlinkat
42831         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
42832         broken.
42833         * doc/posix-functions/unlink.texi (unlink): Document this.
42834         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
42835
42836         fdopendir: fix GNU/Hurd bug
42837         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
42838         allowing non-directory fds.
42839         * lib/fdopendir.c (rpl_fdopendir): Work around it.
42840         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
42841         * modules/dirent (Makefile.am): Substitute it.
42842         * lib/dirent.in.h (fdopendir): Declare replacement.
42843         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
42844         * tests/test-fdopendir.c (main): Test something other than
42845         /dev/null, since on Hurd that behaves like a directory.
42846
42847         test-symlink: port to GNU/Hurd
42848         * tests/test-symlink.h (test_symlink): Relax expected errno.
42849
42850         doc: tweak more cygwin information
42851         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
42852         now compatible with glibc.
42853         * doc/posix-functions/getopt.texi (getopt): Likewise.
42854
42855         getopt-gnu: add another test
42856         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
42857         guarantee behavior relied on by m4.
42858         * tests/test-getopt.c (main): Use it.
42859         * modules/getopt-posix-tests (Depends-on): Add setenv.
42860         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
42861
42862         getopt: fix compilation on darwin
42863         * lib/getopt.in.h (includes): Leave breadcrumbs during system
42864         include.
42865         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
42866         Reported by Ludovic Courtès.
42867
42868 2009-10-06  Bruno Haible  <bruno@clisp.org>
42869
42870         * modules/size_max (Description): Discourage its use.
42871         Reported by Simon Josefsson.
42872
42873 2009-10-06  Jim Meyering  <meyering@redhat.com>
42874
42875         linkat: avoid compilation failure
42876         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
42877
42878 2009-10-05  Eric Blake  <ebb9@byu.net>
42879
42880         linkat: support Linux 2.6.17
42881         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
42882         linkat on Linux, but allow cache variable override.
42883         * lib/linkat.c (rpl_linkat): Define override.
42884         * modules/linkat (Depends-on): Add symlinkat.
42885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
42886         * modules/unistd (Makefile.am): Substitute it.
42887         * lib/unistd.in.h (linkat): Declare replacement.
42888         Reported by Pádraig Brady.
42889
42890         quotearg: port test to systems with C.UTF-8 locale
42891         * tests/test-quotearg.c (struct result_strings): Add another
42892         member, differentiating between C.ASCII and C.UTF-8 handling.
42893         (compare_strings): Add parameter.
42894         (main): Adjust all callers.
42895
42896         getopt: avoid clash with FreeBSD _getopt_internal
42897         * lib/getopt.in.h (_getopt_internal): Override the name.
42898         * lib/getopt_int.h (includes): Pick up any overrides.
42899         Reported by Reuben Thomas.
42900
42901         hash: allow C89 compilation
42902         * lib/hash.c (check_tuning): Move declaration before statement.
42903         Reported by Reuben Thomas.
42904
42905 2009-10-05  Karl Berry  <karl@gnu.org>
42906
42907         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
42908
42909 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
42910             Bruno Haible  <bruno@clisp.org>
42911
42912         * lib/uname.c (uname): Use a table-driven algorithm to compute
42913         Windows NT versions.
42914
42915 2009-10-04  Bruno Haible  <bruno@clisp.org>
42916
42917         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
42918         program_invocation_short_name.
42919         * modules/progname (configure.ac): Test for presence of
42920         program_invocation_short_name.
42921         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42922
42923 2009-10-04  Bruno Haible  <bruno@clisp.org>
42924
42925         * lib/progname.c (set_program_name): Fix comment.
42926         Reported by Jim Meyering.
42927
42928 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42929             Bruno Haible  <bruno@clisp.org>
42930
42931         * lib/uname.c: Include <string.h>.
42932         (uname): Do only one call to GetVersionEx in the common case.
42933
42934 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42935             Bruno Haible  <bruno@clisp.org>
42936
42937         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
42938         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
42939         (uname): Add support for Windows CE and various non-x86 CPU types.
42940
42941 2009-10-03  Bruno Haible  <bruno@clisp.org>
42942
42943         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
42944         invocation to tests/configure.ac.
42945         Reported by Ian Beckwith <ianb@erislabs.net>.
42946
42947 2009-10-02  Eric Blake  <ebb9@byu.net>
42948
42949         fchdir: avoid compiler warning
42950         * lib/fchdir.c (canonicalize_file_name)
42951         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
42952
42953         test-open: support mingw errno values
42954         * tests/test-open.h (test_open): Relax test.
42955         * tests/test-fopen.h (test_fopen): Likewise.
42956         * tests/test-openat-safer.c (main): Likewise.
42957
42958         open: fix opening directory on mingw
42959         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
42960
42961         test-open: on GNU/Hurd, /dev/null is a directory
42962         * tests/test-fopen.h (main): Rename...
42963         (test_fopen): ...to this.  Use a guaranteed non-directory when
42964         confirming open behavior on trailing slash.
42965         * tests/test-openat-safer.c (main): Likewise.
42966         * tests/test-open.h (main): Likewise....
42967         (test_open): ...to this.
42968         * tests/test-fopen.c (main): Adjust caller.
42969         * tests/test-fopen-safer.c (main): Likewise.
42970         * tests/test-open.c (main): Likewise.
42971         * tests/test-fcntl-safer.c (main): Likewise.
42972         Reported by Samuel Thibault.
42973
42974         rename, fchdir: don't ignore chdir failure
42975         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
42976         * lib/rename.c (rpl_rename) [W32]: Likewise.
42977         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
42978         an empty destination directory if source cannot be renamed,
42979         although there is still possibility for failure.
42980         * doc/posix-functions/rename.texi (rename): Document the race.
42981         Reported by Jim Meyering.
42982
42983         maint: cleanup whitespace in recent commits
42984         * lib/rename.c (rpl_rename): Remove tabs.
42985         * tests/test-link.h (test_link): Likewise.
42986         * lib/fchdir.c (get_name): Likewise.
42987         Reported by Jim Meyering.
42988
42989 2009-10-02  Ben Pfaff  <blp@gnu.org>
42990
42991         relocatable-prog-wrapper: Add missing dependency on
42992         double-slash-root.
42993         * modules/relocatable-prog-wrapper: Add dependency.
42994         Reported by Ian Beckwith <ianb@erislabs.net>.
42995
42996 2009-10-02  Eric Blake  <ebb9@byu.net>
42997
42998         renameat: fix Solaris bugs
42999         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43000         needed fixing.
43001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43002         * modules/stdio (Makefile.am): Substitute it.
43003         * lib/stdio.in.h (renameat): Declare replacement.
43004         * lib/renameat.c (rpl_renameat): Implement fix.
43005
43006         renameat: new module
43007         * modules/renameat: New file.
43008         * lib/renameat.c (renameat): Likewise.
43009         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43011         * modules/stdio (Makefile.am): Substitute them.
43012         * lib/stdio.in.h (renameat): Declare it.
43013         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43014         * doc/posix-functions/renameat.texi (renameat): Likewise.
43015         * modules/renameat-tests: New test.
43016         * tests/test-renameat.c: Likewise.
43017
43018         rename: fix mingw bugs
43019         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43020         directory overwrite bugs.
43021
43022         rename: fix another cygwin 1.5 bug
43023         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43024         checks.
43025         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43026         unnecessary cygwin workarounds.  Also work around bug with moving
43027         full directory onto an empty one.
43028         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43029
43030         rename-dest-slash: merge into rename module
43031         * modules/rename-dest-slash (Status): Mark obsolete.
43032         (Depends-on): Add rename.
43033         (Files): Let rename do it all.
43034         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43035         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43036         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43037         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43038         * lib/rename.c (rpl_rename): Update comments.
43039
43040         rename: fix cygwin 1.5.x bugs
43041         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43042         * lib/rename.c (rpl_rename): Work around them.
43043         * modules/rename (Depends-on): Add same-inode.
43044
43045         rename: fix Solaris 10 bug
43046         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43047         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43048         was the only bug.
43049
43050         rename: fix Solaris 9 bug
43051         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43052         on non-directory.  Avoid calling exit.
43053         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43054         strdup.
43055         * modules/rename-tests (Depends-on): Drop lstat.
43056         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43057         (gl_PREREQ_RENAME): Delete unused macro.
43058
43059         rename-dest-slash: fix NetBSD bug
43060         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43061         links.
43062         * modules/rename-dest-slash (Depends-on): Add same-inode.
43063
43064         rename-tests: new test, exposes several platform bugs
43065         * modules/rename-tests: New file.
43066         * tests/test-rename.h: Likewise.
43067         * tests/test-rename.c: Likewise.
43068         * doc/posix-functions/rename.texi (rename): Improve documentation,
43069         including bugs that will eventually be fixed in gnulib.
43070
43071 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43072
43073         * lib/uname.c: Include <stdlib.h>
43074         (uname): Assume version info is available.
43075
43076 2009-10-02  Jim Meyering  <meyering@redhat.com>
43077
43078         gnu-web-doc-update: correct --help output
43079         * build-aux/gnu-web-doc-update: Make --help output relevant.
43080
43081         gnu-web-doc-update: add standard options
43082         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43083
43084         gnu-web-doc-update: New module.
43085         Use this script to automatically update the on-line web documentation
43086         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43087         * modules/gnu-web-doc-update: New file, from coreutils.
43088         * build-aux/gnu-web-doc-update: New script.
43089
43090 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43091
43092         link: LoadLibrary is not needed.
43093         * lib/link.c: Use GetModuleHandle.
43094
43095 2009-10-01  Eric Blake  <ebb9@byu.net>
43096
43097         getopt: bump serial number
43098         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43099         change.
43100
43101         tests: tighten link, rmdir, and remove tests
43102         * tests/test-link.h (includes): No need to use <config.h> here.
43103         Clean up if directory hard link was created, otherwise test for
43104         trailing '.'.
43105         * tests/test-linkat.c (main): Simplify.
43106         * tests/test-remove.c (main): Enhance test for trailing '.'.
43107         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43108
43109 2009-10-01  Jim Meyering  <meyering@redhat.com>
43110
43111         maint.mk: requiring "make major" was annoying, for a "minor" release.
43112         What is intended is "stable", to contrast with alpha and beta,
43113         so require "make stable", not "make major".
43114         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43115         (get_tool_versions): Likewise.
43116         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43117
43118 2009-09-30  Ben Pfaff  <blp@gnu.org>
43119
43120         Fix broken build of replacement for Windows tmpfile().
43121         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43122         flags argument added along with the 'mkostemp' module.
43123
43124 2009-09-28  Bruno Haible  <bruno@clisp.org>
43125
43126         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43127         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43128         to 'remove_elt'.
43129         (gl_list_remove): Update.
43130         * lib/gl_list.c (gl_list_remove): Update.
43131         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43132         to 'remove_elt'.
43133         (gl_oset_remove): Update.
43134         * lib/gl_list.c (gl_oset_remove): Update.
43135         Reported by Eric Blake.
43136
43137 2009-09-28  Eric Blake  <ebb9@byu.net>
43138
43139         doc: mention yet more cygwin 1.7 status
43140         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43141         cygwin.
43142         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43143         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43144
43145         argp: fix test failure
43146         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43147         that are not upper-case.  Pass correct range to tolower.
43148
43149 2009-09-27  Jim Meyering  <meyering@redhat.com>
43150
43151         test-yesno: work around sparc-dash here-document infelicity
43152         Without this change, the literal \177 byte in a here document
43153         would make dash 0.5.5.1-3 access uninitialized memory.
43154         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43155         Instead, use a marker, "@", and filter through tr to create the desired
43156         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43157
43158 2009-09-27  Bruno Haible  <bruno@clisp.org>
43159
43160         Disable untested support for new flavours of ACLs on AIX.
43161         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43162         progress.
43163         * lib/set-mode-acl.c (qset_acl): Likewise.
43164
43165 2008-12-07  Bruno Haible  <bruno@clisp.org>
43166
43167         Add support for new flavours of ACLs on AIX. (Untested.)
43168         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43169         (file_has_acl): Add support for newer AIX.
43170         * lib/set-mode-acl.c (qset_acl): Likewise.
43171         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43172         Rainer Tammer <tammer@tammer.net>.
43173
43174 2009-09-26  Eric Blake  <ebb9@byu.net>
43175
43176         argp: fix compilation of getopt
43177         * lib/getopt.in.h (includes): Use different guard than glibc.
43178         Reported by Sergey Poznyakoff.
43179
43180         doc: mention more cygwin 1.7 status
43181         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43182         bug.
43183         * doc/posix-functions/execl.texi (execl): Likewise.
43184         * doc/posix-functions/execle.texi (execle): Likewise.
43185         * doc/posix-functions/execlp.texi (execlp): Likewise.
43186         * doc/posix-functions/execv.texi (execv): Likewise.
43187         * doc/posix-functions/execve.texi (execve): Likewise.
43188         * doc/posix-functions/execvp.texi (execvp): Likewise.
43189         * doc/glibc-functions/canonicalize_file_name.texi
43190         (canonicalize_file_name): Cygwin 1.7 now provides this.
43191         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43192         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43193         on AT_SYMLINK_NOFOLLOW.
43194
43195 2009-09-24  Eric Blake  <ebb9@byu.net>
43196
43197         test-linkat: make test more robust
43198         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43199
43200         getopt: fix inclusion guards for cygwin
43201         * modules/getopt-posix (Depends-on): Add include-next.
43202         (Makefile.am): Substitute more items in replacement header.
43203         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43204         <getopt.h>.
43205         * lib/getopt.in.h (includes): Use split inclusion guard, and
43206         prefer <getopt.h> over include <unistd.h> when one is present.
43207         (option): Also override name of 'struct option'.
43208
43209         same-inode: revert prior change; it is not yet ready
43210         * NEWS: Undo mention of this change.
43211         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43212         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43213         * lib/cycle-check.c (cycle_check): Likewise.
43214         * lib/same.c (same_name): Likewise.
43215         * lib/at-func2.c (at_func2): Likewise.
43216
43217 2009-09-23  Eric Blake  <ebb9@byu.net>
43218
43219         linkat: new module
43220         * modules/linkat: New file.
43221         * lib/at-func2.c (at_func2): Likewise.
43222         * lib/linkat.c (linkat): Likewise.
43223         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43224         * lib/openat-priv.h (at_func2): Add declaration.
43225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43226         * modules/unistd (Makefile.am): Substitute them.
43227         * lib/unistd.in.h (linkat): Declare it.
43228         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43229         * doc/posix-functions/linkat.texi (linkat): Likewise.
43230         * doc/posix-functions/link.texi (link): Tweak wording.
43231         * tests/test-link.c (main): Move guts...
43232         * tests/test-link.h (test_link): ...into new file.
43233         * modules/linkat-tests: New test.
43234         * tests/test-linkat.c: Likewise.
43235         * modules/link-tests (Files): Ship new file.
43236         (Depends-on): Add stdbool.
43237
43238         dirname: add library-safe mdir_name
43239         * lib/dirname.h (mdir_name): New prototype.
43240         * lib/dirname.c (dir_name): Move guts...
43241         (mdir_name): ...to new function that avoids xalloc_die.
43242
43243         fchdir: another mingw fix
43244         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43245         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43246         on mingw (where it has not yet been ported), and make it optional
43247         elsewhere.
43248         (_gl_register_fd): Use it.
43249
43250         same-inode: make SAME_INODE tri-state, to port to mingw
43251         * NEWS: Mention this change.
43252         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43253         st_ino always being 0.
43254         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43255         * lib/cycle-check.c (cycle_check): Likewise.
43256         * lib/same.c (same_name): Likewise.
43257
43258         lstat: avoid mingw compilation error
43259         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43260         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43261         lstat ourselves.
43262         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43263         was adequate.
43264         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43265         the checks for lstat.
43266         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43267
43268         link: fix test failure on Solaris 9
43269         * lib/link.c (rpl_link): Don't assume link will catch bogus
43270         trailing slash on source.
43271
43272         test-symlinkat: enhance test
43273         * tests/test-readlink.c (main): Move guts...
43274         * tests/test-readlink.h (test_readlink): ...into new file.
43275         * tests/test-symlink.c (main): Move guts...
43276         * tests/test-symlink.h (test_symlink): ...into new file.
43277         * tests/test-symlinkat.c (main): Use new files for further
43278         coverage.
43279         (do_symlink, do_readlink): New helper functions.
43280         * modules/symlink-tests (Files): Ship new file.
43281         (Depends-on): Add stdbool.
43282         * modules/readlink-tests (Files): Ship new file.
43283         (Depends-on): Add stdbool.
43284         * modules/symlinkat-tests (Files): Use new files.
43285
43286 2009-09-23  Eric Blake  <ebb9@byu.net>
43287
43288         readlink: document portability issue with symlink length
43289         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43290         systems have bogus st_size on symlinks, and mention the
43291         areadlink-with-size module.
43292         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43293         * doc/posix-functions/readlink.texi (readlink): Mention the
43294         areadlink module, and ERANGE failure.
43295         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43296         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43297
43298         readlink: fix Solaris 9 bug with trailing slash
43299         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43300         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43301         * doc/posix-functions/readlink.texi (readlink): Document this.
43302         * modules/readlink-tests: New test.
43303         * tests/test-readlink.c: Likewise.
43304
43305         readlink: fix cygwin 1.5.x bug with return type
43306         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43307         * lib/unistd.in.h (readlink): Use ssize_t.
43308         * lib/readlink.c (readlink): Likewise.
43309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43310         * modules/unistd (Makefile.am): Substitute it.
43311         * lib/unistd.in.h (readlink): Declare replacement.
43312         * doc/posix-functions/readlink.texi (readlink): Document this.
43313
43314         symlink: use throughout gnulib
43315         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43316         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43317         symlink is not used.
43318         * modules/symlinkat (Depends-on): Add symlink.
43319         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43320         * modules/canonicalize-tests (Depends-on): Likewise.
43321         * modules/lstat-tests (Depends-on): Likewise.
43322         * modules/openat-tests (Depends-on): Likewise.
43323         * modules/remove-tests (Depends-on): Likewise.
43324         * modules/rmdir-tests (Depends-on): Likewise.
43325         * modules/unlink-tests (Depends-on): Likewise.
43326         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43327         * tests/test-canonicalize.c (symlink): Likewise.
43328         * tests/test-fstatat.c (symlink): Likewise.
43329         * tests/test-lstat.c (symlink): Likewise.
43330         * tests/test-remove.c (symlink): Likewise.
43331         * tests/test-rmdir.c (symlink): Likewise.
43332         * tests/test-unlink.c (symlink): Likewise.
43333         * tests/test-unlinkat.c (symlink): Likewise.
43334
43335         symlink: new module, for Solaris 9 bug
43336         * modules/symlink: New file.
43337         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43338         * lib/symlink.c: Likewise.
43339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43340         * modules/unistd (Makefile.am): Substitute them.
43341         * lib/unistd.in.h (symlink): Declare replacement.
43342         * MODULES.html.sh (File system functions): Mention it.
43343         * doc/posix-functions/symlink.texi (symlink): Likewise.
43344         * modules/symlink-tests: New test.
43345         * tests/test-symlink.c: Likewise.
43346
43347 2009-09-23  Bruno Haible  <bruno@clisp.org>
43348
43349         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43350         when needed.
43351         Test case: gnulib-tool --import --with-tests atexit inttypes.
43352         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43353
43354 2009-09-23  Bruno Haible  <bruno@clisp.org>
43355
43356         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43357         subcommand, not in a subshell.
43358
43359 2009-09-22  Eric Blake  <ebb9@byu.net>
43360
43361         unistd: sort replacement declarations
43362         * lib/unistd.in.h: Sort declarations.
43363
43364         open, openat: minor optimization
43365         * lib/open.c (open): If open succeeded, len is non-zero.
43366         * lib/openat.c (rpl_openat): Likewise.
43367
43368         link-follow: ensure correct result
43369         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43370         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43371         distinguish between possible failures.
43372
43373 2009-09-21  Eric Blake  <ebb9@byu.net>
43374
43375         fts: avoid compiler warning
43376         * lib/fts.c (dirent_inode_sort_may_be_useful)
43377         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43378
43379 2009-09-19  Bruno Haible  <bruno@clisp.org>
43380
43381         * lib/progreloc.c (canonicalize_file_name): New declaration.
43382
43383 2009-09-19  Eric Blake  <ebb9@byu.net>
43384
43385         link: fix quoting
43386         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43387
43388         openat: fix openat bugs on Solaris 9
43389         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43390         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43391         * modules/openat (Depends-on): Add open.
43392         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43393         * modules/fcntl-h (Makefile.am): Substitute it.
43394         * lib/fcntl.in.h (openat): Declare replacement.
43395         * doc/posix-functions/openat.texi (openat): Document this.
43396
43397         openat: move fstatat and unlinkat into correct files
43398         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43399         compiled.
43400         * lib/openat.c (fstatat, unlinkat): Move...
43401         * lib/fstatat.c (fstatat): ...into correct files.
43402         * lib/unlinkat.c (unlinkat): Likewise.
43403
43404         openat: fix unlinkat bugs on Solaris 9
43405         * lib/unlinkat.c (unlinkat): New file.
43406         * modules/openat (Depends-on): Add unlink.
43407         (Files): Distribute it.
43408         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43409         trailing slash behavior is broken.
43410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43411         * modules/unistd (Makefile.am): Substitute it.
43412         * lib/unistd.in.h (unlinkat): Declare replacement.
43413         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43414
43415         openat: fix fstatat bugs on Solaris 9
43416         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43417         stat.
43418         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43419
43420         test-unlinkat: enhance test, to expose Solaris 9 bug
43421         * tests/test-unlink.c (main): Factor guts...
43422         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43423         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43424         * tests/test-rmdir.c (main): Adjust caller.
43425         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43426         (unlinker): New helper function.
43427         (rmdirat): Enhance check.
43428         * modules/rmdir-tests (Depends-on): Add stdbool.
43429         * modules/unlink-tests (Depends-on): Likewise.
43430         (Files): Add test-unlink.h.
43431         * modules/openat-tests (Files): Likewise.
43432         (Depends-on): Add unlinkdir.
43433
43434         test-fstatat: new test, to expose Solaris 9 bugs
43435         * tests/test-stat.c (main): Factor guts...
43436         * tests/test-stat.h (test_stat_func): ...into new file.
43437         * tests/test-lstat.c (main): Factor guts...
43438         * tests/test-lstat.h (test_lstat_func): ...into new file.
43439         * tests/test-fstatat.c: New file.
43440         * modules/stat-tests (Files): Add test-stat.h.
43441         * modules/lstat-tests (Files): Add test-lstat.h.
43442         (Depends-on): Add stdbool.
43443         * modules/openat-tests (Depends-on): Add pathmax.
43444         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43445         (Makefile.am): Run new test.
43446
43447         remove: new module, for mingw and Solaris 9 bugs
43448         * modules/remove: New file.
43449         * lib/remove.c: Likewise.
43450         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43452         * modules/stdio (Makefile.am): Use them.
43453         * lib/stdio.in.h (remove): Declare replacement.
43454         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43455         * doc/posix-functions/remove.texi (remove): Likewise.
43456         * modules/remove-tests: New test.
43457         * tests/test-remove.c: Likewise.
43458
43459         unlink: new module, for Solaris 9 bug
43460         * modules/unlink: New file.
43461         * lib/unlink.c: Likewise.
43462         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43464         * modules/unistd (Makefile.am): Use them.
43465         * lib/unistd.in.h (stat): Declare replacement.
43466         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43467         * doc/posix-functions/unlink.texi (unlink): Likewise.
43468         * modules/unlink-tests: New test.
43469         * tests/test-unlink.c: Likewise.
43470
43471         lstat: fix Solaris 9 bug
43472         * lib/lstat.c (lstat): Also check for trailing slash on
43473         non-symlink, non-directories.  Use stat module to simplify logic.
43474         * doc/posix-functions/lstat.texi (lstat): Document it.
43475         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43476         (configure.ac): Check for symlink.
43477         * tests/test-lstat.c (main): Add more tests.
43478
43479         stat: add as dependency to other modules
43480         * modules/chown (Depends-on): Add stat.
43481         * modules/euidaccess (Depends-on): Likewise.
43482         * modules/fchdir (Depends-on): Likewise.
43483         * modules/isdir (Depends-on): Likewise.
43484         * modules/link (Depends-on): Likewise.
43485         * modules/lstat (Depends-on): Likewise.
43486         * modules/mkdir-p (Depends-on): Likewise.
43487         * modules/modechange (Depends-on): Likewise.
43488         * modules/open (Depends-on): Likewise.
43489         * modules/readlink (Depends-on): Likewise.
43490         * modules/same (Depends-on): Likewise.
43491
43492         stat: fix Solaris 9 bug
43493         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43494         slash.
43495         * lib/stat.c (rpl_stat): Work around it.
43496         * doc/posix-functions/stat.texi (stat): Update documentation.
43497
43498         stat: new module, for mingw bug
43499         * modules/stat: New file.
43500         * lib/stat.c: Likewise.
43501         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43502         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43503         * modules/sys_stat (Makefile.am): Use them.
43504         * lib/sys_stat.in.h (stat): Declare replacement.
43505         * lib/openat.c (fstatat): Deal with lstat and stat being function
43506         macros.
43507         * modules/openat (Depends-on): Add inline.
43508         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43509         * doc/posix-functions/stat.texi (stat): Likewise.
43510         * modules/stat-tests: New test.
43511         * tests/test-stat.c: Likewise.
43512
43513 2009-09-19  Jim Meyering  <meyering@redhat.com>
43514
43515         syntax-check: detect unnecessary inclusion of canonicalize.h
43516         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43517
43518 2009-09-19  Eric Blake  <ebb9@byu.net>
43519
43520         canonicalize-lgpl: adjust clients to use correct header
43521         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43522         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43523         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43524         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43525         * lib/progreloc.c (includes): Likewise.
43526
43527 2009-09-19  Jim Meyering  <meyering@redhat.com>
43528
43529         test-posixtm.c: correct a comment
43530         * tests/test-posixtm.c: Correct first-line comment.
43531         Spotted by Eric Blake.
43532
43533 2009-09-16  Jim Meyering  <meyering@redhat.com>
43534
43535         posixtm-tests: make T const-correct; add a test case
43536         * tests/test-posixtm.c (T): Declare const.
43537         Add a test for -(2^31+1).
43538         Remove useless can-succeed-only-in-2002 test.
43539
43540         posixtm-tests: adjust the sole failing test
43541         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43542         expected output matches what mktime now produces.  Cross-checked via
43543         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43544
43545         posixtm: move #ifdef'd tests into a new module
43546         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43547         * tests/test-posixtm.c: ... this new file.
43548         * modules/posixtm-tests: New module.
43549
43550 2009-09-19  Eric Blake  <ebb9@byu.net>
43551
43552         openat: simplify use of at-func.c
43553         * lib/at-func.c (includes): Include prerequisites here, to
43554         simplify requirements on client files.
43555         * lib/openat-priv.h: Add double-inclusion guard.
43556         * lib/faccessat.c (includes): Simplify.
43557         * lib/fchmodat.c (includes): Likewise.
43558         * lib/fchownat.c (includes): Likewise.
43559         * lib/mkdirat.c (includes): Likewise.
43560         * lib/mkfifoat.c (includes): Likewise.
43561         * lib/symlinkat.c (includes): Likewise.
43562
43563         openat: allow return of fd 0
43564         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43565         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43566         unistd-safer.
43567         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43568         <fcntl.h>; this module does not leak fds.
43569         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43570         must be allowed to return 0, leaving openat_safer to add the
43571         safety.
43572         (openat_permissive): Avoid writing to just-opened fd 2 if
43573         restoring the current directory fails.
43574         * lib/openat-die.c (openat_restore_fail): Add comment.
43575         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43576         (save_cwd): Guarantee safe fd, but without use of open_safer.
43577         * tests/test-openat.c: New test.
43578         * modules/openat-tests (Files, Makefile.am): Distribute and build
43579         new file.
43580
43581         relocatable-prog-wrapper: fix build
43582         * modules/relocatable-prog-wrapper (Files): Update name of
43583         canonicalize m4 file, broken on 2009-09-17.
43584         Reported by emad hajjar <aleppos@hotmail.com>.
43585
43586 2009-09-19  Bruno Haible  <bruno@clisp.org>
43587
43588         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43589         * lib/safe-alloc.c: Likewise.
43590         Reported by Ian Beckwith <ianb@erislabs.net>.
43591
43592 2009-09-18  Bruno Haible  <bruno@clisp.org>
43593
43594         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43595         Reported by <erobles@sensacd.com.mx>.
43596
43597 2009-09-17  Eric Blake  <ebb9@byu.net>
43598
43599         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43600         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43601         slashes when checking if last component is missing.
43602         * tests/test-canonicalize.c (main): Test this.
43603
43604         canonicalize, canonicalize-lgpl: honor // if distinct from /
43605         * modules/canonicalize (Files): Add double-slash-root.m4.
43606         * modules/canonicalize-lgpl (Files): Likewise.
43607         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43608         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
43609         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
43610         fallback definition.
43611         (canonicalize_filename_mode): Use it to protect //.
43612         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
43613         (__realpath): Likewise.
43614         * tests/test-canonicalize.c (main): Test this.
43615         * tests/test-canonicalize-lgpl.c (main): Likewise.
43616         * modules/canonicalize-tests (Depends-on): Add same-inode.
43617         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43618
43619         canonicalize-lgpl: fix glibc bug with trailing slash
43620         * m4/canonicalize-lgpl.m4: Move contents...
43621         * m4/canonicalize.m4: ...here.
43622         (gl_CANONICALIZE_LGPL): Factor realpath check...
43623         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
43624         glibc 2.3.5 bug, fixed 2005-04-27.
43625         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
43626         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
43627         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
43628         * modules/canonicalize-lgpl (Files): Manage file rename.
43629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43630         * modules/stdlib (Makefile.am): Substitute witness.
43631         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
43632         is needed.
43633         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
43634         replacement is required.
43635         * lib/canonicalize.c (canonicalize_file_name): Likewise.
43636         * doc/glibc-functions/canonicalize_file_name.texi
43637         (canonicalize_file_name): Document this.
43638         * doc/posix-functions/realpath.texi (realpath): Likewise.
43639
43640         canonicalize-lgpl: reject non-directory with trailing slash
43641         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
43642         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
43643         catches failures in glibc 2.3.5.
43644         * tests/test-canonicalize.c (main): Likewise.
43645
43646         canonicalize-lgpl: use native realpath if it works
43647         * lib/canonicalize-lgpl.c (realpath): Guard with
43648         FUNC_REALPATH_WORKS.
43649         * lib/stdlib.in.h (realpath): Make declaration optional based on
43650         HAVE_REALPATH.
43651         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
43652         native realpath works.
43653         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43654         * modules/stdlib (Makefile.am): Substitute witness.
43655
43656         canonicalize, canonicalize-lgpl: use <stdlib.h>
43657         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
43658         (Include): Mention <stdlib.h>.
43659         (configure.ac): Mention functions we provide.
43660         * modules/canonicalize (configure.ac): Likewise.
43661         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
43662         realpath if canonicalize_file_name is missing.
43663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
43664         * modules/stdlib (Makefile.am): Substitute witnesses.
43665         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
43666         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
43667         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
43668         * NEWS: Document this.
43669         * doc/glibc-functions/canonicalize_file_name.texi
43670         (canonicalize_file_name): Likewise.
43671         * doc/posix-functions/realpath.texi (realpath): Likewise.
43672         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
43673
43674         test-canonicalize: consolidate into single C program
43675         * tests/test-canonicalize.sh: Delete; move setup into...
43676         * tests/test-canonicalize.c (main): ...the program, making it
43677         easier to run in debugger.  Add some tests.
43678         * modules/canonicalize-tests (Files): Remove unused file.
43679         (Depends-on): Add progname.
43680         (configure.ac, Makefile.am): Simplify.
43681
43682         test-canonicalize-lgpl: consolidate into single C program
43683         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
43684         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
43685         easier to run in debugger.  Add some tests.
43686         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
43687         (configure.ac, Makefile.am): Simplify.
43688
43689         canonicalize: avoid resolvepath
43690         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
43691         unnecessary checks.
43692         * lib/canonicalize.c (includes): Simplify.
43693         (canonicalize_file_name): Drop resolvepath implementation.
43694         * modules/canonicalize (Depends-on): Drop filenamecat.
43695
43696         canonicalize: don't lose errno
43697         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
43698         over calls to free.
43699
43700         canonicalize: simplify errno handling
43701         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
43702         assignment.
43703
43704         canonicalize, canonicalize-lgpl: update module dependencies
43705         * modules/canonicalize (Depends-on): Add extensions, lstat,
43706         pathmax, stdlib.
43707         (Files): Drop pathmax.h.
43708         (configure.ac): Adjust macro name.
43709         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
43710         lstat, stdlib, sys_stat.
43711         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
43712         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
43713         extensions.
43714         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
43715         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
43716         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
43717         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
43718         declaration, if available.
43719         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
43720         we can rely on the readlink module.
43721         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
43722         (includes): Use <unistd.h> unconditionally.
43723
43724 2009-09-17  Eric Blake  <ebb9@byu.net>
43725
43726         maint: make Include sections of modules consistent
43727         * modules/alloca: Use only header name; no need to list #include.
43728         * modules/alloca-opt: Likewise.
43729         * modules/arpa_inet: Likewise.
43730         * modules/canon-host: Likewise.
43731         * modules/configmake: Likewise.
43732         * modules/dirent: Likewise.
43733         * modules/eealloc: Likewise.
43734         * modules/environ: Likewise.
43735         * modules/fchdir: Likewise.
43736         * modules/fcntl: Likewise.
43737         * modules/fcntl-h: Likewise.
43738         * modules/gethrxtime: Likewise.
43739         * modules/gettime: Likewise.
43740         * modules/ignore-value: Likewise.
43741         * modules/inet_ntop: Likewise.
43742         * modules/inet_pton: Likewise.
43743         * modules/inttypes: Likewise.
43744         * modules/isnand-nolibm: Likewise.
43745         * modules/isnanf-nolibm: Likewise.
43746         * modules/mbchar: Likewise.
43747         * modules/mbfile: Likewise.
43748         * modules/mbiter: Likewise.
43749         * modules/mbuiter: Likewise.
43750         * modules/netdb: Likewise.
43751         * modules/netinet_in: Likewise.
43752         * modules/nproc: Likewise.
43753         * modules/pagealign_alloc: Likewise.
43754         * modules/poll: Likewise.
43755         * modules/printf-frexp: Likewise.
43756         * modules/pthread: Likewise.
43757         * modules/putenv: Likewise.
43758         * modules/random_r: Likewise.
43759         * modules/relocatable-prog: Likewise.
43760         * modules/search: Likewise.
43761         * modules/select: Likewise.
43762         * modules/selinux-h: Likewise.
43763         * modules/settime: Likewise.
43764         * modules/signal: Likewise.
43765         * modules/size_max: Likewise.
43766         * modules/socklen: Likewise.
43767         * modules/ssize_t: Likewise.
43768         * modules/stdarg: Likewise.
43769         * modules/stdbool: Likewise.
43770         * modules/stddef: Likewise.
43771         * modules/stdint: Likewise.
43772         * modules/stdio: Likewise.
43773         * modules/stdlib: Likewise.
43774         * modules/string: Likewise.
43775         * modules/strings: Likewise.
43776         * modules/sys_file: Likewise.
43777         * modules/sys_ioctl: Likewise.
43778         * modules/sys_select: Likewise.
43779         * modules/sys_socket: Likewise.
43780         * modules/sys_stat: Likewise.
43781         * modules/sys_time: Likewise.
43782         * modules/sys_times: Likewise.
43783         * modules/sys_utsname: Likewise.
43784         * modules/sys_wait: Likewise.
43785         * modules/sysexits: Likewise.
43786         * modules/time: Likewise.
43787         * modules/times: Likewise.
43788         * modules/tmpfile: Likewise.
43789         * modules/trim: Likewise.
43790         * modules/unistd: Likewise.
43791         * modules/wchar: Likewise.
43792         * modules/wctype: Likewise.
43793
43794 2009-09-17  Bruno Haible  <bruno@clisp.org>
43795
43796         Make getdate.y compile on QNX and NetBSD 5 / i386.
43797         * m4/getdate.m4 (gl_GETDATE): Conditionally define
43798         TIME_T_FITS_IN_LONG_INT.
43799         * lib/getdate.y (long_time_t): New type.
43800         (relative_time): Change type of 'seconds' field to long_time_t.
43801         (get_date): Update types of local variables. Check against overflow
43802         during conversion from long_time_t to time_t.
43803         Reported by Matt Kraai <kraai@ftbfs.org>
43804         and Hasso Tepper <hasso@netbsd.org>.
43805
43806 2009-09-17  Bruno Haible  <bruno@clisp.org>
43807
43808         * modules/COPYING: Update copyright years.
43809         * modules/README: Likeiwse.
43810         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
43811         Reported by Ian Beckwith <ianb@erislabs.net>.
43812
43813 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43814
43815         * users.txt: Update references for gnuit package.
43816
43817 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43818
43819         * m4/getdelim.m4: Fix typo in copyright line.
43820
43821 2009-09-17  Bruno Haible  <bruno@clisp.org>
43822
43823         * lib/atoll.c: Use the standard header with GPL copyright.
43824         * lib/argz.in.h: Likewise.
43825         * lib/glob.c: Likewise.
43826         * lib/glob-libc.h: Likewise.
43827         * lib/random_r.c: Likewise.
43828         * lib/siglist.h: Likewise.
43829         * lib/strsignal.c: Likewise.
43830         Reported by Ian Beckwith <ianb@erislabs.net>.
43831
43832 2009-09-17  Eric Blake  <ebb9@byu.net>
43833
43834         rmdir: ensure correct dependency order
43835         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
43836
43837 2009-09-17  Bruno Haible  <bruno@clisp.org>
43838
43839         Disable assertion that fails on NetBSD 5 / i386.
43840         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
43841         Reported by Sam Steingold <sds@gnu.org>
43842         and Hasso Tepper <hasso@netbsd.org>.
43843
43844 2009-09-16  Eric Blake  <ebb9@byu.net>
43845
43846         unlinkdir: port to mingw
43847         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
43848         on which no one can unlink a directory.
43849
43850         stdlib: sort witness names
43851         * modules/stdlib (Makefile.am): Sort replacements.
43852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43853         * lib/stdlib.in.h: Likewise.
43854
43855         parse-duration-tests: avoid link failure
43856         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
43857         LIBINTL.
43858         Reported by Tom G. Christensen.
43859
43860         openat-tests: ensure unlinkat behaves like rmdir
43861         * tests/test-rmdir.c (main): Factor guts...
43862         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
43863         * modules/rmdir-tests (Files): Ship new file.
43864         * modules/openat-tests: New test.
43865         * tests/test-unlinkat.c: Likewise.
43866
43867         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
43868         * modules/rmdir-errno (Status, Notice): Now obsolete.
43869
43870         rmdir: work around cygwin 1.5.x and mingw bugs
43871         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
43872         * lib/rmdir.c (rmdir): Work around it.
43873         * modules/rmdir (Status, Notice): No longer obsolete.
43874         (Files): Add dos.m4.
43875         (Depends-on): Add unistd.
43876         (configure.ac): Set witnesses.
43877         (License): Relax to LGPLv2+.
43878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
43879         * modules/unistd (Makefile.am): Substitute witnesses.
43880         * lib/unistd.in.h (rmdir): Declare replacement.
43881         * doc/posix-functions/rmdir.texi (rmdir): Document this.
43882         * modules/rmdir-tests: New tests.
43883         * tests/test-rmdir.c: Likewise.
43884
43885 2009-09-15  Eric Blake  <ebb9@byu.net>
43886
43887         fchdir: improve use of replacement functions
43888         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
43889         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
43890         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
43891         REPLACE_CLOSEDIR.
43892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
43893         * modules/sys_stat (Makefile.am): Substitute correct witness.
43894         * modules/dirent (Makefile.am): Likewise.
43895         * modules/unistd (Makefile.am): Likewise.
43896         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
43897         * lib/unistd.in.h (dup): Likewise.
43898         * lib/sys_stat.in.h (fstat): Likewise.
43899
43900         maint: ignore gnulib-tool temp files
43901         * .gitignore: Ignore files created during gnulib-tool --test.
43902
43903 2009-09-13  Jim Meyering  <meyering@redhat.com>
43904
43905         posixtm: don't reject a time that specify "60" as the number of seconds
43906         * lib/posixtm.c (posixtime): The code to reject invalid dates
43907         would also reject a time specified with the .60 suffix.
43908         But POSIX allows that, in order to accommodate leap seconds.
43909         So don't reject it.
43910         (main): Adjust tests accordingly.
43911         * modules/posixtm (Depends-on): Add stpcpy.
43912
43913 2009-09-11  Jim Meyering  <meyering@redhat.com>
43914
43915         announce-gen: include [$release_type] in emitted Subject:
43916         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
43917         e.g., [stable] in the emitted Subject: line.
43918
43919 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43920
43921         Remove obsolete macros from several modules.
43922         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
43923         obsolete Autoconf macros with their modern counterparts.
43924         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
43925         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
43926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
43927         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43928         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
43929         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43930         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43931         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43932         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43933         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
43934         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43935         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43936         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
43937         * m4/sockets.m4 (gl_SOCKETS): Likewise.
43938         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
43939         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
43940         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43941         * m4/time_r.m4 (gl_TIME_R): Likewise.
43942         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43943         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
43944         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43945
43946         Fix copyright header in build-aux scripts.
43947         * build-aux/git-version-gen: Fix copyright header to match GPLv3
43948         recommendation.
43949         * build-aux/ncftpput-ftp: Likewise.
43950         * build-aux/update-copyright: Likewise.
43951
43952 2009-09-09  Eric Blake  <ebb9@byu.net>
43953
43954         test-link: allow Linux choice of errno
43955         * tests/test-link.c (main): Relax test for alternate error.
43956
43957         strndup: fix improper m4 caching
43958         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
43959         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
43960         (gl_PREREQ_STRNDUP): Delete.
43961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
43962         * modules/string (Makefile.am): Substitute it.
43963         * lib/string.in.h (strndup): Modernize prototype.
43964
43965         getcwd: port to mingw
43966         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
43967         different from the POSIX assumptions made throughout the getcwd
43968         module; fortunately, the mingw getcwd does not need replacement.
43969         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
43970         * modules/getcwd-tests: New test.
43971         * tests/test-getcwd.c: Likewise.
43972
43973         link: fix platform bugs
43974         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
43975         * lib/link.c (link): Work around them.  Fix related mingw bug.
43976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
43977         * modules/unistd (Makefile.am): Substitute it.
43978         * lib/unistd.in.h (link): Declare replacement.
43979         * doc/posix-functions/link.texi (link): Document this.
43980         * modules/link (Depends-on): Add strdup-posix, sys_stat.
43981
43982         test-link: consolidate into single C program, test more cases
43983         * tests/test-link.sh: Delete.
43984         * tests/test-link.c: Test more error conditions.  Exposes bugs on
43985         at least Cygwin and Solaris.
43986         * modules/link-tests (Files): Remove unused file.
43987         (Depends-on): Add errno, sys_stat.
43988         (Makefile.am): Simplify.
43989
43990 2009-09-08  Bruno Haible  <bruno@clisp.org>
43991
43992         Work around towlower, towupper bug on mingw.
43993         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
43994         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
43995         * doc/posix-functions/towlower.texi: Mention the mingw bug.
43996         * doc/posix-functions/towupper.texi: Likewise.
43997         Reported by Eric Blake.
43998
43999 2009-09-08  Jim Meyering  <meyering@redhat.com>
44000
44001         build: don't try to run autoheader if we don't use it
44002         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44003         is not used in configure.ac.
44004
44005 2009-09-08  Eric Blake  <ebb9@byu.net>
44006
44007         euidaccess: fix compilation error
44008         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44009
44010         rawmemchr: relax license
44011         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44012         okay.
44013         Reported by Jim Meyering.
44014
44015         mkfifoat: new module
44016         * modules/mkfifoat: New file.
44017         * lib/mkfifoat.c: Likewise.
44018         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44019         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44020         * modules/sys_stat (Makefile.am): Use them.
44021         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44022         * MODULES.html.sh (File system functions): Mention module.
44023         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44024         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44025         * modules/mkfifoat-tests: New test.
44026         * tests/test-mkfifoat.c: Likewise.
44027
44028         strchrnul: relax license
44029         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44030         okay.
44031         Reported by Jim Meyering.
44032
44033 2009-09-08  Eric Blake  <ebb9@byu.net>
44034
44035         fstatat: fix compilation on Solaris
44036         * lib/fstatat.c (includes): Add fcntl.h.
44037         Reported by Pádraig Brady.
44038
44039 2009-09-07  Eric Blake  <ebb9@byu.net>
44040
44041         rename: modernize replacement
44042         * modules/rename (Depends-on): Add stdio.
44043         (configure.ac): Declare witness.
44044         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44045         stdio take care of replacement.
44046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44047         * modules/stdio (Makefile.am): Substitute them.
44048         * lib/stdio.in.h (rename): Declare replacement.
44049         * lib/rename.c (includes): Allow cross-compilation to non-windows
44050         machines.
44051         * doc/posix-functions/rename.texi (rename): Improve
44052         documentation.
44053
44054         stdio: sort witness names
44055         * modules/stdio (Makefile.am): Sort replacements.
44056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44057         * lib/stdio.in.h: Likewise.
44058
44059         getcwd: minor cleanups
44060         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44061         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44062
44063         openat: provide more convenience names
44064         * modules/faccessat (configure.ac): Add C witness.
44065         * lib/unistd.in.h (readlinkat): Fix typo.
44066         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44067         convenience wrappers.
44068         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44069         wrappers in syntax checks.
44070
44071 2009-09-06  Eric Blake  <ebb9@byu.net>
44072
44073         doc: fix comments in recent patches
44074         * lib/faccessat.c: Mention correct function.
44075         * lib/fchmodat.c: Likewise.
44076         * lib/fchownat.c: Likewise.
44077         * lib/symlinkat.c: Likewise.
44078         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44079         constants.
44080
44081         faccessat, symlinkat: continue cleanup of previous patch
44082         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44083         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44084         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44086         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44087         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44088         set.
44089
44090 2009-09-06  Bruno Haible  <bruno@clisp.org>
44091
44092         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44093         (fstatat): Declare if GNULIB_FSTATAT is set.
44094         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44095         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44096         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44097         * modules/fcntl-h (Files): Remove m4/openat.m4.
44098         * modules/sys_stat (Files): Remove m4/openat.m4.
44099         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44100         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44101         * modules/unistd (Files): Remove m4/openat.m4.
44102         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44103         GNULIB_OPENAT.
44104         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44105         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44106         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44107         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44108         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44109         gl_OPENAT_DEFAULTS.
44110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44111         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44112         Don't require gl_OPENAT_DEFAULTS.
44113         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44114         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44115         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44116         (gl_OPENAT_DEFAULTS): Remove macro.
44117
44118 2009-09-06  Bruno Haible  <bruno@clisp.org>
44119
44120         * modules/openat (configure.ac): Remove unneeded witness.
44121
44122 2009-09-06  Bruno Haible  <bruno@clisp.org>
44123
44124         Set errno to ENOSYS when a function is entirely unsupported.
44125         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44126         EOPNOTSUPP.
44127         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44128         * modules/chown (Depends-on): Remove errno.
44129
44130 2009-09-06  Bruno Haible  <bruno@clisp.org>
44131
44132         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44133
44134 2009-09-06  Bruno Haible  <bruno@clisp.org>
44135
44136         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44137
44138 2009-09-06  Ben Pfaff  <blp@gnu.org>
44139             Bruno Haible  <bruno@clisp.org>
44140
44141         Work around a glibc bug in strtok_r.
44142         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44143         Undefine if UNDEFINE_STRTOK_R is set.
44144         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44146         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44147         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44148         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44149         UNDEFINE_STRTOK_R.
44150         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44151
44152 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44153
44154         exclude: minor fix
44155         * lib/exclude.c: Include wctype.h
44156
44157 2009-09-06  Akim Demaille  <demaille@gostai.com>
44158
44159         bootstrap: improve error message
44160         * build-aux/bootstrap (find_tool): Upon failure, report the list
44161         of candidates.
44162         Honor the initial value of the envvar.
44163
44164 2009-09-05  Eric Blake  <ebb9@byu.net>
44165
44166         symlinkat: new module
44167         * modules/symlinkat: New file.
44168         * lib/symlinkat.c: Likewise.
44169         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44171         * modules/unistd (Makefile.am): Use them.
44172         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44173         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44174         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44175         * MODULES.html.sh (File system functions): Mention module.
44176         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44177         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44178         * modules/symlinkat-tests: New test.
44179         * tests/test-symlinkat.c: Likewise.
44180
44181         test-openat-safer: add more checks
44182         * tests/test-openat-safer.c (main): Check more code paths.
44183
44184 2009-09-05  Jim Meyering  <meyering@redhat.com>
44185
44186         syntax-check: detect unnecessary inclusion of openat.h
44187         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44188
44189 2009-09-05  Bruno Haible  <bruno@clisp.org>
44190
44191         Support towlower, towupper.
44192         * doc/posix-functions/towlower.texi: Mention module wctype.
44193         * doc/posix-functions/towupper.texi: Likewise.
44194         * lib/wctype.in.h (towlower, towupper): New functions.
44195         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44196         (ASSERT): New macro.
44197         (e): New variable.
44198         (main): Test also towlower, towupper. Test WEOF argument.
44199         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44200
44201 2009-09-05  Bruno Haible  <bruno@clisp.org>
44202
44203         Fix conversion behaviour when the input is invalid.
44204         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44205         mark occurring in first pass of indirect conversion.
44206         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44207         input.
44208         Found by clang's static analyzer.
44209
44210 2009-09-05  Bruno Haible  <bruno@clisp.org>
44211
44212         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44213         where direct conversion is possible.
44214
44215 2009-09-04  Eric Blake  <ebb9@byu.net>
44216
44217         openat: fail with ENOENT on empty name
44218         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44219         buffer.
44220
44221         link-follow: fix logic bug in prior patch
44222         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44223         reversed sense of yes and no in prior patch.  Avoid confusing
44224         compilation failure with desired semantics.
44225
44226         link-follow: accommodate mingw and cross-compilation
44227         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44228         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44229         cross-compilation results to -1, to make linkat easier to
44230         implement when cross-compiling.  Trivially support mingw.
44231         * modules/link-follow (configure.ac): Call new name.
44232         * NEWS: Mention this.
44233
44234 2009-09-03  Eric Blake  <ebb9@byu.net>
44235
44236         faccessat: compile replacement
44237         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44238         needed.
44239
44240         fts: fix compilation error
44241         * lib/fts.c (includes): Re-add "openat.h", for
44242         openat_needs_fchdir.
44243
44244         faccessat: new module
44245         * modules/faccessat: New file.
44246         * lib/faccessat.c: Likewise.
44247         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44249         * modules/unistd (Makefile.am): Use it.
44250         * lib/unistd.in.h (faccessat): Declare it.
44251         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44252         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44253         * MODULES.html.sh (File system functions): Mention it.
44254         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44255         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44256
44257         euidaccess: prefer POSIX over non-standard implementation
44258         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44259         * lib/euidaccess.c (euidaccess): Use it if available.
44260
44261         openat: make template easier to use
44262         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44263         AT_FUNC_F2 to be undefined.
44264         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44265         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44266         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44267         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44268         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44269         Likewise.
44270         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44271         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44272         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44273         Likewise.
44274
44275         openat: declare in POSIX headers
44276         * NEWS: Mention this.
44277         * modules/openat (configure.ac): Declare witnesses.
44278         (Depends-on): Add fcntl-h, sys_stat, unistd.
44279         (Include): Mention correct headers.
44280         * modules/fcntl-h (Depends-on): Add link-warning.
44281         (Files): Add openat.m4.
44282         (Makefile.am): Substitute witnesses.
44283         * modules/sys_stat (Files, Makefile.am): Likewise.
44284         * modules/unistd (Files, Makefile.am): Likewise.
44285         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44286         (gl_OPENAT_DEFAULTS): New macro.
44287         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44289         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44290         (SYS_STAT_H): Remove unused variable.
44291         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44292         * lib/fcntl--.h (includes): Remove unneeded header.
44293         * lib/openat-safer.c (includes): Likewise.
44294         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44295         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44296         appropriate headers.
44297         (__OPENAT_PREFIX): Delete.
44298         * lib/fcntl.in.h (openat): Provide declaration.
44299         (AT_FDCWD): Fix Solaris bug.
44300         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44301         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44302         * lib/fchmodat.c (includes):  Adjust to find declaration.
44303         * lib/fchownat.c (includes): Likewise.
44304         * lib/mkdirat.c (includes): Likewise.
44305         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44306         still visible.
44307
44308 2009-09-02  Eric Blake  <ebb9@byu.net>
44309
44310         errno: use consistently
44311         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44312         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44313         * lib/canonicalize.c (ELOOP): Likewise.
44314         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44315         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44316         * lib/lchown.c (EOPNOTSUPP): Likewise.
44317         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44318         * lib/savewd.c (ESTALE): Likewise.
44319         * lib/settime.c (ENOSYS): Likewise.
44320         * lib/utimens.c (ENOSYS): Likewise.
44321         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44322         * lib/chdir-safer.c (ELOOP): Likewise.
44323         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44324         * modules/c-stack (Depends-on): Add errno.
44325         * modules/canonicalize (Depends-on): Likewise.
44326         * modules/chdir-safer (Depends-on): Likewise.
44327         * modules/fdopendir (Depends-on): Likewise.
44328         * modules/inet_ntop (Depends-on): Likewise.
44329         * modules/inet_pton (Depends-on): Likewise.
44330         * modules/lchown (Depends-on): Likewise.
44331         * modules/openat (Depends-on): Likewise.
44332         * modules/savewd (Depends-on): Likewise.
44333         * modules/settime (Depends-on): Likewise.
44334         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44335
44336         fts: avoid leaking fds
44337         * modules/fts (Depends-on): Add cloexec.
44338         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44339         flag.
44340
44341         fts: make directory fds more robust
44342         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44343         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44344
44345         backupfile, chdir-long, fts, savedir: make safer
44346         * lib/backupfile.c (includes): Use "dirent--.h", since
44347         numbered_backup can write to stderr during readdir.
44348         * lib/savedir.c (includes): Likewise.
44349         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44350         emulation can write to stderr on failure.
44351         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44352         * lib/getcwd.c: Document why opendir_safer is unused.
44353         * lib/glob.c: Likewise.
44354         * lib/scandir.c: Likewise.
44355         * lib/openat-proc.c: Likewise, for open_safer.
44356         * modules/backupfile (Depends-on): Add dirent-safer.
44357         * modules/savedir (Depends-on): Likewise.
44358         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44359         * modules/chdir-long (Depends-on): Add openat-safer.
44360
44361         openat-safer: new module
44362         * modules/openat-safer: New file.
44363         * lib/openat-safer.c: Likewise.
44364         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44365         * lib/fcntl-safer.h (openat_safer): Declare.
44366         * lib/fcntl--.h (openat): Override.
44367         * MODULES.html.sh (File descriptor based I/O): Mention it.
44368         * lib/openat.h: Add double-inclusion guards.
44369         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44370         "fcntl--.h", so we can implement openat.
44371         * modules/openat-safer-tests: New test.
44372         * tests/test-openat-safer.c: New file.
44373
44374         dirent-safer: new module
44375         * modules/dirent-safer: New file.
44376         * lib/dirent--.h: Likewise.
44377         * lib/dirent-safer.h: Likewise.
44378         * lib/opendir-safer.c: Likewise.
44379         * m4/dirent-safer.m4: Likewise.
44380         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44381         * modules/dirent-safer-tests: New test.
44382         * tests/test-dirent-safer.c: New file.
44383         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44384
44385         fdopendir: optimize on mingw
44386         * lib/unistd.in.h (_gl_directory_name): New prototype.
44387         * lib/fchdir.c (_gl_directory_name): Implement it.
44388         (fchdir): Use it to simplify implementation.
44389         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44390         fchdir, when available, to avoid calling [f]chdir().
44391
44392         fdopendir: split into its own module
44393         * lib/openat.c (fdopendir): Move...
44394         * lib/fdopendir.c: ...into new file.
44395         * modules/fdopendir: New module.
44396         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44397         * modules/openat (Depends-on): Add fdopendir.
44398         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44399         fdopendir here.
44400         * modules/savedir (Depends-on): Only need fdopendir, not full
44401         openat.
44402         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44403         * lib/openat.h (fdopendir): Drop prototype.
44404         * lib/dirent.in.h (fdopendir): Provide prototype.
44405         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44406         * modules/dirent (Makefile.am): Substitute them.
44407         * MODULES.html.sh (File system functions): Mention it.
44408         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44409         * modules/fdopendir-tests: New file.
44410         * tests/test-fdopendir.c: Likewise.
44411
44412         fchdir: use more consistent macro convention
44413         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44414         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44415         REPLACE_FCHDIR, rather than relying on config.h macros.
44416         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44417         inside a single make-time REPLACE_FCHDIR block, rather than using
44418         the config.h FCHDIR_REPLACEMENT.
44419         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44420         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44421         Manage fstat replacement.
44422         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44423         REPLACE_FCHDIR.
44424         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44425         (Makefile.am): Substitute REPLACE_FCHDIR.
44426         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44427         FCHDIR_REPLACEMENT.
44428         * lib/dup-safer.c (dup_safer): Likewise.
44429         * lib/dup2.c (rpl_dup2): Likewise.
44430         * lib/dup3.c (rpl_dup3): Likewise.
44431         * lib/open.c (rpl_open): Likewise.
44432
44433         fchdir: simplify error handling, and support dup3
44434         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44435         stdbool, malloc-posix, realloc-posix.
44436         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44437         (ensure_dirs_slot): Return false on allocation failure.
44438         (rpl_dup2): Delete.
44439         (_gl_register_dup): New function.
44440         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44441         (_gl_register_fd): Close fd on allocation failure.
44442         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44443         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44444         prototype.
44445         (rpl_dup2_fchdir): Delete prototype.
44446         * lib/open.c (open): Update caller.
44447         * lib/dup2.c (dup2): Track fchdir metadata.
44448         * lib/dup3.c (dup3): Likewise.
44449         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44451
44452 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44453
44454         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44455         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44456         don't pass arguments to AC_OUTPUT.
44457
44458 2009-09-02  Bruno Haible  <bruno@clisp.org>
44459
44460         * modules/mkdtemp (License): Relicense under LGPLv2+.
44461         Reported by Paolo Bonzini.
44462
44463 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44464
44465         Replace uses of obsolete autoconf macros in Jim's modules.
44466         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44467         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44468         can evoke a warning from autoconf when run with -Wobsolete
44469         enabled.  They were declared obsolete for good reasons (see
44470         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44471         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44472         should not continue using the deprecated macros.
44473         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44474         obsolete Autoconf macros with modern counterparts.
44475         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44476         * m4/dos.m4 (gl_AC_DOS): Likewise.
44477         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44478         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44479         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44480         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44481         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44482         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44483         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44484         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44485         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44486         Likewise.
44487         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44488         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44489         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44490         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44491         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44492         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44493
44494 2009-09-01  Eric Blake  <ebb9@byu.net>
44495
44496         fchdir: fix off-by-one bug in previous patch
44497         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44498         (_gl_unregister_fd): Delete useless if.
44499
44500 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44501
44502         maint.mk: sort the list of syntax-check rules
44503         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44504         easier to get a sense of progress when the rules are run sequentially
44505         and take a long time.
44506
44507 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44508
44509         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44510         * modules/netinet_in: Likewise.
44511         * modules/sys_file: Likewise.
44512         * modules/sys_ioctl: Likewise.
44513         * modules/sys_select: Likewise.
44514         * modules/sys_socket: Likewise.
44515         * modules/sys_stat: Likewise.
44516         * modules/sys_time: Likewise.
44517         * modules/sys_times: Likewise.
44518         * modules/sys_utsname: Likewise.
44519         * modules/sys_wait: Likewise.
44520
44521 2009-09-01  Jim Meyering  <meyering@redhat.com>
44522
44523         fts: help ensure that return values are not ignored
44524         * lib/fts_.h (__GNUC_PREREQ): Define.
44525         (__attribute_warn_unused_result__): Define.
44526         (fts_children, fts_close, fts_open, fts_read): Declare with
44527         __attribute_warn_unused_result__.
44528
44529         fts: fts_close now fails also when closing a dir file descriptor fails
44530         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44531         and propagate to caller, along with errno.
44532
44533         announce-gen: correct formatting in --help output
44534         * build-aux/announce-gen (usage): Move the one-line description in
44535         --help output "up", to where it belongs, just after Usage:.
44536
44537 2009-08-31  Eric Blake  <ebb9@byu.net>
44538
44539         fchdir: port to mingw
44540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44541         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44542         opened, then use a substitute.
44543         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44544         replacement.
44545         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44546         (_gl_register_fd): No need to check stat if open already filters
44547         all directories.
44548         (fchdir): Fix error condition to match POSIX.
44549         * modules/fchdir (Depends-on): Add sys_stat.
44550         * doc/posix-functions/open.texi (open): Document the limitation.
44551         * modules/fchdir-tests: New file.
44552         * tests/test-fchdir.c: Likewise.
44553
44554         canonicalize: allow cross-testing from cygwin to mingw
44555         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44556         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44557         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44558         Likewise.
44559         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44560         target does not support symlinks.
44561         * tests/test-canonicalize-lgpl.sh: Likewise.
44562
44563         chown: avoid compilation warning on mingw
44564         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44565         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44566         mingw.
44567         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44568         * modules/chown (Depends-on): Add errno.
44569
44570 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44571
44572         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44573         command.
44574
44575 2009-08-31  Jim Meyering  <meyering@redhat.com>
44576
44577         canonicalize: remove useless initialization
44578         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44579         initialization of local, "end".
44580
44581 2009-08-30  Bruno Haible  <bruno@clisp.org>
44582
44583         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44584         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44585         ENOSYS.
44586
44587 2009-08-30  Bruno Haible  <bruno@clisp.org>
44588
44589         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44590         /usr/xpg4/bin/tr when it exists.
44591         * tests/test-pipe-filter-gi1.sh: Likewise.
44592
44593 2009-08-30  Bruno Haible  <bruno@clisp.org>
44594
44595         Work around deficient /usr/bin/id program on Solaris.
44596         * tests/test-file-has-acl.sh (ID): New variable.
44597         * tests/test-set-mode-acl.sh (ID): Likewise.
44598         * tests/test-copy-acl.sh (ID): Likewise.
44599         * tests/test-copy-file.sh (ID): Likewise.
44600
44601 2009-08-30  Bruno Haible  <bruno@clisp.org>
44602
44603         New module 'xstriconveh'.
44604         * lib/xstriconveh.h: New file.
44605         * lib/xstriconveh.c: New file.
44606         * modules/xstriconveh: New file.
44607
44608 2009-08-30  Bruno Haible  <bruno@clisp.org>
44609
44610         Make it easier to use mem_cd_iconveh.
44611         * lib/striconveh.h (iconveh_t): New type.
44612         (iconveh_open, iconveh_close): New declarations.
44613         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44614         with a single 'const iconveh_t *' argument.
44615         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
44616         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44617         with a single 'const iconveh_t *' argument.
44618         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
44619         * tests/test-striconveh.c (main): Update.
44620         * NEWS: Mention the change.
44621
44622 2009-08-30  Bruno Haible  <bruno@clisp.org>
44623
44624         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
44625         problem.
44626
44627 2009-08-30  Bruno Haible  <bruno@clisp.org>
44628
44629         Work around iconv_open problem on Solaris.
44630         * lib/iconv_open-solaris.gperf: New file.
44631         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
44632         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
44633         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
44634         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
44635         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
44636         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
44637
44638 2009-08-29  Jim Meyering  <meyering@redhat.com>
44639
44640         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
44641         * top/maint.mk (cvs-check): Remove target; it was just an alias
44642         to the better-named vc-diff-check.
44643         (maintainer-distcheck): Remove rule.  It was used only from
44644         the (alpha/beta/major) target, and all of its commands but one
44645         were coreutils-specific.
44646         (vc-dist): Remove rule.
44647         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
44648         Run vc-diff-check, not vc-dist.
44649         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
44650
44651 2009-08-27  Bruno Haible  <bruno@clisp.org>
44652
44653         * tests/test-bitrotate.c (main): Remove test that uses a shift count
44654         of 0.
44655
44656 2009-08-27  Bruno Haible  <bruno@clisp.org>
44657
44658         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
44659         compilers.
44660         * doc/func.texi: Document the SunPRO C bug.
44661
44662 2009-08-27  Bruno Haible  <bruno@clisp.org>
44663
44664         Fix link error on Solaris.
44665         * tests/test-parse-duration.c (xstrdup): Remove function.
44666
44667 2009-08-26  Pádraig Brady  <P@draigbrady.com>
44668
44669         ignore-value: handle pointer types, too
44670         * lib/ignore-value.h (__attribute__): Remove definition.
44671         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
44672         of a more concise and more-often effective "(void) i" statement.
44673         (ignore_ptr): New function to suppress warnings from functions that
44674         return pointers, and to make it explicit that one function doesn't
44675         handle all cases.
44676
44677 2009-08-25  Bruno Haible  <bruno@clisp.org>
44678
44679         dup2: work around a Linux bug.
44680         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
44681         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
44682         * doc/posix-functions/dup2.texi: Mention the Linux bug.
44683         Reported by Simon Josefsson.
44684
44685 2009-08-25  Jim Meyering  <meyering@redhat.com>
44686
44687         libguestfs uses gnulib
44688         * users.txt: Add libguestfs.
44689
44690 2009-08-24  Eric Blake  <ebb9@byu.net>
44691
44692         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
44693         * lib/pipe2.c (includes): Add binary-io.h.
44694         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
44695
44696 2009-08-24  Bruno Haible  <bruno@clisp.org>
44697
44698         Tolerate declared but missing accept4 syscall.
44699         * lib/accept4.c (accept4): Invoke original accept4 function first, if
44700         available.
44701         * lib/sys_socket.in.h (accept4): If the function is already present,
44702         override it.
44703         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
44704         * modules/accept4 (Makefile.am): Compile accept4.c always.
44705         Reported by Paolo Bonzini and Eric Blake.
44706
44707 2009-08-23  Bruno Haible  <bruno@clisp.org>
44708
44709         New module 'accept4'.
44710         * lib/sys_socket.in.h (accept4): New declaration.
44711         * lib/accept4.c: New file.
44712         * m4/accept4.m4: New file.
44713         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44714         GNULIB_ACCEPT4, HAVE_ACCEPT4.
44715         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
44716         HAVE_ACCEPT4.
44717         * modules/accept4: New file.
44718         * doc/glibc-functions/accept4.texi: Mention the new module.
44719
44720 2009-08-24  Jim Meyering  <meyering@redhat.com>
44721
44722         progname: also set global program_invocation_name, when possible
44723         Before this change, a libtool-enabled program that calls glibc's
44724         error function would report the program name as
44725         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
44726         * modules/progname (configure.ac): Check for a declaration of
44727         program_invocation_name.
44728         * lib/progname.c:  Include <errno.h>.
44729         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
44730         Set program_invocation_name.
44731
44732 2009-08-23  Bruno Haible  <bruno@clisp.org>
44733
44734         * lib/dup3.c: Include <string.h>.
44735
44736 2009-08-23  Bruno Haible  <bruno@clisp.org>
44737
44738         * lib/dup3.c (dup3): Test only once whether the system actually exists.
44739         * lib/pipe2.c (pipe2): Likewise.
44740         Suggested by Eric Blake.
44741
44742 2009-08-23  Bruno Haible  <bruno@clisp.org>
44743
44744         Tolerate declared but missing dup3 syscall.
44745         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
44746         * lib/unistd.in.h (dup3): If the function is already present,
44747         override it.
44748         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
44749         * modules/dup3 (Makefile.am): Compile dup3.c always.
44750         Reported by Paolo Bonzini.
44751
44752 2009-08-23  Bruno Haible  <bruno@clisp.org>
44753
44754         Tolerate declared but missing pipe2 syscall.
44755         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
44756         available.
44757         * lib/unistd.in.h (pipe2): If the function is already present,
44758         override it.
44759         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
44760         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
44761         Reported by Paolo Bonzini.
44762
44763 2009-08-23  Bruno Haible  <bruno@clisp.org>
44764
44765         * lib/pipe2.c (pipe2): Move #ifs inside function.
44766
44767 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44768
44769         quotearg: document limitations of quote_these_too
44770         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
44771         those limitations are created.
44772         * lib/quotearg.h (set_char_quoting): Document that digits and
44773         letters that are special after backslash are not permitted.
44774         (quotearg_char): Cross-reference set_char_quoting documentation.
44775
44776 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
44777
44778         quotearg: implement custom_quoting_style
44779         * lib/quotearg.c: (struct quoting_options): Add left_quote and
44780         right_quote fields.
44781         (set_custom_quoting): New public function.
44782         (quotearg_buffer_restyled): Add left_quote and right_quote
44783         arguments, handle them very much like locale quoting, and update
44784         all uses.
44785         (quotearg_n_custom): New public function.
44786         (quotearg_n_custom_mem): New public function.
44787         (quotearg_custom): New public function.
44788         (quotearg_custom_mem): New public function.
44789         * lib/quotearg.h: Prototype and document new public functions.
44790         (enum quoting_style): For escape_quoting_style and
44791         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
44792         ignored even though they're otherwise like c_quoting_style.
44793         Add custom_quoting_style member and document with comparison to
44794         clocale_quoting_style.
44795         * tests/test-quotearg.c (custom_quotes): New array.
44796         (custom_results): New array.
44797         (main): Extend to test custom quoting.
44798
44799 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44800
44801         quotearg: fix right quote escaping when it's in quote_these_too
44802         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
44803         quote, be sure to prepend only one backslash.
44804         * tests/test-quotearg.c (use_quote_double_quotes): New function.
44805         (main): Test it.
44806
44807 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44808
44809         quotearg-tests: test escaping of embedded locale quotes
44810         * tests/test-quotearg.c (struct result_strings): Add member for
44811         new input.
44812         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
44813         (inputs): Add new input.
44814         (results_g): Add expected results.
44815         (flag_results): Likewise.
44816         (locale_results): Likewise.
44817         (compare_strings): Check those.
44818
44819 2009-08-23  Bruno Haible  <bruno@clisp.org>
44820
44821         Tests for module 'dup3'.
44822         * modules/dup3-tests: New file.
44823         * tests/test-dup3.c: New file.
44824
44825         New module 'dup3'.
44826         * lib/unistd.in.h (dup3): New declaration.
44827         * lib/dup3.c: New file.
44828         * m4/dup3.m4: New file.
44829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
44830         HAVE_DUP3.
44831         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
44832         * modules/dup3: New file.
44833         * doc/glibc-functions/dup3.texi: Mention the new module.
44834
44835 2009-08-23  Bruno Haible  <bruno@clisp.org>
44836
44837         Tweak the dup2 test.
44838         * tests/test-dup2.c (main): Create the test file empty. Verify that an
44839         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
44840         the test file is still empty. Fix argument order of lseek.
44841
44842 2009-08-23  Bruno Haible  <bruno@clisp.org>
44843
44844         Avoid test link errors when the modules getopt-gnu, gettext are used.
44845         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
44846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44847
44848 2009-08-23  Bruno Haible  <bruno@clisp.org>
44849
44850         Fix getdtablesize() on mingw.
44851         * lib/getdtablesize.c (getdtablesize): Implement differently.
44852         * lib/unistd.in.h (getdtablesize): Improve comment.
44853
44854 2009-08-23  Bruno Haible  <bruno@clisp.org>
44855
44856         New module 'mkostemp'.
44857         Based on Ulrich Drepper's 2007-08-10 change in glibc.
44858         * lib/stdlib.in.h (mksotemp): New declaration.
44859         * lib/mkostemp.c: New file, from glibc with modifications.
44860         * lib/tempname.h (GT_FILE): Remove outdated comment.
44861         (gen_tempname): Add flags argument.
44862         * lib/tempname.c (__GT_BIGFILE): Remove macro.
44863         (__GT_FILE): Map to 1.
44864         (small_open, large_open): Remove macros.
44865         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
44866         * lib/mkstemp.c (mkstemp): Update.
44867         * lib/mkdtemp.c (mkdtemp): Likewise.
44868         * m4/mkostemp.m4: New file.
44869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
44870         HAVE_MKOSTEMP.
44871         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
44872         HAVE_MKOSTEMP.
44873         * modules/mkostemp: New file, based on modules/mkstemp.
44874         * doc/glibc-functions/mkostemp.texi: Mention the new module.
44875         * NEWS: Mention the change.
44876
44877 2009-08-23  Bruno Haible  <bruno@clisp.org>
44878
44879         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
44880         Reported by Eric Blake.
44881
44882 2009-08-23  Bruno Haible  <bruno@clisp.org>
44883
44884         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
44885         Reported by Eric Blake.
44886
44887 2009-08-23  Bruno Haible  <bruno@clisp.org>
44888
44889         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
44890         * modules/pipe2 (Depends-on): Likewise.
44891
44892 2009-08-23  Eric Blake  <ebb9@byu.net>
44893
44894         fcntl-h: add O_TTY_INIT support
44895         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
44896         * tests/test-fcntl-h.c (o): Test it.
44897         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44898
44899         fcntl-h: rename from fcntl, in preparation for fcntl(2)
44900         * modules/fcntl: Move <fcntl.h> header replacement...
44901         * modules/fcntl-h: ...to new name, so as not to collide with
44902         like-named function.
44903         * tests/test-fcntl.c: Rename...
44904         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
44905         * modules/fcntl-tests: Rename...
44906         * modules/fcntl-h-tests: ...to this.  Update test file name.
44907         * modules/chdir-long (Depends-on): Update clients.
44908         * modules/chdir-safer (Depends-on): Likewise.
44909         * modules/fcntl-safer (Depends-on): Likewise.
44910         * modules/fts (Depends-on): Likewise.
44911         * modules/mkancesdirs (Depends-on): Likewise.
44912         * modules/mkdir-p (Depends-on): Likewise.
44913         * modules/open (Depends-on): Likewise.
44914         * modules/savewd (Depends-on): Likewise.
44915         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
44916         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44917
44918 2009-08-22  Bruno Haible  <bruno@clisp.org>
44919
44920         * modules/binary-io (License): Relicense under LGPL.
44921         * modules/pipe2 (License): Likewise.
44922
44923 2009-08-22  Bruno Haible  <bruno@clisp.org>
44924
44925         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
44926         return value.
44927         * lib/pipe-filter-gi.c (filter_init): Likewise.
44928         Reported by Eric Blake.
44929
44930 2009-08-22  Bruno Haible  <bruno@clisp.org>
44931
44932         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
44933         * modules/pipe (Depends-on): Add pipe2.
44934
44935 2009-08-22  Bruno Haible  <bruno@clisp.org>
44936
44937         Tests for module 'pipe2'.
44938         * modules/pipe2-tests: New file.
44939         * tests/test-pipe2.c: New file.
44940
44941         New module 'pipe2'.
44942         * lib/unistd.in.h (pipe2): New declaration.
44943         * lib/pipe2.c: New file.
44944         * m4/pipe2.m4: New file.
44945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
44946         HAVE_PIPE2.
44947         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
44948         * modules/pipe2: New file.
44949         * doc/glibc-functions/pipe2.texi: Mention the new module.
44950
44951 2009-08-22  Bruno Haible  <bruno@clisp.org>
44952
44953         Reference some new glibc functions.
44954         * doc/glibc-functions/accept4.texi: New file.
44955         * doc/glibc-functions/dup3.texi: New file.
44956         * doc/glibc-functions/mkostemp.texi: New file.
44957         * doc/glibc-functions/pipe2.texi: New file.
44958         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
44959         (Glibc sys/socket.h): Refer to accept4.
44960         (Glibc unistd.h): Refer to dup3, pipe2.
44961         Reported by Eric Blake.
44962
44963 2009-08-22  Jim Meyering  <meyering@redhat.com>
44964             Bruno Haible  <bruno@clisp.org>
44965
44966         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
44967         This makes it so packages using automake-1.11's silent-rules option
44968         can print e.g., a single "GEN    configmake.h" line, rather than
44969         the 30+ statements that perform the job.  If you want to see the
44970         actual commands, you can still run "make V=1".
44971         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
44972         so that make output is abbreviated when those variables are defined
44973         appropriately.
44974         * modules/argz: Likewise.
44975         * modules/arpa_inet: Likewise.
44976         * modules/byteswap: Likewise.
44977         * modules/configmake: Likewise.
44978         * modules/dirent: Likewise.
44979         * modules/errno: Likewise.
44980         * modules/fcntl: Likewise.
44981         * modules/float: Likewise.
44982         * modules/fnmatch: Likewise.
44983         * modules/getopt-posix: Likewise.
44984         * modules/glob: Likewise.
44985         * modules/iconv_open: Likewise.
44986         * modules/inttypes: Likewise.
44987         * modules/localcharset: Likewise.
44988         * modules/locale: Likewise.
44989         * modules/math: Likewise.
44990         * modules/netdb: Likewise.
44991         * modules/netinet_in: Likewise.
44992         * modules/poll: Likewise.
44993         * modules/posix_spawnp-tests: Likewise.
44994         * modules/sched: Likewise.
44995         * modules/search: Likewise.
44996         * modules/selinux-h: Likewise.
44997         * modules/signal: Likewise.
44998         * modules/spawn: Likewise.
44999         * modules/stdarg: Likewise.
45000         * modules/stdbool: Likewise.
45001         * modules/stddef: Likewise.
45002         * modules/stdint: Likewise.
45003         * modules/stdio: Likewise.
45004         * modules/stdlib: Likewise.
45005         * modules/string: Likewise.
45006         * modules/strings: Likewise.
45007         * modules/sys_file: Likewise.
45008         * modules/sys_ioctl: Likewise.
45009         * modules/sys_select: Likewise.
45010         * modules/sys_socket: Likewise.
45011         * modules/sys_stat: Likewise.
45012         * modules/sys_time: Likewise.
45013         * modules/sys_times: Likewise.
45014         * modules/sys_utsname: Likewise.
45015         * modules/sys_wait: Likewise.
45016         * modules/sysexits: Likewise.
45017         * modules/time: Likewise.
45018         * modules/unistd: Likewise.
45019         * modules/wchar: Likewise.
45020         * modules/wctype: Likewise.
45021
45022 2009-08-22  Jim Meyering  <meyering@redhat.com>
45023
45024         announce-gen: detect write failure
45025         * build-aux/announce-gen: Add Coda at end.
45026         Remove equivalent-but-more-verbose block at top.
45027
45028 2009-08-19  Akim Demaille  <demaille@gostai.com>
45029
45030         bootstrap: --help to stdout.
45031         * bootstrap (usage): Don't send --help to stderr.
45032         Use a here doc instead of a long string.
45033
45034 2009-08-21  Eric Blake  <ebb9@byu.net>
45035
45036         test-popen-safer: split from test-popen
45037         * tests/test-popen.c (main): Move...
45038         * tests/test-popen.h: ...into new file.
45039         * tests/test-popen-safer2.c: New file.
45040         * modules/popen-tests (Files): Add test-popen.h.
45041         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45042         Suggested by Bruno Haible.
45043
45044         test-fcntl-safer: split from test-open
45045         * tests/test-open.c (main): Move...
45046         * tests/test-open.h: ...into new file.
45047         * tests/test-fcntl-safer.c: New file.
45048         * modules/open-tests (Files): Add test-open.h.
45049         * modules/fcntl-safer-tests: New file.
45050         Suggested by Bruno Haible.
45051
45052         test-fopen-safer: split from test-fopen
45053         * tests/test-fopen.c (main): Move...
45054         * tests/test-fopen.h: ...into new file.
45055         * tests/test-fopen-safer.c: New file.
45056         * modules/fopen-tests (Files): Add test-fopen.h.
45057         * modules/fopen-safer-tests: New file.
45058         Suggested by Bruno Haible.
45059
45060 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45061
45062         popen-safer: test O_CLOEXEC at run-time.
45063         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45064
45065 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45066
45067         fcntl: move more flags to the header
45068         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45069         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45070         * lib/fcntl.in.h: Do both things here.
45071
45072 2009-08-21  Jim Meyering  <meyering@redhat.com>
45073
45074         consistently remove $@-t before redirecting to it
45075         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45076         * modules/alloca-opt: Likewise.
45077         * modules/byteswap: Likewise.
45078         * modules/fnmatch: Likewise.
45079         * modules/getopt-posix: Likewise.
45080         * modules/glob: Likewise.
45081         * modules/poll: Likewise.
45082         * modules/posix_spawnp-tests: Likewise.
45083         * modules/sys_socket: Likewise.
45084         * modules/sysexits: Likewise.
45085
45086 2009-08-21  Eric Blake  <ebb9@byu.net>
45087
45088         popen: simplify access to original popen
45089         * lib/popen.c (rpl_popen): No need to worry about popen being a
45090         macro.
45091         Reported by Bruno Haible.
45092
45093 2009-08-20  Eric Blake  <ebb9@byu.net>
45094
45095         build: avoid some compiler warnings
45096         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45097         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45098         type.
45099         (new_exclude_segment, excluded_file_pattern_p)
45100         (excluded_file_name_p): Reduce scope.
45101         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45102         old-style declaration.
45103
45104 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45105
45106         * tests/test-exclude1.sh: Handle Windows EOL.
45107         * tests/test-exclude2.sh: Likewise.
45108         * tests/test-exclude3.sh: Likewise.
45109         * tests/test-exclude4.sh: Likewise.
45110         * tests/test-exclude5.sh: Likewise.
45111         * tests/test-exclude6.sh: Likewise.
45112         * tests/test-exclude7.sh: Likewise.
45113
45114 2009-08-19  Akim Demaille  <demaille@gostai.com>
45115
45116         bootstrap: find sha1sum when named gsha1sum.
45117         * bootstrap (find_tool): New.
45118         ($SHA1SUM): New.
45119         Use it.
45120
45121 2009-08-20  Jim Meyering  <meyering@redhat.com>
45122
45123         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45124         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45125         expression that converts "." in a file name to "\." in the resulting
45126         regexp.  Start with a dummy statement, so that prior shell variable
45127         definitions are expanded portably.  Reported by Simon Josefsson.
45128
45129 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45130
45131         Fix polling for writeability of a screen buffer.
45132         * lib/poll.c: Distinguish input and screen buffers for the
45133         Win32 implementation.
45134         * lib/select.c: Likewise.
45135
45136 2009-08-19  Eric Blake  <ebb9@byu.net>
45137
45138         popen-safer: prevent popen from clobbering std descriptors
45139         * modules/popen-safer: New file.
45140         * lib/popen-safer.c: Likewise.
45141         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45142         * lib/stdio--.h (popen): Provide override.
45143         * lib/stdio-safer.h (popen_safer): Provide declaration.
45144         * tests/test-popen.c (includes): Partially test this.
45145         * modules/popen-safer-tests: New file, for more tests.
45146         * tests/test-popen-safer.c: Likewise.
45147         * MODULES.html.sh (file stream based Input/Output): Mention it.
45148
45149         tests: test some of the *-safer modules
45150         * modules/fopen-safer (Depends-on): Add fopen.
45151         * modules/fcntl-safer (Depends-on): Add fcntl.
45152         * modules/stdlib-safer (Depends-on): Add stdlib.
45153         (configure.ac): Set indicator.
45154         * modules/unistd-safer (configure.ac): Likewise.
45155         * modules/tmpfile-safer (configure.ac): Likewise.
45156         (Depends-on): Add tmpfile.
45157         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45158         active.
45159         * tests/test-fopen.c (includes): Test safer versions when they are
45160         in use.
45161         * tests/test-open.c (includes): Likewise.
45162
45163         popen: fix cygwin 1.5 bug when stdin closed
45164         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45165         * modules/popen: New file.
45166         * modules/popen-tests: Likewise.
45167         * tests/test-popen.c: Likewise.
45168         * m4/popen.m4: Likewise.
45169         * lib/popen.c: Likewise.
45170         * lib/stdio.in.h (popen): New declaration.
45171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45172         * modules/stdio (Makefile.am): Likewise.
45173         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45174
45175 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45176
45177         maint.mk: give full control over update-copyright exclusions
45178         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45179         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45180         (update-copyright): Don't force inclusion of top-level
45181         ChangeLog.  Don't force exclusion of all COPYING files, but make
45182         them the default exclusion instead.
45183
45184 2009-08-16  Bruno Haible  <bruno@clisp.org>
45185
45186         Fix test failures on Solaris 10.
45187         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45188         tests when Solaris iconv() is used.
45189         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45190         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45191         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45192         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45193         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45194
45195 2009-08-16  Bruno Haible  <bruno@clisp.org>
45196
45197         Fix test failures on Solaris 10.
45198         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45199         'tr' program and pass it as first argument.
45200         * tests/test-pipe-filter-gi1.sh: Likewise.
45201         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45202         program as first argument.
45203         * tests/test-pipe-filter-gi1.c (main): Likewise.
45204
45205 2009-08-16  Eric Blake  <ebb9@byu.net>
45206
45207         fpurge: fix previous commits
45208         * modules/fpurge (Makefile.am): Make replacement conditional,
45209         partially reverting 2007-04-29 change; missed in previous
45210         attempt.
45211         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45212         is missing.
45213
45214 2009-08-16  Bruno Haible  <bruno@clisp.org>
45215
45216         Clarify fpurge's effect on the file position.
45217         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45218         * tests/test-fpurge.c (main): Make a second pass for checking the file
45219         position.
45220
45221 2009-08-16  Bruno Haible  <bruno@clisp.org>
45222
45223         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45224         declaration of fpurge is missing.
45225         * tests/test-fpurge.c (main): Check that the file has not more contents
45226         than expected. Close the file before removing it.
45227
45228 2009-08-15  Eric Blake  <ebb9@byu.net>
45229
45230         fpurge: don't wrap working cygwin implementation
45231         * lib/fpurge.c (fpurge): Fix comment typo.
45232         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45233         1.7 to avoid replacement.
45234         * tests/test-fpurge.c (main): Enhance test.
45235
45236 2009-08-15  Eric Blake  <ebb9@byu.net>
45237         and Jim Meyering  <meyering@redhat.com>
45238
45239         test-update-copyright: skip if perl is insufficient
45240         * tests/test-update-copyright.sh: Failure to run maintainer tool
45241         should not cause testsuite failure on cygwin 1.5.
45242
45243 2009-08-14  Eric Blake  <ebb9@byu.net>
45244
45245         doc: mention more functions added in cygwin 1.7.0
45246         * doc/posix-headers/limits.texi (limits.h): Update for recent
45247         cygwin additions.
45248         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45249         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45250         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45251         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45252         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45253
45254 2009-08-14  Eric Blake  <ebb9@byu.net>
45255
45256         maint.mk: simplify update-copyright rule
45257         * top/maint.mk (update-copyright-local): Delete, and document how
45258         to do it in cfg.mk instead.
45259         (update-copyright-exclude-regexp): Delete, and document how to do
45260         it in .x-update-copyright instead.
45261         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45262         exclude ChangeLog.
45263
45264 2009-08-14  Bruno Haible  <bruno@clisp.org>
45265
45266         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45267
45268 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45269
45270         maint.mk: support update-copyright-env
45271         * top/maint.mk (update-copyright-env): Define place-holder.
45272         (update-copyright): Expand $(update-copyright-env) before
45273         invoking update-copyright.
45274
45275 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45276
45277         update-copyright: implement forced reformatting
45278         * build-aux/update-copyright: Implement and document
45279         UPDATE_COPYRIGHT_FORCE.
45280         * tests/test-update-copyright.sh: Test it.
45281
45282 2009-08-14  Eric Blake  <ebb9@byu.net>
45283         and Bruno Haible  <bruno@clisp.org>
45284
45285         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45286         * tests/test-locale.c: Revert previous patch related to NULL.
45287         * tests/test-stdio.c: Likewise.
45288         * tests/test-stdlib.c: Likewise.
45289         * tests/test-string.c: Likewise.
45290         * tests/test-unistd.c: Likewise.
45291         * modules/time-tests (Depends-on): Add verify.
45292         * modules/wchar-tests (Depends-on): Likewise.
45293         * tests/test-time.c: Test for NULL compliance.
45294         * tests/test-wchar.c: Likewise.
45295         * modules/locale (Depends-on): Add stddef.
45296         * modules/stdio (Depends-on): Likewise.
45297         * modules/stdlib (Depends-on): Likewise.
45298         * modules/string (Depends-on): Likewise.
45299         * modules/time (Depends-on): Likewise.
45300         * modules/unistd (Depends-on): Likewise.
45301         * modules/wchar (Depends-on): Likewise.
45302         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45303         * lib/stdlib.in.h (includes): Likewise.
45304         * lib/string.in.h (includes): Likewise.
45305         * lib/time.in.h (includes): Likewise.
45306         * lib/unistd.in.h (includes): Likewise.
45307         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45308         replaced.
45309         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45310         * m4/stddef_h.m4: New file.
45311         * modules/stddef: Likewise.
45312         * lib/stddef.in.h: Likewise.
45313         * modules/stddef-tests: Likewise.
45314         * tests/test-stddef.c: Likewise.
45315         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45316         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45317         * doc/posix-headers/locale.texi (locale.h): Likewise.
45318         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45319         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45320         * doc/posix-headers/string.texi (string.h): Likewise.
45321         * doc/posix-headers/time.texi (time.h): Likewise.
45322         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45323         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45324
45325 2009-08-14  Eric Blake  <ebb9@byu.net>
45326
45327         doc: improve git diff of texinfo files
45328         * .gitattributes: Add rule for *.texi files, with hint on how to
45329         use it.
45330         Copied from m4, and based on a report by Bruno Haible.
45331
45332 2009-08-14  Bruno Haible  <bruno@clisp.org>
45333
45334         Disable multithread support by default on Cygwin 1.5.x for real.
45335         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45336
45337 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45338
45339         update-copyright: much ado about intervals
45340         * build-aux/update-copyright: Implement and document
45341         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45342         of copyright year intervals.
45343         Also, document UPDATE_COPYRIGHT_YEAR.
45344         * tests/test-update-copyright.sh: Test it.
45345
45346         update-copyright: convert 2-digit to 4-digit years
45347         * build-aux/update-copyright: Implement and document.
45348         * tests/test-update-copyright.sh: Update.
45349
45350 2009-08-14  Jim Meyering  <meyering@redhat.com>
45351
45352         test-exclude: avoid coreutils "make check" failure
45353         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45354         just as in test-argmatch.c.
45355
45356 2009-08-13  Eric Blake  <ebb9@byu.net>
45357
45358         test-dup2: fix bad assumption
45359         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45360         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45361
45362         test-version-etc: fix CRLF portability issue
45363         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45364         recognize \r.
45365         * tests/test-argp-version-etc-1.sh: Likewise.
45366
45367         getopt: update client modules
45368         * modules/argp (Depends-on): Use getopt-gnu.
45369         * modules/git-merge-changelog (Depends-on): Likewise.
45370         * modules/long-options (Depends-on): Likewise.
45371         * modules/xstrtol (Depends-on): Likewise.
45372
45373 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45374
45375         * tests/test-version-etc.sh: Don't fail on different
45376         project/version.  Don't fail on CRLF differences.  Rewrite to use
45377         multiple -e instead of multiple sed forks, suggested by Eric Blake
45378         <ebb9@byu.net>.
45379         * tests/test-argp-version-etc-1.sh: Likewise.
45380
45381 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45382
45383         * tests/test-version-etc.sh: Don't fail on different
45384         project/version.
45385
45386 2009-08-12  Bruno Haible  <bruno@clisp.org>
45387
45388         Tests for modules 'getopt-posix', 'getopt-gnu'.
45389         * modules/getopt-posix-tests: New file.
45390         * tests/test-getopt.c: New file.
45391         * tests/test-getopt.h: New file.
45392         * tests/test-getopt_long.h: New file.
45393
45394         New modules 'getopt-posix', 'getopt-gnu'.
45395         * modules/getopt-gnu: New file, renamed from modules/getopt.
45396         * modules/getopt-posix: New file.
45397         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45398         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45399         (gl_GETOPT): Remove macro.
45400         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45401         Disable the test against BSD systems that declare optreset. Test
45402         against mingw bug. Test against lack of support of optional arguments
45403         on many platforms.
45404         * doc/glibc-headers/getopt.texi: Update module name and list of
45405         relevant platforms.
45406         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45407         'getopt-gnu' and more portability problems.
45408         * NEWS: Mention the changes.
45409
45410 2009-08-12  Bruno Haible  <bruno@clisp.org>
45411
45412         Ensure that optarg etc. get declared by <unistd.h>.
45413         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45414         AC_USE_SYSTEM_EXTENSIONS.
45415         * modules/getopt (Depends-on): Add 'extensions'.
45416
45417 2009-08-12  Bruno Haible  <bruno@clisp.org>
45418
45419         Avoid test link errors.
45420         * modules/pipe-filter-ii-tests (Makefile.am): Define
45421         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45422         * modules/pipe-filter-gi-tests (Makefile.am): Define
45423         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45424         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45425
45426 2009-08-12  Bruno Haible  <bruno@clisp.org>
45427
45428         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45429         gl_GETOPT_SUBSTITUTE before.
45430         (gl_GETOPT): Use it.
45431         * m4/argp.m4 (gl_ARGP): Update.
45432         Reported by Sergey Poznyakoff.
45433
45434         * m4/getopt.m4: Reorder macros.
45435         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45436         (gl_GETOPT_SUBSTITUTE): Remove macro.
45437
45438 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45439
45440         Minor improvement in gitlog-to-changelog
45441
45442         * build-aux/gitlog-to-changelog: New option `--format' makes
45443         output format string configurable.
45444
45445 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45446
45447         Optimize exclude: use hash tables for non-wildcard patterns.
45448
45449         * lib/exclude.c: Include hash.h and mbuiter.h
45450         (struct exclude_pattern, exclude_segment): New data types.
45451         (struct exclude): Rewrite.
45452         (fnmatch_pattern_has_wildcards): New function.
45453         (new_exclude_segment, free_exclude_segment): New functions.
45454         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45455         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45456         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45457         * modules/exclude: Depend on hash and mbuiter.
45458
45459         * modules/exclude-tests: New file.
45460         * tests/test-exclude.c: New file.
45461         * tests/test-exclude1.sh: New file.
45462         * tests/test-exclude2.sh: New file.
45463         * tests/test-exclude3.sh: New file.
45464         * tests/test-exclude4.sh: New file.
45465         * tests/test-exclude5.sh: New file.
45466         * tests/test-exclude6.sh: New file.
45467         * tests/test-exclude7.sh: New file.
45468
45469 2009-08-12  Bruno Haible  <bruno@clisp.org>
45470
45471         Ensure that getopt() gets declared by <unistd.h>.
45472         * lib/unistd.in.h: Conditionally include getopt.h.
45473         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45474         Set GNULIB_UNISTD_H_GETOPT.
45475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45476         GNULIB_UNISTD_H_GETOPT.
45477         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45478
45479 2009-08-12  Bruno Haible  <bruno@clisp.org>
45480
45481         Clarify logic.
45482         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45483         gl_replace_getopt instead of GETOPT_H.
45484
45485 2009-08-12  Bruno Haible  <bruno@clisp.org>
45486
45487         * m4/getopt.m4: Add comments.
45488
45489 2009-08-12  Bruno Haible  <bruno@clisp.org>
45490
45491         Disable multithread support by default on Cygwin 1.5.x.
45492         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45493         set gl_use_threads=no if not specified otherwise.
45494
45495 2009-08-11  Bruno Haible  <bruno@clisp.org>
45496
45497         Avoid compilation error on NetBSD 5.0.
45498         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45499         * tests/test-stdio.c: Likewise.
45500         * tests/test-stdlib.c: Likewise.
45501         * tests/test-string.c: Likewise.
45502         * tests/test-unistd.c: Likewise.
45503         Reported by Greg Troxel <gdt@ir.bbn.com>
45504         at <https://savannah.gnu.org/support/?106973>.
45505
45506 2009-08-11  Bruno Haible  <bruno@clisp.org>
45507
45508         * modules/dup2-tests (Depends-on): Remove close.
45509
45510         Undo 2009-07-19 commit.
45511         * modules/acl-tests (Depends-on): Remove close.
45512         * modules/binary-io-tests (Depends-on): Likewise.
45513         * modules/closein-tests (Depends-on): Likewise.
45514         * modules/flock-tests (Depends-on): Likewise.
45515         * modules/fsync-tests (Depends-on): Likewise.
45516         * modules/lseek-tests (Depends-on): Likewise.
45517         * modules/pipe-tests (Depends-on): Likewise.
45518         * modules/posix_spawn-tests (Depends-on): Likewise.
45519         * modules/posix_spawnp-tests (Depends-on): Likewise.
45520         * modules/stat-time-tests (Depends-on): Likewise.
45521         * modules/yesno-tests (Depends-on): Likewise.
45522
45523 2009-08-10  Bruno Haible  <bruno@clisp.org>
45524
45525         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45526
45527 2009-08-10  Bruno Haible  <bruno@clisp.org>
45528
45529         Fix a gcc warning.
45530         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45531
45532 2009-08-10  Bruno Haible  <bruno@clisp.org>
45533
45534         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45535         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45536         not only the first time.
45537         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45538         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45539         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45540         is 1, not only the the first time.
45541
45542 2009-08-10  Bruno Haible  <bruno@clisp.org>
45543
45544         Make it possible to use module 'gethostname' without module 'close'.
45545         * lib/unistd.in.h (close): Evoke a link error only if
45546         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45548         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45549         * modules/unistd (Makefile.am): Substitute
45550         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45551         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45552         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45553         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45554         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45555         * modules/sys_ioctl (Makefile.am): Substitute
45556         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45557         * modules/socket (configure.ac): On native Windows, set
45558         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45559         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45560         Reported by Sam Steingold <sds@gnu.org>.
45561
45562 2009-08-10  Bruno Haible  <bruno@clisp.org>
45563
45564         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45565         * modules/ioctl (configure.ac): Likewise.
45566
45567 2009-08-10  Bruno Haible  <bruno@clisp.org>
45568
45569         Avoid collision between gnulib wrapper and libintl wrapper.
45570         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45571         already defined in intl/printf.c.
45572         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45573         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45574
45575 2009-08-09  Bruno Haible  <bruno@clisp.org>
45576
45577         Make <sys/select.h> really self-contained, also on Solaris 10.
45578         * lib/sys_select.in.h: Include <string.h>.
45579         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45580         Solaris 10 problem.
45581         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45582         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45583         Reported by Jim Meyering.
45584
45585 2009-08-09  Bruno Haible  <bruno@clisp.org>
45586
45587         Avoid warnings from 'aclocal' that are due to a use of macro name
45588         AM_XGETTEXT_OPTION that is not defined in automake.
45589         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45590         automake.
45591         * modules/error (configure.ac): Likewise.
45592         * modules/propername (configure.ac): Likewise.
45593         * modules/vasprintf (configure.ac): Likewise.
45594         * modules/verror (configure.ac): Likewise.
45595         * modules/xprintf (configure.ac): Likewise.
45596         * modules/xvasprintf (configure.ac): Likewise.
45597
45598 2009-08-08  Bruno Haible  <bruno@clisp.org>
45599
45600         Avoid compilation error in C++ mode.
45601         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45602         Reported by Sam Steingold <sds@gnu.org>.
45603
45604 2009-08-08  Bruno Haible  <bruno@clisp.org>
45605
45606         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
45607         for the various Unix platforms.
45608         * doc/posix-headers/limits.texi: Update platforms list regarding
45609         HOST_NAME_MAX.
45610         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45611
45612 2009-08-07  Jim Meyering  <meyering@redhat.com>
45613
45614         selinux-at: fix typo in a comment
45615         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
45616         Spotted by Paolo Bonzini.
45617
45618         selinux-at: remove redundant m4 code, add documentation
45619         * modules/selinux-at (configure.ac): Remove redundant code.
45620         LIB_SELINUX is already set via the dependent module, selinux-h.
45621         (Include): Add quotes around selinux-at.h.
45622         * lib/selinux-at.h: Add documentation.
45623         Reported by Bruno Haible in
45624         http://marc.info/?l=gnulib-bug&m=124958988300749
45625
45626 2009-08-07  Bruno Haible  <bruno@clisp.org>
45627
45628         Avoid link error on MacOS X 10.3 and 10.4.
45629         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
45630         on non-ELF systems.
45631         * lib/argp-pv.c (argp_program_version): Likewise.
45632         Reported by Simon Josefsson.
45633
45634 2009-08-07  Simon Josefsson  <simon@josefsson.org>
45635
45636         * tests/test-version-etc.sh: Use $EXEEXT.
45637
45638 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
45639
45640         update-copyright: update documentation to point to maint.mk
45641         * build-aux/update-copyright: Here.
45642
45643 2009-08-06  Jim Meyering  <meyering@redhat.com>
45644
45645         maint.mk: support update-copyright-local
45646         * top/maint.mk (update-copyright-local): Define place-holder.
45647         (update-copyright): Depend on $(update-copyright-local).
45648
45649 2009-08-06  Jim Meyering  <meyering@redhat.com>
45650
45651         selinux-at: new module
45652         Initially written for coreutils, this module will soon be
45653         used by findutils, too.
45654         * MODULES.html.sh [Misc]: Add selinux-at.
45655         * lib/selinux-at.h: New file, from coreutils.
45656         * lib/selinux-at.c: Likewise.
45657         * modules/selinux-at: Likewise.
45658         (License): Change from LGPL to GPL, since it depends
45659         on the GPL'd openat module.
45660
45661         doc: update README
45662         * README: Remove references to cogito.
45663         Remove cvs-repo-updating instructions from 2007.
45664         Don't imply that CVS is better if you have limited disk space.
45665
45666 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45667
45668         update-copyright: support C-style comments
45669         * build-aux/update-copyright: Implement and document.
45670         * tests/test-update-copyright.sh: Test.
45671
45672 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45673
45674         update-copyright: support omitted "(C)"
45675         * build-aux/update-copyright: Implement and document.  Also,
45676         allow variable whitespace before "(C)".
45677         * tests/test-update-copyright.sh: Test.
45678
45679 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45680
45681         update-copyright: don't trip on non-FSF copyright statements
45682         * build-aux/update-copyright: Fix so that the first correctly
45683         formatted FSF copyright statement is recognized no matter what
45684         appears before it.  Update documentation.
45685         * tests/test-update-copyright.sh: Test that.
45686
45687 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45688
45689         update-copyright: clean up code a little
45690         * build-aux/update-copyright: Append "_re" to the name of any
45691         variable holding a regular expression.
45692         Replace "old" and "new" with "stmt" in variable names.
45693         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
45694         handled correctly.
45695         Format code more consistently.
45696
45697 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45698
45699         update-copyright-tests: improve portability
45700         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
45701         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
45702
45703 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45704
45705         update-copyright: support @copyright{} and &copy;
45706         * build-aux/update-copyright: Implement and document.
45707         * tests/test-update-copyright.sh: Test.
45708
45709 2009-08-04  Jim Meyering  <meyering@redhat.com>
45710
45711         update-copyright-tests: correctly test EOL=\r\n handling
45712         * tests/test-update-copyright.sh: Put \r at the end of some lines
45713         for the dos-eol tests.  Based on a patch by Joel E. Denny.
45714
45715         maint.mk: make update-copyright exclusion list more configurable
45716         * top/maint.mk (update-copyright): Default to excluding COPYING,
45717         but allow an override, in case someone does want to update that file.
45718
45719         maint.mk: don't update copyright date in COPYING
45720         * top/maint.mk (update-copyright): Exclude COPYING.
45721
45722         maint.mk: add a copyright-updating rule
45723         * top/maint.mk (update-copyright): New rule.
45724         Derived from coreutils/Makefile.am.
45725
45726         update-copyright: rename some variables
45727         * build-aux/update-copyright: Rename a few variables for clarity.
45728         Tweak syntax.  List Joel E. Denny as coauthor.
45729
45730 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45731
45732         update-copyright: fix bug for 2-digit last year and add tests
45733         * build-aux/update-copyright: Fix bug.
45734         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
45735         specified.
45736         * modules/update-copyright-tests: New
45737         * tests/test-update-copyright.sh: New.
45738
45739 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45740
45741         update-copyright: handle leading tabs in line prefix
45742         * build-aux/update-copyright: Count leading tabs as 8 spaces
45743         when computing margin.  This helps with the formatting of
45744         ChangeLogs, for example.
45745         Fix documentation a little.
45746
45747 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45748
45749         update-copyright: support EOL=\r\n
45750         * build-aux/update-copyright: Implement that.
45751
45752 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45753
45754         update-copyright: automatically format copyright statements
45755         * build-aux/update-copyright: Implement that.
45756         Also, be a little more predictable and safer by always failing
45757         when the full copyright format is not perfectly recognized as an
45758         unbroken whole.  Discussed at
45759         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
45760         Rewrite documentation.
45761
45762 2009-08-03  Bruno Haible  <bruno@clisp.org>
45763
45764         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
45765
45766 2009-08-02  Bruno Haible  <bruno@clisp.org>
45767
45768         Tests for module 'uname'.
45769         * modules/uname-tests: New file.
45770         * tests/test-uname.c: New file.
45771
45772         New module 'uname'.
45773         * lib/uname.c: New file.
45774         * m4/uname.m4: New file.
45775         * modules/uname: New file.
45776         * doc/posix-functions/uname.texi: Mention the new module.
45777
45778 2009-08-02  Bruno Haible  <bruno@clisp.org>
45779
45780         Tests for module 'sys_utsname'.
45781         * modules/sys_utsname-tests: New file.
45782         * tests/test-sys_utsname.c: New file.
45783
45784         New module 'sys_utsname'.
45785         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
45786         * m4/sys_utsname_h.m4: New file.
45787         * modules/sys_utsname: New file.
45788         * doc/posix-headers/sys_utsname.texi: Mention the new module.
45789
45790 2009-08-02  Bruno Haible  <bruno@clisp.org>
45791
45792         Implicitly initialize the sockets library.
45793         * lib/gethostname.c: Include sockets.h.
45794         (rpl_gethostname): Invoke gl_sockets_startup.
45795         * lib/socket.c: Include sockets.h.
45796         (rpl_socket): Invoke gl_sockets_startup.
45797         * modules/gethostname (Depends-on): Add sockets.
45798         * modules/socket (Depends-on): Likewise.
45799         * tests/test-poll.c: Don't include sockets.h.
45800         (main): Don't invoke gl_sockets_startup.
45801         * tests/test-select.c: Don't include sockets.h.
45802         (main): Don't invoke gl_sockets_startup.
45803
45804 2009-08-02  Bruno Haible  <bruno@clisp.org>
45805
45806         Allow multiple calls to gl_sockets_startup.
45807         * lib/sockets.c (initialized_sockets_version): New variable.
45808         (gl_sockets_startup): Do nothing if already called for this or a higher
45809         version.
45810         (gl_sockets_cleanup): Reset initialized_sockets_version.
45811
45812 2009-08-03  Simon Josefsson  <simon@josefsson.org>
45813
45814         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
45815         different project/version.
45816
45817 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
45818             Bruno Haible  <bruno@clisp.org>
45819
45820         Tests for module 'pipe-filter-gi'.
45821         * modules/pipe-filter-gi-tests: New file.
45822         * tests/test-pipe-filter-gi1.sh: New file.
45823         * tests/test-pipe-filter-gi1.c: New file.
45824         * tests/test-pipe-filter-gi2.sh: New file.
45825         * tests/test-pipe-filter-gi2-main.c: New file.
45826         * tests/test-pipe-filter-gi2-child.c: New file.
45827
45828         New module 'pipe-filter-gi'.
45829         * lib/pipe-filter-gi.c: New file.
45830         * modules/pipe-filter-gi: New file.
45831
45832 2009-08-02  Bruno Haible  <bruno@clisp.org>
45833             Paolo Bonzini  <bonzini@gnu.org>
45834
45835         Tests for module 'pipe-filter-ii'.
45836         * modules/pipe-filter-ii-tests: New file.
45837         * tests/test-pipe-filter-ii1.sh: New file.
45838         * tests/test-pipe-filter-ii1.c: New file.
45839         * tests/test-pipe-filter-ii2.sh: New file.
45840         * tests/test-pipe-filter-ii2-main.c: New file.
45841         * tests/test-pipe-filter-ii2-child.c: New file.
45842
45843         New module 'pipe-filter-ii'.
45844         * lib/pipe-filter.h: New file.
45845         * lib/pipe-filter-ii.c: New file.
45846         * lib/pipe-filter-aux.h: New file.
45847         * modules/pipe-filter-ii: New file.
45848
45849 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45850
45851         * lib/gc-libgcrypt.c: Change copyright to FSF.
45852         * lib/gc-gnulib.c: Likewise.
45853
45854 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
45855
45856         * lib/gethostname.c: Include limits.h.
45857
45858 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45859             Bruno Haible  <bruno@clisp.org>
45860
45861         Ensure HOST_NAME_MAX as part of the gethostname module.
45862         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
45863         define also HOST_NAME_MAX.
45864         * tests/test-gethostname.c: Include <limits.h>.
45865         (main): Check also HOST_NAME_MAX.
45866         * doc/posix-headers/limits.texi: Document the mingw problem.
45867
45868 2009-08-02  Bruno Haible  <bruno@clisp.org>
45869
45870         * lib/gethostname.c (gethostname): Fix handling of large len argument.
45871         Add comments.
45872
45873 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45874
45875         * lib/gethostname.c: Add Windows wrapper.
45876         * m4/gethostname.m4: Look for gethostname in -lws2_32.
45877         * modules/gethostname: Depend on sys_socket & errno, for also
45878         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
45879         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
45880
45881 2009-07-31  Jim Meyering  <meyering@redhat.com>
45882
45883         getloadavg: fix symbol name in comment
45884         * lib/getloadavg.c: Correct a typo I introduced when adding
45885         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
45886         Matt Kraai spotted the problem.
45887
45888 2009-07-29  Matt Kraai  <mkraai@beckman.com>
45889
45890         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
45891         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
45892         code also if ! defined N_NAME_POINTER.
45893         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
45894         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
45895         but the n_name member is a 12-byte array.
45896
45897 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
45898
45899         update-copyright: generalize comment handling
45900         * build-aux/update-copyright: Handle copyright statements
45901         within more comment styles.
45902         Document usage.
45903         Report any file with an external copyright holder or parse failure.
45904
45905 2009-07-29  Jim Meyering  <meyering@redhat.com>
45906
45907         mktime: correct setting of REPLACE_MKTIME
45908         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
45909
45910         update-copyright: new module
45911         * modules/update-copyright: New file.
45912         * build-aux/update-copyright: New file.
45913         * MODULES.html.sh (maint+release support): Add update-copyright.
45914
45915 2009-07-27  Bruno Haible  <bruno@clisp.org>
45916
45917         Fix compilation error when <ctime> is used and mktime is replaced.
45918         * lib/time.in.h (mktime): New declaration.
45919         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
45920         REPLACE_MKTIME instead of defining mktime in config.h.
45921         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
45922         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
45923         Reported by Ross McFarland <rwmcfa1@neces.com>.
45924
45925 2009-07-27  Bruno Haible  <bruno@clisp.org>
45926
45927         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
45928         Reported by Matt Kraai <mkraai@beckman.com>.
45929
45930 2009-07-25  Jim Meyering  <meyering@redhat.com>
45931
45932         maint.mk: avoid warnings about missing files
45933         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
45934         diagnostic when .prev-version does not exist.
45935         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
45936         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
45937         nonexistent cfg.mk.
45938         Suggestions from Simon Josefsson.
45939
45940 2009-07-25  Bruno Haible  <bruno@clisp.org>
45941
45942         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
45943         defined as macros. Needed on QNX 6.4.1.
45944         Reported by Matt Kraai <mkraai@beckman.com>.
45945
45946 2009-07-23  Jim Meyering  <meyering@redhat.com>
45947
45948         maint.mk: invoke "make dist" with a working value of XZ_OPT
45949         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
45950
45951 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
45952
45953         Make fseeko.c compile on QNX.
45954         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
45955
45956 2009-07-22  Peter Simons  <simons@cryp.to>
45957
45958         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
45959         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
45960         * lib/md4.h: Likewise.
45961         * lib/md5.h: Likewise.
45962         * lib/sha1.h: Likewise.
45963         * lib/sha256.h: Likewise.
45964         * lib/sha512.h: Likewise.
45965
45966         tests-sha1: don't assign literal string to 'char *' variable
45967         * tests/test-sha1.c (main): Declare locals with "const" to match
45968         attributes of the right hand side.
45969
45970 2009-07-21  Eric Blake  <ebb9@byu.net>
45971
45972         dup2: fix more mingw problems
45973         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
45974         fd to itself.
45975         * doc/posix-functions/dup2.texi (dup2): Document the bug.
45976         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
45977         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
45978         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
45979         care of mingw bugs.
45980
45981 2009-07-21  Jim Meyering  <meyering@redhat.com>
45982
45983         vc-list-files: avoid failure when /bin/sh is dash
45984         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
45985         On some Debian based systems, /bin/sh is a symlink to dash, and running
45986         this command would omit the "/" following each 'tests' prefix:
45987           dash -x build-aux/vc-list-files -C . tests
45988         That is because bash and dash work differently:
45989           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
45990           bash ok
45991           dash odd
45992
45993 2009-07-21  Eric Blake  <ebb9@byu.net>
45994
45995         dup2-tests: test previous patch
45996         * modules/dup2-tests: New file.
45997         * tests/test-dup2.c: Likewise.
45998         * tests/test-open.c (main): Avoid unspecified behavior.
45999         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46000         test.
46001
46002         dup2: work around mingw and cygwin 1.5 bug
46003         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46005         * modules/unistd (Makefile.am): Substitute it.
46006         * lib/unistd.in.h (dup2): Declare the replacement.
46007         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46008         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46009         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46010         * modules/execute (Depends-on): Add dup2.
46011         * modules/fseterr (Depends-on): Likewise.
46012         * modules/pipe (Depends-on): Likewise.
46013         * modules/posix_spawn-internal (Depends-on): Likewise.
46014
46015 2009-07-21  Bruno Haible  <bruno@clisp.org>
46016
46017         * modules/.gitattributes: New file.
46018
46019 2009-07-20  Bruno Haible  <bruno@clisp.org>
46020
46021         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46022         (main): Use it.
46023
46024 2009-07-20  Eric Blake  <ebb9@byu.net>
46025
46026         test-pipe: make a bit more robust.
46027         * tests/test-pipe.c (myerr): Allow error messages regardless of
46028         what we do to stderr.
46029         (test_pipe): Rearrange to avoid deadlock.
46030         (child_main): Try a larger read, to ensure we avoided deadlock.
46031         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46032         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46033         if misused.
46034
46035 2009-07-19  Jim Meyering  <meyering@redhat.com>
46036
46037         fts: avoid false-positive cycle-detection
46038         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46039         for each new command line argument.
46040
46041 2009-07-19  Bruno Haible  <bruno@clisp.org>
46042
46043         Fix build error on mingw with the modules sys_select and unistd.
46044         * modules/acl-tests (Depends-on): Add close.
46045         * modules/binary-io-tests (Depends-on): Likewise.
46046         * modules/closein-tests (Depends-on): Likewise.
46047         * modules/flock-tests (Depends-on): Likewise.
46048         * modules/fsync-tests (Depends-on): Likewise.
46049         * modules/lseek-tests (Depends-on): Likewise.
46050         * modules/pipe-tests (Depends-on): Likewise.
46051         * modules/posix_spawn-tests (Depends-on): Likewise.
46052         * modules/posix_spawnp-tests (Depends-on): Likewise.
46053         * modules/stat-time-tests (Depends-on): Likewise.
46054         * modules/yesno-tests (Depends-on): Likewise.
46055
46056 2009-07-19  Bruno Haible  <bruno@clisp.org>
46057
46058         Unify conditionals.
46059         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46060         macros, not at the compiler macros.
46061         * lib/pipe.c: Likewise.
46062         * lib/execute.c: Likewise.
46063         * lib/spawni.c: Likewise.
46064
46065 2009-07-19  Bruno Haible  <bruno@clisp.org>
46066
46067         Fix handling of closed stdin/stdout/stderr on mingw.
46068         * lib/w32spawn.h: Include unistd.h.
46069         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46070         file descriptor with O_NOINHERIT flag.
46071         (fd_safer_noinherit): New function, based on fd-safer.c.
46072         (dup_safer_noinherit): New function, based on dup-safer.c.
46073         (undup_safer_noinherit): New function.
46074         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46075         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46076         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46077         instead of fd_safer.
46078         * tests/test-pipe.c: Include <windows.h>.
46079         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46080         result.
46081
46082         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46083         from main.
46084         (test_pipe): Pass an extra argument for disambiguation.
46085         (main): Invoke parent_main or child_main.
46086
46087         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46088         consistently.
46089
46090 2009-07-18  Eric Blake  <ebb9@byu.net>
46091
46092         test-pipe: fix mingw build
46093         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46094
46095 2009-07-18  Bruno Haible  <bruno@clisp.org>
46096
46097         * modules/pipe-tests (Makefile.am): Fix typo.
46098
46099 2009-07-18  Eric Blake  <ebb9@byu.net>
46100
46101         error: fix mingw build
46102         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46103         Reported by Bruno Haible.
46104
46105         error: avoid undefined use of stdout
46106         * lib/error.c (error, error_at_line): Check that fd 1 is open
46107         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46108         is handling faults and the close_stdout module wants to report the
46109         detection of closed stdout as an error.
46110
46111 2009-07-17  Eric Blake  <ebb9@byu.net>
46112
46113         pipe: be robust in face of closed fds
46114         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46115         should cause child to misbehave.
46116         * modules/pipe-tests: New module.
46117         * tests/test-pipe.c: New file.
46118         * tests/test-pipe.sh: New file.
46119         Reported by Akim Demaille.
46120
46121 2009-07-14  Bruno Haible  <bruno@clisp.org>
46122
46123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46124         Reported by anonymous kc.
46125
46126 2009-07-07  Jim Meyering  <meyering@redhat.com>
46127
46128         maint.mk: don't look for translatable strings in *.m4 or *.mk
46129         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46130         when searching for translatable strings.
46131
46132 2009-07-05  Jim Meyering  <meyering@redhat.com>
46133
46134         remove superfluous parentheses in STREQ definition
46135         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46136         * lib/getugroups.c (STREQ): Likewise.
46137         * lib/fnmatch.c (STREQ): Likewise.
46138         Spotted by Bruno Haible.
46139
46140 2009-07-04  Jim Meyering  <meyering@redhat.com>
46141
46142         argv-iter: new module
46143         * MODULES.html.sh: Add argv-iter.
46144         * lib/argv-iter.c, lib/argv-iter.h: New files.
46145         * modules/argv-iter: New file.
46146         * modules/argv-iter-tests: New file.
46147         * tests/test-argv-iter.c: Test it.
46148
46149 2009-07-04  Bruno Haible  <bruno@clisp.org>
46150
46151         Fix assertion.
46152         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46153         contains more exact copies of a given entry than file2, leave the extra
46154         copies unpaired rather than aborting.
46155         Reported by Eric Blake.
46156
46157 2009-07-02  Bruno Haible  <bruno@clisp.org>
46158
46159         Speedup git-merge-changelog for git cherry-pick.
46160         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46161         (entries_mapping_get): New function, extracted from compute_mapping.
46162         (entries_mapping_reverse_get): New function.
46163         (compute_mapping): Add a 'full' argument. Return the result in a
46164         'struct entries_mapping'.
46165         (main): Update. Access the mappings through entries_mapping_get.
46166         Reported by Eric Blake.
46167
46168 2009-07-02  Bruno Haible  <bruno@clisp.org>
46169
46170         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46171         best_i.
46172
46173 2009-07-02  Bruno Haible  <bruno@clisp.org>
46174
46175         Speed up approximate search for matching ChangeLog entries.
46176         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46177         argument. Call fstrcmp_bounded instead of fstrcmp.
46178         (compute_mapping, try_split_merged_entry, main): Update callers.
46179
46180 2009-07-02  Bruno Haible  <bruno@clisp.org>
46181
46182         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46183
46184 2009-06-30  Bruno Haible  <bruno@clisp.org>
46185
46186         Reduce the number of uc_is_cased calls.
46187         * lib/unicase.h (casing_suffix_context_t): Add
46188         'first_char_except_ignorable' field.
46189         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46190         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46191         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46192         Update initializer.
46193         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46194         case-ignorable characters.
46195         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46196         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46197         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46198         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46199         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46200
46201 2009-06-30  Bruno Haible  <bruno@clisp.org>
46202
46203         Tests for module 'unicase/ignorable'.
46204         * modules/unicase/ignorable-tests: New file.
46205         * tests/unicase/test-ignorable.c: New file, generated by
46206         gen-uni-tables.
46207
46208         Tests for module 'unicase/cased'.
46209         * modules/unicase/cased-tests: New file.
46210         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46211         * tests/unicase/test-predicate-part1.h: New file, derived from
46212         tests/unictype/test-predicate-part1.h.
46213         * tests/unicase/test-predicate-part2.h: New file, same as
46214         tests/unictype/test-predicate-part2.h.
46215
46216         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46217         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46218         (output_casing_properties): New function.
46219         (main): Call it.
46220         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46221         * lib/unicase/cased.c: Include unictype/bitmap.h.
46222         (uc_is_cased): Define through a bitmap lookup.
46223         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46224         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46225         (uc_is_case_ignorable): Define through a bitmap lookup.
46226         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46227         lib/unictype/bitmap.h.
46228         (Depends-on): Add inline. Clean up.
46229         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46230         lib/unictype/bitmap.h.
46231         (Depends-on): Add inline. Clean up.
46232         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46233         recognition.
46234         * tests/unicase/test-u16-tolower.c (main): Likewise.
46235         * tests/unicase/test-u32-tolower.c (main): Likewise.
46236
46237 2009-06-30  Bruno Haible  <bruno@clisp.org>
46238
46239         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46240         * lib/unicase/u16-casemap.c: Likewise.
46241         * lib/unicase/u32-casemap.c: Likewise.
46242
46243 2009-06-29  Bruno Haible  <bruno@clisp.org>
46244
46245         Define u32_casefold as a wrapper around u32_ct_casefold.
46246         * lib/unicase/u32-casefold.c: Update.
46247         * modules/unicase/u32-casefold (Depends-on): Add
46248         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46249         unicase/empty-suffix-context. Clean up.
46250
46251         Define u16_casefold as a wrapper around u16_ct_casefold.
46252         * lib/unicase/u16-casefold.c: Update.
46253         * modules/unicase/u16-casefold (Depends-on): Add
46254         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46255         unicase/empty-suffix-context. Clean up.
46256
46257         Define u8_casefold as a wrapper around u8_ct_casefold.
46258         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46259         * lib/unicase/u8-casefold.c: Update.
46260         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46261         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46262
46263         Define u32_totitle as a wrapper around u32_ct_totitle.
46264         * lib/unicase/u32-totitle.c: Update.
46265         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46266         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46267
46268         Define u16_totitle as a wrapper around u16_ct_totitle.
46269         * lib/unicase/u16-totitle.c: Update.
46270         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46271         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46272
46273         Define u8_totitle as a wrapper around u8_ct_totitle.
46274         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46275         functions.
46276         (FUNC): Delegate to U_CT_TOTITLE.
46277         * lib/unicase/u8-totitle.c: Update.
46278         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46279         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46280
46281         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46282         invocation.
46283         * modules/unicase/u32-tolower (Depends-on): Add
46284         unicase/empty-prefix-context, unicase/empty-suffix-context.
46285
46286         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46287         invocation.
46288         * modules/unicase/u16-tolower (Depends-on): Add
46289         unicase/empty-prefix-context, unicase/empty-suffix-context.
46290
46291         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46292         * modules/unicase/u8-tolower (Depends-on): Add
46293         unicase/empty-prefix-context, unicase/empty-suffix-context.
46294
46295         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46296         invocation.
46297         * modules/unicase/u32-toupper (Depends-on): Add
46298         unicase/empty-prefix-context, unicase/empty-suffix-context.
46299
46300         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46301         invocation.
46302         * modules/unicase/u16-toupper (Depends-on): Add
46303         unicase/empty-prefix-context, unicase/empty-suffix-context.
46304
46305         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46306         * modules/unicase/u8-toupper (Depends-on): Add
46307         unicase/empty-prefix-context, unicase/empty-suffix-context.
46308
46309         New module 'unicase/u32-ct-casefold'.
46310         * lib/unicase/u32-ct-casefold.c: New file.
46311         * modules/unicase/u32-ct-casefold: New file.
46312
46313         New module 'unicase/u16-ct-casefold'.
46314         * lib/unicase/u16-ct-casefold.c: New file.
46315         * modules/unicase/u16-ct-casefold: New file.
46316
46317         New module 'unicase/u8-ct-casefold'.
46318         * lib/unicase/u8-ct-casefold.c: New file.
46319         * lib/unicase/u-ct-casefold.h: New file, derived from
46320         lib/unicase/u-casefold.h.
46321         * modules/unicase/u8-ct-casefold: New file.
46322
46323         New module 'unicase/u32-ct-totitle'.
46324         * lib/unicase/u32-ct-totitle.c: New file.
46325         * modules/unicase/u32-ct-totitle: New file.
46326
46327         New module 'unicase/u16-ct-totitle'.
46328         * lib/unicase/u16-ct-totitle.c: New file.
46329         * modules/unicase/u16-ct-totitle: New file.
46330
46331         New module 'unicase/u8-ct-totitle'.
46332         * lib/unicase/u8-ct-totitle.c: New file.
46333         * lib/unicase/u-ct-totitle.h: New file, derived from
46334         lib/unicase/u-totitle.h.
46335         * modules/unicase/u8-ct-totitle: New file.
46336
46337         New module 'unicase/u32-ct-tolower'.
46338         * lib/unicase/u32-ct-tolower.c: New file.
46339         * modules/unicase/u32-ct-tolower: New file.
46340
46341         New module 'unicase/u16-ct-tolower'.
46342         * lib/unicase/u16-ct-tolower.c: New file.
46343         * modules/unicase/u16-ct-tolower: New file.
46344
46345         New module 'unicase/u8-ct-tolower'.
46346         * lib/unicase/u8-ct-tolower.c: New file.
46347         * modules/unicase/u8-ct-tolower: New file.
46348
46349         New module 'unicase/u32-ct-toupper'.
46350         * lib/unicase/u32-ct-toupper.c: New file.
46351         * modules/unicase/u32-ct-toupper: New file.
46352
46353         New module 'unicase/u16-ct-toupper'.
46354         * lib/unicase/u16-ct-toupper.c: New file.
46355         * modules/unicase/u16-ct-toupper: New file.
46356
46357         New module 'unicase/u8-ct-toupper'.
46358         * lib/unicase/u8-ct-toupper.c: New file.
46359         * modules/unicase/u8-ct-toupper: New file.
46360
46361         Add context arguments to u*_casemap functions.
46362         * lib/unicase/unicasemap.h: Include unicase.h.
46363         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46364         suffix_context arguments.
46365         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46366         functions.
46367         (FUNC): Add prefix_context and suffix_context arguments. Use
46368         uc_is_cased and uc_is_case_ignorable.
46369         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46370         * lib/unicase/u16-casemap.c: Likewise.
46371         * lib/unicase/u32-casemap.c: Likewise.
46372         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46373         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46374         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46375         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46376         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46377         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46378
46379         New module 'unicase/u32-suffix-context'.
46380         * lib/unicase/u32-suffix-context.c: New file.
46381         * modules/unicase/u32-suffix-context: New file.
46382
46383         New module 'unicase/u16-suffix-context'.
46384         * lib/unicase/u16-suffix-context.c: New file.
46385         * modules/unicase/u16-suffix-context: New file.
46386
46387         New module 'unicase/u8-suffix-context'.
46388         * lib/unicase/u8-suffix-context.c: New file.
46389         * lib/unicase/u-suffix-context.h: New file.
46390         * modules/unicase/u8-suffix-context: New file.
46391
46392         New module 'unicase/empty-suffix-context'.
46393         * lib/unicase/empty-suffix-context.c: New file.
46394         * modules/unicase/empty-suffix-context: New file.
46395
46396         New module 'unicase/u32-prefix-context'.
46397         * lib/unicase/u32-prefix-context.c: New file.
46398         * modules/unicase/u32-prefix-context: New file.
46399
46400         New module 'unicase/u16-prefix-context'.
46401         * lib/unicase/u16-prefix-context.c: New file.
46402         * modules/unicase/u16-prefix-context: New file.
46403
46404         New module 'unicase/u8-prefix-context'.
46405         * lib/unicase/u8-prefix-context.c: New file.
46406         * lib/unicase/u-prefix-context.h: New file.
46407         * lib/unicase/context.h: New file.
46408         * modules/unicase/u8-prefix-context: New file.
46409
46410         New module 'unicase/empty-prefix-context'.
46411         * lib/unicase/empty-prefix-context.c: New file.
46412         * modules/unicase/empty-prefix-context: New file.
46413
46414         New module 'unicase/ignorable'.
46415         * lib/unicase/ignorable.c: New file.
46416         * modules/unicase/ignorable: New file.
46417
46418         New module 'unicase/cased'.
46419         * lib/unicase/caseprop.h: New file.
46420         * lib/unicase/cased.c: New file.
46421         * modules/unicase/cased: New file.
46422
46423         New functions for case mapping of substrings.
46424         * lib/unicase.h (casing_prefix_context_t): New type.
46425         (unicase_empty_prefix_context): New variable.
46426         (u8_casing_prefix_context, u16_casing_prefix_context,
46427         u32_casing_prefix_context, u8_casing_prefixes_context,
46428         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46429         declarations.
46430         (casing_suffix_context_t): New type.
46431         (unicase_empty_suffix_context): New variable.
46432         (u8_casing_suffix_context, u16_casing_suffix_context,
46433         u32_casing_suffix_context, u8_casing_suffixes_context,
46434         u16_casing_suffixes_context, u32_casing_suffixes_context,
46435         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46436         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46437         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46438         declarations.
46439
46440 2009-06-28  Jim Meyering  <meyering@redhat.com>
46441
46442         boostrap: indent only with spaces
46443         * build-aux/bootstrap: Indent only with spaces, never TABs.
46444
46445         bootstrap: split long lines
46446         * build-aux/bootstrap: Keep line length < 80.
46447
46448         bootstrap: sync from coreutils
46449         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46450         just as autoreconf does.  Verify a list of prerequisite
46451         package-name,version-number pairs if defined in bootstrap.conf.
46452         Refer to README-prereq, if prerequisites are not satisfied.
46453
46454 2009-06-27  Eric Blake  <ebb9@byu.net>
46455
46456         tests: add test for bogus NULL definition
46457         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46458         * tests/test-stdlib.c: Likewise.
46459         * tests/test-string.c: Likewise.
46460         * tests/test-locale.c: Likewise.
46461         * tests/test-unistd.c: Likewise.
46462         * modules/stdio-tests (Depends-on): Add verify.
46463         * modules/stdlib-tests (Depends-on): Likewise.
46464         * modules/string-tests (Depends-on): Likewise.
46465         * modules/locale-tests (Depends-on): Likewise.
46466         * modules/unistd-tests (Depends-on): Likewise.
46467
46468 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46469
46470         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46471         self-explaining comment.
46472         * m4/selinux-selinux-h: Update serial.
46473         (gl_LIBSELINUX): New macro, adding a warning for missing development
46474         packages to code extracted from...
46475         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46476         Add warning for missing development packages here, too.
46477
46478 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46479
46480         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46481
46482 2009-06-25  Eric Blake  <ebb9@byu.net>
46483
46484         version-etc: fix regression
46485         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46486         gcc.
46487         (version_etc): Use it, to catch bugs with trailing NULL.
46488         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46489         (version_etc_va): Fix logic bug.
46490         * modules/version-etc-tests: Add test.
46491         * tests/test-version-etc.c: New file.
46492         * tests/test-version-etc.sh: Likewise.
46493
46494 2009-06-25  Sam Steingold  <sds@gnu.org>
46495
46496         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46497         mbtowc declaration.
46498
46499 2009-06-25  Eric Blake  <ebb9@byu.net>
46500
46501         fpurge: migrate into <stdio.h>
46502         * lib/fpurge.h: Delete...
46503         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46504         * lib/fpurge.c (fpurge): Change declaring header.
46505         * modules/fpurge (Files): Drop deleted file.
46506         (Depends-on): Add stdio.
46507         (configure.ac): Set witness.
46508         * modules/stdio (Makefile.am): Support fpurge macros.
46509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46510         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46511         * lib/fflush.c: Update client.
46512         * tests/test-fpurge.c: Likewise.
46513         * NEWS: Mention the change.
46514
46515 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46516
46517         * lib/argp-version-etc.c (program_authors): Add const
46518         qualifier.
46519         * lib/version-etc.c: Fix typos in the comments.
46520         * modules/argp-version-etc: Depends on version-etc.
46521
46522 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46523
46524         argp-version-etc: new module.
46525
46526         * lib/argp-version-etc.c: New file.
46527         * lib/argp-version-etc.h: New file.
46528         * modules/argp-version-etc: New file.
46529         * modules/argp-version-etc-tests: New file.
46530         * tests/test-argp-version-etc.c: New test.
46531         * tests/test-argp-version-etc-1.sh: New test.
46532
46533 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46534
46535         Provide additional interfaces and documentation for version-etc
46536         module.
46537
46538         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46539         interfaces.
46540         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46541         prototypes.
46542
46543 2009-06-24  Bruno Haible  <bruno@clisp.org>
46544
46545         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46546         HAVE_LIB${NAME} macro.
46547         Reported by Sam Steingold <sds@gnu.org>.
46548
46549 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46550
46551         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46552         needed.
46553
46554 2009-06-21  Bruno Haible  <bruno@clisp.org>
46555
46556         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46557         work.
46558         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46559         together with LIB${NAME}, LTLIB${NAME}.
46560         Reported by Sam Steingold <sds@gnu.org>.
46561
46562 2009-06-20  Jim Meyering  <meyering@redhat.com>
46563
46564         tests: make sc_require_test_exit_idiom more generic
46565         * top/maint.mk (Exit_witness_file): New overridable variable.
46566         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46567         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46568
46569 2009-06-19  Jim Meyering  <meyering@redhat.com>
46570
46571         hash: reverse order of src/dst parameters in an internal interface
46572         * lib/hash.c (transfer_entries): Reverse order of parameters to
46573         put DST before SRC.  Adjust callers.
46574
46575         tests: test-hash: avoid wholesale duplication
46576         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46577         Instead, use a loop and add a single conditional.
46578
46579         tests: test-hash: allow seed selection via a command line argument
46580         * tests/test-hash.c (get_seed): New function.
46581         (main): Use it.
46582
46583 2009-06-19  Eric Blake  <ebb9@byu.net>
46584
46585         hash: avoid memory leak on allocation failure
46586         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46587         failure.  Factor repeated algorithm...
46588         (transfer_entries): ...into new helper routine.
46589         (hash_delete): React to hash_rehash return value.
46590
46591         hash: reduce memory pressure in hash_rehash no-op case
46592         * lib/hash.c (next_prime): Avoid overflow.
46593         (hash_initialize): Factor bucket size computation...
46594         (compute_bucket_size): ...into new helper function.
46595         (hash_rehash): Use new function and open coding to reduce memory
46596         pressure, and avoid a memory leak in USE_OBSTACK code.
46597         Reported by Jim Meyering.
46598
46599 2009-06-18  Eric Blake  <ebb9@byu.net>
46600
46601         hash: make rotation more obvious
46602         * modules/hash (Depends-on): Add bitrotate and stdint.
46603         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
46604         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
46605         (SIZE_MAX): Rely on headers for definition.
46606         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
46607         (raw_hasher): Use rotr_sz.
46608         Suggested by Jim Meyering.
46609
46610         hash: fix memory leak in last patch
46611         * lib/hash.c (hash_rehash): Avoid memory leak.
46612
46613         hash: avoid no-op rehashing
46614         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
46615
46616         hash: provide default callback functions
46617         * lib/hash.c (raw_hasher, raw_comparator): New functions.
46618         (hash_initialize): Use them as defaults.
46619         * tests/test-hash.c (main): Test this.
46620
46621         hash: minor optimization
46622         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
46623         when possible.
46624         (hash_initialize): Document this promise.
46625         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
46626         * tests/test-hash.c (hash_compare_strings): Test this.
46627
46628 2009-06-18  Bruno Haible  <bruno@clisp.org>
46629
46630         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
46631         going to be replaced anyway.
46632
46633 2009-06-18  Bruno Haible  <bruno@clisp.org>
46634
46635         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
46636         in one place.
46637         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
46638         be replaced anyway.
46639
46640 2009-06-18  Eric Blake  <ebb9@byu.net>
46641
46642         hash: check for resize before insertion
46643         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
46644         threshold before insertion, so that a pathological hash_rehash
46645         that fills every bucket can still trigger another rehash.
46646
46647 2009-06-18  Jim Meyering  <meyering@redhat.com>
46648
46649         hash-tests: add a loop around the small tests
46650         * tests/test-hash.c (main): Repeat small tests with selected
46651         small initial table sizes.
46652
46653 2009-06-17  Eric Blake  <ebb9@byu.net>
46654
46655         hash: minor cleanups
46656         * lib/hash.h (hash_entry): Make opaque, by moving...
46657         * lib/hash.c (hash_entry): ...here.
46658         (hash_insert): Clarify restrictions on what can be inserted.
46659         (hash_get_next): Clarify when it is safe to remove an element
46660         during traversal.
46661         (check_tuning): Skip verification when tuning is known safe.
46662         (hash_initialize): Clarify restrictions on tuning.
46663
46664 2009-06-17  Jim Meyering  <jim@meyering.net>
46665         and Eric Blake  <ebb9@byu.net>
46666
46667         hash-tests: new module
46668         * modules/hash-tests: New file.
46669         * tests/test-hash.c: New file.
46670
46671 2009-06-17  Eric Blake  <ebb9@byu.net>
46672
46673         strstr-simple: document new module
46674         * MODULES.html.sh: Document new module.
46675
46676         strstr, strcasestr: replace on platforms with broken memchr
46677         * modules/strstr: Split into...
46678         * modules/strstr-simple: ...new module that does not care about
46679         performance, but does care about glibc bug.
46680         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
46681         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
46682         if platform memchr is broken, per Debian bug 521737.
46683         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
46684         memchr.
46685         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
46686         * doc/posix-functions/strstr.texi (strstr): Document the fix.
46687         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46688         * modules/mountlist (Depends-on): Add strstr-simple.
46689         * modules/gen-uni-tables (Depends-on): Likewise.
46690         * modules/argz (Depends-on): Add strstr.
46691
46692 2009-06-17  Bruno Haible  <bruno@clisp.org>
46693
46694         * modules/posix_spawn-internal (Depends-on): Add errno.
46695
46696 2009-06-17  Bruno Haible  <bruno@clisp.org>
46697
46698         Define missing ESTALE on Interix 3.5.
46699         * lib/errno.in.h (ESTALE): Assign a value if missing.
46700         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
46701         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
46702         missing.
46703         * doc/posix-headers/errno.texi: Mention the Interix bug.
46704         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
46705
46706 2009-06-15  Eric Blake  <ebb9@byu.net>
46707
46708         memchr, memchr2: add valgrind exception
46709         * lib/memchr.valgrind: New file.
46710         * lib/memchr2.valgrind: New file.
46711         * modules/memchr (Files): Distribute valgrind file.
46712         * modules/memchr2 (Files): Likewise.
46713
46714         docs: memchr is no longer obsolete
46715         * MODULES.html.sh: Move memchr from obsolete to string.h section.
46716         * lib/string.in.h (memchr): Simplify logic.
46717
46718 2009-06-14  Jim Meyering  <meyering@redhat.com>
46719
46720         link-follow: fix the "checking..." message to not mention trailing slash
46721         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
46722         never considered trailing slashes.
46723
46724 2009-06-14  Bruno Haible  <bruno@clisp.org>
46725
46726         * m4/memchr.m4: Mention also the bug on IA-64.
46727         * doc/posix-functions/memchr.texi: Likewise.
46728
46729 2009-06-12  Eric Blake  <ebb9@byu.net>
46730
46731         memchr: detect broken x86_64 and alpha implementations
46732         * modules/memchr-tests (Depends-on): Move mmap detection...
46733         * modules/memchr (Depends-on): ...here.
46734         (configure.ac): Set indicator.
46735         * lib/string.in.h (memchr): Declare replacement.
46736         * modules/string (Makefile.am): Trigger replacement.
46737         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46738         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
46739         bugs.
46740         * doc/posix-functions/memchr.texi (memchr): Document the bug.
46741         * modules/getpagesize (License): Relax license.
46742
46743 2009-06-11  Bruno Haible  <bruno@clisp.org>
46744
46745         * lib/idpriv.h: Add more references.
46746
46747 2009-06-08  Bruno Haible  <bruno@clisp.org>
46748
46749         Tests for module 'idpriv-droptemp'.
46750         * modules/idpriv-droptemp-tests: New file.
46751         * tests/test-idpriv-droptemp.sh: New file.
46752         * tests/test-idpriv-droptemp.su.sh: New file.
46753         * tests/test-idpriv-droptemp.c: New file.
46754
46755         New module 'idpriv-droptemp'.
46756         * lib/idpriv-droptemp.c: New file.
46757         * modules/idpriv-droptemp: New file.
46758
46759 2009-06-08  Bruno Haible  <bruno@clisp.org>
46760
46761         Tests for module 'idpriv-drop'.
46762         * modules/idpriv-drop-tests: New file.
46763         * tests/test-idpriv-drop.sh: New file.
46764         * tests/test-idpriv-drop.su.sh: New file.
46765         * tests/test-idpriv-drop.c: New file.
46766
46767         New module 'idpriv-drop'.
46768         * lib/idpriv.h: New file.
46769         * lib-idpriv-drop.c: New file.
46770         * m4/idpriv.m4: New file.
46771         * modules/idpriv-drop: New file.
46772
46773 2009-06-08  Bruno Haible  <bruno@clisp.org>
46774
46775         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
46776         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46777         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46778         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46779         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46780         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46781         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46782
46783 2009-06-08  Eric Blake  <ebb9@byu.net>
46784
46785         test-strstr: use memory fence, when possible
46786         * tests/test-strstr.c (main): Use memory fence, in order to be
46787         more likely to trigger Debian bug 521737.
46788         * modules/strstr-tests (Files): Pull in additional files.
46789
46790         memchr: no longer obsolete, for wider field testing
46791         * modules/memchr (Status, Notice): Delete, this module is no
46792         longer obsolete.
46793         * modules/vasnprintf (Depends-on): Add memchr.
46794
46795 2009-06-07  Jim Meyering  <meyering@redhat.com>
46796
46797         hash: declare some functions with the warn_unused_result attribute
46798         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
46799
46800 2009-06-07  Bruno Haible  <bruno@clisp.org>
46801
46802         * tests/test-alignof.c: Don't test int64_t if it does not exist.
46803         Reported by Eric Blake.
46804
46805 2009-06-06  Eric Blake  <ebb9@byu.net>
46806
46807         test-alignof: fix typo with long double
46808         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
46809         compiler error.
46810
46811 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
46812
46813         Escape non-texinfo { and }s.
46814         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
46815         markup error.
46816
46817 2009-06-04  Jim Meyering  <meyering@redhat.com>
46818
46819         gitlog-to-changelog: don't infloop on an empty commit log
46820         * build-aux/gitlog-to-changelog: Warn about an empty log message.
46821         Reported by Boris Petersen <transacid@centerim.org>.
46822
46823 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
46824
46825         version-etc: extend for packagers
46826         Add three new configure options, intended for packagers:
46827           --with-packager="packager name"
46828           --with-packager-version="packager-specific version"
46829           --with-packager-bug-reports="packager bug reporting"
46830         An example with coreutils:
46831           $ ./configure \
46832             --with-packager=Gentoo \
46833             --with-packager-bug-report=http://bugs.gentoo.org/ \
46834             --with-packager-version="patchset 1.6"
46835           $ ./src/ls --version | head -n2
46836           ls (GNU coreutils) 7.1-dirty
46837           Packaged by Gentoo (patchset 1.6)
46838         Note that the bug reporting info via --help doesn't show up because
46839         coreutils uses its own custom emit_bug_reporting_address() implementation
46840         in src/system.h.  If it didn't, it'd look like:
46841           $ ./src/ls --help | tail -n4
46842           Report bugs to <bug-coreutils@gnu.org>.
46843           Report Gentoo bugs to <http://bugs.gentoo.org/>.
46844           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
46845           General help using GNU software: <http://www.gnu.org/gethelp/>.
46846         * lib/version-etc.c: Print new information, if provided.
46847         * m4/version-etc.m4: New file.
46848         * modules/version-etc (Files): Add m4/version-etc.m4.
46849         (configure.ac): Add gl_VERSION_ETC.
46850
46851 2009-05-31  Bruno Haible  <bruno@clisp.org>
46852
46853         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
46854         and 'int64_t'.
46855         * modules/alignof-tests (Dependencies): Add stdint.
46856         Reported by Eric Blake.
46857
46858 2009-05-31  Bruno Haible  <bruno@clisp.org>
46859
46860         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
46861         restriction due to compiler bugs.
46862         Reported by Eric Blake.
46863
46864 2009-05-31  Simon Josefsson  <simon@josefsson.org>
46865             Bruno Haible  <bruno@clisp.org>
46866
46867         Fix test-alignof failure.
46868         * lib/alignof.h (alignof_slot): New macro.
46869         (alignof_type): New macro, with the same semantics as the previous
46870         'alignof'.
46871         (alignof): Alias to alignof_slot.
46872         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
46873         check that the results are usable as constant expressions.
46874
46875 2009-05-31  Bruno Haible  <bruno@clisp.org>
46876
46877         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
46878         * tests/test-memchr.c (main): Check that memchr does not read past the
46879         first occurrence of the byte.
46880         * tests/test-strstr.c (main): Update comment.
46881         Suggested by Eric Blake.
46882
46883 2009-05-30  Bruno Haible  <bruno@clisp.org>
46884
46885         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
46886         detail how to use dumpbin.
46887         Reported by David Byron <dbyron@dbyron.com>.
46888
46889 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46890
46891         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
46892
46893 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46894
46895         * m4/manywarnings.m4: Add GCC 4.4 warnings.
46896
46897 2009-05-28  Bruno Haible  <bruno@clisp.org>
46898
46899         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
46900         build-aux/ files.
46901
46902 2009-05-28  Simon Josefsson  <simon@josefsson.org>
46903
46904         * gnulib-tool (func_import): Transform license on build-aux/ files too.
46905
46906 2009-05-27  Simon Josefsson  <simon@josefsson.org>
46907
46908         * gnulib-tool (sed_transform_main_lib_file)
46909         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
46910         regexps.
46911
46912 2009-05-26  Simon Josefsson  <simon@josefsson.org>
46913
46914         * tests/test-strstr.c: Add another self-test.
46915         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
46916         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
46917
46918 2009-05-23  Bruno Haible  <bruno@clisp.org>
46919
46920         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
46921         change.
46922
46923 2009-05-21  Bruno Haible  <bruno@clisp.org>
46924
46925         Simplify use of mode_t varargs.
46926         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
46927         uses 'mode_t' or 'int'.
46928         * lib/openat.c (openat): Likewise.
46929         * lib/open-safer.c (open_safer): Likewise.
46930         * m4/mode_t.m4: New file.
46931         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
46932         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
46933         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
46934         * modules/open (Files): Add m4/mode_t.m4.
46935         * modules/openat (Files): Likewise.
46936         * modules/fcntl-safer (Files): Likewise.
46937         Suggested by Eric Blake.
46938
46939 2009-05-21  Pádraig Brady  <P@draigbrady.com>
46940
46941         * doc/glibc-functions/fallocate.texi: New file.
46942         * doc/gnulib.texi: Include it.
46943
46944 2009-05-21  Eric Blake  <ebb9@byu.net>
46945             Bruno Haible  <bruno@clisp.org>
46946
46947         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
46948         invocations.
46949         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46950
46951 2009-05-21  Eric Blake  <ebb9@byu.net>
46952             Bruno Haible  <bruno@clisp.org>
46953
46954         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
46955         include_next. Fix of 2008-11-20 commit.
46956         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
46957         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
46958         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
46959         NEXT_MATH_H.
46960         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
46961         instead of NEXT_MATH_H.
46962
46963 2009-05-21  Bruno Haible  <bruno@clisp.org>
46964
46965         Avoid redefinition warnings for SIZE_MAX.
46966         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
46967         Reported by Simon Josefsson.
46968
46969 2009-05-21  Bruno Haible  <bruno@clisp.org>
46970
46971         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
46972         AC_CACHE_VAL.
46973
46974 2009-05-20  Bruno Haible  <bruno@clisp.org>
46975
46976         Make zeroptr.h work on mingw.
46977         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
46978         mprotect.
46979         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
46980         * modules/memchr2-tests (configure.ac): Likewise.
46981         * modules/memcmp-tests (configure.ac): Likewise.
46982         * modules/memmem-tests (configure.ac): Likewise.
46983         * modules/memrchr-tests (configure.ac): Likewise.
46984         Reported by Simon Josefsson.
46985
46986 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46987
46988         * tests/test-glob.c: Include string.h for strcmp prototype.
46989
46990 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46991
46992         * modules/getdelim (Depends-on): Add explicit stdint, although it
46993         was implicitly already pulled in via realloc-posix.
46994         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
46995
46996 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46997
46998         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
46999         G. Christensen" <tgc@jupiterrise.com>.
47000         * m4/sys_socket_h.m4: Check for sa_family_t.
47001         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47002         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47003         * tests/test-sys_socket.c: Check that sa_family_t works.
47004
47005 2009-05-18  Eric Blake  <ebb9@byu.net>
47006
47007         maint.mk: allow gnulib_dir in VPATH build
47008         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47009
47010 2009-05-15  Jim Meyering  <meyering@redhat.com>
47011
47012         maint.mk: Give gnulib_dir a default definition.
47013         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47014         Thus, most packages no longer need to specify this variable in cfg.mk
47015
47016 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47017
47018         rename.m4: fix typos that would make non-mingw cross-configure fail
47019         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47020
47021 2009-05-13  Eric Blake  <ebb9@byu.net>
47022
47023         mmap-anon: avoid out-of-order autoconf expansion
47024         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47025         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47026         * modules/memchr-tests (Depends-on): Add extensions.
47027         * modules/memchr2-tests (Depends-on): Add extensions.
47028         * modules/memcmp-tests (Depends-on): Add extensions.
47029         * modules/memmem-tests (Depends-on): Add extensions.
47030         * modules/memrchr-tests (Depends-on): Add extensions.
47031
47032 2009-05-13  Bruno Haible  <bruno@clisp.org>
47033
47034         Make some tests ISO C 99 compliant.
47035         * tests/zerosize-ptr.h: New file.
47036         * tests/test-memchr.c: Include zerosize-ptr.h.
47037         (main): Use a zero-size object pointer instead of NULL.
47038         * tests/test-memchr2.c: Include zerosize-ptr.h.
47039         (main): Use a zero-size object pointer instead of NULL.
47040         * tests/test-memcmp.c: Include zerosize-ptr.h.
47041         (main): Use a zero-size object pointer instead of NULL.
47042         * tests/test-memmem.c: Include zerosize-ptr.h.
47043         (main): Use a zero-size object pointer instead of NULL.
47044         * tests/test-memrchr.c: Include zerosize-ptr.h.
47045         (main): Use a zero-size object pointer instead of NULL.
47046         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47047         m4/mmap-anon.m4.
47048         (Depends-on): Add getpagesize.
47049         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47050         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47051         m4/mmap-anon.m4.
47052         (Depends-on): Add getpagesize.
47053         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47054         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47055         m4/mmap-anon.m4.
47056         (Depends-on): Add getpagesize.
47057         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47058         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47059         m4/mmap-anon.m4.
47060         (Depends-on): Add getpagesize.
47061         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47062         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47063         m4/mmap-anon.m4.
47064         (Depends-on): Add getpagesize.
47065         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47066
47067 2009-05-12  Bruno Haible  <bruno@clisp.org>
47068
47069         Tests for module 'alignof'.
47070         * modules/alignof-tests: New file.
47071         * tests/test-alignof.c: New file.
47072
47073 2009-05-12  Bruno Haible  <bruno@clisp.org>
47074
47075         Fix alignof macro.
47076         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47077         vendor compilers that are always correct.
47078
47079 2009-05-12  Bruno Haible  <bruno@clisp.org>
47080
47081         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47082         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47083         not whether its fully works.
47084
47085 2009-05-12  Bruno Haible  <bruno@clisp.org>
47086
47087         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47088
47089 2009-05-12  Jim Meyering  <meyering@redhat.com>
47090
47091         * top/maint.mk: Adjust backslash alignment.
47092
47093 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47094
47095         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47096
47097 2009-05-11  Eric Blake  <ebb9@byu.net>
47098
47099         argp: avoid undefined behavior
47100         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47101         macros.
47102
47103 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47104
47105         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47106         user.name to prevent git commit from complaining.
47107
47108 2009-05-10  Bruno Haible  <bruno@clisp.org>
47109
47110         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47111         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47112         it rewrites every file name only once.
47113         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47114
47115 2009-05-08  Bruno Haible  <bruno@clisp.org>
47116
47117         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47118         instead of 'max'.
47119
47120 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47121
47122         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47123         sockaddr_storage test.
47124
47125 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47126
47127         * modules/sys_socket (Makefile.am): Substitute
47128         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47129         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47130         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47131         * tests/test-sys_socket.c: Check sockaddr_storage.
47132
47133 2009-05-08  Bruno Haible  <bruno@clisp.org>
47134
47135         New module 'alignof'.
47136         * lib/alignof.h: New file.
47137         * modules/alignof: New file.
47138
47139 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47140             Bruno Haible  <bruno@clisp.org>
47141
47142         Fix test-file-has-acl on FreeBSD.
47143         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47144         mask is implicitly added.
47145         * tests/test-file-has-acl.c: Include <signal.h>.
47146         (main): Terminate the test after 5 seconds.
47147         * modules/acl-tests (configure.ac): Check for alarm function.
47148
47149 2009-05-04  Bruno Haible  <bruno@clisp.org>
47150
47151         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47152         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47153         * modules/errno (configure.ac): Drop AC_REQUIRE.
47154         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47155         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47156
47157 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47158
47159         * modules/glob-tests: New module.
47160         * tests/test-glob.c: Add.
47161
47162 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47163
47164         * modules/fnmatch-tests: New module.
47165         * tests/test-fnmatch.c: Add.
47166
47167 2009-05-04  Eric Blake  <ebb9@byu.net>
47168
47169         maint: make the new no-submodule-changes rule VPATH-safe
47170         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47171
47172 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47173             Bruno Haible  <bruno@clisp.org>
47174
47175         acl: Fix infinite loop on FreeBSD.
47176         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47177         of return value from acl_get_entry.
47178         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47179         Likewise.
47180
47181 2009-05-03  Bruno Haible  <bruno@clisp.org>
47182
47183         * lib/acl-internal.h (acl_entries): Clarify return value.
47184         * lib/acl_entries.c (acl_entries): Likewise.
47185
47186 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47187
47188         Bug fix in acl module.
47189         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47190
47191 2009-05-03  Bruno Haible  <bruno@clisp.org>
47192
47193         Create gperf-generated file in the source dir, not in the build dir.
47194         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47195         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47196         * modules/unicase/locale-language (unicase/locale-languages.h):
47197         Likewise.
47198         * modules/unicase/special-casing (unicase/special-casing-table.h):
47199         Likewise.
47200         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47201         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47202         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47203         Reported by Ralf Wildenhues.
47204
47205 2009-05-03  Bruno Haible  <bruno@clisp.org>
47206
47207         * modules/fnmatch (Description, configure.ac): Taken from
47208         fnmatch-posix.
47209         * modules/fnmatch-posix: Turn into a symbolic reference to the
47210         'fnmatch' module, and deprecate.
47211         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47212
47213 2009-05-03  Bruno Haible  <bruno@clisp.org>
47214
47215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47216         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47217         Reported by Ralf Wildenhues.
47218
47219 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47220
47221         * m4/fnmatch.m4: Fix fnmatch re-define.
47222
47223 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47224
47225         priv-set: new module and tests; adapt write-any-file
47226         * lib/priv-set.c: New file.
47227         * lib/priv-set.h: New file.
47228         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47229         * lib/write-any-file.c: Simplify by using priv-set module.
47230         * m4/priv-set.m4: New file.
47231         * modules/priv-set: New file.
47232         * modules/unlinkdir: Add dependency on priv-set module.
47233         * modules/write-any-file: Likewise.
47234
47235         Tests for module 'priv-set'.
47236         * modules/priv-set-tests: New file.
47237         * tests/test-priv-set.c: New file.
47238
47239 2009-05-03  Jim Meyering  <meyering@redhat.com>
47240             Bruno Haible  <bruno@clisp.org>
47241
47242         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47243         use the converted UTF-8 variant of the name instead.
47244
47245 2009-05-03  Jim Meyering  <meyering@redhat.com>
47246
47247         tests: tighten some getdate tests
47248         * tests/test-getdate.c (main): Tighten tests: require equality,
47249         not just greater than.  Set TZ envvar to UTC0.
47250
47251 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47252
47253         getdate: correctly interpret "next monday" when run on a Monday
47254         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47255         that e.g., "next tues" (when run on a tuesday) results in a date
47256         that is one week in the future, and not today's date.
47257         I.e., add a week when the wday is the same as the current one.
47258         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47259         and earlier by Martin Bernreuther and Jan Minář.
47260         * tests/test-getdate.c (main): Check that "next DAY" is always in
47261         the future and that "last DAY" is always in the past.
47262
47263 2009-05-02  Jim Meyering  <meyering@redhat.com>
47264
47265         build: ensure that a release build fails when a submodule is unclean
47266         * top/maint.mk (no-submodule-changes): New rule.
47267         (alpha beta major): Depend on it.
47268
47269 2009-05-02  Bruno Haible  <bruno@clisp.org>
47270
47271         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47272         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47273         shell variable gl_fnmatch_required to detect which variant is
47274         requested.
47275         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47276         gl_FUNC_FNMATCH_POSIX.
47277         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47278         exclude fnmatch-posix.
47279
47280 2009-05-02  Bruno Haible  <bruno@clisp.org>
47281
47282         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47283         * modules/mbsrtowcs (License): Change to LGPLv2+.
47284         * modules/strnlen1 (License): Likewise.
47285         Reported by Simon Josefsson.
47286
47287 2009-05-02  Bruno Haible  <bruno@clisp.org>
47288
47289         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47290         "cross".
47291         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47292         gnulib-tool was called with option --source-base=lib.
47293
47294 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47295
47296         Use automake *-local hooks without commands, for extensibility.
47297         * modules/localcharset (Makefile.am): Rename install-exec-local
47298         rule to install-exec-localcharset, and make it a prerequisite of
47299         install-exec-local.  Likewise, rename the uninstall-local rule to
47300         uninstall-localcharset, and make it a prerequisite of the former.
47301
47302 2009-05-01  Bruno Haible  <bruno@clisp.org>
47303
47304         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47305         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47306         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47307         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47308         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47309         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47310         m4/locale-zh.m4, m4/codeset.m4.
47311
47312         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47313         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47314         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47315         m4/locale-zh.m4.
47316
47317         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47318         REPLACE_WCRTOMB if mbstate_t must be replaced.
47319         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47320         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47321
47322 2009-05-01  Bruno Haible  <bruno@clisp.org>
47323
47324         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47325         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47326         dngettext, dcngettext, textdomain, bindtextdomain,
47327         bind_textdomain_codeset): Undefine before redefining.
47328
47329 2009-04-30  Bruno Haible  <bruno@clisp.org>
47330
47331         Fix bug introduced on 2009-04-25.
47332         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47333         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47334         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47335         is defined.
47336         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47337         is defined.
47338         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47339         is defined.
47340         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47341
47342 2009-04-28  Bruno Haible  <bruno@clisp.org>
47343
47344         Comment tweaks.
47345         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47346         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47347         * lib/unicase.h (u*_casexfrm): Likewise.
47348         Reported by Paolo Bonzini.
47349
47350 2009-04-28  Bruno Haible  <bruno@clisp.org>
47351
47352         Fix a compilation error.
47353         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47354         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47355         Reported by Jim Meyering.
47356
47357 2009-04-27  Bruno Haible  <bruno@clisp.org>
47358
47359         New module 'libunistring'.
47360         * modules/libunistring: New file.
47361         * m4/libunistring.m4: New file.
47362         * MODULES.html.sh (Unicode string functions): Add it.
47363
47364 2009-04-27  Eric Blake  <ebb9@byu.net>
47365
47366         maint.mk: allow package-specific header to provide <config.h>
47367         * top/maint.mk (sc_require_config_h): New variable.
47368         (sc_require_config_h, sc_require_config_h_first): Use it.
47369
47370 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47371
47372         * top/maint.mk (sc_avoid_if_before_free): Except
47373         useless-if-before-free script.
47374
47375 2009-04-27  Eric Blake  <ebb9@byu.net>
47376
47377         maintainer-makefile: depend on all required helper scripts
47378         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47379         useless-if-before-free.
47380         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47381         version, rather than assuming gnulib checkout is available.
47382         Reported by Simen Josefsson.
47383
47384 2009-04-26  Bruno Haible  <bruno@clisp.org>
47385
47386         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47387         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47388         "../" or "..".
47389
47390 2009-04-26  Bruno Haible  <bruno@clisp.org>
47391
47392         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47393         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47394         AC_LIB_HAVE_LINKFLAGS.
47395
47396 2009-04-26  Bruno Haible  <bruno@clisp.org>
47397
47398         Simplify calling convention of u*_conv_from_encoding.
47399         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47400         u32_conv_from_encoding): Expect a resultbuf argument and return the
47401         result directly as a pointer.
47402         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47403         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47404         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47405         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47406         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47407         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47408         Update.
47409         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47410         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47411         * lib/vasnprintf.c (VASNPRINTF): Update.
47412         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47413         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47414         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47415         * NEWS: Mention the change.
47416
47417 2009-04-26  Bruno Haible  <bruno@clisp.org>
47418
47419         Simplify calling convention of u*_conv_to_encoding.
47420         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47421         u32_conv_to_encoding): Expect a resultbuf argument and return the
47422         result directly as a pointer.
47423         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47424         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47425         freeing scaled_offsets if mem_iconveha failed.
47426         * lib/unicase/u-casexfrm.h (FUNC): Update.
47427         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47428         * lib/vasnprintf.c (VASNPRINTF): Update.
47429         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47430         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47431         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47432         * NEWS: Mention the change.
47433
47434 2009-04-26  Bruno Haible  <bruno@clisp.org>
47435
47436         Avoid test failures on AIX and OSF/1.
47437         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47438         malloc(0).
47439         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47440         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47441         Likewise.
47442         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47443         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47444         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47445         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47446         * doc/posix-functions/malloc.texi: Document the portability problem
47447         related to malloc(0).
47448
47449 2009-04-26  Bruno Haible  <bruno@clisp.org>
47450
47451         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47452         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47453         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47454
47455 2009-04-25  Bruno Haible  <bruno@clisp.org>
47456
47457         Avoid link error when creating a namespace clean library.
47458         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47459         as macro with arguments if already defined as an alias.
47460         * lib/signbitf.c (gl_signbitf): Don't undefine.
47461         * lib/signbitd.c (gl_signbitd): Don't undefine.
47462         * lib/signbitl.c (gl_signbitl): Don't undefine.
47463
47464 2009-04-25  Jim Meyering  <meyering@redhat.com>
47465
47466         vc-list-files: fix another quoting bug
47467         * build-aux/vc-list-files: Avoid sed backslash expansion
47468         of pathological directory names.
47469
47470 2009-04-25  Eric Blake  <ebb9@byu.net>
47471
47472         vc-list-files: fix shell quoting error
47473         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47474         timestamp.
47475
47476 2009-04-25  Jim Meyering  <meyering@redhat.com>
47477
47478         vc-list-files: restore lost functionality with subdir argument
47479         * build-aux/vc-list-files: When given a non-"." sub-directory
47480         argument, substitute the $dir/ prefix back onto each resulting name.
47481         Otherwise, coreutils' root_tests check would fail.
47482
47483 2009-04-24  Eric Blake  <ebb9@byu.net>
47484
47485         vc-list-files: ignore git symlinks
47486         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47487         than ls-files, to ignore git symlinks.
47488
47489         maint.mk: import improvements from m4
47490         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47491         (move_if_change): Delete unused macro.
47492         (news-date-check, vc-diff-check): Support VPATH builds.
47493         (announcement): Likewise.  Split --bootstrap-tools list...
47494         (boostrap-tools): ...into separate list, which can be overridden
47495         in cfg.mk.
47496         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47497         requiring dependency on useless-if-before-free module.
47498         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47499         Support VPATH builds.
47500
47501 2009-04-24  Jim Meyering  <meyering@redhat.com>
47502
47503         maint.mk: remove coreutils-specific rules and variables
47504         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47505         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47506         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47507
47508         maint.mk: remove obsolete rule
47509         * top/maint.mk (rel-check): Remove rule.
47510         (WGET, WGETFLAGS): Remove now-unused variables.
47511
47512 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47513
47514         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47515         consistency.
47516
47517         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47518         '$(PATH_SEPARATOR)' instead of ':'.
47519
47520 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47521
47522         * lib/getopt1.c (main): Use 'const' for static array.
47523
47524 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47525
47526         * top/maint.mk: Sync with coreutils.
47527         * NEWS: Explain incompatibilities.
47528
47529 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47530             Bruno Haible  <bruno@clisp.org>
47531
47532         Fix cross-compilation results.
47533         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47534         statement, as third argument of AC_TRY_RUN.
47535         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47536         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47537         Likewise.
47538         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47539         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47540         Likewise.
47541         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47542         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47543         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47544
47545 2009-04-20  Bruno Haible  <bruno@clisp.org>
47546
47547         Avoid test failure on mingw.
47548         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47549
47550 2009-04-20  Bruno Haible  <bruno@clisp.org>
47551
47552         Avoid compilation error on mingw.
47553         * modules/localename-tests (Depends-on): Add locale.
47554
47555 2009-04-19  Bruno Haible  <bruno@clisp.org>
47556
47557         Support for building a shared library on Windows platforms.
47558         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47559         (main): Test the presence of UNINORM_NFC here.
47560         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47561         (main): Test the presence of UNINORM_NFD here.
47562         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47563         (main): Test the presence of UNINORM_NFKC here.
47564         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47565         (main): Test the presence of UNINORM_NFKD here.
47566
47567 2009-04-19  Bruno Haible  <bruno@clisp.org>
47568
47569         Avoid a compiler warning.
47570         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47571         Change type of variable 'sequence'.
47572
47573 2009-04-19  Bruno Haible  <bruno@clisp.org>
47574
47575         * modules/configmake (Makefile.am): When the contents of configmake.h
47576         does not change, arrange to preserve its modification time.
47577
47578 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47579
47580         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47581         gettext domain.
47582
47583 2009-04-16  Jim Meyering  <meyering@redhat.com>
47584
47585         useless-if-before-free: improve conversion code
47586         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47587         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47588
47589 2009-04-14  Bruno Haible  <bruno@clisp.org>
47590
47591         * modules/fcntl (Depends-on): Add extensions.
47592         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47593
47594 2009-04-12  Ben Pfaff  <blp@gnu.org>
47595
47596         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47597         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47598
47599 2009-03-20  Ben Pfaff  <blp@gnu.org>
47600
47601         Make rename replace existing destinations on Windows.
47602         * m4/rename.m4: Add test for Mingw.
47603         * lib/rename.c: Add rename replacement that uses MoveFileEx with
47604         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
47605         * doc/posix-functions/rename.texi: Document.
47606
47607 2009-04-10  Bruno Haible  <bruno@clisp.org>
47608
47609         New include file "iconveh.h".
47610         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
47611         * lib/striconveh.h: Include it.
47612         (enum iconv_ilseq_handler): Remove definition.
47613         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
47614         striconveh.h.
47615         * lib/striconveha.c: Include striconveh.h.
47616         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
47617         * modules/striconveh (Files): Add lib/iconveh.h.
47618         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
47619         lib/striconveh.h.
47620
47621 2009-04-10  Bruno Haible  <bruno@clisp.org>
47622
47623         * lib/uniconv.h: Update comment.
47624
47625 2009-04-10  Bruno Haible  <bruno@clisp.org>
47626
47627         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
47628         always.
47629         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47630         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47631         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47632         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
47633         "unistring-notinline.h", so that the function gets defined always.
47634         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47635         * lib/unistr/u8-uctomb.c: Likewise.
47636         * lib/unistr/u16-mbtouc.c: Likewise.
47637         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47638         * lib/unistr/u16-uctomb.c: Likewise.
47639         * lib/unistr/u32-mbtouc.c: Likewise.
47640         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47641         * lib/unistr/u32-uctomb.c: Likewise.
47642
47643 2009-04-10  Bruno Haible  <bruno@clisp.org>
47644
47645         Mark 'utime' obsolete.
47646         * modules/utime (Status, Notice): New sections.
47647         Suggested by Jim Meyering.
47648
47649         Fix cross-compile guess for utime test.
47650         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
47651         autoconf.
47652         * doc/posix-functions/utime.texi: Give more precisions.
47653         Reported by Jan <ipif@ymail.com>.
47654
47655 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
47656
47657         filevercmp: correct today's change
47658         * lib/filevercmp.c: Also handle coreutils' test inputs.
47659         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
47660
47661         Fix regression in 'filevercmp' module. Thanks Sven Joachim
47662         for reporting it.
47663         * lib/filevercmp.c: Special handle for "", "." and "..".
47664         * tests/test-filevercmp.c: Enlarge the set suite.
47665
47666 2009-04-07  Jim Meyering  <meyering@redhat.com>
47667
47668         useless-if-before-free: show how to remove braced useless free, too
47669         * build-aux/useless-if-before-free: still only in a comment, though.
47670
47671 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
47672
47673         maint.mk: import changes to syntax-check macros from coreutils
47674         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
47675         Use them in the relevant macros.
47676
47677 2009-04-06  Bruno Haible  <bruno@clisp.org>
47678
47679         Fix unportable use of bit-fields.
47680         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
47681         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
47682         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
47683
47684 2009-04-06  Bruno Haible  <bruno@clisp.org>
47685
47686         Avoid test failures on AIX and OSF/1.
47687         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
47688         that malloc(0) = NULL.
47689         * tests/unicase/test-u8-tolower.c (check): Likewise.
47690         * tests/unicase/test-u8-totitle.c (check): Likewise.
47691         * tests/unicase/test-u8-toupper.c (check): Likewise.
47692         * tests/unicase/test-u16-casefold.c (check): Likewise.
47693         * tests/unicase/test-u16-tolower.c (check): Likewise.
47694         * tests/unicase/test-u16-totitle.c (check): Likewise.
47695         * tests/unicase/test-u16-toupper.c (check): Likewise.
47696         * tests/unicase/test-u32-casefold.c (check): Likewise.
47697         * tests/unicase/test-u32-tolower.c (check): Likewise.
47698         * tests/unicase/test-u32-totitle.c (check): Likewise.
47699         * tests/unicase/test-u32-toupper.c (check): Likewise.
47700         * tests/uninorm/test-u8-nfc.c (check): Likewise.
47701         * tests/uninorm/test-u8-nfd.c (check): Likewise.
47702         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
47703         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
47704         * tests/uninorm/test-u16-nfc.c (check): Likewise.
47705         * tests/uninorm/test-u16-nfd.c (check): Likewise.
47706         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
47707         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
47708         * tests/uninorm/test-u32-nfc.c (check): Likewise.
47709         * tests/uninorm/test-u32-nfd.c (check): Likewise.
47710         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
47711         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
47712
47713 2009-04-05  Bruno Haible  <bruno@clisp.org>
47714
47715         Work around an autoconf limitation.
47716         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
47717         comment line if it would be longer than 3 KB.
47718
47719 2009-04-05  Bruno Haible  <bruno@clisp.org>
47720
47721         Avoid test failure with libiconv-1.13.
47722         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
47723         of the expected test results.
47724
47725 2009-04-05  Bruno Haible  <bruno@clisp.org>
47726
47727         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
47728         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
47729         that it should be installed.
47730
47731 2009-04-05  Bruno Haible  <bruno@clisp.org>
47732
47733         * gnulib-tool: New option --copy-file.
47734         (func_usage): Document it.
47735         (func_dest_tmpfilename): Moved out of func_import.
47736         (func_add_file, func_update_file): New functions, extracted from
47737         func_import.
47738         (func_import): Update.
47739
47740 2009-04-05  Karl Berry  <karl@gnu.org>
47741
47742         * README: prominently mention gnulib-tool.
47743         Rearrange sections so getting the code is near the top.
47744
47745 2009-04-05  Bruno Haible  <bruno@clisp.org>
47746
47747         * lib/unicase.h: Mention u*_cmp2.
47748         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47749         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
47750         * lib/unicase/ulc-casecmp.c: Likewise.
47751         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
47752         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
47753         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
47754         unistr/u8-cmp.
47755         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
47756         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
47757         unistr/u16-cmp.
47758         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
47759         unistr/u32-cmp.
47760
47761         * lib/uninorm.h: Mention u*_cmp2.
47762         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47763         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
47764         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
47765         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
47766         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
47767         unistr/u8-cmp.
47768         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
47769         unistr/u16-cmp.
47770         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
47771         unistr/u32-cmp.
47772
47773         New module 'unistr/u32-cmp2'.
47774         * lib/unistr/u32-cmp2.c: New file.
47775         * modules/unistr/u32-cmp2: New file.
47776
47777         New module 'unistr/u16-cmp2'.
47778         * lib/unistr/u16-cmp2.c: New file.
47779         * modules/unistr/u16-cmp2: New file.
47780
47781         New module 'unistr/u8-cmp2'.
47782         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
47783         * lib/unistr/u8-cmp2.c: New file.
47784         * lib/unistr/u-cmp2.h: New file.
47785         * modules/unistr/u8-cmp2: New file.
47786
47787 2009-04-05  Bruno Haible  <bruno@clisp.org>
47788
47789         * lib/unictype.h (uc_property_is_valid): New macro.
47790         * tests/unictype/test-pr_byname.c (main): Use it.
47791
47792         * lib/unistr.h: Doc fixes.
47793         * lib/uniconv.h: Doc fixes.
47794         * lib/unictype.h: Doc fixes.
47795
47796 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
47797
47798         Port coreutils 7.2 to Solaris 8.
47799
47800         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
47801         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
47802         for Solaris 8.  This is a bit of a hack, as it means it's the
47803         caller's responsibility to add -lnsl if needed, but most likely it
47804         won't be needed since only getaddrinfo uses this and getaddrinfo
47805         isn't needed on Solaris 8.
47806
47807         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
47808         problem to Solaris 8 encountered with coreutils 7.2, which
47809         resulted in a message "fnmatch.c:292: warning: passing argument 4
47810         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
47811         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
47812
47813 2009-04-03  Simon Josefsson  <simon@josefsson.org>
47814
47815         * m4/ld-version-script.m4: Add FIXME comment.
47816
47817 2009-04-02  Simon Josefsson  <simon@josefsson.org>
47818
47819         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
47820         SOVERSION variable.
47821
47822 2009-04-02  Bruno Haible  <bruno@clisp.org>
47823
47824         * Makefile (info, html, dvi, pdf): Combine the rules.
47825         Suggested by Jim Meyering.
47826
47827 2009-04-01  Bruno Haible  <bruno@clisp.org>
47828
47829         * Makefile (info, html, dvi, pdf): New targets.
47830         Reported by Reuben Thomas <rrt@sc3d.org>.
47831
47832 2009-04-01  Bruno Haible  <bruno@clisp.org>
47833
47834         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
47835         can be put into PATH.
47836         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
47837
47838 2009-04-01  Bruno Haible  <bruno@clisp.org>
47839
47840         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
47841
47842 2009-04-01  Bruno Haible  <bruno@clisp.org>
47843
47844         Rename module 'visibility'.
47845         * modules/lib-symbol-visibility: Renamed from modules/visibility.
47846         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
47847         * doc/gnulib.texi: Update.
47848         * MODULES.html.sh (Misc): Update.
47849         * NEWS: Mention the change.
47850
47851 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47852
47853         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
47854         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
47855         Eric Blake <ebb9@byu.net> for review.
47856         * MODULES.html.sh: Add lib-msvc-compat.
47857         * doc/gnulib.texi: Link to new section.
47858         * m4/ld-output-def.m4: New file.
47859         * doc/ld-output-def.texi: New file.
47860
47861 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47862
47863         Rename ld-version-script to lib-symbol-versions.  Suggested by
47864         Bruno Haible <bruno@clisp.org>.
47865         * modules/ld-version-script: Renamed to lib-symbol-versions.
47866         * doc/ld-version-script.texi: Fix module name.
47867         * MODULES.html.sh: Add lib-symbol-versions.
47868
47869 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47870
47871         * modules/u64-tests: New file.
47872         * tests/test-u64.c: New file.
47873
47874 2009-03-04  Simon Josefsson  <simon@josefsson.org>
47875
47876         * MODULES.html.sh: Mention u64.
47877         * modules/u64: New module.
47878         * modules/crypto/sha512: Depend on u64 module instead of providing
47879         u64.h.
47880
47881 2009-03-27  Eric Blake  <ebb9@byu.net>
47882
47883         test-strerror: make debugging EAI_SYSTEM easier
47884         * modules/getaddrinfo-tests (Depends-on): Add strerror.
47885         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
47886         failure was EAI_SYSTEM.
47887
47888 2009-03-25  Bruno Haible  <bruno@clisp.org>
47889
47890         Fix a problem with --enable-relocatable on Solaris 7.
47891         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
47892         since 2008-02-24.
47893
47894 2009-03-25  Eric Blake  <ebb9@byu.net>
47895
47896         test-sockets: avoid gcc warning
47897         * tests/test-sockets.c (main): Silence compiler warning.
47898
47899 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47900
47901         New modules nproc, pthread, contributed by Glen Lenker.
47902
47903         * MODULES.html.sh: Add pthread, nproc.
47904         * lib/nproc.c: New file.
47905         * lib/nproc.h: New file.
47906         * lib/pthread.in.h: New file.
47907         * m4/pthread.m4: New file.
47908         * modules/nproc: New file.
47909         * modules/pthread: New file.
47910
47911 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47912
47913         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
47914         New variable.
47915
47916 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
47917
47918         filevercmp: handle simple~ and numbered.~3~ backup suffixes
47919         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
47920         * tests/test-filevercmp.c: Add tests for backup suffixes.
47921
47922 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47923
47924         * modules/stdlib (Depends-on): Add stdint, needed when defining
47925         struct random_data on, for example, HP-UX 10.20.  Reported by
47926         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47927
47928 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47929
47930         * lib/readline.c (readline): Call fflush on stdout after printing
47931         prompt.
47932
47933 2009-03-20  Bruno Haible  <bruno@clisp.org>
47934
47935         Remove dependency from 'close' module to -lws2_32 on native Windows.
47936         * lib/close-hook.h: New file.
47937         * lib/close-hook.c: New file.
47938         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
47939         w32sock.h.
47940         (_gl_close_fd_maybe_socket): Remove function.
47941         (rpl_close): Invoke execute_all_close_hooks instead of
47942         _gl_close_fd_maybe_socket.
47943         * lib/sockets.c: Include close-hook.h, w32sock.h.
47944         (close_fd_maybe_socket): New function, essentially from lib/close.c.
47945         (close_sockets_hook): New variable.
47946         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
47947         (gl_sockets_cleanup): Unregister it.
47948         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
47949         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
47950         * modules/close-hook: New file.
47951         * modules/close (Files): Remove lib/w32sock.h.
47952         (Depends-on): Add close-hook.
47953         (Link): Remove section.
47954         * modules/sockets (Files): Add lib/w32sock.h.
47955         (Depends-on): Add close-hook.
47956         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
47957         invocation.
47958         * NEWS: Mention that LIB_CLOSE is gone.
47959
47960 2009-03-23  Eric Blake  <ebb9@byu.net>
47961
47962         signal-tests: test previous patch
47963         * tests/test-signal.c: New file.
47964         * modules/signal-tests: Likewise.
47965
47966         signal.h: always support 'volatile sig_atomic_t'
47967         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
47968         (gl_SIGNAL_H_DEFAULTS): Add a default.
47969         * modules/signal (Makefile.am): Substitute if needed.
47970         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
47971         users can blindly add volatile.
47972         * doc/posix-headers/signal.texi (signal.h): Document it.
47973         Reported by Matthew Woehlke.
47974
47975 2009-03-23  Jim Meyering  <meyering@redhat.com>
47976
47977         pathmax: PATH_MAX: use pathconf only when available
47978         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
47979         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
47980         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
47981         This avoids a link failure in a PSP cross-compilation environment
47982         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
47983
47984         * lib/vasnprintf.c (divide): Fix typo in comment.
47985
47986 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47987
47988         * gnulib-tool (func_filter_filelist): Fix comment.
47989
47990 2009-03-20  Bruno Haible  <bruno@clisp.org>
47991
47992         Make sockets.h self-contained.
47993         * lib/sockets.c: Include sockets.h first.
47994         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
47995
47996 2009-03-19  Eric Blake  <ebb9@byu.net>
47997
47998         doc: mention more functions added in cygwin 1.7.0
47999         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48000         addition.
48001         * doc/posix-functions/log2f.texi: Likewise.
48002
48003 2009-03-19  Jim Meyering  <meyering@redhat.com>
48004
48005         fsusage: avoid syntax error due to statement-before-declaration
48006         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48007         after all declarations.  Reported by Matthew Woehlke in
48008         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48009
48010 2009-03-18  Eric Blake  <ebb9@byu.net>
48011
48012         build-aux/compile: sync from automake
48013         * build-aux/compile: New file, from automake.
48014         * config/srclist.txt: Mention build-aux/compile.
48015
48016 2009-03-17  Bruno Haible  <bruno@clisp.org>
48017
48018         * lib/git-merge-changelog.c: Fix typo in comment.
48019         Reported by Reuben Thomas <rrt@sc3d.org>.
48020
48021 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48022
48023         * m4/regex.m4: update and improve help for
48024         --without-included-regex.
48025
48026 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48027
48028         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48029         failure on missing include files.
48030
48031 2009-03-17  Eric Blake  <ebb9@byu.net>
48032
48033         doc: mention more functions added in cygwin 1.7.0
48034         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48035         addition.
48036         * doc/posix-functions/fwscanf.texi: Likewise.
48037         * doc/posix-functions/swprintf.texi: Likewise.
48038         * doc/posix-functions/swscanf.texi: Likewise.
48039         * doc/posix-functions/vfwprintf.texi: Likewise.
48040         * doc/posix-functions/vfwscanf.texi: Likewise.
48041         * doc/posix-functions/vswprintf.texi: Likewise.
48042         * doc/posix-functions/vswscanf.texi: Likewise.
48043         * doc/posix-functions/vwprintf.texi: Likewise.
48044         * doc/posix-functions/vwscanf.texi: Likewise.
48045         * doc/posix-functions/wcscasecmp.texi: Likewise.
48046         * doc/posix-functions/wcsdup.texi: Likewise.
48047         * doc/posix-functions/wcsftime.texi: Likewise.
48048         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48049         * doc/posix-functions/wprintf.texi: Likewise.
48050         * doc/posix-functions/wscanf.texi: Likewise.
48051         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48052
48053 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48054
48055         maint.mk: really add $(AM_MAKEFLAGS)
48056         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48057         was inadvertently omitted in the last commit.
48058         Spotted by Bruno Haible.
48059
48060         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48061         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48062         $(AM_MAKEFLAGS)' rather than plain `make'.
48063
48064         gnulib-tool: execute $MAKE not make
48065         * gnulib-tool: Default $MAKE to 'make'.
48066         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48067         than make.  Initialize $MAKE in the do-autobuild script.
48068
48069         gnulib-tool: use $MAKE not make in generated files
48070         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48071         make, in generated files.  Initialize $MAKE in the do-autobuild
48072         script.
48073
48074         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48075
48076         GNUmakefile: disable parallelism only for multiple, recursive targets
48077         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48078         additions in the Makefile.
48079         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48080         by Automake.
48081         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48082         are listed on the command line and at least one of them is
48083         listed in $(ALL_RECURSIVE_TARGETS).
48084
48085 2009-03-14  Bruno Haible  <bruno@clisp.org>
48086
48087         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48088         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48089         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48090         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48091         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48092         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48093         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48094         unistr/u8-uctomb.
48095         * modules/unistr/u8-strchr (Depends-on): Likewise.
48096         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48097         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48098         unistr/u16-uctomb.
48099         * modules/unistr/u16-strchr (Depends-on): Likewise.
48100         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48101
48102 2009-03-12  Bruno Haible  <bruno@clisp.org>
48103
48104         Work around select() bug on Interix 3.5.
48105         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48106         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48107         * m4/select.m4: New file.
48108         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48109         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48110         * modules/select (Files): Add m4/select.m4.
48111         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48112         * modules/nanosleep (Depends-on): Add select.
48113         * modules/poll (Depends-on): Likewise.
48114         * doc/posix-functions/select.texi: Mention the Interix bug.
48115         Reported by Markus Duft <mduft@gentoo.org>.
48116
48117         * lib/select.c: Renamed from lib/winsock-select.c.
48118         * modules/select (Files): Add lib/select.c, remove
48119         lib/winsock-select.c.
48120         (configure.ac): Update.
48121
48122 2009-03-12  Jim Meyering  <meyering@redhat.com>
48123
48124         avoid gcc warnings about unused macro definitions
48125         * lib/readtokens.c (STREQ): Remove unused definition.
48126         * lib/xmalloc.c (SIZE_MAX): Likewise.
48127         * lib/openat-die.c (N_): Likewise.
48128         * lib/mountlist.c (SIZE_MAX): Remove definition.
48129         Instead, include <stdint.h>.
48130         * lib/readutmp.c: Likewise.
48131         * modules/readutmp (Depends-on): Add stdint.
48132         * modules/mountlist (Depends-on): Add stdint.
48133         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48134
48135 2009-03-10  Bruno Haible  <bruno@clisp.org>
48136
48137         Tests for module 'mbmemcasecoll'.
48138         * modules/mbmemcasecoll-tests: New file.
48139         * tests/test-mbmemcasecoll1.sh: New file.
48140         * tests/test-mbmemcasecoll2.sh: New file.
48141         * tests/test-mbmemcasecoll3.sh: New file.
48142         * tests/test-mbmemcasecoll.c: New file.
48143
48144         New module 'mbmemcasecoll'.
48145         * lib/mbmemcasecoll.h: New file.
48146         * lib/mbmemcasecoll.c: New file.
48147         * modules/mbmemcasecoll: New file.
48148
48149         * tests/test-mbmemcasecmp.h: New file, extracted from
48150         tests/test-mbmemcasecmp.c.
48151         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48152         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48153         (main): Update.
48154         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48155
48156 2009-03-09  Bruno Haible  <bruno@clisp.org>
48157
48158         Tests for module 'mbmemcasecmp'.
48159         * modules/mbmemcasecmp-tests: New file.
48160         * tests/test-mbmemcasecmp1.sh: New file.
48161         * tests/test-mbmemcasecmp2.sh: New file.
48162         * tests/test-mbmemcasecmp3.sh: New file.
48163         * tests/test-mbmemcasecmp.c: New file.
48164
48165         New module 'mbmemcasecmp'.
48166         * lib/mbmemcasecmp.h: New file.
48167         * lib/mbmemcasecmp.c: New file.
48168         * modules/mbmemcasecmp: New file.
48169
48170 2009-03-09  Bruno Haible  <bruno@clisp.org>
48171
48172         Tests for module 'unicase/ulc-casecoll'.
48173         * modules/unicase/ulc-casecoll-tests: New file.
48174         * tests/unicase/test-ulc-casecoll1.sh: New file.
48175         * tests/unicase/test-ulc-casecoll2.sh: New file.
48176         * tests/unicase/test-ulc-casecoll.c: New file.
48177
48178         New module 'unicase/ulc-casecoll'.
48179         * lib/unicase.h (ulc_casecoll): New declaration.
48180         * lib/unicase/ulc-casecoll.c: New file.
48181         * modules/unicase/ulc-casecoll: New file.
48182
48183         New module 'unicase/ulc-casexfrm'.
48184         * lib/unicase.h (ulc_casexfrm): New declaration.
48185         * lib/unicase/ulc-casexfrm.c: New file.
48186         * modules/unicase/ulc-casexfrm: New file.
48187
48188 2009-03-09  Bruno Haible  <bruno@clisp.org>
48189
48190         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48191         invocations.
48192
48193         * m4/mbscasecmp.m4: Remove file.
48194         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48195         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48196
48197         * m4/mbscasestr.m4: Remove file.
48198         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48199         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48200
48201         * m4/mbschr.m4: Remove file.
48202         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48203         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48204
48205         * m4/mbscspn.m4: Remove file.
48206         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48207         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48208
48209         * m4/mbslen.m4: Remove file.
48210         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48211         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48212
48213         * m4/mbsncasecmp.m4: Remove file.
48214         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48215         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48216
48217         * m4/mbsnlen.m4: Remove file.
48218         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48219         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48220
48221         * m4/mbspbrk.m4: Remove file.
48222         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48223         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48224
48225         * m4/mbspcasecmp.m4: Remove file.
48226         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48227         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48228
48229         * m4/mbsrchr.m4: Remove file.
48230         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48231         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48232
48233         * m4/mbssep.m4: Remove file.
48234         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48235         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48236
48237         * m4/mbsspn.m4: Remove file.
48238         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48239         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48240
48241         * m4/mbsstr.m4: Remove file.
48242         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48243         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48244
48245         * m4/mbstok_r.m4: Remove file.
48246         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48247         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48248
48249         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48250
48251         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48252         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48253
48254         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48255
48256 2009-03-08  Bruno Haible  <bruno@clisp.org>
48257
48258         Tests for module 'unicase/ulc-casecmp'.
48259         * modules/unicase/ulc-casecmp-tests: New file.
48260         * tests/unicase/test-ulc-casecmp1.sh: New file.
48261         * tests/unicase/test-ulc-casecmp2.sh: New file.
48262         * tests/unicase/test-ulc-casecmp.c: New file.
48263
48264         New module 'unicase/ulc-casecmp'.
48265         * lib/unicase.h (ulc_casecmp): New declaration.
48266         * lib/unicase/ulc-casecmp.c: New file.
48267         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48268         'const SRC_UNIT *'.
48269         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48270         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48271         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48272         * modules/unicase/ulc-casecmp: New file.
48273
48274         Tests for module 'unicase/u32-is-cased'.
48275         * modules/unicase/u32-is-cased-tests: New file.
48276         * tests/unicase/test-u32-is-cased.c: New file.
48277
48278         Tests for module 'unicase/u16-is-cased'.
48279         * modules/unicase/u16-is-cased-tests: New file.
48280         * tests/unicase/test-u16-is-cased.c: New file.
48281
48282         Tests for module 'unicase/u8-is-cased'.
48283         * modules/unicase/u8-is-cased-tests: New file.
48284         * tests/unicase/test-u8-is-cased.c: New file.
48285         * tests/unicase/test-is-cased.h: New file.
48286
48287         New module 'unicase/u32-is-cased'.
48288         * lib/unicase/u32-is-cased.c: New file.
48289         * modules/unicase/u32-is-cased: New file.
48290
48291         New module 'unicase/u16-is-cased'.
48292         * lib/unicase/u16-is-cased.c: New file.
48293         * modules/unicase/u16-is-cased: New file.
48294
48295         New module 'unicase/u8-is-cased'.
48296         * lib/unicase/u8-is-cased.c: New file.
48297         * lib/unicase/u-is-cased.h: New file.
48298         * modules/unicase/u8-is-cased: New file.
48299
48300         Tests for module 'unicase/u32-is-casefolded'.
48301         * modules/unicase/u32-is-casefolded-tests: New file.
48302         * tests/unicase/test-u32-is-casefolded.c: New file.
48303
48304         Tests for module 'unicase/u16-is-casefolded'.
48305         * modules/unicase/u16-is-casefolded-tests: New file.
48306         * tests/unicase/test-u16-is-casefolded.c: New file.
48307
48308         Tests for module 'unicase/u8-is-casefolded'.
48309         * modules/unicase/u8-is-casefolded-tests: New file.
48310         * tests/unicase/test-u8-is-casefolded.c: New file.
48311         * tests/unicase/test-is-casefolded.h: New file.
48312
48313         New module 'unicase/u32-is-casefolded'.
48314         * lib/unicase/u32-is-casefolded.c: New file.
48315         * modules/unicase/u32-is-casefolded: New file.
48316
48317         New module 'unicase/u16-is-casefolded'.
48318         * lib/unicase/u16-is-casefolded.c: New file.
48319         * modules/unicase/u16-is-casefolded: New file.
48320
48321         New module 'unicase/u8-is-casefolded'.
48322         * lib/unicase/u8-is-casefolded.c: New file.
48323         * modules/unicase/u8-is-casefolded: New file.
48324
48325         Tests for module 'unicase/u32-is-titlecase'.
48326         * modules/unicase/u32-is-titlecase-tests: New file.
48327         * tests/unicase/test-u32-is-titlecase.c: New file.
48328
48329         Tests for module 'unicase/u16-is-titlecase'.
48330         * modules/unicase/u16-is-titlecase-tests: New file.
48331         * tests/unicase/test-u16-is-titlecase.c: New file.
48332
48333         Tests for module 'unicase/u8-is-titlecase'.
48334         * modules/unicase/u8-is-titlecase-tests: New file.
48335         * tests/unicase/test-u8-is-titlecase.c: New file.
48336         * tests/unicase/test-is-titlecase.h: New file.
48337
48338         New module 'unicase/u32-is-titlecase'.
48339         * lib/unicase/u32-is-titlecase.c: New file.
48340         * modules/unicase/u32-is-titlecase: New file.
48341
48342         New module 'unicase/u16-is-titlecase'.
48343         * lib/unicase/u16-is-titlecase.c: New file.
48344         * modules/unicase/u16-is-titlecase: New file.
48345
48346         New module 'unicase/u8-is-titlecase'.
48347         * lib/unicase/u8-is-titlecase.c: New file.
48348         * modules/unicase/u8-is-titlecase: New file.
48349
48350         Tests for module 'unicase/u32-is-lowercase'.
48351         * modules/unicase/u32-is-lowercase-tests: New file.
48352         * tests/unicase/test-u32-is-lowercase.c: New file.
48353
48354         Tests for module 'unicase/u16-is-lowercase'.
48355         * modules/unicase/u16-is-lowercase-tests: New file.
48356         * tests/unicase/test-u16-is-lowercase.c: New file.
48357
48358         Tests for module 'unicase/u8-is-lowercase'.
48359         * modules/unicase/u8-is-lowercase-tests: New file.
48360         * tests/unicase/test-u8-is-lowercase.c: New file.
48361         * tests/unicase/test-is-lowercase.h: New file.
48362
48363         New module 'unicase/u32-is-lowercase'.
48364         * lib/unicase/u32-is-lowercase.c: New file.
48365         * modules/unicase/u32-is-lowercase: New file.
48366
48367         New module 'unicase/u16-is-lowercase'.
48368         * lib/unicase/u16-is-lowercase.c: New file.
48369         * modules/unicase/u16-is-lowercase: New file.
48370
48371         New module 'unicase/u8-is-lowercase'.
48372         * lib/unicase/u8-is-lowercase.c: New file.
48373         * modules/unicase/u8-is-lowercase: New file.
48374
48375         Tests for module 'unicase/u32-is-uppercase'.
48376         * modules/unicase/u32-is-uppercase-tests: New file.
48377         * tests/unicase/test-u32-is-uppercase.c: New file.
48378
48379         Tests for module 'unicase/u16-is-uppercase'.
48380         * modules/unicase/u16-is-uppercase-tests: New file.
48381         * tests/unicase/test-u16-is-uppercase.c: New file.
48382
48383         Tests for module 'unicase/u8-is-uppercase'.
48384         * modules/unicase/u8-is-uppercase-tests: New file.
48385         * tests/unicase/test-u8-is-uppercase.c: New file.
48386         * tests/unicase/test-is-uppercase.h: New file.
48387
48388         New module 'unicase/u32-is-uppercase'.
48389         * lib/unicase/u32-is-uppercase.c: New file.
48390         * modules/unicase/u32-is-uppercase: New file.
48391
48392         New module 'unicase/u16-is-uppercase'.
48393         * lib/unicase/u16-is-uppercase.c: New file.
48394         * modules/unicase/u16-is-uppercase: New file.
48395
48396         New module 'unicase/u8-is-uppercase'.
48397         * lib/unicase/u8-is-uppercase.c: New file.
48398         * modules/unicase/u8-is-uppercase: New file.
48399
48400         New module 'unicase/u32-is-invariant'.
48401         * lib/unicase/u32-is-invariant.c: New file.
48402         * modules/unicase/u32-is-invariant: New file.
48403
48404         New module 'unicase/u16-is-invariant'.
48405         * lib/unicase/u16-is-invariant.c: New file.
48406         * modules/unicase/u16-is-invariant: New file.
48407
48408         New module 'unicase/u8-is-invariant'.
48409         * lib/unicase/u8-is-invariant.c: New file.
48410         * lib/unicase/invariant.h: New file.
48411         * lib/unicase/u-is-invariant.h: New file.
48412         * modules/unicase/u8-is-invariant: New file.
48413
48414         Tests for module 'unicase/u32-casecoll'.
48415         * modules/unicase/u32-casecoll-tests: New file.
48416         * tests/unicase/test-u32-casecoll.c: New file.
48417
48418         Tests for module 'unicase/u16-casecoll'.
48419         * modules/unicase/u16-casecoll-tests: New file.
48420         * tests/unicase/test-u16-casecoll.c: New file.
48421
48422         Tests for module 'unicase/u8-casecoll'.
48423         * modules/unicase/u8-casecoll-tests: New file.
48424         * tests/unicase/test-u8-casecoll.c: New file.
48425
48426         New module 'unicase/u32-casecoll'.
48427         * lib/unicase/u32-casecoll.c: New file.
48428         * modules/unicase/u32-casecoll: New file.
48429
48430         New module 'unicase/u16-casecoll'.
48431         * lib/unicase/u16-casecoll.c: New file.
48432         * modules/unicase/u16-casecoll: New file.
48433
48434         New module 'unicase/u8-casecoll'.
48435         * lib/unicase/u8-casecoll.c: New file.
48436         * lib/unicase/u-casecoll.h: New file.
48437         * modules/unicase/u8-casecoll: New file.
48438
48439         New module 'unicase/u32-casexfrm'.
48440         * lib/unicase/u32-casexfrm.c: New file.
48441         * modules/unicase/u32-casexfrm: New file.
48442
48443         New module 'unicase/u16-casexfrm'.
48444         * lib/unicase/u16-casexfrm.c: New file.
48445         * modules/unicase/u16-casexfrm: New file.
48446
48447         New module 'unicase/u8-casexfrm'.
48448         * lib/unicase/u8-casexfrm.c: New file.
48449         * lib/unicase/u-casexfrm.h: New file.
48450         * modules/unicase/u8-casexfrm: New file.
48451
48452         Tests for module 'unicase/u32-casecmp'.
48453         * modules/unicase/u32-casecmp-tests: New file.
48454         * tests/unicase/test-u32-casecmp.c: New file.
48455
48456         Tests for module 'unicase/u16-casecmp'.
48457         * modules/unicase/u16-casecmp-tests: New file.
48458         * tests/unicase/test-u16-casecmp.c: New file.
48459
48460         Tests for module 'unicase/u8-casecmp'.
48461         * modules/unicase/u8-casecmp-tests: New file.
48462         * tests/unicase/test-u8-casecmp.c: New file.
48463         * tests/unicase/test-casecmp.h: New file.
48464
48465         New module 'unicase/u32-casecmp'.
48466         * lib/unicase/u32-casecmp.c: New file.
48467         * modules/unicase/u32-casecmp: New file.
48468
48469         New module 'unicase/u16-casecmp'.
48470         * lib/unicase/u16-casecmp.c: New file.
48471         * modules/unicase/u16-casecmp: New file.
48472
48473         New module 'unicase/u8-casecmp'.
48474         * lib/unicase/u8-casecmp.c: New file.
48475         * lib/unicase/u-casecmp.h: New file.
48476         * modules/unicase/u8-casecmp: New file.
48477
48478         Tests for module 'unicase/u32-casefold'.
48479         * modules/unicase/u32-casefold-tests: New file.
48480         * tests/unicase/test-u32-casefold.c: New file.
48481
48482         Tests for module 'unicase/u16-casefold'.
48483         * modules/unicase/u16-casefold-tests: New file.
48484         * tests/unicase/test-u16-casefold.c: New file.
48485
48486         Tests for module 'unicase/u8-casefold'.
48487         * modules/unicase/u8-casefold-tests: New file.
48488         * tests/unicase/test-u8-casefold.c: New file.
48489
48490         New module 'unicase/u32-casefold'.
48491         * lib/unicase/u32-casefold.c: New file.
48492         * modules/unicase/u32-casefold: New file.
48493
48494         New module 'unicase/u16-casefold'.
48495         * lib/unicase/u16-casefold.c: New file.
48496         * modules/unicase/u16-casefold: New file.
48497
48498         New module 'unicase/u8-casefold'.
48499         * lib/unicase/u8-casefold.c: New file.
48500         * lib/unicase/u-casefold.h: New file.
48501         * modules/unicase/u8-casefold: New file.
48502
48503         New module 'unicase/tocasefold'.
48504         * lib/unicase/casefold.h: New file.
48505         * lib/unicase/tocasefold.c: New file.
48506         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48507         * modules/unicase/tocasefold: New file.
48508
48509         Tests for module 'unicase/u32-totitle'.
48510         * modules/unicase/u32-totitle-tests: New file.
48511         * tests/unicase/test-u32-totitle.c: New file.
48512
48513         Tests for module 'unicase/u16-totitle'.
48514         * modules/unicase/u16-totitle-tests: New file.
48515         * tests/unicase/test-u16-totitle.c: New file.
48516
48517         Tests for module 'unicase/u8-totitle'.
48518         * modules/unicase/u8-totitle-tests: New file.
48519         * tests/unicase/test-u8-totitle.c: New file.
48520
48521         New module 'unicase/u32-totitle'.
48522         * lib/unicase/u32-totitle.c: New file.
48523         * modules/unicase/u32-totitle: New file.
48524
48525         New module 'unicase/u16-totitle'.
48526         * lib/unicase/u16-totitle.c: New file.
48527         * modules/unicase/u16-totitle: New file.
48528
48529         New module 'unicase/u8-totitle'.
48530         * lib/unicase/u8-totitle.c: New file.
48531         * lib/unicase/u-totitle.h: New file.
48532         * modules/unicase/u8-totitle: New file.
48533
48534         Tests for module 'unicase/u32-tolower'.
48535         * modules/unicase/u32-tolower-tests: New file.
48536         * tests/unicase/test-u32-tolower.c: New file.
48537
48538         Tests for module 'unicase/u16-tolower'.
48539         * modules/unicase/u16-tolower-tests: New file.
48540         * tests/unicase/test-u16-tolower.c: New file.
48541
48542         Tests for module 'unicase/u8-tolower'.
48543         * modules/unicase/u8-tolower-tests: New file.
48544         * tests/unicase/test-u8-tolower.c: New file.
48545
48546         New module 'unicase/u32-tolower'.
48547         * lib/unicase/u32-tolower.c: New file.
48548         * modules/unicase/u32-tolower: New file.
48549
48550         New module 'unicase/u16-tolower'.
48551         * lib/unicase/u16-tolower.c: New file.
48552         * modules/unicase/u16-tolower: New file.
48553
48554         New module 'unicase/u8-tolower'.
48555         * lib/unicase/u8-tolower.c: New file.
48556         * modules/unicase/u8-tolower: New file.
48557
48558         Tests for module 'unicase/u32-toupper'.
48559         * modules/unicase/u32-toupper-tests: New file.
48560         * tests/unicase/test-u32-toupper.c: New file.
48561
48562         Tests for module 'unicase/u16-toupper'.
48563         * modules/unicase/u16-toupper-tests: New file.
48564         * tests/unicase/test-u16-toupper.c: New file.
48565
48566         Tests for module 'unicase/u8-toupper'.
48567         * modules/unicase/u8-toupper-tests: New file.
48568         * tests/unicase/test-u8-toupper.c: New file.
48569
48570         New module 'unicase/u32-toupper'.
48571         * lib/unicase/u32-toupper.c: New file.
48572         * modules/unicase/u32-toupper: New file.
48573
48574         New module 'unicase/u16-toupper'.
48575         * lib/unicase/u16-toupper.c: New file.
48576         * modules/unicase/u16-toupper: New file.
48577
48578         New module 'unicase/u8-toupper'.
48579         * lib/unicase/u8-toupper.c: New file.
48580         * modules/unicase/u8-toupper: New file.
48581
48582         New module 'unicase/u32-casemap'.
48583         * lib/unicase/u32-casemap.c: New file.
48584         * modules/unicase/u32-casemap: New file.
48585
48586         New module 'unicase/u16-casemap'.
48587         * lib/unicase/u16-casemap.c: New file.
48588         * modules/unicase/u16-casemap: New file.
48589
48590         New module 'unicase/u8-casemap'.
48591         * lib/unicase/unicasemap.h: New file.
48592         * lib/unicase/u8-casemap.c: New file.
48593         * lib/unicase/u-casemap.h: New file.
48594         * modules/unicase/u8-casemap: New file.
48595
48596         New module 'unicase/special-casing'.
48597         * lib/unicase/special-casing.h: New file.
48598         * lib/unicase/special-casing.c: New file.
48599         * lib/unicase/special-casing-table.gperf: New file, generated by
48600         gen-uni-tables.c.
48601         * modules/unicase/special-casing: New file.
48602
48603         Tests for module 'unicase/locale-language'.
48604         * modules/unicase/locale-language-tests: New file.
48605         * tests/unicase/test-locale-language.sh: New file.
48606         * tests/unicase/test-locale-language.c: New file.
48607
48608         New module 'unicase/locale-language'.
48609         * lib/unicase/locale-language.c: New file.
48610         * lib/unicase/locale-languages.gperf: New file.
48611         * modules/unicase/locale-language: New file.
48612
48613         Generate more tables for case conversion and case folding.
48614         * lib/gen-uni-tables.c (SCC_*): New enum items.
48615         (struct special_casing_rule): New type.
48616         (casing_rules, num_casing_rules, allocated_casing_rules): New
48617         variables.
48618         (add_casing_rule, fill_casing_rules): New functions.
48619         (struct casefold_rule): New type.
48620         (casefolding_rules, num_casefolding_rules,
48621         allocated_casefolding_rules): New variables.
48622         (fill_casefolding_rules): New function.
48623         (unicode_casefold): New variable.
48624         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
48625         sort_casing_rules, output_casing_rules): New functions.
48626         (main): Accept to more arguments: SpecialCasing.txt and
48627         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
48628         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
48629         Output mapping for casefolding.
48630
48631         * lib/unicase.h: Include stdbool.h, uninorm.h.
48632         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
48633         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
48634         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
48635         arguments.
48636         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
48637         resultp arguments.
48638         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
48639         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
48640         resultp arguments.
48641         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
48642         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
48643         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
48644         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
48645         declarations.
48646         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
48647
48648 2009-03-08  Bruno Haible  <bruno@clisp.org>
48649
48650         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48651         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
48652         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
48653         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48654
48655 2009-03-07  Bruno Haible  <bruno@clisp.org>
48656
48657         Adjust u*_normcmp, u*_normcoll API.
48658         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48659         u16_normcoll, u32_normcoll): Change failure conventions.
48660         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
48661         errno and return -1.
48662         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48663
48664 2009-03-07  Bruno Haible  <bruno@clisp.org>
48665
48666         Tests for module 'uninorm/u32-normcoll'.
48667         * modules/uninorm/u32-normcoll-tests: New file.
48668         * tests/uninorm/test-u32-normcoll.c: New file.
48669
48670         Tests for module 'uninorm/u16-normcoll'.
48671         * modules/uninorm/u16-normcoll-tests: New file.
48672         * tests/uninorm/test-u16-normcoll.c: New file.
48673
48674         Tests for module 'uninorm/u8-normcoll'.
48675         * modules/uninorm/u8-normcoll-tests: New file.
48676         * tests/uninorm/test-u8-normcoll.c: New file.
48677
48678 2009-03-07  Bruno Haible  <bruno@clisp.org>
48679
48680         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
48681         tests/uninorm/test-u32-normcmp.c.
48682         * tests/uninorm/test-u32-normcmp.c: Include it.
48683         (test_nonascii): New function, extracted from main. Add some more
48684         tests.
48685         (main): Invoke test_ascii and test_nonascii.
48686         * modules/uninorm/u32-normcmp-tests (Files): Add
48687         tests/uninorm/test-u32-normcmp.h.
48688         (Depends-on): Remove uninorm/u32-normcmp.
48689
48690         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
48691         tests/uninorm/test-u16-normcmp.c.
48692         * tests/uninorm/test-u16-normcmp.c: Include it.
48693         (test_nonascii): New function, extracted from main. Add some more
48694         tests.
48695         (main): Invoke test_ascii and test_nonascii.
48696         * modules/uninorm/u16-normcmp-tests (Files): Add
48697         tests/uninorm/test-u16-normcmp.h.
48698         (Depends-on): Remove uninorm/u16-normcmp.
48699
48700         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
48701         tests/uninorm/test-u8-normcmp.c.
48702         * tests/uninorm/test-u8-normcmp.c: Include it.
48703         (test_nonascii): New function, extracted from main. Add some more
48704         tests.
48705         (main): Invoke test_ascii and test_nonascii.
48706         * modules/uninorm/u8-normcmp-tests (Files): Add
48707         tests/uninorm/test-u8-normcmp.h.
48708         (Depends-on): Remove uninorm/u8-normcmp.
48709
48710 2009-03-07  Bruno Haible  <bruno@clisp.org>
48711
48712         New module 'uninorm/u32-normcoll'.
48713         * lib/uninorm/u32-normcoll.c: New file.
48714         * modules/uninorm/u32-normcoll: New file.
48715
48716         New module 'uninorm/u16-normcoll'.
48717         * lib/uninorm/u16-normcoll.c: New file.
48718         * modules/uninorm/u16-normcoll: New file.
48719
48720         New module 'uninorm/u8-normcoll'.
48721         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
48722         declarations.
48723         * lib/uninorm/u8-normcoll.c: New file.
48724         * lib/uninorm/u-normcoll.h: New file.
48725         * modules/uninorm/u8-normcoll: New file.
48726
48727         New module 'uninorm/u32-normxfrm'.
48728         * lib/uninorm/u32-normxfrm.c: New file.
48729         * modules/uninorm/u32-normxfrm: New file.
48730
48731         New module 'uninorm/u16-normxfrm'.
48732         * lib/uninorm/u16-normxfrm.c: New file.
48733         * modules/uninorm/u16-normxfrm: New file.
48734
48735         New module 'uninorm/u8-normxfrm'.
48736         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
48737         declarations.
48738         * lib/uninorm/u8-normxfrm.c: New file.
48739         * lib/uninorm/u-normxfrm.h: New file.
48740         * modules/uninorm/u8-normxfrm: New file.
48741
48742 2009-03-07  Bruno Haible  <bruno@clisp.org>
48743
48744         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
48745         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
48746         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
48747
48748 2009-03-07  Bruno Haible  <bruno@clisp.org>
48749
48750         New module 'memxfrm'.
48751         * lib/memxfrm.h: New file.
48752         * lib/memxfrm.c: New file.
48753         * modules/memxfrm: New file.
48754
48755 2009-03-07  Bruno Haible  <bruno@clisp.org>
48756
48757         New module 'memcmp2'.
48758         * lib/memcmp2.h: New file.
48759         * lib/memcmp2.c: New file.
48760         * modules/memcmp2: New file.
48761
48762 2009-03-07  Bruno Haible  <bruno@clisp.org>
48763
48764         Tests for module 'uninorm/decomposing-form'.
48765         * modules/uninorm/decomposing-form-tests: New file.
48766         * tests/uninorm/test-decomposing-form.c: New file.
48767
48768         New module 'uninorm/decomposing-form'.
48769         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
48770         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
48771         Add 'decomposing_variant' field.
48772         * lib/uninorm/decomposing-form.c: New file.
48773         * lib/uninorm/nfc.c (uninorm_nfc): Update.
48774         * lib/uninorm/nfd.c (uninorm_nfd): Update.
48775         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
48776         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
48777         * modules/uninorm/decomposing-form: New file.
48778         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
48779         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
48780
48781 2009-03-07  Bruno Haible  <bruno@clisp.org>
48782
48783         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
48784         strings.
48785
48786 2009-03-06  Bruno Haible  <bruno@clisp.org>
48787
48788         Tests for module 'uninorm/u32-normcmp'.
48789         * tests/uninorm/test-u32-normcmp.c: New file.
48790         * modules/uninorm/u32-normcmp-tests: New file.
48791
48792         Tests for module 'uninorm/u16-normcmp'.
48793         * tests/uninorm/test-u16-normcmp.c: New file.
48794         * modules/uninorm/u16-normcmp-tests: New file.
48795
48796         Tests for module 'uninorm/u8-normcmp'.
48797         * tests/uninorm/test-u8-normcmp.c: New file.
48798         * modules/uninorm/u8-normcmp-tests: New file.
48799
48800         New module 'uninorm/u32-normcmp'.
48801         * lib/uninorm/u32-normcmp.c: New file.
48802         * modules/uninorm/u32-normcmp: New file.
48803
48804         New module 'uninorm/u16-normcmp'.
48805         * lib/uninorm/u16-normcmp.c: New file.
48806         * modules/uninorm/u16-normcmp: New file.
48807
48808         New module 'uninorm/u8-normcmp'.
48809         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
48810         declarations.
48811         * lib/uninorm/u8-normcmp.c: New file.
48812         * lib/uninorm/u-normcmp.h: New file.
48813         * modules/uninorm/u8-normcmp: New file.
48814
48815 2009-03-06  Bruno Haible  <bruno@clisp.org>
48816
48817         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
48818         Reported by Eric Blake.
48819
48820 2009-03-06  Eric Blake  <ebb9@byu.net>
48821             Bruno Haible  <bruno@clisp.org>
48822
48823         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
48824         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
48825         condition.
48826         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48827         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
48828         condition.
48829         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48830
48831 2009-03-06  Eric Blake  <ebb9@byu.net>
48832
48833         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
48834         to avoid compiler warnings.
48835         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
48836
48837 2009-03-05  Bruno Haible  <bruno@clisp.org>
48838
48839         * tests/test-ftell.c (main): Disable test beyond end of file on
48840         FreeMiNT.
48841         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48842
48843 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
48844
48845         * lib/filevercmp.c: Move hidden files up in ordering.
48846         * tests/test-filevercmp.c: Add tests for hidden files.
48847
48848 2009-03-04  Bruno Haible  <bruno@clisp.org>
48849
48850         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
48851         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
48852         AM_CFLAGS.
48853         Reported by Simon Josefsson.
48854
48855 2009-03-03  Bruno Haible  <bruno@clisp.org>
48856
48857         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
48858         Reported by Simon Josefsson.
48859
48860         * doc/ld-version-script.texi: Update node reference.
48861
48862 2009-03-03  Bruno Haible  <bruno@clisp.org>
48863
48864         * modules/visibility (License): Change to 'unlimited'.
48865         Suggested by Simon Josefsson.
48866
48867 2009-03-03  Jim Meyering  <meyering@redhat.com>
48868
48869         unlinkdir: cannot_unlink_dir may modify process state
48870         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
48871         it's neither thread-safe nor appropriate for use in a library.
48872
48873 2009-03-03  Eric Blake  <ebb9@byu.net>
48874
48875         test-closein: silence test under Darwin
48876         * tests/test-closein.sh: Ignore stderr from cat, since we don't
48877         care if it dies from EPIPE or EBADF.
48878
48879 2009-03-03  Bruno Haible  <bruno@clisp.org>
48880
48881         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
48882         earlier.
48883         * doc/visibility.texi: Fix @node and @section.
48884
48885 2009-03-03  Simon Josefsson  <simon@josefsson.org>
48886
48887         * doc/gnulib.texi: Link to sections for ld version script and
48888         visibility.
48889         * doc/visibility.texi: Add @node and @section.
48890         * modules/ld-version-script: New module.
48891         * m4/ld-version-script.m4: New file.
48892         * doc/ld-version-script.texi: New file.
48893
48894 2009-03-02  David Lutterkort  <lutter@redhat.com>
48895
48896         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
48897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48898
48899 2009-03-02  Bruno Haible  <bruno@clisp.org>
48900
48901         * doc/visibility.texi: Mention libtool's -export-symbols option.
48902
48903 2009-03-02  Jim Meyering  <meyering@redhat.com>
48904
48905         announce-gen: new option: --no-print-checksums
48906         * build-aux/announce-gen (usage): Describe it.
48907         (print_checksums): Print a newline here, not in the [*] footnote.
48908         (main): Honor it.
48909
48910 2009-03-01  Bruno Haible  <bruno@clisp.org>
48911
48912         Use socklen_t in the native Windows replacements prototypes.
48913         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
48914         instead of 'int'.
48915         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48916         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48917         * modules/getsockopt (Depends-on): Add socklen.
48918         * modules/setsockopt (Depends-on): Add socklen.
48919
48920 2009-03-01  Bruno Haible  <bruno@clisp.org>
48921
48922         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
48923         least 4.2.
48924
48925 2009-03-01  Eric Blake  <ebb9@byu.net>
48926             Bruno Haible  <bruno@clisp.org>
48927
48928         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
48929         error messages.
48930         * lib/wait-process.c (wait_subprocess): Omit error message about
48931         deadly signal sent to the child of termsigp != NULL.
48932
48933 2009-03-01  Eric Blake  <ebb9@byu.net>
48934
48935         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
48936
48937 2009-03-01  Bruno Haible  <bruno@clisp.org>
48938
48939         Avoid a gcc warning.
48940         * tests/test-sched.c (b): Make global.
48941         Reported by Eric Blake.
48942
48943 2009-01-19  Martin Lambers  <marlam@marlam.de>
48944
48945         Provide POSIX semantics for socket timeout options on W32.
48946         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
48947         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
48948         * modules/setsockopt: Depend on sys_time module for struct timeval.
48949         * modules/getsockopt: Depend on sys_time module for struct timeval.
48950
48951 2009-03-01  Simon Josefsson  <simon@josefsson.org>
48952
48953         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
48954         __USE_GNU, for consistency with netdb.in.h.
48955         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48956
48957 2009-03-01  Bruno Haible  <bruno@clisp.org>
48958
48959         More support for FreeMiNT.
48960         * lib/fseeko.c (rpl_fseeko): Complete last commit.
48961         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48962
48963 2009-03-01  Bruno Haible  <bruno@clisp.org>
48964
48965         More support for FreeMiNT.
48966         * lib/fpurge.c (fpurge): Correct last commit.
48967         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48968
48969 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48970
48971         Fix unportable awk script in vc-list-files.
48972         * build-aux/vc-list-files: In the replacement awk script, use
48973         substr with a second argument of 1, not zero.
48974         Report by Simon Josefsson.
48975
48976 2009-02-28  Bruno Haible  <bruno@clisp.org>
48977
48978         More support for FreeMiNT.
48979         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
48980         to FreeMiNT today.
48981         * lib/fwriting.c (fwriting): Likewise.
48982         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
48983
48984 2009-02-28  Bruno Haible  <bruno@clisp.org>
48985
48986         * tests/test-freadseek.c (main): Disable test beyond end of file on
48987         FreeMiNT.
48988         * tests/test-ftello.c (main): Likewise.
48989         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48990
48991 2009-02-28  Bruno Haible  <bruno@clisp.org>
48992
48993         Add tentative support for FreeMiNT.
48994         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
48995         * lib/fpurge.c (fpurge): Likewise.
48996         * lib/freadable.c (freadable): Likewise.
48997         * lib/freading.c (freading): Likewise.
48998         * lib/freadptr.c (freadptr): Likewise.
48999         * lib/freadseek.c (freadptrinc): Likewise.
49000         * lib/fseeko.c (rpl_fseeko): Likewise.
49001         * lib/fseterr.c (fseterr): Likewise.
49002         * lib/fwritable.c (fwritable): Likewise.
49003         * lib/fwriting.c (fwriting): Likewise.
49004         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49005         Hourihane.
49006         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49007
49008 2009-02-28  Bruno Haible  <bruno@clisp.org>
49009
49010         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49011         SIGCHLD.
49012         Reported by Jim Meyering.
49013
49014 2009-02-28  Bruno Haible  <bruno@clisp.org>
49015
49016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49017         Mention the results of these tests on various platforms.
49018         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49019         order.
49020         * doc/posix-functions/printf.texi: Likewise.
49021         * doc/posix-functions/snprintf.texi: Likewise.
49022         * doc/posix-functions/sprintf.texi: Likewise.
49023         * doc/posix-functions/vfprintf.texi: Likewise.
49024         * doc/posix-functions/vprintf.texi: Likewise.
49025         * doc/posix-functions/vsnprintf.texi: Likewise.
49026         * doc/posix-functions/vsprintf.texi: Likewise.
49027         * doc/glibc-functions/obstack_printf.texi: Likewise.
49028         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49029
49030 2009-02-28  Bruno Haible  <bruno@clisp.org>
49031
49032         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49033         Reported by Loïc Minier <lool@dooz.org>.
49034
49035 2009-02-27  Bruno Haible  <bruno@clisp.org>
49036
49037         * gnulib-tool (func_import): Make the sed expression used to create the
49038         sed script for updating the .gitignore file POSIX compliant.
49039         Reported by Eric Blake.
49040
49041 2009-02-27  Bruno Haible  <bruno@clisp.org>
49042
49043         * gnulib-tool (sed): Don't alias as "sed --posix".
49044         Reported by Eric Blake.
49045
49046 2009-02-27  Bruno Haible  <bruno@clisp.org>
49047
49048         Avoid test link errors.
49049         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49050         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49051         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49052         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49054
49055 2009-02-27  Bruno Haible  <bruno@clisp.org>
49056
49057         Avoid spurious "(cached)" in configure output.
49058         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49059         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49060         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49061         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49062         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49063         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49064         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49065         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49066         Reported by Eric Blake.
49067
49068 2009-02-27  Eric Blake  <ebb9@byu.net>
49069
49070         printf: fix regression in previous patch
49071         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49072
49073 2009-02-27  Bruno Haible  <bruno@clisp.org>
49074
49075         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49076         value.
49077         * lib/stdint.in.h: Likewise.
49078         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49079
49080 2009-02-27  Eric Blake  <ebb9@byu.net>
49081
49082         doc: mention more functions added in cygwin 1.7.0
49083         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49084         addition.
49085         * doc/posix-functions/open_wmemstream.texi: Likewise.
49086         * doc/posix-functions/wcsnlen.texi: Likewise.
49087         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49088         * doc/posix-functions/wcstod.texi: Likewise.
49089         * doc/posix-functions/wcstof.texi: Likewise.
49090         * doc/posix-functions/wcstoimax.texi: Likewise.
49091         * doc/posix-functions/wcstok.texi: Likewise.
49092         * doc/posix-functions/wcstoumax.texi: Likewise.
49093
49094         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49095         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49096         * doc/posix-functions/fprintf.texi: Update.
49097         * doc/posix-functions/printf.texi: Update.
49098         * doc/posix-functions/snprintf.texi: Update.
49099         * doc/posix-functions/sprintf.texi: Update.
49100         * doc/posix-functions/vfprintf.texi: Update.
49101         * doc/posix-functions/vprintf.texi: Update.
49102         * doc/posix-functions/vsnprintf.texi: Update.
49103         * doc/posix-functions/vsprintf.texi: Update.
49104         * doc/glibc-functions/obstack_printf.texi: Update.
49105         * doc/glibc-functions/obstack_vprintf.texi: Update.
49106
49107 2009-02-26  Eric Blake  <ebb9@byu.net>
49108
49109         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49110         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49111         compilation bug by using runtime conversion.
49112         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49113         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49114         * modules/ceill-tests (Files): Use nan.h.
49115         * modules/floorl-tests (Files): Likewise.
49116         * modules/frexpl-tests (Files): Likewise.
49117         * modules/isnanl-tests (Files): Likewise.
49118         * modules/ldexpl-tests (Files): Likewise.
49119         * modules/roundl-tests (Files): Likewise.
49120         * modules/truncl-tests (Files): Likewise.
49121         * tests/test-ceill.c (main): Use a working NaN.
49122         * tests/test-floorl.c (main): Likewise.
49123         * tests/test-frexpl.c (main): Likewise.
49124         * tests/test-isnan.c (test_long_double): Likewise.
49125         * tests/test-isnanl.h (main): Likewise.
49126         * tests/test-ldexpl.h (main): Likewise.
49127         * tests/test-roundl.h (main): Likewise.
49128         * tests/test-truncl.h (main): Likewise.
49129         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49130
49131 2009-02-26  Eric Blake  <ebb9@byu.net>
49132             Bruno Haible  <bruno@clisp.org>
49133
49134         Work around a *printf bug with %ls on Solaris.
49135         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49136         precision is specified, sprintf stops converting the wide string
49137         argument when the number of bytes that have been produced by this
49138         conversion equals or exceeds the precision.
49139         * doc/posix-functions/fprintf.texi: Update.
49140         * doc/posix-functions/printf.texi: Update.
49141         * doc/posix-functions/snprintf.texi: Update.
49142         * doc/posix-functions/sprintf.texi: Update.
49143         * doc/posix-functions/vfprintf.texi: Update.
49144         * doc/posix-functions/vprintf.texi: Update.
49145         * doc/posix-functions/vsnprintf.texi: Update.
49146         * doc/posix-functions/vsprintf.texi: Update.
49147         * doc/glibc-functions/obstack_printf.texi: Update.
49148         * doc/glibc-functions/obstack_vprintf.texi: Update.
49149
49150 2009-02-26  Eric Blake  <ebb9@byu.net>
49151
49152         stdlib: favor compiler check of random.h
49153         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49154         to avoid an ObjC random.h installed by Swarm.
49155
49156 2009-02-26  Bruno Haible  <bruno@clisp.org>
49157
49158         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49159         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49160         Reported by Gary V. Vaughan <gary@gnu.org>.
49161
49162 2009-02-26  Bruno Haible  <bruno@clisp.org>
49163
49164         Fix *printf behaviour regarding the %ls directive.
49165         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49166         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49167         NEED_PRINTF_DIRECTIVE_LS.
49168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49169         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49170         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49171         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49172         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49173         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49174         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49175         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49176         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49177         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49178         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49179         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49183         * doc/posix-functions/fprintf.texi: Update.
49184         * doc/posix-functions/printf.texi: Update.
49185         * doc/posix-functions/snprintf.texi: Update.
49186         * doc/posix-functions/sprintf.texi: Update.
49187         * doc/posix-functions/vfprintf.texi: Update.
49188         * doc/posix-functions/vprintf.texi: Update.
49189         * doc/posix-functions/vsnprintf.texi: Update.
49190         * doc/posix-functions/vsprintf.texi: Update.
49191         * doc/glibc-functions/obstack_printf.texi: Update.
49192         * doc/glibc-functions/obstack_vprintf.texi: Update.
49193         Reported by Eric Blake.
49194
49195 2009-02-25  Bruno Haible  <bruno@clisp.org>
49196
49197         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49198         with known value.
49199         Reported by Gary V. Vaughan <gary@gnu.org>.
49200
49201 2009-02-25  Bruno Haible  <bruno@clisp.org>
49202
49203         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49204         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49205         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49206         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49207         Reported by Gary V. Vaughan <gary@gnu.org>.
49208
49209 2009-02-25  Bruno Haible  <bruno@clisp.org>
49210
49211         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49212         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49213         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49214         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49215         Reported by Gary V. Vaughan <gary@gnu.org>.
49216
49217 2009-02-25  Eric Blake  <ebb9@byu.net>
49218
49219         tests: skip fseek/ftell tests if ungetc is broken
49220         * m4/ungetc.m4: New file.
49221         * modules/fseek-tests: Split test, so ungetc dependency is
49222         separate from rest of test.
49223         * modules/fseeko-tests: Likewise.
49224         * modules/ftell-tests: Likewise.
49225         * modules/ftello-tests: Likewise.
49226         * tests/test-fseek.c (main): Isolate ungetc dependency.
49227         * tests/test-fseeko.c (main): Likewise.
49228         * tests/test-ftell.c (main): Likewise.
49229         * tests/test-ftello.c (main): Likewise.
49230         * tests/test-fseek2.sh: New file.
49231         * tests/test-fseeko2.sh: Likewise.
49232         * tests/test-ftell2.sh: Likewise.
49233         * tests/test-ftello2.sh: Likewise.
49234
49235 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49236
49237         test-getaddrinfo: fix usage of skip return code 77
49238         * tests/test-gettaddrinfo.c: Return skip code 77 only
49239         for first occurrence of skip (4x77 is not 77)
49240
49241 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49242
49243         strtod: avoid C99 decl-after-statement
49244         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49245
49246 2009-02-24  Eric Blake  <ebb9@byu.net>
49247
49248         strtod: detect HP-UX 11.31 bug
49249         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49250         Reported by Gary V. Vaughan.
49251
49252 2009-02-23  Bruno Haible  <bruno@clisp.org>
49253
49254         Fix invalid read past end of memory block.
49255         * lib/vasnprintf.c (DCHAR_SET): Define.
49256         (local_wcslen): Define only when needed.
49257         (local_strnlen, local_wcsnlen): New functions.
49258         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49259         directives that involve a conversion ourselves.
49260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49261         wcsnlen, mbrtowc, wcrtomb.
49262         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49263         * tests/test-vasprintf-posix.c (test_function): Likewise.
49264         * tests/test-snprintf-posix.h (test_function): Likewise.
49265         * tests/test-sprintf-posix.h (test_function): Likewise.
49266         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49267
49268 2009-02-22  Bruno Haible  <bruno@clisp.org>
49269
49270         Implement new clarified decomposition of Hangul syllables.
49271         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49272         of type LTV, return only a pairwise decomposition.
49273         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49274         Likewise.
49275         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49276         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49277         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49278
49279 2009-02-22  Bruno Haible  <bruno@clisp.org>
49280
49281         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49282         zero-length results and shrink excess allocated memory.
49283         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49284         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49285         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49286         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49287         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49288         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49289         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49290         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49291         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49292         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49293         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49294         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49295
49296 2009-02-21  Bruno Haible  <bruno@clisp.org>
49297
49298         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49299         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49300         spaces after a period. Put a space between a macro name and its
49301         argument list. Trivial rewordings.
49302         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49303         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49304         (main): Return 0 explicitly.
49305
49306 2009-02-21  Bruno Haible  <bruno@clisp.org>
49307
49308         Tests for module 'uninorm/filter'.
49309         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49310         * modules/uninorm/filter-tests: New file.
49311
49312         New module 'uninorm/filter'.
49313         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49314         uninorm_filter_flush, uninorm_filter_free): New declarations.
49315         * lib/uninorm/uninorm-filter.c: New file.
49316         * modules/uninorm/filter: New file.
49317
49318 2009-02-21  Bruno Haible  <bruno@clisp.org>
49319
49320         Tests for module 'uninorm/nfkc'.
49321         * tests/uninorm/test-nfkc.c: New file.
49322         * tests/uninorm/test-u8-nfkc.c: New file.
49323         * tests/uninorm/test-u16-nfkc.c: New file.
49324         * tests/uninorm/test-u32-nfkc.c: New file.
49325         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49326         * tests/uninorm/test-u32-nfkc-big.c: New file.
49327         * modules/uninorm/nfkc-tests: New file.
49328
49329         New module 'uninorm/nfkc'.
49330         * lib/uninorm/nfkc.c: New file.
49331         * modules/uninorm/nfkc: New file.
49332
49333         Tests for module 'uninorm/nfkd'.
49334         * tests/uninorm/test-nfkd.c: New file.
49335         * tests/uninorm/test-u8-nfkd.c: New file.
49336         * tests/uninorm/test-u16-nfkd.c: New file.
49337         * tests/uninorm/test-u32-nfkd.c: New file.
49338         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49339         * tests/uninorm/test-u32-nfkd-big.c: New file.
49340         * modules/uninorm/nfkd-tests: New file.
49341
49342         New module 'uninorm/nfkd'.
49343         * lib/uninorm/nfkd.c: New file.
49344         * modules/uninorm/nfkd: New file.
49345
49346         Tests for module 'uninorm/nfc'.
49347         * tests/uninorm/test-nfc.c: New file.
49348         * tests/uninorm/test-u8-nfc.c: New file.
49349         * tests/uninorm/test-u16-nfc.c: New file.
49350         * tests/uninorm/test-u32-nfc.c: New file.
49351         * tests/uninorm/test-u32-nfc-big.sh: New file.
49352         * tests/uninorm/test-u32-nfc-big.c: New file.
49353         * modules/uninorm/nfc-tests: New file.
49354
49355         New module 'uninorm/nfc'.
49356         * lib/uninorm/nfc.c: New file.
49357         * modules/uninorm/nfc: New file.
49358
49359         Tests for module 'uninorm/nfd'.
49360         * tests/uninorm/test-nfd.c: New file.
49361         * tests/uninorm/test-u8-nfd.c: New file.
49362         * tests/uninorm/test-u16-nfd.c: New file.
49363         * tests/uninorm/test-u32-nfd.c: New file.
49364         * tests/uninorm/test-u32-nfd-big.sh: New file.
49365         * tests/uninorm/test-u32-nfd-big.c: New file.
49366         * tests/uninorm/test-u32-normalize-big.h: New file.
49367         * tests/uninorm/test-u32-normalize-big.c: New file.
49368         * tests/uninorm/NormalizationTest.txt: New file, created from
49369         Unicode 5.1.0 NormalizationTest.txt.
49370         * modules/uninorm/nfd-tests: New file.
49371
49372         New module 'uninorm/nfd'.
49373         * lib/uninorm/nfd.c: New file.
49374         * modules/uninorm/nfd: New file.
49375
49376         New module 'uninorm/u32-normalize'.
49377         * lib/uninorm/u32-normalize.c: New file.
49378         * modules/uninorm/u32-normalize: New file.
49379
49380         New module 'uninorm/u16-normalize'.
49381         * lib/uninorm/u16-normalize.c: New file.
49382         * modules/uninorm/u16-normalize: New file.
49383
49384         New module 'uninorm/u8-normalize'.
49385         * lib/uninorm/u8-normalize.c: New file.
49386         * lib/uninorm/normalize-internal.h: New file.
49387         * lib/uninorm/u-normalize-internal.h: New file.
49388         * modules/uninorm/u8-normalize: New file.
49389
49390         New module 'uninorm/decompose-internal'.
49391         * lib/uninorm/decompose-internal.c: New file.
49392         * modules/uninorm/decompose-internal: New file.
49393
49394         Tests for module 'uninorm/composition'.
49395         * tests/uninorm/test-composition.c: New file.
49396         * modules/uninorm/composition-tests: New file.
49397
49398         New module 'uninorm/composition'.
49399         * lib/uninorm/composition.c: New file.
49400         * lib/uninorm/composition-table.gperf: New file, generated by
49401         gen-uni-tables.
49402         * modules/uninorm/composition: New file.
49403
49404         Tests for module 'uninorm/compat-decomposition'.
49405         * tests/uninorm/test-compat-decomposition.c: New file.
49406         * modules/uninorm/compat-decomposition-tests: New file.
49407
49408         New module 'uninorm/compat-decomposition'.
49409         * lib/uninorm/decompose-internal.h: New file.
49410         * lib/uninorm/compat-decomposition.c: New file.
49411         * modules/uninorm/compat-decomposition: New file.
49412
49413         Tests for module 'uninorm/canonical-decomposition'.
49414         * tests/uninorm/test-canonical-decomposition.c: New file.
49415         * modules/uninorm/canonical-decomposition-tests: New file.
49416
49417         New module 'uninorm/canonical-decomposition'.
49418         * lib/uninorm/canonical-decomposition.c: New file.
49419         * modules/uninorm/canonical-decomposition: New file.
49420
49421         Tests for module 'uninorm/decomposition'.
49422         * tests/uninorm/test-decomposition.c: New file.
49423         * modules/uninorm/decomposition-tests: New file.
49424
49425         New module 'uninorm/decomposition'.
49426         * lib/uninorm/decomposition.c: New file.
49427         * modules/uninorm/decomposition: New file.
49428
49429         New module 'uninorm/decomposition-table'.
49430         * lib/uninorm/decomposition-table.h: New file.
49431         * lib/uninorm/decomposition-table.c: New file.
49432         * lib/uninorm/decomposition-table1.h: New file, generated by
49433         gen-uni-tables.
49434         * lib/uninorm/decomposition-table2.h: New file, generated by
49435         gen-uni-tables.
49436         * modules/uninorm/decomposition-table: New file.
49437
49438         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49439         (UC_DECOMP_*): New enumeration items.
49440         (get_decomposition): New function.
49441         (struct decomp_table): New type.
49442         (output_decomposition, output_decomposition_tables): New functions.
49443         (unicode_composition_exclusions): New variable.
49444         (fill_composition_exclusions, debug_output_composition_tables): New
49445         functions.
49446         (main): Accept one more argument. Invoke fill_composition_exclusions.
49447         Output decomposition and composition tables.
49448
49449         New module 'uninorm/base'.
49450         * lib/uninorm.h: New file.
49451         * lib/unictype.h: Update comment.
49452         * modules/uninorm/base: New file.
49453
49454 2009-02-21  David Lutterkort  <lutter@redhat.com>
49455
49456         Tests for module 'safe-alloc'.
49457         * tests/test-safe-alloc.c: New file.
49458         * modules/safe-alloc-tests: New file.
49459
49460         New module 'safe-alloc'.
49461         * lib/safe-alloc.h: New file.
49462         * lib/safe-alloc.c: New file.
49463         * m4/safe-alloc.m4: New file.
49464         * modules/safe-alloc: New file.
49465         * doc/safe-alloc.texi: New file.
49466         * doc/gnulib.texi: Include it.
49467         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49468         safe-alloc.
49469
49470 2009-02-18  Bruno Haible  <bruno@clisp.org>
49471
49472         Fix link error on non-glibc systems.
49473         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49474         variable.
49475         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49476
49477 2009-02-18  Jim Meyering  <meyering@redhat.com>
49478
49479         fts: avoid used-uninitialized error due to recent change
49480         * lib/fts.c (fts_read): Guard uses of the new member,
49481         parent->fts_n_dirs_remaining, since it's not relevant for
49482         the parent of a directory specified on the command-line.
49483
49484 2009-02-17  James Youngman  <jay@gnu.org>
49485             Bruno Haible  <bruno@clisp.org>
49486
49487         * m4/include_next.m4: Reformulate comment.
49488
49489 2009-02-16  Jim Meyering  <meyering@redhat.com>
49490
49491         fts: add #if guards so that the fts_lgpl module still builds
49492         * lib/fts.c: Guard just-added hash-table-using parts with
49493         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49494         Reported by Simon Josefsson.
49495
49496 2009-02-15  Bruno Haible  <bruno@clisp.org>
49497
49498         * modules/array-mergesort-tests: New file.
49499         * tests/test-array-mergesort.c: New file.
49500
49501         New module 'array-mergesort'.
49502         * modules/array-mergesort: New file.
49503         * lib/array-mergesort.h: New file.
49504
49505 2009-02-15  Bruno Haible  <bruno@clisp.org>
49506
49507         Fix 2009-02-07 commit.
49508         * lib/gen-uni-tables.c (output_predicate, output_category,
49509         output_combclass, output_bidi_category, output_decimal_digit,
49510         output_digit, output_numeric, output_mirror, output_scripts,
49511         output_ident_category, output_simple_mapping): Fix format directives.
49512         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49513
49514 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49515
49516         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49517         fixes are available from IBM.
49518
49519 2009-02-13  Jim Meyering  <meyering@redhat.com>
49520
49521         fts: arrange not to stat non-directories in more cases
49522         This makes GNU find (when it doesn't need to stat each file)
49523         *much* more efficient at traversing reiserfs file systems.
49524         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49525         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49526         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49527         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49528         (leaf_optimization_applies): New function.
49529         (LCO_hash, LCO_compare): New helper functions.
49530         (link_count_optimize_ok): New function.
49531         (fts_stat): Initialize new member (if dir).
49532         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49533         we've just stat'ed a directory.  Skip the stat call when possible.
49534         ---
49535         Note this AFS-related exchange:
49536         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49537         and note find's pioctl call in find/fstype.c.
49538         But that is necessary only if you want to enable the
49539         optimization for AFS, and for now, I don't.
49540
49541         fts: move a function definition "up" (no semantic change)
49542         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49543         "up" to precede upcoming use of a related function.
49544
49545 2009-02-11  Jim Meyering  <meyering@redhat.com>
49546
49547         fts: correct internal computation of nlinks (optimization-related)
49548         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49549         whether the current entry is a directory, so don't test it.
49550
49551 2009-02-10  Bruno Haible  <bruno@clisp.org>
49552
49553         Tests for module 'uniwbrk/ulc-wordbreaks'.
49554         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49555         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49556         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49557
49558         Tests for module 'uniwbrk/u32-wordbreaks'.
49559         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49560         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49561
49562         Tests for module 'uniwbrk/u16-wordbreaks'.
49563         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49564         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49565
49566         Tests for module 'uniwbrk/u8-wordbreaks'.
49567         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49568         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49569
49570 2009-02-10  Bruno Haible  <bruno@clisp.org>
49571
49572         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49573         property.
49574         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49575         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49576         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49577
49578 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49579
49580         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49581         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49582
49583 2009-02-10  Bruno Haible  <bruno@clisp.org>
49584
49585         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49586         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49587         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49588         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49589         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49590         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49591
49592 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49593
49594         * lib/sockets.h (gl_fd_to_handle): New function.
49595
49596         * tests/test-sockets.c: Call gl_fd_to_handle.
49597
49598 2009-02-09  Bruno Haible  <bruno@clisp.org>
49599
49600         * doc/havelib.texi: Document the conventions on bi-arch systems.
49601
49602 2009-02-08  Bruno Haible  <bruno@clisp.org>
49603
49604         Document the AC_LIB_LINKFLAGS macro.
49605         * doc/havelib.texi: New file, mostly written on 2005-05-24.
49606         * doc/gnulib.texi: Include it.
49607
49608 2009-02-08  Bruno Haible  <bruno@clisp.org>
49609
49610         Fix wrong order of sections, compared to TOC.
49611         * doc/gnulib.texi: Include relocatable-maint.texi after the
49612         "Regular expressions" node, not before.
49613
49614 2009-02-08  Bruno Haible  <bruno@clisp.org>
49615
49616         Tests for module 'unicase/totitle'.
49617         * modules/unicase/totitle-tests: New file.
49618
49619         Tests for module 'unicase/tolower'.
49620         * modules/unicase/tolower-tests: New file.
49621
49622         Tests for module 'unicase/toupper'.
49623         * modules/unicase/toupper-tests: New file.
49624         * tests/unicase/test-mapping-part1.h: New file.
49625         * tests/unicase/test-mapping-part2.h: New file.
49626
49627         New module 'unicase/totitle'.
49628         * modules/unicase/totitle: New file.
49629         * lib/unicase/totitle.c: New file.
49630
49631         New module 'unicase/tolower'.
49632         * modules/unicase/tolower: New file.
49633         * lib/unicase/tolower.c: New file.
49634
49635         New module 'unicase/toupper'.
49636         * modules/unicase/toupper: New file.
49637         * lib/unicase/toupper.c: New file.
49638         * lib/unicase/simple-mapping.h: New file.
49639
49640         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
49641         (mapping_table): New structure.
49642         (output_simple_mapping): New function.
49643         (main): Invoke output_simple_mapping_test and output_simple_mapping.
49644         * modules/gen-uni-tables (Description): Update.
49645         * lib/unicase/toupper.h: New file, automatically generated by
49646         gen-uni-tables.
49647         * lib/unicase/tolower.h: New file, automatically generated by
49648         gen-uni-tables.
49649         * lib/unicase/totitle.h: New file, automatically generated by
49650         gen-uni-tables.
49651         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
49652         gen-uni-tables.
49653         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
49654         gen-uni-tables.
49655         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
49656         gen-uni-tables.
49657
49658         New module 'unicase/base'.
49659         * modules/unicase/base: New file.
49660         * lib/unicase.h: New file.
49661
49662 2009-02-08  Bruno Haible  <bruno@clisp.org>
49663
49664         New module 'uniwbrk/ulc-wordbreaks'.
49665         * modules/uniwbrk/ulc-wordbreaks: New file.
49666         * lib/uniwbrk/ulc-wordbreaks.c: New file.
49667
49668         New module 'uniwbrk/u32-wordbreaks'.
49669         * modules/uniwbrk/u32-wordbreaks: New file.
49670         * lib/uniwbrk/u32-wordbreaks.c: New file.
49671
49672         New module 'uniwbrk/u16-wordbreaks'.
49673         * modules/uniwbrk/u16-wordbreaks: New file.
49674         * lib/uniwbrk/u16-wordbreaks.c: New file.
49675
49676         New module 'uniwbrk/u8-wordbreaks'.
49677         * modules/uniwbrk/u8-wordbreaks: New file.
49678         * lib/uniwbrk/u8-wordbreaks.c: New file.
49679         * lib/uniwbrk/u-wordbreaks.h: New file.
49680
49681         New module 'uniwbrk/table'.
49682         * modules/uniwbrk/table: New file.
49683         * lib/uniwbrk/wbrktable.h: New file.
49684         * lib/uniwbrk/wbrktable.c: New file.
49685
49686         New module 'uniwbrk/wordbreak-property'.
49687         * modules/uniwbrk/wordbreak-property: New file.
49688         * lib/uniwbrk/wordbreak-property.c: New file.
49689
49690         * lib/gen-uni-tables.c (WBP_*): New enum items.
49691         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
49692         (unicode_org_wbp): New variable.
49693         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
49694         New functions.
49695         (wbp_table): New structure.
49696         (output_wbp, output_wbrk_tables): New functions.
49697         (main): Accept additional argument. Invoke fill_org_wbp,
49698         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
49699         output_wbrk_tables.
49700         * modules/gen-uni-tables (Description): Update.
49701         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
49702         gen-uni-tables.
49703
49704         New module 'uniwbrk/base'.
49705         * modules/uniwbrk/base: New file.
49706         * lib/uniwbrk.h: New file.
49707
49708 2009-02-08  Bruno Haible  <bruno@clisp.org>
49709
49710         Update to Unicode 5.1.0.
49711         * lib/gen-uni-tables.c (is_property_alphabetic): Include
49712         U+2185..U+2188.
49713         (is_property_default_ignorable_code_point): Don't include characters
49714         of category Cc or Cs and not-a-characters.
49715         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
49716         U+0D79, U+109E, U+109F, U+A60C.
49717         * lib/unictype/bidi_of.h: Regenerated.
49718         * lib/unictype/blocks.h: Regenerated.
49719         * lib/unictype/categ_C.h: Regenerated.
49720         * lib/unictype/categ_Cf.h: Regenerated.
49721         * lib/unictype/categ_Cn.h: Regenerated.
49722         * lib/unictype/categ_L.h: Regenerated.
49723         * lib/unictype/categ_Ll.h: Regenerated.
49724         * lib/unictype/categ_Lm.h: Regenerated.
49725         * lib/unictype/categ_Lo.h: Regenerated.
49726         * lib/unictype/categ_Lu.h: Regenerated.
49727         * lib/unictype/categ_M.h: Regenerated.
49728         * lib/unictype/categ_Mc.h: Regenerated.
49729         * lib/unictype/categ_Me.h: Regenerated.
49730         * lib/unictype/categ_Mn.h: Regenerated.
49731         * lib/unictype/categ_N.h: Regenerated.
49732         * lib/unictype/categ_Nd.h: Regenerated.
49733         * lib/unictype/categ_Nl.h: Regenerated.
49734         * lib/unictype/categ_No.h: Regenerated.
49735         * lib/unictype/categ_P.h: Regenerated.
49736         * lib/unictype/categ_Pd.h: Regenerated.
49737         * lib/unictype/categ_Pe.h: Regenerated.
49738         * lib/unictype/categ_Pf.h: Regenerated.
49739         * lib/unictype/categ_Pi.h: Regenerated.
49740         * lib/unictype/categ_Po.h: Regenerated.
49741         * lib/unictype/categ_Ps.h: Regenerated.
49742         * lib/unictype/categ_S.h: Regenerated.
49743         * lib/unictype/categ_Sk.h: Regenerated.
49744         * lib/unictype/categ_Sm.h: Regenerated.
49745         * lib/unictype/categ_So.h: Regenerated.
49746         * lib/unictype/categ_of.h: Regenerated.
49747         * lib/unictype/combining.h: Regenerated.
49748         * lib/unictype/ctype_alnum.h: Regenerated.
49749         * lib/unictype/ctype_alpha.h: Regenerated.
49750         * lib/unictype/ctype_graph.h: Regenerated.
49751         * lib/unictype/ctype_lower.h: Regenerated.
49752         * lib/unictype/ctype_print.h: Regenerated.
49753         * lib/unictype/ctype_punct.h: Regenerated.
49754         * lib/unictype/ctype_upper.h: Regenerated.
49755         * lib/unictype/decdigit.h: Regenerated.
49756         * lib/unictype/digit.h: Regenerated.
49757         * lib/unictype/mirror.h: Regenerated.
49758         * lib/unictype/numeric.h: Regenerated.
49759         * lib/unictype/pr_alphabetic.h: Regenerated.
49760         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
49761         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
49762         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
49763         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
49764         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
49765         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
49766         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
49767         * lib/unictype/pr_combining.h: Regenerated.
49768         * lib/unictype/pr_dash.h: Regenerated.
49769         * lib/unictype/pr_decimal_digit.h: Regenerated.
49770         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
49771         * lib/unictype/pr_deprecated.h: Regenerated.
49772         * lib/unictype/pr_diacritic.h: Regenerated.
49773         * lib/unictype/pr_extender.h: Regenerated.
49774         * lib/unictype/pr_format_control.h: Regenerated.
49775         * lib/unictype/pr_grapheme_base.h: Regenerated.
49776         * lib/unictype/pr_grapheme_extend.h: Regenerated.
49777         * lib/unictype/pr_grapheme_link.h: Regenerated.
49778         * lib/unictype/pr_id_continue.h: Regenerated.
49779         * lib/unictype/pr_id_start.h: Regenerated.
49780         * lib/unictype/pr_ideographic.h: Regenerated.
49781         * lib/unictype/pr_ignorable_control.h: Regenerated.
49782         * lib/unictype/pr_lowercase.h: Regenerated.
49783         * lib/unictype/pr_math.h: Regenerated.
49784         * lib/unictype/pr_numeric.h: Regenerated.
49785         * lib/unictype/pr_other_alphabetic.h: Regenerated.
49786         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
49787         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
49788         * lib/unictype/pr_other_id_continue.h: Regenerated.
49789         * lib/unictype/pr_other_lowercase.h: Regenerated.
49790         * lib/unictype/pr_other_math.h: Regenerated.
49791         * lib/unictype/pr_punctuation.h: Regenerated.
49792         * lib/unictype/pr_sentence_terminal.h: Regenerated.
49793         * lib/unictype/pr_soft_dotted.h: Regenerated.
49794         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
49795         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
49796         * lib/unictype/pr_unified_ideograph.h: Regenerated.
49797         * lib/unictype/pr_uppercase.h: Regenerated.
49798         * lib/unictype/pr_xid_continue.h: Regenerated.
49799         * lib/unictype/pr_xid_start.h: Regenerated.
49800         * lib/unictype/pr_zero_width.h: Regenerated.
49801         * lib/unictype/scripts.h: Regenerated.
49802         * lib/unictype/scripts_byname.gperf: Regenerated.
49803         * lib/unictype/sy_java_ident.h: Regenerated.
49804         * lib/unilbrk/lbrkprop1.h: Regenerated.
49805         * lib/unilbrk/lbrkprop2.h: Regenerated.
49806         * tests/unictype/test-categ_C.c: Regenerated.
49807         * tests/unictype/test-categ_Cf.c: Regenerated.
49808         * tests/unictype/test-categ_Cn.c: Regenerated.
49809         * tests/unictype/test-categ_L.c: Regenerated.
49810         * tests/unictype/test-categ_Ll.c: Regenerated.
49811         * tests/unictype/test-categ_Lm.c: Regenerated.
49812         * tests/unictype/test-categ_Lo.c: Regenerated.
49813         * tests/unictype/test-categ_Lu.c: Regenerated.
49814         * tests/unictype/test-categ_M.c: Regenerated.
49815         * tests/unictype/test-categ_Mc.c: Regenerated.
49816         * tests/unictype/test-categ_Me.c: Regenerated.
49817         * tests/unictype/test-categ_Mn.c: Regenerated.
49818         * tests/unictype/test-categ_N.c: Regenerated.
49819         * tests/unictype/test-categ_Nd.c: Regenerated.
49820         * tests/unictype/test-categ_Nl.c: Regenerated.
49821         * tests/unictype/test-categ_No.c: Regenerated.
49822         * tests/unictype/test-categ_P.c: Regenerated.
49823         * tests/unictype/test-categ_Pd.c: Regenerated.
49824         * tests/unictype/test-categ_Pe.c: Regenerated.
49825         * tests/unictype/test-categ_Pf.c: Regenerated.
49826         * tests/unictype/test-categ_Pi.c: Regenerated.
49827         * tests/unictype/test-categ_Po.c: Regenerated.
49828         * tests/unictype/test-categ_Ps.c: Regenerated.
49829         * tests/unictype/test-categ_S.c: Regenerated.
49830         * tests/unictype/test-categ_Sk.c: Regenerated.
49831         * tests/unictype/test-categ_Sm.c: Regenerated.
49832         * tests/unictype/test-categ_So.c: Regenerated.
49833         * tests/unictype/test-ctype_alnum.c: Regenerated.
49834         * tests/unictype/test-ctype_alpha.c: Regenerated.
49835         * tests/unictype/test-ctype_graph.c: Regenerated.
49836         * tests/unictype/test-ctype_lower.c: Regenerated.
49837         * tests/unictype/test-ctype_print.c: Regenerated.
49838         * tests/unictype/test-ctype_punct.c: Regenerated.
49839         * tests/unictype/test-ctype_upper.c: Regenerated.
49840         * tests/unictype/test-decdigit.h: Regenerated.
49841         * tests/unictype/test-digit.h: Regenerated.
49842         * tests/unictype/test-numeric.h: Regenerated.
49843         * tests/unictype/test-pr_alphabetic.c: Regenerated.
49844         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
49845         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
49846         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
49847         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
49848         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
49849         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
49850         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
49851         * tests/unictype/test-pr_combining.c: Regenerated.
49852         * tests/unictype/test-pr_dash.c: Regenerated.
49853         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
49854         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
49855         * tests/unictype/test-pr_deprecated.c: Regenerated.
49856         * tests/unictype/test-pr_diacritic.c: Regenerated.
49857         * tests/unictype/test-pr_extender.c: Regenerated.
49858         * tests/unictype/test-pr_format_control.c: Regenerated.
49859         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
49860         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
49861         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
49862         * tests/unictype/test-pr_id_continue.c: Regenerated.
49863         * tests/unictype/test-pr_id_start.c: Regenerated.
49864         * tests/unictype/test-pr_ideographic.c: Regenerated.
49865         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
49866         * tests/unictype/test-pr_lowercase.c: Regenerated.
49867         * tests/unictype/test-pr_math.c: Regenerated.
49868         * tests/unictype/test-pr_numeric.c: Regenerated.
49869         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
49870         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
49871         Regenerated.
49872         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
49873         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
49874         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
49875         * tests/unictype/test-pr_other_math.c: Regenerated.
49876         * tests/unictype/test-pr_punctuation.c: Regenerated.
49877         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
49878         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
49879         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
49880         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
49881         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
49882         * tests/unictype/test-pr_uppercase.c: Regenerated.
49883         * tests/unictype/test-pr_xid_continue.c: Regenerated.
49884         * tests/unictype/test-pr_xid_start.c: Regenerated.
49885         * tests/unictype/test-pr_zero_width.c: Regenerated.
49886
49887         Update to Unicode 5.1.0.
49888         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
49889         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
49890         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
49891         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
49892         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
49893         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
49894         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
49895         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
49896         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
49897         (nonspacing_table_ind): Update.
49898         * tests/uniwidth/test-uc_width2.sh: Update expected result.
49899
49900         Update to Unicode 5.1.0.
49901         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
49902         code transform.
49903         * lib/uniname/uniname.c (unicode_character_name,
49904         unicode_name_character): Add the range 0x1Fxxx to the code transform.
49905         * lib/uniname/uninames.h: Regenerated.
49906         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
49907
49908 2009-02-07  Bruno Haible  <bruno@clisp.org>
49909
49910         Merge gen-ctype and gen-lbrk into a single program.
49911         * lib/gen-uni-tables.c: New file, incorporating
49912         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
49913         Add directory prefixes to the names of the generated files.
49914         * lib/unictype/gen-ctype.c: Remove file.
49915         * lib/unilbrk/gen-lbrk.c: Remove file.
49916         * modules/gen-uni-tables: New file.
49917         * modules/unictype/gen-ctype: Remove file.
49918         * modules/unilbrk/gen-lbrk: Remove file.
49919
49920 2009-02-07  Bruno Haible  <bruno@clisp.org>
49921
49922         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
49923
49924         New module 'unistr/u32-strcoll'.
49925         * modules/unistr/u32-strcoll: New file.
49926         * lib/unistr/u32-strcoll.c: New file.
49927
49928         New module 'unistr/u16-strcoll'.
49929         * modules/unistr/u16-strcoll: New file.
49930         * lib/unistr/u16-strcoll.c: New file.
49931
49932         New module 'unistr/u8-strcoll'.
49933         * modules/unistr/u8-strcoll: New file.
49934         * lib/unistr/u8-strcoll.c: New file.
49935         * lib/unistr/u-strcoll.h: New file.
49936
49937 2009-02-07  Bruno Haible  <bruno@clisp.org>
49938
49939         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
49940         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49941         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49942         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
49943         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
49944         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
49945
49946 2009-02-07  Bruno Haible  <bruno@clisp.org>
49947
49948         Make 64-bit clean.
49949         * lib/unictype/gen-ctype.c (output_predicate, output_category,
49950         output_combclass, output_bidi_category, output_decimal_digit,
49951         output_digit, output_numeric, output_mirror, output_scripts,
49952         output_ident_category): Use proper width specifier in format strings.
49953
49954 2009-02-07  Bruno Haible  <bruno@clisp.org>
49955
49956         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
49957         failure behaviour.
49958
49959 2009-02-07  Jim Meyering  <meyering@redhat.com>
49960
49961         regex: avoid compilation failure with upcoming gcc-4.4
49962         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
49963         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
49964         "... error: integer overflow in preprocessor expression".
49965
49966 2009-02-05  Ben Pfaff  <blp@gnu.org>
49967
49968         Fix link errors on Windows when close module is used.
49969         * modules/close: Add $(LIB_CLOSE) to Link section.
49970         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
49971         $(LIB_CLOSE) on Windows.
49972
49973 2009-02-05  Jim Meyering  <meyering@redhat.com>
49974
49975         still avoid unused-parameter warnings, but do it cleanly
49976         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
49977         (get_fs_usage): Cast to void instead.
49978         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
49979         (dev_from_mount_options, read_file_system_list): Cast to void.
49980         Prompted by Bruno Haible.
49981
49982 2009-02-04  Jim Meyering  <meyering@redhat.com>
49983
49984         fsusage.c: correct copyright year
49985         * lib/fsusage.c: Reflect year in which the change is pushed into
49986
49987         avoid misc. warnings
49988         * lib/fsusage.c (UNUSED_PARAM): Define.
49989         (get_fs_usage): Mark parameter "disk" as unused.
49990         * lib/getugroups.c (getgrent): Use "void" in prototype.
49991         * lib/mountlist.c: Mark unused parameters.
49992         (read_file_system_list): Declare a local with "const".
49993         * lib/nanosleep.c (getnow): Declare static.
49994         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
49995
49996         dirfd: set errno upon failure
49997         * lib/dirfd.c: Include <errno.h>.
49998         Set errno to ENOTSUP when returning -1.
49999         * modules/dirfd (Depends-on): Add errno.
50000         Suggested by John Kodis <kodis@comcast.net>.
50001
50002 2009-02-01  Bruno Haible  <bruno@clisp.org>
50003
50004         Don't assume sizeof (long) >= sizeof (void *).
50005         * lib/memcmp.c: Include stdint.h.
50006         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50007         srcp2 to 'const byte *'.
50008         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50009         types to uintptr_t.
50010         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50011         * modules/memcmp (Depends-on): Add stdint.
50012         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50013
50014 2009-01-30  Eric Blake  <ebb9@byu.net>
50015
50016         fix more require-before-expand issues
50017         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50018         expand, AC_PROG_AWK.
50019         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50020
50021 2009-01-28  Eric Blake  <ebb9@byu.net>
50022
50023         version-etc: use consistent URL formatting
50024         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50025         Improve formatting.  Use fputs for string without %.
50026
50027 2009-01-28  Jim Meyering  <meyering@redhat.com>
50028
50029         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50030         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50031         "underquoted definition of NAME" from autoconf-2.59.
50032
50033 2009-01-28  Bruno Haible  <bruno@clisp.org>
50034
50035         * doc/gnulib.texi: Add "Obsolete modules" to index.
50036
50037 2009-01-28  Jim Meyering  <meyering@redhat.com>
50038
50039         useless-if-before-free: recognize more variants
50040         * build-aux/useless-if-before-free: Also recognize e.g.,
50041         if (NULL != p) free (p);
50042
50043 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50044
50045         test-getaddrinfo: skip (don't fail) this test when there's no network
50046         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50047         on the presumption that it means you lack network access.
50048
50049 2009-01-26  Jim Meyering  <meyering@redhat.com>
50050
50051         fflush: avoid warnings on modern systems
50052         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50053         pos and result, into scopes where they're used.
50054
50055 2009-01-26  Eric Blake  <ebb9@byu.net>
50056
50057         Silence warning reintroduced by recent extensions patch.
50058         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50059         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50060         autoconf.
50061
50062         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50063         * m4/00gnulib.m4: New file.
50064         * gnulib-tool (func_get_filelist): Always use it.
50065         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50066         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50067
50068 2009-01-25  Bruno Haible  <bruno@clisp.org>
50069
50070         Make test-quotearg work on MacOS X and AIX.
50071         * tests/test-quotearg.sh: New file.
50072         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50073         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50074         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50075         include <libintl.h>.
50076         (fake_locale): Remove variable.
50077         (gettext, dgettext, dcgettext): Remove functions.
50078         (main): Instead of setting a fake locale, set a real locale. Call
50079         textdomain and bindtextdomain.
50080         * modules/quotearg-tests (Files): Add the new files.
50081         (Depends-on): Add gettext, setenv, unsetenv.
50082         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50083         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50084         Augment TESTS_ENVIRONMENT.
50085
50086 2009-01-25  Bruno Haible  <bruno@clisp.org>
50087
50088         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50089         fr_FR.ISO8859-1 locale on MacOS X.
50090         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50091         ja_JP.eucJP locale on MacOS X.
50092         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50093         zh_CN.GB18030 locale on MacOS X.
50094
50095 2009-01-25  Bruno Haible  <bruno@clisp.org>
50096
50097         Avoid link errors on MacOS X 10.3.
50098         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50099         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50100
50101 2009-01-25  Bruno Haible  <bruno@clisp.org>
50102
50103         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50104         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50105         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50106         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50107         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50108         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50109         posix_spawnattr_init, posix_spawnattr_setsigmask,
50110         posix_spawnattr_setflags, posix_spawnattr_destroy.
50111
50112         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50113         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50114         * modules/execute (Files): Remove m4/posix_spawn.m4.
50115         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50116         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50117         posix_spawnattr_init, posix_spawnattr_setsigmask,
50118         posix_spawnattr_setflags, posix_spawnattr_destroy.
50119
50120 2009-01-25  Bruno Haible  <bruno@clisp.org>
50121
50122         * lib/glthread/threadlib.c: Include <stdlib.h>.
50123
50124 2009-01-25  Bruno Haible  <bruno@clisp.org>
50125
50126         * lib/glthread/threadlib.c (dummy): New declaration.
50127
50128 2009-01-25  Bruno Haible  <bruno@clisp.org>
50129
50130         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50131         multibyte characters also for the GB18030 encoding. Don't crash when
50132         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50133
50134 2009-01-25  Bruno Haible  <bruno@clisp.org>
50135
50136         Avoid redefining 'struct random_data' on OSF/1 5.1.
50137         * lib/stdlib.in.h: Include <random.h> if it exists.
50138         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50139         HAVE_RANDOM_H. Include <random.h> when testing whether
50140         'struct random_data' exists.
50141         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50142
50143 2009-01-25  Bruno Haible  <bruno@clisp.org>
50144
50145         Don't install charset.alias on MacOS X >= 10.3.
50146         * lib/localcharset.c (DARWIN7): New macro.
50147         (get_charset_aliases): Hardcode the result for Darwin7.
50148         * modules/localcharset (install-exec-local): Don't install
50149         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50150
50151 2009-01-25  Bruno Haible  <bruno@clisp.org>
50152
50153         Don't install charset.alias on mingw and Cygwin.
50154         * modules/localcharset (install-exec-local): Don't install
50155         charset.alias on mingw and Cygwin, if the file does not yet exist.
50156         The result for these platforms is hardcoded in localcharset.c.
50157
50158 2009-01-25  Bruno Haible  <bruno@clisp.org>
50159
50160         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50162         before requiring AC_USE_SYSTEM_EXTENSIONS.
50163
50164 2009-01-25  Jim Meyering  <meyering@redhat.com>
50165
50166         c-strtod: avoid warnings
50167         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50168         "assignment discards qualifiers from pointer target type" warnings.
50169
50170 2009-01-24  Bruno Haible  <bruno@clisp.org>
50171
50172         Add support for non-UTF-8 locales on MacOS X.
50173         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50174         canonical encodings. For Darwin 7 and newer, don't map traditional
50175         encodings to UTF-8.
50176         Reported by Vincent Lefevre <vincent@vinc17.org>
50177         at <http://savannah.gnu.org/bugs/?25235>.
50178
50179 2009-01-24  Bruno Haible  <bruno@clisp.org>
50180
50181         * doc/gnulib.texi (Obsolete modules): New section.
50182         Reported by Mike Frysinger <vapier@gentoo.org>.
50183
50184 2009-01-24  Bruno Haible  <bruno@clisp.org>
50185
50186         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50187         (%.dvi): New rule.
50188
50189 2009-01-24  Bruno Haible  <bruno@clisp.org>
50190
50191         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50192         Reported by Eric Blake.
50193
50194 2009-01-24  Bruno Haible  <bruno@clisp.org>
50195
50196         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50197         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50198         Reported by Gary V. Vaughan <gary@gnu.org>.
50199
50200 2009-01-24  Bruno Haible  <bruno@clisp.org>
50201
50202         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50203
50204 2009-01-23  Bruno Haible  <bruno@clisp.org>
50205
50206         Make c-strtod, c-strtold usable in libraries.
50207         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50208         (C_STRTOD): Call strdup instead of xstrdup.
50209         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50210         * modules/c-strtold (Depends-on): Likewise.
50211         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50212         * NEWS: Mention the change.
50213         Reported by Michael Gold <mgold@ncf.ca>.
50214
50215 2009-01-23  Jim Meyering  <meyering@redhat.com>
50216
50217         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50218         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50219         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50220
50221 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50222
50223         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50224         GNU CoreUtils.
50225         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50226         * modules/version-etc (Description): Update.
50227
50228 2009-01-22  Bruno Haible  <bruno@clisp.org>
50229
50230         Cache the C locale object.
50231         * lib/c-strtod.c (c_locale_cache): New variable.
50232         (c_locale): New function.
50233         (C_STRTOD): Use it, and don't call freelocale.
50234         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50235         Suggested by Paolo Bonzini.
50236
50237 2009-01-21  Bruno Haible  <bruno@clisp.org>
50238
50239         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50240         conditions other than overflow.
50241
50242 2009-01-21  Bruno Haible  <bruno@clisp.org>
50243
50244         * lib/c-strtod.c: Include errno.h.
50245         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50246         value from STRTOD_L and STRTOD.
50247
50248 2009-01-21  Bruno Haible  <bruno@clisp.org>
50249         and Jim Meyering  <meyering@redhat.com>
50250
50251         nanosleep: skip configure test (fail it) for apple universal builds
50252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50253         universal builds, assume that nanosleep does not work.
50254         * modules/nanosleep (Depends-on): Add multiarch.
50255
50256         mktime: skip configure test (fail it) for apple universal builds
50257         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50258         universal builds, assume that mktime does not work.
50259         * modules/mktime (Depends-on): Add multiarch.
50260
50261 2009-01-21  Eric Blake  <ebb9@byu.net>
50262
50263         multiarch: avoid expand-before-require warning
50264         * modules/multiarch (configure.ac): Require, rather than expand,
50265         gl_MULTIARCH.
50266         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50267         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50268         enforce that all clients require it.  Partial reversion of
50269         2008-12-29 patch.
50270
50271         error: avoid expand-before-require warning
50272         * modules/errno (configure.ac): Require, rather than expand,
50273         gl_HEADER_ERRNO_H.
50274         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50275         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50276         enforce that all clients require it.
50277
50278         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50279         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50280         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50281         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50282
50283 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50284
50285         Revert:
50286         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50287
50288         regex: do not depend on obsolete modules.
50289         * modules/regex: Remove memcmp and memmove.
50290
50291 2009-01-20  Bruno Haible  <bruno@clisp.org>
50292
50293         Make the 'link' module link on Windows NT 4.
50294         * lib/link.c (_WIN32_WINNT): Don't define.
50295         (CreateHardLinkFuncType): New type.
50296         (CreateHardLinkFunc, initialized): New variables.
50297         (initialize): New function.
50298         (link): Invoke CreateHardLink indirectly through the function pointer.
50299
50300 2009-01-20  Bruno Haible  <bruno@clisp.org>
50301
50302         Fix compilation failure on mingw.
50303         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50304
50305 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50306
50307         * doc/c-strtod.texi: Mention a couple of restrictions.
50308
50309 2009-01-20  Jim Meyering  <meyering@redhat.com>
50310
50311         gettimeofday: move more declarations out of functions
50312         * lib/gettimeofday.c: Move extern declarations of tzset and
50313         gmtime out of containing functions.  Prompted by Bruno Haible.
50314
50315 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50316
50317         regex: do not depend on obsolete modules.
50318         * modules/regex: Remove memcmp and memmove.
50319
50320 2009-01-19  Bruno Haible  <bruno@clisp.org>
50321
50322         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50323         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50324         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50325         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50326         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50327
50328 2009-01-19  Bruno Haible  <bruno@clisp.org>
50329
50330         * tests/test-link.c: Include <errno.h>.
50331         (main): Exit with code 77 when a hard link cannot be created due to
50332         the file system.
50333         * tests/test-link.sh: Skip test when a hard link cannot be created due
50334         to the file system.
50335         Suggested by Eric Blake.
50336
50337 2009-01-19  Martin Lambers  <marlam@marlam.de>
50338
50339         * modules/link-tests: New file.
50340         * tests/test-link.sh: New file.
50341         * tests/test-link.c: New file.
50342
50343 2009-01-19  Eric Blake  <ebb9@byu.net>
50344
50345         doc: mention another function added in cygwin 1.7.0
50346         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50347         Another new function in cygwin 1.7.
50348
50349 2009-01-19  Bruno Haible  <bruno@clisp.org>
50350
50351         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50352         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50353         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50354         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50355         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50356         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50357         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50358         * m4/md4.m4 (gl_MD4): Likewise.
50359         * m4/md5.m4 (gl_MD5): Likewise.
50360         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50361         * m4/sha1.m4 (gl_SHA1): Likewise.
50362         * m4/sha256.m4 (gl_SHA256): Likewise.
50363         * m4/sha512.m4 (gl_SHA512): Likewise.
50364
50365 2009-01-19  Bruno Haible  <bruno@clisp.org>
50366
50367         * modules/uniname/uniname-tests (Depends-on): Add progname.
50368         * tests/uniname/test-uninames.c: Include progname.h.
50369         (main): Call set_program_name.
50370
50371         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50372         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50373         (main): Call set_program_name.
50374
50375         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50376         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50377         (main): Call set_program_name.
50378
50379         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50380         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50381         (main): Call set_program_name.
50382
50383         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50384         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50385         (main): Call set_program_name.
50386
50387         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50388         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50389         (main): Call set_program_name.
50390
50391         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50392         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50393         (main): Call set_program_name.
50394
50395         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50396         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50397         (main): Call set_program_name.
50398
50399         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50400         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50401         (main): Call set_program_name.
50402
50403 2009-01-19  Eric Blake  <ebb9@byu.net>
50404
50405         test-unistd: test previous patch
50406         * tests/test-unistd.c: Test *_FILENO macros.
50407
50408         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50409         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50410         Guarantee a definition.
50411         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50412         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50413         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50414         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50415         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50416         Likewise.
50417         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50418         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50419         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50420         Likewise.
50421         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50422         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50423         (STDERR_FILENO): Likewise.
50424         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50425         (STDERR_FILENO): Likewise.
50426         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50427         (STDERR_FILENO): Likewise.
50428         Reported by Elbert Pol.
50429
50430 2009-01-19  Eric Blake  <ebb9@byu.net>
50431
50432         doc: mention more functions added in cygwin 1.7.0
50433         * doc/posix-functions/abort.texi (abort): Update wording related
50434         to cygwin.
50435         * doc/posix-functions/daylight.texi (daylight): Likewise.
50436         * doc/posix-functions/optarg.texi (optarg): Likewise.
50437         * doc/posix-functions/optarg.texi (opterr): Likewise.
50438         * doc/posix-functions/optarg.texi (optind): Likewise.
50439         * doc/posix-functions/optarg.texi (optopt): Likewise.
50440         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50441         worked in 1.5.x, and was withdrawn in 1.7.
50442         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50443         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50444         cygwin versions.
50445         * doc/posix-functions/perror.texi (perror): Likewise.
50446         * doc/posix-functions/printf.texi (printf): Likewise.
50447         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50448         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50449         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50450         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50451         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50452         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50453         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50454         Likewise.
50455         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50456         Likewise.
50457         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50458         this function.
50459         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50460         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50461         Likewise.
50462         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50463         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50464         * doc/posix-functions/confstr.texi (confstr): Likewise.
50465         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50466         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50467         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50468         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50469         * doc/posix-functions/fputws.texi (fputws): Likewise.
50470         * doc/posix-functions/fwide.texi (fwide): Likewise.
50471         * doc/posix-functions/getwc.texi (getwc): Likewise.
50472         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50473         * doc/posix-functions/putwc.texi (putwc): Likewise.
50474         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50475         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50476         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50477         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50478         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50479         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50480         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50481         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50482         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50483         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50484         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50485
50486 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50487
50488         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50489         * lib/ioctl.c: Include <sys/ioctl.h>.
50490
50491 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50492
50493         * modules/getdate-tests (Depends-on): Add progname.
50494         * tests/test-getdate.c: Use progname module, to avoid link errors
50495         on non-glibc systems.
50496
50497 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50498
50499         * modules/filenamecat-tests (Depends-on): Add progname.
50500         * modules/fstrcmp-tests (Depends-on): Likewise.
50501
50502         * tests/test-filenamecat.c: Use progname module, to avoid link
50503         errors on non-glibc systems.
50504         * tests/test-fstrcmp.c: Likewise.
50505
50506 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50507
50508         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50509         * lib/gettimeofday.c: Move extern declaration out of function.
50510
50511 2009-01-18  Bruno Haible  <bruno@clisp.org>
50512
50513         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50514         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50515         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50516
50517 2009-01-18  Bruno Haible  <bruno@clisp.org>
50518
50519         * lib/strftime.c (MEMPCPY): Remove unused macro.
50520         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50521
50522 2009-01-18  Martin Lambers  <marlam@marlam.de>
50523
50524         New module 'link'.
50525         * lib/unistd.in.h (link): New declaration.
50526         * lib/link.c: New file.
50527         * m4/link.m4: New file.
50528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50529         HAVE_LINK.
50530         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50531         * modules/link: New file.
50532         * doc/posix-functions/link.texi: Mention the new module.
50533
50534 2009-01-18  Bruno Haible  <bruno@clisp.org>
50535
50536         * tests/test-avltree_list.c (main): Call set_program_name.
50537         * tests/test-avltree_oset.c (main): Likewise.
50538         * tests/test-obstack-printf.c: Include progname.h.
50539         (main): Call set_program_name.
50540         * tests/test-quotearg.c: Include progname.h.
50541         (main): Call set_program_name.
50542         * tests/test-xmemdup0.c: Include progname.h.
50543         (main): Call set_program_name.
50544
50545 2009-01-18  Bruno Haible  <bruno@clisp.org>
50546
50547         New module 'alphasort'.
50548         * lib/dirent.in.h (alphasort): New declaration.
50549         * lib/alphasort.c: New file, from glibc with modifications.
50550         * m4/alphasort.m4: New file.
50551         * modules/alphasort: New file.
50552         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50553         HAVE_ALPHASORT.
50554         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50555         HAVE_ALPHASORT.
50556         * doc/posix-functions/alphasort.texi: Mention the new module and the
50557         portability problems.
50558
50559 2009-01-18  Bruno Haible  <bruno@clisp.org>
50560
50561         New module 'scandir'.
50562         * lib/dirent.in.h (scandir): New declaration.
50563         * lib/scandir.c: New file, from glibc with modifications.
50564         * m4/scandir.m4: New file.
50565         * modules/scandir: New file.
50566         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50567         HAVE_SCANDIR.
50568         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50569         HAVE_SCANDIR.
50570         * doc/posix-functions/scandir.texi: Mention the new module and the
50571         portability problems.
50572
50573 2009-01-17  Bruno Haible  <bruno@clisp.org>
50574
50575         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50576         Update documentation.
50577         (func_remove_suffix): Escape all dots in the suffix. Update
50578         documentation.
50579         (func_filter_filelist): Update documentation.
50580         Reported by Ralf Wildenhues.
50581
50582 2009-01-17  Bruno Haible  <bruno@clisp.org>
50583
50584         * modules/dprintf-posix-tests: New file.
50585         * tests/test-dprintf-posix.sh: New file.
50586         * tests/test-dprintf-posix.c: New file.
50587
50588         New modules 'dprintf', 'dprintf-posix'.
50589         * lib/stdio.in.h (dprintf): New declaration.
50590         * lib/dprintf.c: New file.
50591         * m4/dprintf.m4: New file.
50592         * m4/dprintf-posix.m4: New file.
50593         * modules/dprintf: New file.
50594         * modules/dprintf-posix: New file.
50595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50596         HAVE_DPRINTF, REPLACE_DPRINTF.
50597         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50598         HAVE_DPRINTF, REPLACE_DPRINTF.
50599         * doc/posix-functions/dprintf.texi: Mention the new modules.
50600
50601 2009-01-17  Bruno Haible  <bruno@clisp.org>
50602
50603         * modules/vdprintf-posix-tests: New file.
50604         * tests/test-vdprintf-posix.sh: New file.
50605         * tests/test-vdprintf-posix.c: New file.
50606
50607         New modules 'vdprintf', 'vdprintf-posix'.
50608         * lib/stdio.in.h (vdprintf): New declaration.
50609         * lib/vdprintf.c: New file.
50610         * m4/vdprintf.m4: New file.
50611         * m4/vdprintf-posix.m4: New file.
50612         * modules/vdprintf: New file.
50613         * modules/vdprintf-posix: New file.
50614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
50615         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50616         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
50617         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50618         * doc/posix-functions/vdprintf.texi: Mention the new modules.
50619
50620 2009-01-17  Bruno Haible  <bruno@clisp.org>
50621
50622         Fix replacement of fopen on mingw.
50623         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
50624         mingw.
50625
50626 2009-01-17  Bruno Haible  <bruno@clisp.org>
50627
50628         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
50629         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
50630
50631 2009-01-17  Bruno Haible  <bruno@clisp.org>
50632
50633         Avoid test-fflush2.sh failure on mingw.
50634         * tests/test-fflush2.c: Include binary-io.h.
50635         (main): Put standard input into binary mode.
50636         * modules/fflush-tests (Depends-on): Add binary-io.
50637
50638 2009-01-17  Bruno Haible  <bruno@clisp.org>
50639
50640         * lib/wchar.in.h: In another particular situation, include only the
50641         system's <wchar.h> file.
50642         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
50643         Reported by Albert Chin-A-Young <china@thewrittenword.com>
50644         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
50645
50646 2009-01-17  Bruno Haible  <bruno@clisp.org>
50647
50648         Support for stripping executables in --enable-relocatable.
50649         * build-aux/install-reloc: Expect one more argument, or an environment
50650         variable RELOC_STRIP_PROG. If set, strip the destination program and
50651         its wrapper.
50652         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
50653         RELOC_STRIP_PROG.
50654         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
50655         to set RELOCATABLE_STRIP.
50656         * NEWS: Mention the new Makefile requirement.
50657
50658 2009-01-17  Bruno Haible  <bruno@clisp.org>
50659
50660         * build-aux/install-reloc: Remove debugging information left over by
50661         C compiler on MacOS X.
50662
50663 2009-01-17  Bruno Haible  <bruno@clisp.org>
50664
50665         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
50666         * lib/progreloc.c (find_executable): Fix type of pointer passed to
50667         _NSGetExecutablePath.
50668
50669 2009-01-16  Jim Meyering  <meyering@redhat.com>
50670
50671         strerror: avoid warnings about discarding "const"
50672         * lib/strerror.c (rpl_strerror): Instead of returning a const
50673         string from each and every "case", use a variable, and add a single
50674         cast after the switch.
50675
50676 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
50677
50678         * lib/arpa_inet.in.h: Add extern "C" block for C++.
50679
50680 2009-01-16  Bruno Haible  <bruno@clisp.org>
50681
50682         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
50683         array initializer syntax that also works in C++ mode.
50684         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50685
50686 2009-01-16  Jim Meyering  <meyering@redhat.com>
50687
50688         poll: suppress a warning
50689         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
50690         to ignore "...unsigned expression < 0 is always false" warnings.
50691
50692 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
50693
50694         poll: remove declarations of unused variables
50695         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
50696         sockbuf and optlen.
50697
50698 2009-01-15  Bruno Haible  <bruno@clisp.org>
50699
50700         Make fflush-after-ungetc POSIX compliant on BSD systems.
50701         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
50702         (clear_ungetc_buffer): Implement also for other systems.
50703         (rpl_fflush): On glibc systems, invoke
50704         clear_ungetc_buffer_preserving_position. Otherwise, invoke
50705         clear_ungetc_buffer after fetching the stream's position, not before.
50706
50707 2009-01-15  Bruno Haible  <bruno@clisp.org>
50708
50709         Make fflush-after-ungetc POSIX compliant on glibc systems.
50710         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
50711         after ungetc.
50712         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
50713         (rpl_fflush): On glibc systems, simply call the system's fflush
50714         function after clearing the ungetc buffer.
50715         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
50716         Instead, lseek only to the end of file, then use the system's fseeko
50717         for the rest. On glibc systems, reset the EOF indicator bit.
50718
50719 2009-01-15  Jim Meyering  <meyering@redhat.com>
50720
50721         openmp.m4: revert quote-adding change, for portability to older autoconf
50722         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
50723         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
50724         Simon Josefsson noticed the problem when using autoconf-2.61.
50725
50726 2009-01-15  Bruno Haible  <bruno@clisp.org>
50727
50728         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
50729         * tests/test-fflush2.c (ASSERT): Always fail.
50730         (main): Add two tests for fflush() after ungetc(), taking into account
50731         the Austin Group's clarification.
50732         Suggested by Eric Blake.
50733
50734 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
50735
50736         mktime.m4: remove K&R-style function prototypes
50737         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
50738         for the Sun C++ compiler.
50739
50740 2009-01-14  Bruno Haible  <bruno@clisp.org>
50741
50742         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
50743         while including <wchar.h>.
50744         * lib/wchar.in.h: In two particular situations on HP-UX, include only
50745         the system's <wchar.h> file.
50746         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50747
50748 2009-01-14  Bruno Haible  <bruno@clisp.org>
50749
50750         * m4/csharp.m4: Don't mention gettext on the serial number line.
50751         * m4/csharpexec.m4: Likewise.
50752         * m4/eaccess.m4: Likewise.
50753         * m4/javaexec.m4: Likewise.
50754         * m4/sig_atomic_t.m4: Likewise.
50755         * m4/tmpdir.m4: Likewise.
50756         * m4/intldir.m4: Bump gettext version.
50757         * m4/lib-ld.m4: Likewise.
50758
50759 2009-01-14  Bruno Haible  <bruno@clisp.org>
50760
50761         * lib/progname.c (set_program_name): Add more comments.
50762         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
50763
50764 2009-01-14  Simon Josefsson  <simon@josefsson.org>
50765
50766         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
50767         were sys/stat.h does not define it.
50768
50769 2009-01-14  Jim Meyering  <meyering@redhat.com>
50770
50771         many *.m4 files: improve m4 quoting
50772         99% of this change was performed by running the following commands:
50773         git ls-files | grep '\.m4$' | xargs perl -pi \
50774           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
50775           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50776           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50777           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
50778         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
50779         The remainder were to add Copyright dates, increment serial numbers,
50780         undo some changes in comments, exclude m4/intl.m4, and add quotes
50781         around the "1" in ",1" where the unusual spacing prohibited the
50782         above regexps from doing the job.  For more details, see
50783         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
50784         * m4/acl.m4: Modified.
50785         * m4/afs.m4: Likewise.
50786         * m4/alloca.m4: Likewise.
50787         * m4/argp.m4: Likewise.
50788         * m4/argz.m4: Likewise.
50789         * m4/atexit.m4: Likewise.
50790         * m4/bison-i18n.m4: Likewise.
50791         * m4/bison.m4: Likewise.
50792         * m4/byteswap.m4: Likewise.
50793         * m4/c-stack.m4: Likewise.
50794         * m4/c-strtod.m4: Likewise.
50795         * m4/calloc.m4: Likewise.
50796         * m4/canonicalize-lgpl.m4: Likewise.
50797         * m4/chown.m4: Likewise.
50798         * m4/clock_time.m4: Likewise.
50799         * m4/codeset.m4: Likewise.
50800         * m4/copy-file.m4: Likewise.
50801         * m4/csharp.m4: Likewise.
50802         * m4/csharpcomp.m4: Likewise.
50803         * m4/csharpexec.m4: Likewise.
50804         * m4/d-ino.m4: Likewise.
50805         * m4/d-type.m4: Likewise.
50806         * m4/dirfd.m4: Likewise.
50807         * m4/double-slash-root.m4: Likewise.
50808         * m4/eaccess.m4: Likewise.
50809         * m4/eealloc.m4: Likewise.
50810         * m4/environ.m4: Likewise.
50811         * m4/errno_h.m4: Likewise.
50812         * m4/euidaccess.m4: Likewise.
50813         * m4/execute.m4: Likewise.
50814         * m4/fatal-signal.m4: Likewise.
50815         * m4/fchdir.m4: Likewise.
50816         * m4/fcntl_h.m4: Likewise.
50817         * m4/fileblocks.m4: Likewise.
50818         * m4/filenamecat.m4: Likewise.
50819         * m4/findprog.m4: Likewise.
50820         * m4/flexmember.m4: Likewise.
50821         * m4/fnmatch.m4: Likewise.
50822         * m4/fopen.m4: Likewise.
50823         * m4/fpending.m4: Likewise.
50824         * m4/fprintf-posix.m4: Likewise.
50825         * m4/free.m4: Likewise.
50826         * m4/frexp.m4: Likewise.
50827         * m4/frexpl.m4: Likewise.
50828         * m4/fsusage.m4: Likewise.
50829         * m4/ftruncate.m4: Likewise.
50830         * m4/gc-camellia.m4: Likewise.
50831         * m4/gc-random.m4: Likewise.
50832         * m4/gc.m4: Likewise.
50833         * m4/getaddrinfo.m4: Likewise.
50834         * m4/getcwd-abort-bug.m4: Likewise.
50835         * m4/getcwd-path-max.m4: Likewise.
50836         * m4/getdate.m4: Likewise.
50837         * m4/getdomainname.m4: Likewise.
50838         * m4/getgroups.m4: Likewise.
50839         * m4/gethostname.m4: Likewise.
50840         * m4/gethrxtime.m4: Likewise.
50841         * m4/getline.m4: Likewise.
50842         * m4/getloadavg.m4: Likewise.
50843         * m4/getndelim2.m4: Likewise.
50844         * m4/getpass.m4: Likewise.
50845         * m4/gettext.m4: Likewise.
50846         * m4/gettime.m4: Likewise.
50847         * m4/gettimeofday.m4: Likewise.
50848         * m4/gnulib-common.m4: Likewise.
50849         * m4/group-member.m4: Likewise.
50850         * m4/host-os.m4: Likewise.
50851         * m4/iconv.m4: Likewise.
50852         * m4/iconv_open.m4: Likewise.
50853         * m4/inet_ntop.m4: Likewise.
50854         * m4/inet_pton.m4: Likewise.
50855         * m4/inline.m4: Likewise.
50856         * m4/intldir.m4: Likewise.
50857         * m4/intlmacosx.m4: Likewise.
50858         * m4/intmax.m4: Likewise.
50859         * m4/intmax_t.m4: Likewise.
50860         * m4/inttypes.m4: Likewise.
50861         * m4/inttypes_h.m4: Likewise.
50862         * m4/inttypes-pri.m4: Likewise.
50863         * m4/isapipe.m4: Likewise.
50864         * m4/isnand.m4: Likewise.
50865         * m4/isnanf.m4: Likewise.
50866         * m4/isnanl.m4: Likewise.
50867         * m4/javacomp.m4: Likewise.
50868         * m4/javaexec.m4: Likewise.
50869         * m4/jm-winsz1.m4: Likewise.
50870         * m4/jm-winsz2.m4: Likewise.
50871         * m4/lchown.m4: Likewise.
50872         * m4/lcmessage.m4: Likewise.
50873         * m4/ldexpl.m4: Likewise.
50874         * m4/lib-ld.m4: Likewise.
50875         * m4/lib-link.m4: Likewise.
50876         * m4/libsigsegv.m4: Likewise.
50877         * m4/link-follow.m4: Likewise.
50878         * m4/localcharset.m4: Likewise.
50879         * m4/locale-fr.m4: Likewise.
50880         * m4/locale-ja.m4: Likewise.
50881         * m4/locale-tr.m4: Likewise.
50882         * m4/locale-zh.m4: Likewise.
50883         * m4/lock.m4: Likewise.
50884         * m4/longlong.m4: Likewise.
50885         * m4/ls-mntd-fs.m4: Likewise.
50886         * m4/lstat.m4: Likewise.
50887         * m4/malloc.m4: Likewise.
50888         * m4/mathl.m4: Likewise.
50889         * m4/mbrtowc.m4: Likewise.
50890         * m4/mbstate_t.m4: Likewise.
50891         * m4/mbswidth.m4: Likewise.
50892         * m4/memchr.m4: Likewise.
50893         * m4/memcmp.m4: Likewise.
50894         * m4/memcpy.m4: Likewise.
50895         * m4/memmem.m4: Likewise.
50896         * m4/memmove.m4: Likewise.
50897         * m4/mempcpy.m4: Likewise.
50898         * m4/memrchr.m4: Likewise.
50899         * m4/memset.m4: Likewise.
50900         * m4/minmax.m4: Likewise.
50901         * m4/mkdir-slash.m4: Likewise.
50902         * m4/mkdtemp.m4: Likewise.
50903         * m4/mktime.m4: Likewise.
50904         * m4/mmap-anon.m4: Likewise.
50905         * m4/mountlist.m4: Likewise.
50906         * m4/nanosleep.m4: Likewise.
50907         * m4/nls.m4: Likewise.
50908         * m4/nocrash.m4: Likewise.
50909         * m4/open.m4: Likewise.
50910         * m4/openat.m4: Likewise.
50911         * m4/openmp.m4: Likewise.
50912         * m4/pathmax.m4: Likewise.
50913         * m4/perl.m4: Likewise.
50914         * m4/physmem.m4: Likewise.
50915         * m4/pipe.m4: Likewise.
50916         * m4/po.m4: Likewise.
50917         * m4/poll.m4: Likewise.
50918         * m4/posixtm.m4: Likewise.
50919         * m4/posixver.m4: Likewise.
50920         * m4/printf-frexp.m4: Likewise.
50921         * m4/printf-frexpl.m4: Likewise.
50922         * m4/printf-posix.m4: Likewise.
50923         * m4/printf-posix-rpl.m4: Likewise.
50924         * m4/printf.m4: Likewise.
50925         * m4/progtest.m4: Likewise.
50926         * m4/putenv.m4: Likewise.
50927         * m4/readline.m4: Likewise.
50928         * m4/readlink.m4: Likewise.
50929         * m4/readutmp.m4: Likewise.
50930         * m4/realloc.m4: Likewise.
50931         * m4/regex.m4: Likewise.
50932         * m4/relocatable.m4: Likewise.
50933         * m4/relocatable-lib.m4: Likewise.
50934         * m4/rename-dest-slash.m4: Likewise.
50935         * m4/rename.m4: Likewise.
50936         * m4/rmdir-errno.m4: Likewise.
50937         * m4/rmdir.m4: Likewise.
50938         * m4/roundf.m4: Likewise.
50939         * m4/roundl.m4: Likewise.
50940         * m4/rpmatch.m4: Likewise.
50941         * m4/save-cwd.m4: Likewise.
50942         * m4/selinux-selinux-h.m4: Likewise.
50943         * m4/setenv.m4: Likewise.
50944         * m4/settime.m4: Likewise.
50945         * m4/sig2str.m4: Likewise.
50946         * m4/sig_atomic_t.m4: Likewise.
50947         * m4/signalblocking.m4: Likewise.
50948         * m4/signbit.m4: Likewise.
50949         * m4/sigpipe.m4: Likewise.
50950         * m4/sockets.m4: Likewise.
50951         * m4/sockpfaf.m4: Likewise.
50952         * m4/st_dm_mode.m4: Likewise.
50953         * m4/stat-time.m4: Likewise.
50954         * m4/stdbool.m4: Likewise.
50955         * m4/stdint.m4: Likewise.
50956         * m4/stdint_h.m4: Likewise.
50957         * m4/stpcpy.m4: Likewise.
50958         * m4/stpncpy.m4: Likewise.
50959         * m4/strcase.m4: Likewise.
50960         * m4/strchrnul.m4: Likewise.
50961         * m4/strcspn.m4: Likewise.
50962         * m4/strdup.m4: Likewise.
50963         * m4/strftime.m4: Likewise.
50964         * m4/strndup.m4: Likewise.
50965         * m4/strnlen.m4: Likewise.
50966         * m4/strpbrk.m4: Likewise.
50967         * m4/strptime.m4: Likewise.
50968         * m4/strsep.m4: Likewise.
50969         * m4/strtod.m4: Likewise.
50970         * m4/strtoimax.m4: Likewise.
50971         * m4/strtok_r.m4: Likewise.
50972         * m4/strtol.m4: Likewise.
50973         * m4/strtoll.m4: Likewise.
50974         * m4/strtoul.m4: Likewise.
50975         * m4/strtoull.m4: Likewise.
50976         * m4/strtoumax.m4: Likewise.
50977         * m4/strverscmp.m4: Likewise.
50978         * m4/threadlib.m4: Likewise.
50979         * m4/timegm.m4: Likewise.
50980         * m4/tm_gmtoff.m4: Likewise.
50981         * m4/tmpdir.m4: Likewise.
50982         * m4/tmpfile.m4: Likewise.
50983         * m4/tzset.m4: Likewise.
50984         * m4/uintmax_t.m4: Likewise.
50985         * m4/unlinkdir.m4: Likewise.
50986         * m4/unlocked-io.m4: Likewise.
50987         * m4/uptime.m4: Likewise.
50988         * m4/userspec.m4: Likewise.
50989         * m4/utimbuf.m4: Likewise.
50990         * m4/utime.m4: Likewise.
50991         * m4/utimes-null.m4: Likewise.
50992         * m4/utimes.m4: Likewise.
50993         * m4/vararrays.m4: Likewise.
50994         * m4/vasnprintf.m4: Likewise.
50995         * m4/vfprintf-posix.m4: Likewise.
50996         * m4/vprintf-posix.m4: Likewise.
50997         * m4/wait-process.m4: Likewise.
50998         * m4/wchar_t.m4: Likewise.
50999         * m4/wint_t.m4: Likewise.
51000         * m4/write-any-file.m4: Likewise.
51001         * m4/yield.m4: Likewise.
51002
51003 2009-01-13  Bruno Haible  <bruno@clisp.org>
51004
51005         Avoid test-copy-file.sh failures when ACL support insufficient.
51006         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51007         TESTS_ENVIRONMENT.
51008         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51009         Reported by Jim Meyering.
51010
51011 2009-01-13  Bruno Haible  <bruno@clisp.org>
51012
51013         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51014         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51015         * modules/unistdio/u8-printf-parse (Files): Likewise.
51016         * modules/unistdio/u32-printf-parse (Files): Likewise.
51017         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51018
51019 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51020
51021         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51022         and m4/inttypes_h.m4 too.
51023
51024 2009-01-12  Eric Blake  <ebb9@byu.net>
51025
51026         tests: IRIX 6.2 cc can't compile -0.0 into .data
51027         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51028         rather than at compile-time.
51029         * tests/test-floorl.c (minus_zero): Likewise.
51030         * tests/test-frexpl.c (minus_zero): Likewise.
51031         * tests/test-isnan.c (minus_zerol): Likewise.
51032         * tests/test-isnanl.h (minus_zero): Likewise.
51033         * tests/test-ldexpl.c (minus_zero): Likewise.
51034         * tests/test-roundl.c (minus_zero): Likewise.
51035         * tests/test-signbit.c (minus_zerol): Likewise.
51036         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51037         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51038         * tests/test-truncl.c (minus_zero): Likewise.
51039         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51040         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51041         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51042
51043 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51044
51045         regex: fix glibc bug 9697
51046         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51047         handling.
51048
51049 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51050
51051         regex: fix glibc bug 697
51052         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51053         being NULL also if there are no backreferences.
51054
51055 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51056
51057         regex: merge glibc changes
51058         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51059         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51060         re_string_skip_chars, re_string_reconstruct): Likewise.
51061         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51062
51063 2009-01-07  Jim Meyering  <meyering@redhat.com>
51064
51065         poll: filter through cppi
51066         * lib/poll.c: Indent cpp directives to reflect nesting.
51067
51068 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51069
51070         poll: don't return uninitialized
51071         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51072
51073 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51074
51075         avoid compile failure on AIX 6.1
51076         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51077         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51078
51079 2009-01-04  Jim Meyering  <meyering@redhat.com>
51080
51081         remove duplicate inclusion of <stdio.h>
51082         * tests/test-fprintf-posix.c: Likewise.
51083         * tests/test-printf-posix.c: Likewise.
51084         * tests/test-snprintf-posix.c: Likewise.
51085         * tests/test-sprintf-posix.c: Likewise.
51086         * tests/test-vasprintf-posix.c: Likewise.
51087         * tests/test-vfprintf-posix.c: Likewise.
51088         * tests/test-vprintf-posix.c: Likewise.
51089         * tests/test-vsnprintf-posix.c: Likewise.
51090         * tests/test-vsprintf-posix.c: Likewise.
51091
51092 2009-01-03  Jim Meyering  <meyering@redhat.com>
51093
51094         gnulib-tool: fix sed-based filtering
51095         * gnulib-tool (func_filter_filelist): Remove extra backslash
51096         in sed_fff_filter definition.
51097
51098 2009-01-02  Jim Meyering  <meyering@redhat.com>
51099
51100         strftime: avoid compilation failure on Solaris 2.6
51101         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51102         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51103         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51104         be available.  Reported by Tom G. Christensen.  Details in
51105         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51106
51107 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51108             Bruno Haible  <bruno@clisp.org>
51109
51110         Speed up gnulib-tool by doing more string processing through shell
51111         built-ins.
51112         * gnulib-tool (fast_func_append): New variable.
51113         (func_remove_prefix, func_remove_suffix): New functions.
51114         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51115         (func_filter_filelist): New function.
51116         (func_get_dependencies): Use func_remove_suffix instead of sed.
51117         (func_get_automake_snippet): Use func_filter_filelist instead of a
51118         subshell and sed invocation.
51119
51120 2009-01-01  Bruno Haible  <bruno@clisp.org>
51121
51122         Fix a security bug.
51123         * gnulib-tool (func_import, import, update): Don't allow the characters
51124         '"', '$', '`', '\' in macro arguments that become part of commands that
51125         are evaluated.
51126
51127 2009-01-01  Bruno Haible  <bruno@clisp.org>
51128
51129         * gnulib-tool (func_reset_sigpipe): Add more comments.
51130
51131 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51132
51133         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51134         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51135         already know the answer.
51136
51137 2009-01-01  Jim Meyering  <meyering@redhat.com>
51138
51139         * lib/version-etc.c (version_etc_va): Update copyright year.
51140
51141 2008-12-30  Bruno Haible  <bruno@clisp.org>
51142
51143         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51144         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51145         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51146
51147 2008-12-29  Eric Blake  <ebb9@byu.net>
51148
51149         multiarch: avoid autoconf AC_REQUIRE bug
51150         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51151         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51152         2.63 and older.
51153         Reported by Bruno Haible, and analyzed in
51154         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51155
51156 2008-12-29  Bruno Haible  <bruno@clisp.org>
51157
51158         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51159         files in subdirectories correctly.
51160         Reported by Ralf Wildenhues.
51161
51162 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51163
51164         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51165         rather than 'join FILE -', for Solaris join.
51166
51167 2008-12-29  Bruno Haible  <bruno@clisp.org>
51168
51169         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51170         quoting.
51171         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51172         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51173         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51174         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51175         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51176         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51177         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51178         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51179         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51180         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51181         * m4/nls.m4 (AM_NLS): Likewise.
51182         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51183         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51184         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51185         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51186         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51187         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51188         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51189         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51190         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51191         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51192         * m4/xsize.m4 (gl_XSIZE): Likewise.
51193         Suggested by Jim Meyering.
51194
51195 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51196
51197         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51198         * lib/parse-duration.c: use a switch instead of cascading if's.
51199
51200 2008-12-29  Eric Blake  <ebb9@byu.net>
51201
51202         wchar.h: supply WEOF on Irix 5.3
51203         * lib/wchar.in.h (wint_t): Also supply WEOF.
51204         * lib/wctype.in.h (wint_t): Likewise.
51205         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51206         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51207         Reported by Tom G. Christensen.
51208
51209 2008-12-26  Bruno Haible  <bruno@clisp.org>
51210
51211         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51212         i486, i586, i686.
51213
51214 2008-12-26  Bruno Haible  <bruno@clisp.org>
51215
51216         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51217
51218 2008-12-26  Bruno Haible  <bruno@clisp.org>
51219
51220         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51221         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51222         not __STDC_CONSTANT_MACROS.
51223         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51224
51225 2008-12-25  Bruno Haible  <bruno@clisp.org>
51226
51227         Add support for universal builds to vasnprintf.
51228         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51229         universal builds, guess no.
51230         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51231         * modules/vasprintf-posix (Depends-on): Likewise.
51232         * modules/fprintf-posix (Depends-on): Likewise.
51233         * modules/vfprintf-posix (Depends-on): Likewise.
51234         * modules/snprintf-posix (Depends-on): Likewise.
51235         * modules/vsnprintf-posix (Depends-on): Likewise.
51236         * modules/sprintf-posix (Depends-on): Likewise.
51237         * modules/vsprintf-posix (Depends-on): Likewise.
51238         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51239         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51240         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51241         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51242         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51243         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51244         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51245
51246         Add support for universal builds to <inttypes.h>.
51247         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51248         _SCNu64_PREFIX): In Apple
51249         universal builds, define directly, using _LP64.
51250         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51251         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51252         * modules/inttypes (Depends-on): Add multiarch.
51253         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51254
51255         Add support for universal builds to <stdint.h>.
51256         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51257         universal builds, define directly, using _LP64.
51258         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51259         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51260         and size_t.
51261         * modules/stdint (Depends-on): Add multiarch.
51262         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51263
51264         New module 'multiarch'.
51265         * modules/multiarch: New file.
51266         * m4/multiarch.m4: New file.
51267
51268 2008-12-25  Bruno Haible  <bruno@clisp.org>
51269
51270         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51271
51272 2008-12-25  Bruno Haible  <bruno@clisp.org>
51273
51274         * modules/btowc (License): Relicense under LGPLv2+.
51275         * modules/mbsinit (License): Likewise.
51276         * modules/mbrtowc (License): Likewise.
51277         * modules/wcrtomb (License): Likewise.
51278         * modules/streq (License): Likewise.
51279         Reported by David Lutterkort <lutter@redhat.com>.
51280
51281 2008-12-23  Bruno Haible  <bruno@clisp.org>
51282
51283         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51284
51285 2008-12-23  Bruno Haible  <bruno@clisp.org>
51286
51287         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51288         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51289         GETADDRINFO_LIB, not in LIBS.
51290         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51291         * modules/canon-host (Link): Likewise.
51292         * NEWS: Mention the change.
51293         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51294         GETADDRINFO_LIB.
51295
51296 2008-12-22  Bruno Haible  <bruno@clisp.org>
51297
51298         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51299         * doc/posix-functions/iswalpha_l.texi: Likewise.
51300         * doc/posix-functions/iswblank_l.texi: Likewise.
51301         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51302         * doc/posix-functions/iswctype_l.texi: Likewise.
51303         * doc/posix-functions/iswdigit_l.texi: Likewise.
51304         * doc/posix-functions/iswgraph_l.texi: Likewise.
51305         * doc/posix-functions/iswlower_l.texi: Likewise.
51306         * doc/posix-functions/iswprint_l.texi: Likewise.
51307         * doc/posix-functions/iswpunct_l.texi: Likewise.
51308         * doc/posix-functions/iswspace_l.texi: Likewise.
51309         * doc/posix-functions/iswupper_l.texi: Likewise.
51310         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51311         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51312         * doc/posix-functions/open_wmemstream.texi: Likewise.
51313         * doc/posix-functions/swscanf.texi: Likewise.
51314         * doc/posix-functions/towctrans_l.texi: Likewise.
51315         * doc/posix-functions/towlower.texi: Likewise.
51316         * doc/posix-functions/towlower_l.texi: Likewise.
51317         * doc/posix-functions/towupper.texi: Likewise.
51318         * doc/posix-functions/towupper_l.texi: Likewise.
51319         * doc/posix-functions/vfwprintf.texi: Likewise.
51320         * doc/posix-functions/vfwscanf.texi: Likewise.
51321         * doc/posix-functions/vswscanf.texi: Likewise.
51322         * doc/posix-functions/vwprintf.texi: Likewise.
51323         * doc/posix-functions/vwscanf.texi: Likewise.
51324         * doc/posix-functions/wcpcpy.texi: Likewise.
51325         * doc/posix-functions/wcpncpy.texi: Likewise.
51326         * doc/posix-functions/wcscasecmp.texi: Likewise.
51327         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51328         * doc/posix-functions/wcscoll_l.texi: Likewise.
51329         * doc/posix-functions/wcsdup.texi: Likewise.
51330         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51331         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51332         * doc/posix-functions/wcsnlen.texi: Likewise.
51333         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51334         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51335         * doc/posix-functions/wctrans_l.texi: Likewise.
51336         * doc/posix-functions/wctype_l.texi: Likewise.
51337         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51338         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51339         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51340         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51341         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51342         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51343         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51344         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51345         * doc/glibc-functions/wcschrnul.texi: Likewise.
51346         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51347         * doc/glibc-functions/wcstod_l.texi: Likewise.
51348         * doc/glibc-functions/wcstof_l.texi: Likewise.
51349         * doc/glibc-functions/wcstol_l.texi: Likewise.
51350         * doc/glibc-functions/wcstold_l.texi: Likewise.
51351         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51352         * doc/glibc-functions/wcstoq.texi: Likewise.
51353         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51354         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51355         * doc/glibc-functions/wcstouq.texi: Likewise.
51356         * doc/glibc-functions/wmempcpy.texi: Likewise.
51357
51358 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51359             Eric Blake  <ebb9@byu.net>
51360             Paolo Bonzini  <bonzini@gnu.org>
51361             Bruno Haible  <bruno@clisp.org>
51362
51363         Make c-stack work on Haiku.
51364         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51365         (c_stack_action): Use SA_ONSTACK flag.
51366
51367 2008-12-22  Bruno Haible  <bruno@clisp.org>
51368
51369         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51370
51371 2008-12-22  Bruno Haible  <bruno@clisp.org>
51372
51373         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51374         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51375         being overridden.
51376         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51377         New macros.
51378         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51379         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51380         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51381         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51382
51383 2008-12-22  Bruno Haible  <bruno@clisp.org>
51384
51385         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51386         from test code.
51387
51388 2008-12-22  Eric Blake  <ebb9@byu.net>
51389
51390         Avoid gcc warnings on cygwin.
51391         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51392         Avoid unused variable.
51393         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51394         Likewise.
51395
51396 2008-12-22  Bruno Haible  <bruno@clisp.org>
51397
51398         Remove HAVE_MBRTOWC conditionals.
51399         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51400         (mbscasecmp): Assume mbrtowc function.
51401         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51402         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51403         * lib/mbschr.c: Include mbuiter.h unconditionally.
51404         (mbschr): Assume mbrtowc function.
51405         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51406         (mbscspn): Assume mbrtowc function.
51407         * lib/mbslen.c: Include mbuiter.h unconditionally.
51408         (mbslen): Assume mbrtowc function.
51409         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51410         (mbsncasecmp): Assume mbrtowc function.
51411         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51412         (mbsnlen): Assume mbrtowc function.
51413         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51414         (mbspbrk): Assume mbrtowc function.
51415         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51416         (mbspcasecmp): Assume mbrtowc function.
51417         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51418         (mbsrchr): Assume mbrtowc function.
51419         * lib/mbssep.c: Include mbuiter.h unconditionally.
51420         (mbssep): Assume mbrtowc function.
51421         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51422         (mbsspn): Assume mbrtowc function.
51423         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51424         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51425         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51426         (mbstok_r): Assume mbrtowc function.
51427         * lib/propername.c: Include mbuiter.h unconditionally.
51428         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51429         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51430         (trim2): Assume mbrtowc function.
51431         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51432         (mbsnwidth): Assume mbrtowc function.
51433         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51434         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51435         fallback definitions.
51436         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51437
51438 2008-12-22  Bruno Haible  <bruno@clisp.org>
51439
51440         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51441
51442 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51443
51444         * modules/regex: Request emulations for the mb*/wc* functions we need.
51445         * m4/regex.m4: Don't look for those functions here.
51446         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51447
51448 2008-12-22  Bruno Haible  <bruno@clisp.org>
51449
51450         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51451
51452 2008-12-21  Bruno Haible  <bruno@clisp.org>
51453
51454         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51455         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51456         (Include): Remove conditionalization.
51457         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51458         (Include): Remove conditionalization.
51459         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51460         (Include): Remove conditionalization.
51461         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51462         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51463         * NEWS: Mention the change.
51464         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51465         via Sergey Poznyakoff <gray@gnu.org.ua>.
51466
51467 2008-12-21  Bruno Haible  <bruno@clisp.org>
51468
51469         * MODULES.html.sh (Extended multibyte and wide character utilities
51470         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51471         wcrtomb, wcsrtombs.
51472         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51473         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51474         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51475         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51476
51477 2008-12-21  Bruno Haible  <bruno@clisp.org>
51478
51479         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51480
51481 2008-12-21  Bruno Haible  <bruno@clisp.org>
51482
51483         * modules/wcsnrtombs-tests: New file.
51484         * tests/test-wcsnrtombs1.sh: New file.
51485         * tests/test-wcsnrtombs2.sh: New file.
51486         * tests/test-wcsnrtombs3.sh: New file.
51487         * tests/test-wcsnrtombs4.sh: New file.
51488         * tests/test-wcsnrtombs.c: New file.
51489
51490         New module 'wcsnrtombs'.
51491         * lib/wchar.in.h (wcsnrtombs): New declaration.
51492         * lib/wcsnrtombs.c: New file.
51493         * lib/wcsrtombs-state.c: New file.
51494         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51495         (internal_state): Remove variable.
51496         * m4/wcsnrtombs.m4: New file.
51497         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51498         compilation units.
51499         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51500         HAVE_WCSNRTOMBS.
51501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51502         HAVE_WCSNRTOMBS.
51503         * modules/wcsnrtombs: New file.
51504         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51505         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51506
51507 2008-12-21  Bruno Haible  <bruno@clisp.org>
51508
51509         * modules/wcsrtombs-tests: New file.
51510         * tests/test-wcsrtombs1.sh: New file.
51511         * tests/test-wcsrtombs2.sh: New file.
51512         * tests/test-wcsrtombs3.sh: New file.
51513         * tests/test-wcsrtombs4.sh: New file.
51514         * tests/test-wcsrtombs.c: New file.
51515
51516         New module 'wcsrtombs'.
51517         * lib/wchar.in.h (wcsrtombs): New declaration.
51518         * lib/wcsrtombs.c: New file.
51519         * m4/wcsrtombs.m4: New file.
51520         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51521         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51523         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51524         * modules/wcsrtombs: New file.
51525         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51526         bugs.
51527
51528 2008-12-21  Bruno Haible  <bruno@clisp.org>
51529
51530         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51531         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51532         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51533         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51534         if not correct.
51535         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51536         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51537         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51538         m4/locale-zh.m4, m4/codeset.m4.
51539         * doc/posix-functions/wcrtomb.texi: Document the bug.
51540
51541 2008-12-21  Bruno Haible  <bruno@clisp.org>
51542
51543         Work around a btowc() bug on IRIX 6.5.
51544         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51545         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51546         REPLACE_WTOBC if not.
51547         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51548         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51549         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51550
51551 2008-12-21  Bruno Haible  <bruno@clisp.org>
51552
51553         * modules/wcrtomb-tests: New file.
51554         * tests/test-wcrtomb.sh: New file.
51555         * tests/test-wcrtomb.c: New file.
51556
51557         New module 'wcrtomb'.
51558         * lib/wchar.in.h (wcrtomb): New declaration.
51559         * lib/wcrtomb.c: New file.
51560         * m4/wcrtomb.m4: New file.
51561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51562         HAVE_WCRTOMB.
51563         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51564         HAVE_WCRTOMB.
51565         * modules/wcrtomb: New file.
51566         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51567
51568 2008-12-21  Bruno Haible  <bruno@clisp.org>
51569
51570         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51571         * modules/mbsrtowcs (Files): Likewise.
51572         * modules/wctob (Files): Likewise.
51573         * modules/c-strcase-tests (Files): Likewise.
51574         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51575         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51576         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51577         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51578         * modules/vasnprintf-posix-tests (Files): Likewise.
51579
51580 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51581
51582         gitlog-to-changelog: pass all command-line arguments to git-log
51583         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51584         it is sometimes convenient to filter the commits in various ways.
51585         gitlog-to-changelog only allows --since to specify a start date,
51586         but git-log itself supports many other filtering mechanisms.
51587         At the moment, I want to filter by branch name.  Rather than
51588         adding a --branch option to gitlog-to-changelog, it seems more
51589         flexible to simply pass all options directly to git-log and let
51590         git do the work.  Notice that this effectively makes --since a
51591         redundant option for gitlog-to-changelog, but removing it would
51592         require current usage to change since calls would then require
51593         an additional '--'.
51594
51595 2008-12-21  Bruno Haible  <bruno@clisp.org>
51596
51597         * modules/mbsnrtowcs-tests: New file.
51598         * tests/test-mbsnrtowcs1.sh: New file.
51599         * tests/test-mbsnrtowcs2.sh: New file.
51600         * tests/test-mbsnrtowcs3.sh: New file.
51601         * tests/test-mbsnrtowcs4.sh: New file.
51602         * tests/test-mbsnrtowcs.c: New file.
51603
51604         New module 'mbsnrtowcs'.
51605         * lib/wchar.in.h (mbsnrtowcs): New declaration.
51606         * lib/mbsnrtowcs.c: New file.
51607         * lib/mbsrtowcs-state.c: New file.
51608         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
51609         (internal_state): Remove variable.
51610         * m4/mbsnrtowcs.m4: New file.
51611         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
51612         compilation units.
51613         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
51614         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51615         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
51616         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51617         * modules/mbsnrtowcs: New file.
51618         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
51619         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
51620         portability problem.
51621
51622 2008-12-21  Bruno Haible  <bruno@clisp.org>
51623
51624         Work around mbsrtowcs bug.
51625         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
51626         (gl_FUNC_MBSRTOWCS): Invoke it.
51627         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51628         m4/locale-zh.m4.
51629         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
51630
51631 2008-12-21  Bruno Haible  <bruno@clisp.org>
51632
51633         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
51634
51635 2008-12-21  Bruno Haible  <bruno@clisp.org>
51636
51637         Update doc for AIX.
51638         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
51639         16-bit wchar_t type.
51640         * doc/posix-functions/btowc.texi: Likewise.
51641         * doc/posix-functions/fgetwc.texi: Likewise.
51642         * doc/posix-functions/fgetws.texi: Likewise.
51643         * doc/posix-functions/fputwc.texi: Likewise.
51644         * doc/posix-functions/fputws.texi: Likewise.
51645         * doc/posix-functions/fwide.texi: Likewise.
51646         * doc/posix-functions/fwprintf.texi: Likewise.
51647         * doc/posix-functions/fwscanf.texi: Likewise.
51648         * doc/posix-functions/getwchar.texi: Likewise.
51649         * doc/posix-functions/getwc.texi: Likewise.
51650         * doc/posix-functions/iswalnum.texi: Likewise.
51651         * doc/posix-functions/iswalpha.texi: Likewise.
51652         * doc/posix-functions/iswblank.texi: Likewise.
51653         * doc/posix-functions/iswcntrl.texi: Likewise.
51654         * doc/posix-functions/iswctype.texi: Likewise.
51655         * doc/posix-functions/iswdigit.texi: Likewise.
51656         * doc/posix-functions/iswgraph.texi: Likewise.
51657         * doc/posix-functions/iswlower.texi: Likewise.
51658         * doc/posix-functions/iswprint.texi: Likewise.
51659         * doc/posix-functions/iswpunct.texi: Likewise.
51660         * doc/posix-functions/iswspace.texi: Likewise.
51661         * doc/posix-functions/iswupper.texi: Likewise.
51662         * doc/posix-functions/iswxdigit.texi: Likewise.
51663         * doc/posix-functions/mbrtowc.texi: Likewise.
51664         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51665         * doc/posix-functions/mbstowcs.texi: Likewise.
51666         * doc/posix-functions/mbtowc.texi: Likewise.
51667         * doc/posix-functions/putwchar.texi: Likewise.
51668         * doc/posix-functions/putwc.texi: Likewise.
51669         * doc/posix-functions/swprintf.texi: Likewise.
51670         * doc/posix-functions/tolower.texi: Likewise.
51671         * doc/posix-functions/toupper.texi: Likewise.
51672         * doc/posix-functions/towctrans.texi: Likewise.
51673         * doc/posix-functions/ungetwc.texi: Likewise.
51674         * doc/posix-functions/vswprintf.texi: Likewise.
51675         * doc/posix-functions/wcrtomb.texi: Likewise.
51676         * doc/posix-functions/wcscat.texi: Likewise.
51677         * doc/posix-functions/wcschr.texi: Likewise.
51678         * doc/posix-functions/wcscmp.texi: Likewise.
51679         * doc/posix-functions/wcscoll.texi: Likewise.
51680         * doc/posix-functions/wcscpy.texi: Likewise.
51681         * doc/posix-functions/wcscspn.texi: Likewise.
51682         * doc/posix-functions/wcsftime.texi: Likewise.
51683         * doc/posix-functions/wcslen.texi: Likewise.
51684         * doc/posix-functions/wcsncat.texi: Likewise.
51685         * doc/posix-functions/wcsncmp.texi: Likewise.
51686         * doc/posix-functions/wcsncpy.texi: Likewise.
51687         * doc/posix-functions/wcspbrk.texi: Likewise.
51688         * doc/posix-functions/wcsrchr.texi: Likewise.
51689         * doc/posix-functions/wcsrtombs.texi: Likewise.
51690         * doc/posix-functions/wcsspn.texi: Likewise.
51691         * doc/posix-functions/wcsstr.texi: Likewise.
51692         * doc/posix-functions/wcstod.texi: Likewise.
51693         * doc/posix-functions/wcstof.texi: Likewise.
51694         * doc/posix-functions/wcstoimax.texi: Likewise.
51695         * doc/posix-functions/wcstok.texi: Likewise.
51696         * doc/posix-functions/wcstold.texi: Likewise.
51697         * doc/posix-functions/wcstoll.texi: Likewise.
51698         * doc/posix-functions/wcstol.texi: Likewise.
51699         * doc/posix-functions/wcstombs.texi: Likewise.
51700         * doc/posix-functions/wcstoull.texi: Likewise.
51701         * doc/posix-functions/wcstoul.texi: Likewise.
51702         * doc/posix-functions/wcstoumax.texi: Likewise.
51703         * doc/posix-functions/wcswidth.texi: Likewise.
51704         * doc/posix-functions/wcsxfrm.texi: Likewise.
51705         * doc/posix-functions/wctob.texi: Likewise.
51706         * doc/posix-functions/wctomb.texi: Likewise.
51707         * doc/posix-functions/wctrans.texi: Likewise.
51708         * doc/posix-functions/wctype.texi: Likewise.
51709         * doc/posix-functions/wcwidth.texi: Likewise.
51710         * doc/posix-functions/wmemchr.texi: Likewise.
51711         * doc/posix-functions/wmemcmp.texi: Likewise.
51712         * doc/posix-functions/wmemcpy.texi: Likewise.
51713         * doc/posix-functions/wmemmove.texi: Likewise.
51714         * doc/posix-functions/wmemset.texi: Likewise.
51715         * doc/posix-functions/wprintf.texi: Likewise.
51716         * doc/posix-functions/wscanf.texi: Likewise.
51717
51718 2008-12-21  Bruno Haible  <bruno@clisp.org>
51719
51720         Update doc for HP-UX 11.11.
51721         * doc/posix-functions/btowc.texi: Clarify that the function is missing
51722         in HP-UX version 11.00, not in all versions of HP-UX 11.
51723         * doc/posix-functions/fwide.texi: Likewise.
51724         * doc/posix-functions/fwprintf.texi: Likewise.
51725         * doc/posix-functions/fwscanf.texi: Likewise.
51726         * doc/posix-functions/inet_ntop.texi: Likewise.
51727         * doc/posix-functions/inet_pton.texi: Likewise.
51728         * doc/posix-functions/mbrlen.texi: Likewise.
51729         * doc/posix-functions/mbrtowc.texi: Likewise.
51730         * doc/posix-functions/mbsinit.texi: Likewise.
51731         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51732         * doc/posix-functions/swprintf.texi: Likewise.
51733         * doc/posix-functions/swscanf.texi: Likewise.
51734         * doc/posix-functions/towctrans.texi: Likewise.
51735         * doc/posix-functions/vfwprintf.texi: Likewise.
51736         * doc/posix-functions/vswprintf.texi: Likewise.
51737         * doc/posix-functions/vwprintf.texi: Likewise.
51738         * doc/posix-functions/wcrtomb.texi: Likewise.
51739         * doc/posix-functions/wcsrtombs.texi: Likewise.
51740         * doc/posix-functions/wcsstr.texi: Likewise.
51741         * doc/posix-functions/wctob.texi: Likewise.
51742         * doc/posix-functions/wctrans.texi: Likewise.
51743         * doc/posix-functions/wmemchr.texi: Likewise.
51744         * doc/posix-functions/wmemcmp.texi: Likewise.
51745         * doc/posix-functions/wmemcpy.texi: Likewise.
51746         * doc/posix-functions/wmemmove.texi: Likewise.
51747         * doc/posix-functions/wmemset.texi: Likewise.
51748         * doc/posix-functions/wprintf.texi: Likewise.
51749         * doc/posix-functions/wscanf.texi: Likewise.
51750
51751 2008-12-21  Bruno Haible  <bruno@clisp.org>
51752
51753         Work around a portability problem.
51754         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
51755         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
51756
51757 2008-12-20  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
51760         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
51761         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
51762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
51763         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
51764
51765         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
51766         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
51767         set.
51768         (GNULIB_defined_mbstate_t): New macro.
51769         (mbsinit): Redefine if REPLACE_MBSINIT is set.
51770         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
51771         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
51772         reuses the system's mbrtowc function but works around the bugs.
51773         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
51774         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
51775         macros.
51776         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
51777         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
51778         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
51779         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
51780         REPLACE_MBSINIT if mbsinit needs to be overridden.
51781         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
51782         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51783         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
51784         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51785         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51786         m4/locale-zh.m4.
51787         (Depends): Add mbsinit.
51788         * modules/mbsinit (Depends): Add mbrtowc.
51789         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
51790
51791 2008-12-20  Bruno Haible  <bruno@clisp.org>
51792
51793         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
51794         so that there are no conversion errors on AIX.
51795         * tests/test-mbsrtowcs.c (main): LIkewise.
51796
51797 2008-12-20  Bruno Haible  <bruno@clisp.org>
51798
51799         Work around wctob bug on Solaris <= 9.
51800         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
51801         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
51802         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
51803         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
51804         * modules/wctob (Files): Add m4/locale-fr.m4.
51805         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
51806
51807 2008-12-20  Bruno Haible  <bruno@clisp.org>
51808
51809         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
51810         /dev/null.
51811         * tests/test-select-in.sh: Likewise.
51812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51813
51814 2008-12-20  Bruno Haible  <bruno@clisp.org>
51815
51816         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
51817         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
51818         Cygwin 1.5.x.
51819
51820 2008-12-20  Bruno Haible  <bruno@clisp.org>
51821
51822         Ensure mbstate_t is defined on HP-UX 11.11.
51823         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
51824         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
51825         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
51826         AC_USE_SYSTEM_EXTENSIONS.
51827         * modules/fnmatch (Depends-on): Add extensions.
51828         * modules/mbrlen (Depends-on): Likewise.
51829         * modules/mbrtowc (Depends-on): Likewise.
51830         * modules/mbsinit (Depends-on): Likewise.
51831         * modules/mbsrtowcs (Depends-on): Likewise.
51832         * modules/mbswidth (Depends-on): Likewise.
51833         * modules/quotearg (Depends-on): Likewise.
51834         * modules/strftime (Depends-on): Likewise.
51835
51836 2008-12-20  Bruno Haible  <bruno@clisp.org>
51837
51838         Ensure wctob is declared on IRIX 6.5.
51839         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
51840         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
51841         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
51842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
51843         of HAVE_WCTOB.
51844         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
51845         HAVE_WCTOB.
51846         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
51847
51848 2008-12-19  Bruno Haible  <bruno@clisp.org>
51849
51850         * modules/mbsrtowcs-tests: New file.
51851         * tests/test-mbsrtowcs1.sh: New file.
51852         * tests/test-mbsrtowcs2.sh: New file.
51853         * tests/test-mbsrtowcs3.sh: New file.
51854         * tests/test-mbsrtowcs4.sh: New file.
51855         * tests/test-mbsrtowcs.c: New file.
51856
51857         New module 'mbsrtowcs'.
51858         * lib/wchar.in.h (mbsrtowcs): New declaration.
51859         * lib/mbsrtowcs.c: New file.
51860         * m4/mbsrtowcs.m4: New file.
51861         * modules/mbsrtowcs: New file.
51862         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
51863         HAVE_MBSRTOWCS.
51864         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
51865         HAVE_MBSRTOWCS.
51866         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
51867
51868 2008-12-19  Bruno Haible  <bruno@clisp.org>
51869
51870         New module 'mbrlen'.
51871         * lib/wchar.in.h (mbrlen): New declaration.
51872         * lib/mbrlen.c: New file.
51873         * m4/mbrlen.m4: New file.
51874         * modules/mbrlen: New file.
51875         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
51876         HAVE_MBRLEN.
51877         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
51878         HAVE_MBRLEN.
51879         * doc/posix-functions/mbrlen.texi: Document the new module.
51880
51881 2008-12-19  Bruno Haible  <bruno@clisp.org>
51882
51883         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
51884         * modules/mbrtowc (Depends-on): Add verify.
51885         Suggested by Paul Eggert.
51886
51887 2008-12-18  Bruno Haible  <bruno@clisp.org>
51888
51889         * modules/mbsinit-tests: New file.
51890         * tests/test-mbsinit.sh: New file.
51891         * tests/test-mbsinit.c: New file.
51892
51893 2008-12-18  Bruno Haible  <bruno@clisp.org>
51894
51895         * modules/mbrtowc-tests: New file.
51896         * tests/test-mbrtowc1.sh: New file.
51897         * tests/test-mbrtowc2.sh: New file.
51898         * tests/test-mbrtowc3.sh: New file.
51899         * tests/test-mbrtowc4.sh: New file.
51900         * tests/test-mbrtowc.c: New file.
51901
51902         New module 'mbrtowc'.
51903         * lib/wchar.in.h (mbstate_t): Override when the system does not have
51904         mbsinit and mbrtowc.
51905         (mbrtowc): New declaration.
51906         * lib/mbrtowc.c: New file.
51907         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
51908         * modules/mbrtowc: New file.
51909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
51910         HAVE_MBRTOWC.
51911         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
51912         HAVE_MBRTOWC.
51913         * doc/posix-functions/mbrtowc.texi: Document the new module.
51914
51915 2008-12-18  Bruno Haible  <bruno@clisp.org>
51916
51917         New module 'wctob'.
51918         * lib/wchar.in.h (wctob): New declaration.
51919         * lib/wctob.c: New file.
51920         * m4/wctob.m4: New file.
51921         * modules/wctob: New file.
51922         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
51923         HAVE_WCTOB.
51924         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
51925         * doc/posix-functions/wctob.texi: Document the new module.
51926
51927 2008-12-18  Bruno Haible  <bruno@clisp.org>
51928
51929         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
51930         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
51931
51932 2008-12-18  Simon Josefsson  <simon@josefsson.org>
51933
51934         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
51935         G. Christensen" <tgc@jupiterrise.com>.
51936
51937         * lib/flock.c: Need to include errno.h.  Reported by "Tom
51938         G. Christensen" <tgc@jupiterrise.com>.
51939
51940         * lib/flock.c: Need to include string.h.  Reported by "Tom
51941         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
51942         <ebb9@byu.net>.
51943
51944 2008-12-18  Bruno Haible  <bruno@clisp.org>
51945
51946         * m4/locale-ja.m4: New file, from GNU gettext.
51947
51948 2008-12-17  Bruno Haible  <bruno@clisp.org>
51949
51950         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
51951         Suggested by Eric Blake.
51952
51953 2008-12-17  Bruno Haible  <bruno@clisp.org>
51954
51955         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
51956
51957 2008-12-17  Bruno Haible  <bruno@clisp.org>
51958
51959         * lib/mbsinit.c: Include verify.h. Verify an assumption.
51960         * modules/mbsinit (Depends-on): Add verify.
51961         Suggested by Paul Eggert.
51962
51963 2008-12-17  Bruno Haible  <bruno@clisp.org>
51964
51965         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
51966         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
51967         gl_FUNC_MBRTOWC.
51968         * m4/mbiter.m4 (gl_MBITER): LIkewise.
51969         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
51970         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
51971         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
51972         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
51973         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
51974         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
51975         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
51976         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
51977         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
51978         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
51979         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
51980         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
51981         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
51982         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
51983         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51984         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
51985         * modules/trim (configure.ac): Likewise.
51986
51987 2008-12-17  Bruno Haible  <bruno@clisp.org>
51988
51989         * modules/btowc-tests: New file.
51990         * tests/test-btowc1.sh: New file.
51991         * tests/test-btowc2.sh: New file.
51992         * tests/test-btowc.c: New file.
51993
51994         New module 'btowc'.
51995         * lib/wchar.in.h (btowc): New declaration.
51996         * lib/btowc.c: New file.
51997         * m4/btowc.m4: New file.
51998         * modules/btowc: New file.
51999         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52000         HAVE_BTOWC.
52001         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52002         * doc/posix-functions/btowc.texi: Document the new module.
52003
52004 2008-12-17  Bruno Haible  <bruno@clisp.org>
52005
52006         New module 'mbsinit'.
52007         * lib/wchar.in.h (mbsinit): New declaration.
52008         * lib/mbsinit.c: New file.
52009         * m4/mbsinit.m4: New file.
52010         * modules/mbsinit: New file.
52011         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52012         HAVE_MBSINIT.
52013         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52014         HAVE_MBSINIT.
52015         * doc/posix-functions/mbsinit.texi: Document the new module.
52016
52017 2008-12-16  Bruno Haible  <bruno@clisp.org>
52018
52019         * lib/unistd.in.h: Add comment.
52020         * tests/test-environ.c: Don't include <stdlib.h>.
52021
52022 2008-12-16  Bruno Haible  <bruno@clisp.org>
52023
52024         * lib/parse-duration.h (parse_duration): Document return value
52025         convention.
52026         * lib/parse-duration.c: Include specification header first. Add
52027         comments.
52028         (_): Remove macro.
52029         (parse_year_month_day, parse_hour_minute_second): Move side effects
52030         outside of strchr call.
52031         (parse_non_iso8601): Move side effects outside of isspace call.
52032         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52033         call.
52034
52035 2008-12-16  Bruno Haible  <bruno@clisp.org>
52036
52037         * tests/test-parse-duration.sh: Produce no output when the test
52038         succeeds.
52039
52040 2008-12-16  Bruno Haible  <bruno@clisp.org>
52041
52042         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52043         expressions.
52044
52045 2008-12-15  Bruno Haible  <bruno@clisp.org>
52046
52047         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52048         * doc/glibc-functions/flistxattr.texi: Likewise.
52049         * doc/glibc-functions/fopencookie.texi: Likewise.
52050         * doc/glibc-functions/fremovexattr.texi: Likewise.
52051         * doc/glibc-functions/fsetxattr.texi: Likewise.
52052         * doc/glibc-functions/getxattr.texi: Likewise.
52053         * doc/glibc-functions/lgetxattr.texi: Likewise.
52054         * doc/glibc-functions/listxattr.texi: Likewise.
52055         * doc/glibc-functions/llistxattr.texi: Likewise.
52056         * doc/glibc-functions/lremovexattr.texi: Likewise.
52057         * doc/glibc-functions/lsetxattr.texi: Likewise.
52058         * doc/glibc-functions/removexattr.texi: Likewise.
52059         * doc/glibc-functions/setxattr.texi: Likewise.
52060         * doc/posix-functions/open_memstream.texi: Likewise.
52061
52062 2008-12-15  Eric Blake  <ebb9@byu.net>
52063
52064         Update doc for cygwin 1.7.
52065         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52066         functions.
52067         * doc/posix-functions/fchmodat.texi: Likewise.
52068         * doc/posix-functions/fchownat.texi: Likewise.
52069         * doc/posix-functions/fdopendir.texi: Likewise.
52070         * doc/posix-functions/fmemopen.texi: Likewise.
52071         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52072         * doc/posix-functions/fstatat.texi: Likewise.
52073         * doc/posix-functions/futimens.texi: Likewise.
52074         * doc/posix-functions/gai_strerror.texi: Likewise.
52075         * doc/posix-functions/getaddrinfo.texi: Likewise.
52076         * doc/posix-functions/getnameinfo.texi: Likewise.
52077         * doc/posix-functions/if_freenameindex.texi: Likewise.
52078         * doc/posix-functions/if_indextoname.texi: Likewise.
52079         * doc/posix-functions/if_nameindex.texi: Likewise.
52080         * doc/posix-functions/if_nametoindex.texi: Likewise.
52081         * doc/posix-functions/insque.texi: Likewise.
52082         * doc/posix-functions/linkat.texi: Likewise.
52083         * doc/posix-functions/llrint.texi: Likewise.
52084         * doc/posix-functions/llrintf.texi: Likewise.
52085         * doc/posix-functions/llrintl.texi: Likewise.
52086         * doc/posix-functions/lockf.texi: Likewise.
52087         * doc/posix-functions/lrintl.texi: Likewise.
52088         * doc/posix-functions/mkdirat.texi: Likewise.
52089         * doc/posix-functions/mkfifoat.texi: Likewise.
52090         * doc/posix-functions/mknodat.texi: Likewise.
52091         * doc/posix-functions/mq_close.texi: Likewise.
52092         * doc/posix-functions/mq_getattr.texi: Likewise.
52093         * doc/posix-functions/mq_notify.texi: Likewise.
52094         * doc/posix-functions/mq_open.texi: Likewise.
52095         * doc/posix-functions/mq_receive.texi: Likewise.
52096         * doc/posix-functions/mq_send.texi: Likewise.
52097         * doc/posix-functions/mq_setattr.texi: Likewise.
52098         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52099         * doc/posix-functions/mq_timedsend.texi: Likewise.
52100         * doc/posix-functions/mq_unlink.texi: Likewise.
52101         * doc/posix-functions/open_memstream.texi: Likewise.
52102         * doc/posix-functions/openat.texi: Likewise.
52103         * doc/posix-functions/posix_fadvise.texi: Likewise.
52104         * doc/posix-functions/posix_fallocate.texi: Likewise.
52105         * doc/posix-functions/posix_madvise.texi: Likewise.
52106         * doc/posix-functions/posix_memalign.texi: Likewise.
52107         * doc/posix-functions/posix_openpt.texi: Likewise.
52108         * doc/posix-functions/readlinkat.texi: Likewise.
52109         * doc/posix-functions/remque.texi: Likewise.
52110         * doc/posix-functions/renameat.texi: Likewise.
52111         * doc/posix-functions/rintl.texi: Likewise.
52112         * doc/posix-functions/sem_unlink.texi: Likewise.
52113         * doc/posix-functions/shm_open.texi: Likewise.
52114         * doc/posix-functions/shm_unlink.texi: Likewise.
52115         * doc/posix-functions/signgam.texi: Likewise.
52116         * doc/posix-functions/sigset.texi: Likewise.
52117         * doc/posix-functions/stpcpy.texi: Likewise.
52118         * doc/posix-functions/stpncpy.texi: Likewise.
52119         * doc/posix-functions/strerror.texi: Likewise.
52120         * doc/posix-functions/strtod.texi: Likewise.
52121         * doc/posix-functions/symlinkat.texi: Likewise.
52122         * doc/posix-functions/unlinkat.texi: Likewise.
52123         * doc/posix-functions/utimensat.texi: Likewise.
52124         * doc/glibc-functions/bindresvport.texi: Likewise.
52125         * doc/glibc-functions/dn_expand.texi: Likewise.
52126         * doc/glibc-functions/exp10.texi: Likewise.
52127         * doc/glibc-functions/exp10f.texi: Likewise.
52128         * doc/glibc-functions/fgetxattr.texi: Likewise.
52129         * doc/glibc-functions/flistxattr.texi: Likewise.
52130         * doc/glibc-functions/fopencookie.texi: Likewise.
52131         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52132         * doc/glibc-functions/fremovexattr.texi: Likewise.
52133         * doc/glibc-functions/fsetxattr.texi: Likewise.
52134         * doc/glibc-functions/getifaddrs.texi: Likewise.
52135         * doc/glibc-functions/getxattr.texi: Likewise.
52136         * doc/glibc-functions/lgetxattr.texi: Likewise.
52137         * doc/glibc-functions/listxattr.texi: Likewise.
52138         * doc/glibc-functions/llistxattr.texi: Likewise.
52139         * doc/glibc-functions/lremovexattr.texi: Likewise.
52140         * doc/glibc-functions/lsetxattr.texi: Likewise.
52141         * doc/glibc-functions/pow10.texi: Likewise.
52142         * doc/glibc-functions/pow10f.texi: Likewise.
52143         * doc/glibc-functions/rcmd_af.texi: Likewise.
52144         * doc/glibc-functions/removexattr.texi: Likewise.
52145         * doc/glibc-functions/res_init.texi: Likewise.
52146         * doc/glibc-functions/res_mkquery.texi: Likewise.
52147         * doc/glibc-functions/res_query.texi: Likewise.
52148         * doc/glibc-functions/res_querydomain.texi: Likewise.
52149         * doc/glibc-functions/res_send.texi: Likewise.
52150         * doc/glibc-functions/rresvport_af.texi: Likewise.
52151         * doc/glibc-functions/setxattr.texi: Likewise.
52152         * doc/glibc-functions/strcasestr.texi: Likewise.
52153
52154 2008-12-15  Bruno Haible  <bruno@clisp.org>
52155
52156         Fix compilation error on OSF/1 4.0.
52157         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52158         <sys/time.h>, simply delegate to the system header.
52159         Reported by Daniel Richard G. <oss@teragram.com>.
52160
52161 2008-12-15  Bruno Haible  <bruno@clisp.org>
52162
52163         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52164         * doc/posix-functions/fchmodat.texi: Likewise.
52165         * doc/posix-functions/fchownat.texi: Likewise.
52166         * doc/posix-functions/fdopendir.texi: Likewise.
52167         * doc/posix-functions/fstatat.texi: Likewise.
52168         * doc/posix-functions/mkdirat.texi: Likewise.
52169         * doc/posix-functions/unlinkat.texi: Likewise.
52170
52171 2008-12-14  Bruno Haible  <bruno@clisp.org>
52172
52173         Update doc for POSIX:2008.
52174         * doc/posix-functions/faccessat.texi: New file.
52175         * doc/posix-functions/fchmodat.texi: New file.
52176         * doc/posix-functions/fchownat.texi: New file.
52177         * doc/posix-functions/fdopendir.texi: New file.
52178         * doc/posix-functions/fstatat.texi: New file.
52179         * doc/posix-functions/futimens.texi: New file.
52180         * doc/posix-functions/linkat.texi: New file.
52181         * doc/posix-functions/mkdirat.texi: New file.
52182         * doc/posix-functions/mkfifoat.texi: New file.
52183         * doc/posix-functions/mknodat.texi: New file.
52184         * doc/posix-functions/open_wmemstream.texi: New file.
52185         * doc/posix-functions/openat.texi: New file.
52186         * doc/posix-functions/psiginfo.texi: New file.
52187         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52188         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52189         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52190         * doc/posix-functions/readlinkat.texi: New file.
52191         * doc/posix-functions/renameat.texi: New file.
52192         * doc/posix-functions/strerror_l.texi: New file.
52193         * doc/posix-functions/symlinkat.texi: New file.
52194         * doc/posix-functions/unlinkat.texi: New file.
52195         * doc/posix-functions/utimensat.texi: New file.
52196         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52197
52198 2008-12-14  Bruno Haible  <bruno@clisp.org>
52199
52200         Update doc for POSIX:2008.
52201         * doc/posix-functions/alphasort.texi: Renamed from
52202         doc/glibc-functions/alphasort.texi.
52203         * doc/posix-functions/dirfd.texi: Renamed from
52204         doc/glibc-functions/dirfd.texi.
52205         * doc/posix-functions/dprintf.texi: Renamed from
52206         doc/glibc-functions/dprintf.texi.
52207         * doc/posix-functions/duplocale.texi: Renamed from
52208         doc/glibc-functions/duplocale.texi.
52209         * doc/posix-functions/fexecve.texi: Renamed from
52210         doc/glibc-functions/fexecve.texi.
52211         * doc/posix-functions/fmemopen.texi: Renamed from
52212         doc/glibc-functions/fmemopen.texi.
52213         * doc/posix-functions/freelocale.texi: Renamed from
52214         doc/glibc-functions/freelocale.texi.
52215         * doc/posix-functions/getdate_err.texi: Renamed from
52216         doc/glibc-functions/getdate_err.texi.
52217         * doc/posix-functions/isalnum_l.texi: Renamed from
52218         doc/glibc-functions/isalnum_l.texi.
52219         * doc/posix-functions/isalpha_l.texi: Renamed from
52220         doc/glibc-functions/isalpha_l.texi.
52221         * doc/posix-functions/isblank_l.texi: Renamed from
52222         doc/glibc-functions/isblank_l.texi.
52223         * doc/posix-functions/iscntrl_l.texi: Renamed from
52224         doc/glibc-functions/iscntrl_l.texi.
52225         * doc/posix-functions/isdigit_l.texi: Renamed from
52226         doc/glibc-functions/isdigit_l.texi.
52227         * doc/posix-functions/isgraph_l.texi: Renamed from
52228         doc/glibc-functions/isgraph_l.texi.
52229         * doc/posix-functions/islower_l.texi: Renamed from
52230         doc/glibc-functions/islower_l.texi.
52231         * doc/posix-functions/isprint_l.texi: Renamed from
52232         doc/glibc-functions/isprint_l.texi.
52233         * doc/posix-functions/ispunct_l.texi: Renamed from
52234         doc/glibc-functions/ispunct_l.texi.
52235         * doc/posix-functions/isspace_l.texi: Renamed from
52236         doc/glibc-functions/isspace_l.texi.
52237         * doc/posix-functions/isupper_l.texi: Renamed from
52238         doc/glibc-functions/isupper_l.texi.
52239         * doc/posix-functions/iswalnum_l.texi: Renamed from
52240         doc/glibc-functions/iswalnum_l.texi.
52241         * doc/posix-functions/iswalpha_l.texi: Renamed from
52242         doc/glibc-functions/iswalpha_l.texi.
52243         * doc/posix-functions/iswblank_l.texi: Renamed from
52244         doc/glibc-functions/iswblank_l.texi.
52245         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52246         doc/glibc-functions/iswcntrl_l.texi.
52247         * doc/posix-functions/iswctype_l.texi: Renamed from
52248         doc/glibc-functions/iswctype_l.texi.
52249         * doc/posix-functions/iswdigit_l.texi: Renamed from
52250         doc/glibc-functions/iswdigit_l.texi.
52251         * doc/posix-functions/iswgraph_l.texi: Renamed from
52252         doc/glibc-functions/iswgraph_l.texi.
52253         * doc/posix-functions/iswlower_l.texi: Renamed from
52254         doc/glibc-functions/iswlower_l.texi.
52255         * doc/posix-functions/iswprint_l.texi: Renamed from
52256         doc/glibc-functions/iswprint_l.texi.
52257         * doc/posix-functions/iswpunct_l.texi: Renamed from
52258         doc/glibc-functions/iswpunct_l.texi.
52259         * doc/posix-functions/iswspace_l.texi: Renamed from
52260         doc/glibc-functions/iswspace_l.texi.
52261         * doc/posix-functions/iswupper_l.texi: Renamed from
52262         doc/glibc-functions/iswupper_l.texi.
52263         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52264         doc/glibc-functions/iswxdigit_l.texi.
52265         * doc/posix-functions/isxdigit_l.texi: Renamed from
52266         doc/glibc-functions/isxdigit_l.texi.
52267         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52268         doc/glibc-functions/mbsnrtowcs.texi.
52269         * doc/posix-functions/mkdtemp.texi: Renamed from
52270         doc/glibc-functions/mkdtemp.texi.
52271         * doc/posix-functions/newlocale.texi: Renamed from
52272         doc/glibc-functions/newlocale.texi.
52273         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52274         doc/glibc-functions/nl_langinfo_l.texi.
52275         * doc/posix-functions/open_memstream.texi: Renamed from
52276         doc/glibc-functions/open_memstream.texi.
52277         * doc/posix-functions/opterr.texi: Renamed from
52278         doc/glibc-functions/opterr.texi.
52279         * doc/posix-functions/optind.texi: Renamed from
52280         doc/glibc-functions/optind.texi.
52281         * doc/posix-functions/optopt.texi: Renamed from
52282         doc/glibc-functions/optopt.texi.
52283         * doc/posix-functions/psignal.texi: Renamed from
52284         doc/glibc-functions/psignal.texi.
52285         * doc/posix-functions/scandir.texi: Renamed from
52286         doc/glibc-functions/scandir.texi.
52287         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52288         doc/glibc-functions/sched_get_priority_min.texi.
52289         * doc/posix-functions/signgam.texi: Renamed from
52290         doc/glibc-functions/signgam.texi.
52291         * doc/posix-functions/stpcpy.texi: Renamed from
52292         doc/glibc-functions/stpcpy.texi.
52293         * doc/posix-functions/stpncpy.texi: Renamed from
52294         doc/glibc-functions/stpncpy.texi.
52295         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52296         doc/glibc-functions/strcasecmp_l.texi.
52297         * doc/posix-functions/strcoll_l.texi: Renamed from
52298         doc/glibc-functions/strcoll_l.texi.
52299         * doc/posix-functions/strfmon_l.texi: Renamed from
52300         doc/glibc-functions/strfmon_l.texi.
52301         * doc/posix-functions/strftime_l.texi: Renamed from
52302         doc/glibc-functions/strftime_l.texi.
52303         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52304         doc/glibc-functions/strncasecmp_l.texi.
52305         * doc/posix-functions/strndup.texi: Renamed from
52306         doc/glibc-functions/strndup.texi.
52307         * doc/posix-functions/strnlen.texi: Renamed from
52308         doc/glibc-functions/strnlen.texi.
52309         * doc/posix-functions/strsignal.texi: Renamed from
52310         doc/glibc-functions/strsignal.texi.
52311         * doc/posix-functions/strxfrm_l.texi: Renamed from
52312         doc/glibc-functions/strxfrm_l.texi.
52313         * doc/posix-functions/timer_gettime.texi: Renamed from
52314         doc/glibc-functions/timer_gettime.texi.
52315         * doc/posix-functions/tolower_l.texi: Renamed from
52316         doc/glibc-functions/tolower_l.texi.
52317         * doc/posix-functions/toupper_l.texi: Renamed from
52318         doc/glibc-functions/toupper_l.texi.
52319         * doc/posix-functions/towctrans_l.texi: Renamed from
52320         doc/glibc-functions/towctrans_l.texi.
52321         * doc/posix-functions/towlower_l.texi: Renamed from
52322         doc/glibc-functions/towlower_l.texi.
52323         * doc/posix-functions/towupper_l.texi: Renamed from
52324         doc/glibc-functions/towupper_l.texi.
52325         * doc/posix-functions/uselocale.texi: Renamed from
52326         doc/glibc-functions/uselocale.texi.
52327         * doc/posix-functions/vdprintf.texi: Renamed from
52328         doc/glibc-functions/vdprintf.texi.
52329         * doc/posix-functions/wcpcpy.texi:
52330         Renamed from doc/glibc-functions/wcpcpy.texi.
52331         * doc/posix-functions/wcpncpy.texi: Renamed from
52332         doc/glibc-functions/wcpncpy.texi.
52333         * doc/posix-functions/wcscasecmp.texi: Renamed from
52334         doc/glibc-functions/wcscasecmp.texi.
52335         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52336         doc/glibc-functions/wcscasecmp_l.texi.
52337         * doc/posix-functions/wcscoll_l.texi: Renamed from
52338         doc/glibc-functions/wcscoll_l.texi.
52339         * doc/posix-functions/wcsdup.texi: Renamed from
52340         doc/glibc-functions/wcsdup.texi.
52341         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52342         doc/glibc-functions/wcsncasecmp.texi.
52343         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52344         doc/glibc-functions/wcsncasecmp_l.texi.
52345         * doc/posix-functions/wcsnlen.texi: Renamed from
52346         doc/glibc-functions/wcsnlen.texi.
52347         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52348         doc/glibc-functions/wcsnrtombs.texi.
52349         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52350         doc/glibc-functions/wcsxfrm_l.texi.
52351         * doc/posix-functions/wctrans_l.texi: Renamed from
52352         doc/glibc-functions/wctrans_l.texi.
52353         * doc/posix-functions/wctype_l.texi: Renamed from
52354         doc/glibc-functions/wctype_l.texi.
52355         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52356         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52357         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52358         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52359         these subsections.
52360         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52361         Remove sections.
52362
52363 2008-12-14  Bruno Haible  <bruno@clisp.org>
52364
52365         Update doc for POSIX:2008.
52366         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52367
52368 2008-12-14  Bruno Haible  <bruno@clisp.org>
52369
52370         Update doc for POSIX:2008.
52371         * doc/pastposix-functions/bcmp.texi: Renamed from
52372         doc/posix-functions/bcmp.texi.
52373         * doc/pastposix-functions/bcopy.texi: Renamed from
52374         doc/posix-functions/bcopy.texi.
52375         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52376         doc/posix-functions/bsd_signal.texi.
52377         * doc/pastposix-functions/bzero.texi: Renamed from
52378         doc/posix-functions/bzero.texi.
52379         * doc/pastposix-functions/ecvt.texi: Renamed from
52380         doc/posix-functions/ecvt.texi.
52381         * doc/pastposix-functions/fcvt.texi: Renamed from
52382         doc/posix-functions/fcvt.texi.
52383         * doc/pastposix-functions/ftime.texi: Renamed from
52384         doc/posix-functions/ftime.texi.
52385         * doc/pastposix-functions/gcvt.texi: Renamed from
52386         doc/posix-functions/gcvt.texi.
52387         * doc/pastposix-functions/getcontext.texi: Renamed from
52388         doc/posix-functions/getcontext.texi.
52389         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52390         doc/posix-functions/gethostbyaddr.texi.
52391         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52392         doc/posix-functions/gethostbyname.texi.
52393         * doc/pastposix-functions/getwd.texi: Renamed from
52394         doc/posix-functions/getwd.texi.
52395         * doc/pastposix-functions/h_errno.texi: Renamed from
52396         doc/posix-functions/h_errno.texi.
52397         * doc/pastposix-functions/index.texi: Renamed from
52398         doc/posix-functions/index.texi.
52399         * doc/pastposix-functions/makecontext.texi: Renamed from
52400         doc/posix-functions/makecontext.texi.
52401         * doc/pastposix-functions/mktemp.texi: Renamed from
52402         doc/posix-functions/mktemp.texi.
52403         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52404         doc/posix-functions/pthread_attr_getstackaddr.texi.
52405         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52406         doc/posix-functions/pthread_attr_setstackaddr.texi.
52407         * doc/pastposix-functions/rindex.texi: Renamed from
52408         doc/posix-functions/rindex.texi.
52409         * doc/pastposix-functions/scalb.texi: Renamed from
52410         doc/posix-functions/scalb.texi.
52411         * doc/pastposix-functions/setcontext.texi: Renamed from
52412         doc/posix-functions/setcontext.texi.
52413         * doc/pastposix-functions/swapcontext.texi: Renamed from
52414         doc/posix-functions/swapcontext.texi.
52415         * doc/pastposix-functions/ualarm.texi: Renamed from
52416         doc/posix-functions/ualarm.texi.
52417         * doc/pastposix-functions/usleep.texi: Renamed from
52418         doc/posix-functions/usleep.texi.
52419         * doc/pastposix-functions/vfork.texi: Renamed from
52420         doc/posix-functions/vfork.texi.
52421         * doc/pastposix-functions/wcswcs.texi: Renamed from
52422         doc/posix-functions/wcswcs.texi.
52423         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52424         (Function Substitutes): Update.
52425
52426 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52427
52428         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52429         m4/strerror.m4.
52430
52431 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52432             Bruno Haible  <bruno@clisp.org>
52433
52434         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52435
52436 2008-12-13  Bruno Haible  <bruno@clisp.org>
52437
52438         * modules/strtoull (Depends-on): Remove unistd.
52439
52440 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52441
52442         * modules/strtoull (Depends-on): Add stdlib.
52443
52444 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52445
52446         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52447
52448 2008-12-10  Jim Meyering  <meyering@redhat.com>
52449
52450         gl_ASSERT: don't say assertions are disabled when they're not
52451         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52452         "checking whether to enable assertions... no", when they are in
52453         fact enabled.  This is solely a bug in the output of configure.
52454         In spite of saying "no", NDEBUG was not defined in that case.
52455         Also, as noted by Eric Blake, leave assertions enabled upon
52456         --enable-assert=INVALID.
52457
52458 2008-12-10  Bruno Haible  <bruno@clisp.org>
52459
52460         Change MODULES.html to refer to POSIX:2008 where possible.
52461         * MODULES.html.sh (POSIX2008_URL): New variable.
52462         (posix_headers): Remove sys/timeb, ucontext.
52463         (posix2001_headers): New variable.
52464         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52465         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52466         index, makecontext, mktemp, pthread_attr_getstackaddr,
52467         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52468         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52469         (posix2001_functions): New variable.
52470         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52471         otherwise.
52472
52473 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52474
52475         add missing include to parse-duration.c
52476         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52477         * modules/parse-duration (Depends-on): Add xalloc.
52478
52479         fix sed script reading maint.mk
52480         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52481         (syntax-check-rules): Use it.
52482
52483 2008-12-09  Bruno Haible  <bruno@clisp.org>
52484
52485         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52486         MacOS X 10.4/PowerPC.
52487         Reported by Simon Josefsson.
52488
52489 2008-12-08  Jim Meyering  <meyering@redhat.com>
52490
52491         work around mingw's lack of some S_IF definitions
52492         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52493         Reported by Simon Josefsson.
52494
52495 2008-12-08  Bruno Haible  <bruno@clisp.org>
52496
52497         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52498         applied to variables. Needed on MacOS X 10.4/PowerPC.
52499         Reported by Simon Josefsson.
52500
52501 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52502         and Eric Blake  <ebb9@byu.net>
52503
52504         assert: honor --enable-assert
52505         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52506         order to honor --enable-assert, rather than treating it as a
52507         synonym for --disable-assert.
52508
52509 2008-12-08  Jim Meyering  <meyering@redhat.com>
52510
52511         * lib/posixtm.c: Remove now-useless declaration of mktime.
52512
52513         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52514
52515 2008-12-07  Bruno Haible  <bruno@clisp.org>
52516
52517         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52518         test_once): Mark functions as static.
52519         * tests/test-tls.c (test_tls): Likewise.
52520
52521 2008-12-07  Bruno Haible  <bruno@clisp.org>
52522
52523         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52524         iconv_register_autodetect.
52525
52526 2008-12-07  Jim Meyering  <meyering@redhat.com>
52527
52528         posixtm.c: avoid a warning
52529         * lib/posixtm.c (posixtime): Don't initialize tm0.
52530         It's no longer needed to placate gcc4's -Wuninitialized,
52531         and the attempt to placate would elicit a new warning.
52532
52533         unicodeio.c: mark unused parameters
52534         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52535         (fallback_failure_callback): Likewise.
52536
52537 2008-12-07  Bruno Haible  <bruno@clisp.org>
52538
52539         * gnulib-tool (func_create_testdir): When building the tests
52540         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52541         Reported by Simon Josefsson.
52542
52543 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52544
52545         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52546
52547 2008-12-06  Bruno Haible  <bruno@clisp.org>
52548
52549         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52550         Suggested by Eric Blake.
52551
52552 2008-12-06  Bruno Haible  <bruno@clisp.org>
52553
52554         Fix a c-stack test failure on MacOS X.
52555         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52556         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52557         handler for SIGBUS as well.
52558         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52559         install a signal handler for SIGBUS as well.
52560         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52561
52562 2008-12-06  Bruno Haible  <bruno@clisp.org>
52563
52564         Advocacy documentation.
52565         * doc/gnulib-intro.texi (Benefits): New section.
52566         * doc/gnulib.texi: Update.
52567
52568 2008-12-06  Bruno Haible  <bruno@clisp.org>
52569
52570         Document the 'manywarnings' module.
52571         * doc/manywarnings.texi: New file.
52572         * doc/gnulib.texi: Include it.
52573
52574 2008-12-05  Eric Blake  <ebb9@byu.net>
52575
52576         tests: silence some gcc warnings
52577         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52578         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52579         type mismatches.
52580
52581 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52582             Bruno Haible  <bruno@clisp.org>
52583
52584         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52585
52586 2008-11-29  Jim Meyering  <meyering@redhat.com>
52587
52588         unicodeio.c: mark unused parameters
52589         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52590         (fallback_failure_callback): Likewise.
52591
52592         fts: fix a thinko
52593         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52594         (set_stat_type): Return S_IF*-valued "type" directly.
52595         Prompted by James Youngman's spotting a related bug.
52596         Confirmed by further testing through find.
52597
52598         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52599         * lib/fts.c (D_TYPE): Define.
52600         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52601         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52602         (s_ifmt_shift_bits): New function.
52603         (set_stat_type): New function.
52604         (fts_build): When not calling fts_stat, call set_stat_type
52605         to propagate dirent.d_type info to fts_read caller.
52606         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52607         fts_statp->st_mode type information may be valid.
52608
52609 2008-11-28  Simon Josefsson  <simon@josefsson.org>
52610
52611         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
52612         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
52613         <sds@gnu.org>.
52614
52615 2008-11-20  Bruno Haible  <bruno@clisp.org>
52616
52617         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
52618         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
52619         INCLUDE_NEXT.
52620         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
52621         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
52622         * modules/math (Makefile.am): Substitute
52623         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
52624         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52625
52626 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
52627             Bruno Haible  <bruno@clisp.org>
52628
52629         * lib/stdint.in.h: Define all type macros so that their expansion is
52630         a single typedef'ed token. Fixes a compilation failure in Boost which
52631         does "using ::int8_t;".
52632
52633 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52634
52635         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
52636         gl_MANYWARN_ALL_GCC.
52637         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
52638         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
52639         * modules/manywarnings: New file.
52640         * MODULES.html.sh: Mention manywarnings module.
52641
52642 2008-11-18  Bruno Haible  <bruno@clisp.org>
52643
52644         * doc/gnulib-tool.texi (Unit tests): New section.
52645
52646 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52647
52648         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
52649         paths like 'lib/po/foo.po'.
52650
52651 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52652
52653         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
52654         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
52655
52656 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52657
52658         * m4/warnings.m4: Use CPPFLAGS to really check whether the
52659         parameter works.
52660
52661 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52662
52663         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
52664
52665 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52666
52667         * modules/parse-duration-tests: New file.
52668         * tests/test-parse-duration.sh: New file.
52669         * tests/test-parse-duration.c: New file.
52670
52671         New module 'parse-duration'.
52672         * lib/parse-duration.h: New file.
52673         * lib/parse-duration.c: New file.
52674         * modules/parse-duration: New file.
52675
52676 2008-11-17  Bruno Haible  <bruno@clisp.org>
52677
52678         * tests/test-select-out.sh: Comment out the first pipe test.
52679         Reported by Simon Josefsson.
52680
52681 2008-11-17  Bruno Haible  <bruno@clisp.org>
52682
52683         * modules/getaddrinfo (Depends-on): Add servent, hostent.
52684         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
52685         gl_HOSTENT.
52686
52687 2008-11-17  Bruno Haible  <bruno@clisp.org>
52688
52689         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
52690         -lnetwork and -lnet. Needed for Haiku and BeOS.
52691
52692 2008-11-16  Bruno Haible  <bruno@clisp.org>
52693
52694         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
52695
52696 2008-11-16  Bruno Haible  <bruno@clisp.org>
52697
52698         Avoid test failure on Haiku.
52699         * tests/test-fsync.c: Include <errno.h>.
52700         (main): Don't require that fsync (0) fails.
52701
52702 2008-11-15  Bruno Haible  <bruno@clisp.org>
52703
52704         New module 'hostent'.
52705         * modules/hostent: New file.
52706         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
52707
52708 2008-11-15  Bruno Haible  <bruno@clisp.org>
52709
52710         New module 'servent'.
52711         * modules/servent: New file.
52712         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
52713
52714 2008-11-15  Bruno Haible  <bruno@clisp.org>
52715
52716         Avoid generating same test program with two different rules.
52717         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
52718         test-frexp to test-frexp-nolibm.
52719         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
52720         test-frexpl to test-frexpl-nolibm.
52721
52722 2008-11-15  Bruno Haible  <bruno@clisp.org>
52723
52724         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
52725         $(FREXPL_LIBM).
52726
52727 2008-11-15  Bruno Haible  <bruno@clisp.org>
52728
52729         * lib/netdb.in.h: Activate the definitions also when the system's
52730         <netdb.h> has 'struct addrinfo'.
52731         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52732         EAI_OVERFLOW or AI_NUMERICSERV.
52733         * doc/posix-headers/netdb.texi: Document the problem.
52734
52735 2008-11-15  Bruno Haible  <bruno@clisp.org>
52736
52737         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
52738
52739         Make the 'sched' module work on platforms where <sched.h> exists but
52740         is incomplete (such as Haiku).
52741         * lib/sched.in.h; Include the system's <sched.h> if it exists.
52742         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52743         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
52744         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
52745         HAVE_STRUCT_SCHED_PARAM.
52746         * modules/sched (Depends-on): Add include_next.
52747         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
52748         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
52749         * doc/posix-headers/sched.texi: Document the issue.
52750
52751 2008-11-13  Jim Meyering  <meyering@redhat.com>
52752
52753         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
52754         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
52755         test would fail due to the difference in the Report bugs to ...
52756         line.  The expected address is empty, "<>", while the actual
52757         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
52758
52759 2008-11-12  Bruno Haible  <bruno@clisp.org>
52760
52761         lstat: don't compile lstat.c on systems lacking lstat
52762         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
52763         which don't have lstat; this is handled by lib/sys_stat.in.h already.
52764         Reported by Daniel P. Berrange via Jim Meyering.
52765
52766 2008-11-12  Jim Meyering  <meyering@redhat.com>
52767
52768         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
52769
52770 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52771
52772         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
52773         instead.
52774
52775 2008-11-12  Bruno Haible  <bruno@clisp.org>
52776
52777         * lib/unicodeio.c: Include unistr.h.
52778         (utf8_wctomb): Remove function.
52779         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
52780
52781 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52782
52783         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
52784         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
52785         <bruno@clisp.org>.
52786         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
52787
52788 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52789
52790         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
52791         * doc/gnulib.texi: Add section for warnings.
52792
52793 2008-11-11  Bruno Haible  <bruno@clisp.org>
52794
52795         * lib/sockets.h: Add a comment.
52796
52797 2008-11-11  Karl Berry  <karl@gnu.org>
52798
52799         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
52800
52801 2008-11-11  Eric Blake  <ebb9@byu.net>
52802
52803         fdl.texi: avoid git symlinks
52804         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
52805
52806 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52807
52808         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
52809
52810 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52811
52812         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
52813         (gl_WARN_ADD): Substitute $2 if literal.
52814
52815 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52816
52817         * m4/warning.m4: Remove.
52818
52819 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52820
52821         * m4/warnings.m4: Almost complete rewrite. :-)
52822
52823 2008-11-10  Simon Josefsson  <simon@josefsson.org>
52824
52825         * modules/warnings: New module.
52826         * m4/warnings.m4: New file.
52827         * MODULES.html.sh: Mention warnings module.
52828         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
52829         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52830
52831 2008-11-10  Eric Blake  <ebb9@byu.net>
52832
52833         fdl.texi: make a symlink to the latest version
52834         * doc/standards.texi: Revert today's earlier change.
52835         * doc/fdl-1.2.texi: Rename from old fdl.texi...
52836         * doc/fdl.texi: ...and replace this with a symlink to the newer
52837         fdl-1.3.texi.
52838
52839 2008-11-10  Bruno Haible  <bruno@clisp.org>
52840
52841         * tests/test-select-fd.c (main): Accept the result file name as fourth
52842         argument.
52843         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
52844         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
52845
52846 2008-11-10  Bruno Haible  <bruno@clisp.org>
52847
52848         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
52849         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
52850         as autoconf-substituted macros.
52851         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
52852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
52853         gl_NETDB_H_DEFAULTS. Set these variables.
52854         * modules/netdb (Makefile.am): Substitute these variables.
52855
52856 2008-11-10  Eric Blake  <ebb9@byu.net>
52857
52858         standards.texi: include correct file for FDL 1.3
52859         * doc/standards.texi (GNU Free Documentation License): Change
52860         include file to pull in FDL 1.3, not 1.2.
52861
52862         fdl.texi: revert accidental change to license
52863         * doc/fdl.texi: This is FDL 1.2, not 1.3.
52864
52865 2008-11-10  Bruno Haible  <bruno@clisp.org>
52866
52867         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
52868         cross-compiling guesses also when the native compile gives no result.
52869
52870 2008-11-10  Bruno Haible  <bruno@clisp.org>
52871
52872         * lib/spawni.c (__spawni): Force variable into the stack.
52873
52874 2008-11-10  Bruno Haible  <bruno@clisp.org>
52875
52876         Add support for Haiku.
52877         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
52878         glibc and BeOS, but also on Haiku.
52879         * lib/fpurge.c (fpurge): Likewise.
52880         * lib/freadable.c (freadable): Likewise.
52881         * lib/freadahead.c (freadahead): Likewise.
52882         * lib/freading.c (freading): Likewise.
52883         * lib/freadptr.c (freadptr): Likewise.
52884         * lib/freadseek.c (freadptrinc): Likewise.
52885         * lib/fseeko.c (rpl_fseeko): Likewise.
52886         * lib/fseterr.c (fseterr): Likewise.
52887         * lib/fwritable.c (fwritable): Likewise.
52888         * lib/fwriting.c (fwriting): Likewise.
52889         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
52890
52891 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52892
52893         * lib/config.charset: Treat Haiku like BeOS.
52894
52895 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52896
52897         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
52898         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
52899
52900 2008-11-08  Bruno Haible  <bruno@clisp.org>
52901
52902         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
52903         AC_CACHE_CHECK.
52904
52905 2008-11-08  Bruno Haible  <bruno@clisp.org>
52906
52907         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
52908
52909 2008-11-08  Bruno Haible  <bruno@clisp.org>
52910
52911         * tests/test-select-fd.c: New file.
52912         * tests/test-select-in.sh: New file.
52913         * tests/test-select-out.sh: New file.
52914         * tests/test-select-stdin.c: New file.
52915         * modules/select-tests (Files): Add the new files.
52916         (Depends-on): Add gettimeofday.
52917         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
52918         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
52919         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
52920
52921 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
52922             Bruno Haible  <bruno@clisp.org>
52923
52924         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
52925
52926 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
52927
52928         * build-aux/pmccabe2html: Added support for C++ source files.
52929
52930 2008-11-05  Ben Pfaff  <blp@gnu.org>
52931
52932         Fix lib/close.c build on Windows.
52933         * modules/close (Files): Add lib/w32sock.h.
52934
52935 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
52936
52937         Accept Bison's NEWS format.
52938         * build-aux/announce-gen (print_news_deltas): Tweak
52939         $re_prefix.
52940
52941 2008-11-04  Bruno Haible  <bruno@clisp.org>
52942
52943         * modules/random_r (Maintainer): Add glibc.
52944
52945 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52946
52947         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
52948         by karl@freefriends.org (Karl Berry).
52949         * doc/alloca.texi: Likewise.
52950         * doc/c-ctype.texi: Likewise.
52951         * doc/c-strcase.texi: Likewise.
52952         * doc/c-strcaseeq.texi: Likewise.
52953         * doc/c-strcasestr.texi: Likewise.
52954         * doc/c-strstr.texi: Likewise.
52955         * doc/c-strtod.texi: Likewise.
52956         * doc/c-strtold.texi: Likewise.
52957         * doc/ctime.texi: Likewise.
52958         * doc/error.texi: Likewise.
52959         * doc/fdl.texi: Likewise.
52960         * doc/gcd.texi: Likewise.
52961         * doc/getdate.texi: Likewise.
52962         * doc/gnulib-intro.texi: Likewise.
52963         * doc/gnulib-tool.texi: Likewise.
52964         * doc/gnulib.texi: Likewise.
52965         * doc/inet_ntoa.texi: Likewise.
52966         * doc/maintain.texi: Likewise.
52967         * doc/make-stds.texi: Likewise.
52968         * doc/quote.texi: Likewise.
52969         * doc/regexprops-generic.texi: Likewise.
52970         * doc/standards.texi: Likewise.
52971         * doc/verify.texi: Likewise.
52972         * doc/visibility.texi: Likewise.
52973         * doc/gnulib.texi (GNU Free Documentation License): Include
52974         fdl-1.3.texi instead of fdl.texi.
52975
52976 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52977
52978         * doc/fdl-1.3.texi: New file, from
52979         <http://www.gnu.org/licenses/fdl-1.3.texi>.
52980         * modules/fdl-1.3: Add.
52981         * MODULES.html.sh: Add fdl-1.3.
52982
52983 2008-11-03  Bruno Haible  <bruno@clisp.org>
52984
52985         Make determination of absolute name of header file work with AIX xlc.
52986         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
52987         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
52988         preprocessing.
52989         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52990         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52991
52992 2008-11-03  Simon Josefsson  <simon@josefsson.org>
52993
52994         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
52995         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
52996         <ludo@gnu.org>.
52997
52998 2008-11-02  Bruno Haible  <bruno@clisp.org>
52999
53000         Mark 'strpbrk' obsolete.
53001         * modules/strpbrk (Status, Notice): New sections.
53002         * modules/strtok_r (Depends-on): Add strpbrk.
53003
53004 2008-11-02  Bruno Haible  <bruno@clisp.org>
53005
53006         Mark 'strdup' obsolete.
53007         * modules/strdup (Status, Notice): New sections.
53008         * modules/findprog (Depends-on): Add strdup.
53009         * modules/getaddrinfo (Depends-on): Likewise.
53010         * modules/localename (Depends-on): Likewise.
53011         * modules/relocatable-lib (Depends-on): Likewise.
53012         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53013         * modules/relocatable-prog (Depends-on): Likewise.
53014         * modules/trim (Depends-on): Likewise.
53015         * modules/unictype/gen-ctype (Depends-on): Likewise.
53016         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53017
53018 2008-11-02  Bruno Haible  <bruno@clisp.org>
53019
53020         Mark 'strcspn' obsolete.
53021         * modules/strcspn (Status, Notice): New sections.
53022
53023 2008-11-02  Bruno Haible  <bruno@clisp.org>
53024
53025         Mark 'rmdir' obsolete.
53026         * modules/rmdir (Status, Notice): New sections.
53027         * modules/clean-temp (Depends-on): Add rmdir.
53028         * modules/openat (Depends-on): Likewise.
53029
53030 2008-11-02  Bruno Haible  <bruno@clisp.org>
53031
53032         Mark 'raise' obsolete.
53033         * modules/raise (Status, Notice): New sections.
53034         (Include): Specify <signal.h>.
53035         * modules/stdio (Depends-on): Add raise.
53036         * modules/write (Depends-on): Likewise.
53037
53038 2008-11-02  Bruno Haible  <bruno@clisp.org>
53039
53040         Mark 'memset' obsolete.
53041         * modules/memset (Status, Notice): New sections.
53042
53043 2008-11-02  Bruno Haible  <bruno@clisp.org>
53044
53045         Mark 'memmove' obsolete.
53046         * modules/memmove (Status, Notice): New sections.
53047         * modules/argp (Depends-on): Add memmove.
53048         * modules/argz (Depends-on): Likewise.
53049         * modules/canonicalize (Depends-on): Likewise.
53050         * modules/canonicalize-lgpl (Depends-on): Likewise.
53051         * modules/fts (Depends-on): Likewise.
53052         * modules/getcwd (Depends-on): Likewise.
53053         * modules/human (Depends-on): Likewise.
53054         * modules/regex (Depends-on): Likewise.
53055         * modules/striconveh (Depends-on): Likewise.
53056         * modules/trim (Depends-on): Likewise.
53057         * modules/unistr/u8-move (Depends-on): Likewise.
53058         * modules/unistr/u16-move (Depends-on): Likewise.
53059         * modules/unistr/u32-move (Depends-on): Likewise.
53060
53061 2008-11-02  Bruno Haible  <bruno@clisp.org>
53062
53063         Mark 'memcpy' obsolete.
53064         * modules/memcpy (Status, Notice): New sections.
53065
53066 2008-11-02  Bruno Haible  <bruno@clisp.org>
53067
53068         Mark 'memcmp' obsolete.
53069         * modules/memcmp (Status, Notice): New sections.
53070         * modules/argmatch (Depends-on): Add memchr.
53071         * modules/backupfile (Depends-on): Likewise.
53072         * modules/c-strcasestr (Depends-on): Likewise.
53073         * modules/crypto/des (Depends-on): Likewise.
53074         * modules/csharpcomp (Depends-on): Likewise.
53075         * modules/fnmatch (Depends-on): Likewise.
53076         * modules/git-merge-changelog (Depends-on): Likewise.
53077         * modules/isnand (Depends-on): Likewise.
53078         * modules/isnand-nolibm (Depends-on): Likewise.
53079         * modules/isnanf (Depends-on): Likewise.
53080         * modules/isnanf-nolibm (Depends-on): Likewise.
53081         * modules/isnanl (Depends-on): Likewise.
53082         * modules/isnanl-nolibm (Depends-on): Likewise.
53083         * modules/mbchar (Depends-on): Likewise.
53084         * modules/memcoll (Depends-on): Likewise.
53085         * modules/quotearg (Depends-on): Likewise.
53086         * modules/regex (Depends-on): Likewise.
53087         * modules/relocatable-prog (Depends-on): Likewise.
53088         * modules/same (Depends-on): Likewise.
53089         * modules/signbit (Depends-on): Likewise.
53090         * modules/strcasestr-simple (Depends-on): Likewise.
53091         * modules/unictype/gen-ctype (Depends-on): Likewise.
53092         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53093         * modules/uniname/uniname (Depends-on): Likewise.
53094         * modules/unistr/u8-cmp (Depends-on): Likewise.
53095
53096 2008-11-02  Bruno Haible  <bruno@clisp.org>
53097
53098         Mark 'memchr' obsolete.
53099         * modules/memchr (Status, Notice): New sections.
53100         * modules/argp (Depends-on): Add memchr.
53101         * modules/base64 (Depends-on): Likewise.
53102         * modules/c-strcasestr (Depends-on): Likewise.
53103         * modules/chdir-long (Depends-on): Likewise.
53104         * modules/fnmatch (Depends-on): Likewise.
53105         * modules/getsubopt (Depends-on): Likewise.
53106         * modules/git-merge-changelog (Depends-on): Likewise.
53107         * modules/glob (Depends-on): Likewise.
53108         * modules/strcasestr-simple (Depends-on): Likewise.
53109         * modules/strnlen (Depends-on): Likewise.
53110
53111 2008-11-02  Bruno Haible  <bruno@clisp.org>
53112
53113         Mark 'atexit' obsolete.
53114         * modules/atexit (Status, Notice): New sections.
53115         * modules/chdir-long (Depends-on): Add atexit.
53116         * modules/wait-process (Depends-on): Likewise.
53117
53118 2008-11-02  Bruno Haible  <bruno@clisp.org>
53119
53120         * gnulib-tool: New option --with-obsolete.
53121         (func_usage): Document it.
53122         (func_modules_transitive_closure): Drop obsolete dependencies if
53123         incobsolete is not true.
53124         (func_import): Read and save the incobsolete variable to the cache.
53125
53126 2008-11-02  Bruno Haible  <bruno@clisp.org>
53127
53128         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53129         * gnulib-tool: New option --extract-status.
53130         (func_usage): Document it.
53131         (sed_extract_prog): Recognize it.
53132         (func_get_status): New function.
53133
53134 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53135
53136         * modules/sockets (License): Change from LGPL to LGPLv2+.
53137
53138 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53139
53140         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53141
53142 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53143
53144         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53145         Mention times and sys_times.
53146         * modules/sys_times, modules/sys_times-tests: New modules.
53147         * modules/times, modules/times-tests: Likewise
53148         * m4/sys_times_h.m4: New file.
53149         * lib/sys_times.in.h: Likewise
53150         * lib/times.c: Likewise.
53151         * tests/test-sys_times.c: Likewise.
53152         * tests/test-times.c: Likewise.
53153         * doc/posix-headers/sys_times.texi: Update.
53154         * doc/posix-functions/times.texi: Update.
53155
53156 2008-10-28  Jim Meyering  <meyering@redhat.com>
53157
53158         * modules/tempname (Depends-on): Add lstat.
53159
53160         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53161
53162 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53163
53164         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53165         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53166         using idiom used elsewhere in gnulib.
53167
53168 2008-10-27  Jim Meyering  <meyering@redhat.com>
53169
53170         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53171
53172 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53173
53174         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53175         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53176         programs.
53177         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53178
53179 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53180
53181         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53182
53183 2008-10-27  Bruno Haible  <bruno@clisp.org>
53184
53185         * tests/test-lstat.c: Include <stdio.h>.
53186
53187 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53188
53189         * modules/lstat-tests: New module.
53190         * tests/test-lstat.c: New file.
53191
53192 2008-10-26  Jim Meyering  <meyering@redhat.com>
53193
53194         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53195
53196 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53197             Bruno Haible  <bruno@clisp.org>
53198
53199         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53200         * modules/configmake (Include): Add a note that the include must come
53201         after all system headers.
53202         * lib/javaversion.c: Include configmake.h after all other includes.
53203
53204 2008-10-26  Bruno Haible  <bruno@clisp.org>
53205
53206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53207         HAVE_STRUCT_RANDOM_DATA to 1.
53208         (gl_STDLIB_H): Simplify.
53209
53210 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53211
53212         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53213         substitute HAVE_STRUCT_RANDOM_DATA.
53214         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53215         random_data.
53216         * modules/stdlib (Makefile.am): Substitute
53217         HAVE_STRUCT_RANDOM_DATA.
53218
53219 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53220
53221         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53222         * doc/gnulib-intro.texi (Copyright): Likewise.
53223
53224 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53225
53226         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53227         findings.
53228
53229 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53230             Bruno Haible  <bruno@clisp.org>
53231
53232         * lib/unistd.in.h: Include <winsock2.h>.
53233         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53234         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53235         Provide dummy declarations.
53236         (gethostname): Override.
53237         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53238         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53239         gl_PREREQ_SYS_H_WINSOCK2.
53240         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53241         * doc/posix-functions/gethostname.texi: More details.
53242
53243 2008-10-25  Bruno Haible  <bruno@clisp.org>
53244
53245         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53246         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53247         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53248
53249         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53250         here ...
53251         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53252         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53253         gl_UNISTD_H_DEFAULTS.
53254
53255 2008-10-25  Eric Blake  <ebb9@byu.net>
53256
53257         signbit: avoid spurious compiler failure
53258         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53259         declarations inside function.
53260
53261 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53262             Bruno Haible  <bruno@clisp.org>
53263
53264         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53265         * modules/random_r (Depends-on): Add stdint.
53266
53267 2008-10-24  Bruno Haible  <bruno@clisp.org>
53268
53269         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53270         Eggert.
53271         * modules/strerror (License): Likewise.
53272
53273 2008-10-24  Jim Meyering  <meyering@redhat.com>
53274
53275         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53276         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53277
53278 2008-10-24  Eric Blake  <ebb9@byu.net>
53279
53280         getgroups: fix compilation when getgroups is available
53281         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53282         but with <config.h> override of getgroups disabled.
53283
53284 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53285
53286         * doc/gnulib.texi (Header files): Add note about C++ problems.
53287         Explained by Bruno Haible <bruno@clisp.org>.
53288
53289 2008-10-23  Bruno Haible  <bruno@clisp.org>
53290
53291         Define a dummy SA_NODEFER macro on Interix.
53292         * lib/signal.in.h (SA_NODEFER): Define fallback.
53293         Reported by Aleksey Cheusov <cheusov@tut.by> via
53294         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53295
53296 2008-10-23  Bruno Haible  <bruno@clisp.org>
53297
53298         * modules/freadahead (License): Change to LGPLv2+.
53299         Suggested by Simon Josefsson.
53300
53301 2008-10-23  Jim Meyering  <meyering@redhat.com>
53302
53303         random_r: new module
53304         * modules/random_r: New file.
53305         * m4/random_r.m4: New file.
53306         * lib/random_r.c: New file, from glibc.
53307         * modules/random_r-tests: New file.
53308         * tests/test-random_r.c: New file.
53309         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53310          Declare.
53311         (RAND_MAX): Define.
53312         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53313         * modules/stdlib: Substitute them, too.
53314         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53315         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53316         * doc/glibc-functions/random_r.texi: Likewise.
53317         * doc/glibc-functions/setstate_r.texi: Likewise.
53318         * doc/glibc-functions/srandom_r.texi: Likewise.
53319         * config/srclist.txt: Mention it.
53320
53321 2008-10-23  David Lutterkort  <lutter@redhat.com>
53322
53323         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53324         link requirement
53325
53326 2008-10-23  Jim Meyering  <meyering@redhat.com>
53327
53328         selinux-h: mark parameters of stub functions as intentionally unused
53329         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53330         * lib/se-context.in.h: Likewise.
53331
53332 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53333
53334         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53335
53336 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53337
53338         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53339
53340 2008-10-22  Eric Blake  <ebb9@byu.net>
53341
53342         glthread/thread: avoid compiler warning
53343         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53344         Add unreachable abort to silence compiler.
53345
53346 2008-10-22  Eric Blake  <ebb9@byu.net>
53347
53348         netdb: also supply struct addrinfo for cygwin 1.5.x
53349         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53350         older cygwin.
53351         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53352         cygwin.
53353         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53354
53355 2008-10-22  Bruno Haible  <bruno@clisp.org>
53356
53357         * users.txt: Update entry about pspp.
53358
53359 2008-10-21  Bruno Haible  <bruno@clisp.org>
53360
53361         Simplification.
53362         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53363         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53364
53365         Simplification.
53366         * lib/ioctl.c (ioctl): Don't undefine.
53367         * lib/socket.c (socket): Don't undefine.
53368
53369         Remove unused module indicator macros.
53370         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53371         GNULIB_$1 as a C macro.
53372
53373         * doc/posix-functions/close.texi: Undo last change.
53374         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53375         Windows platforms.
53376
53377 2008-10-21  Bruno Haible  <bruno@clisp.org>
53378
53379         Add gethostname() declaration to <unistd.h>.
53380         * lib/unistd.in.h (gethostname): New declaration.
53381         * lib/gethostname.c: Include <unistd.h>.
53382         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53383         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53385         and HAVE_GETHOSTNAME.
53386         * modules/gethostname (Depends-on): Add unistd.
53387         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53388         (Include): Specify <unistd.h>.
53389         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53390         HAVE_GETHOSTNAME.
53391         * tests/test-gethostname.c: Include <unistd.h> first.
53392
53393 2008-10-21  Bruno Haible  <bruno@clisp.org>
53394
53395         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53396         * modules/select-tests (Depends-on): Likewise.
53397         Reported by Simon Josefsson.
53398
53399 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53400
53401         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53402         * lib/accept.c: New file, based on winsock.c.
53403         * lib/bind.c: New file, based on winsock.c.
53404         * lib/connect.c: New file, based on winsock.c.
53405         * lib/getpeername.c: New file, based on winsock.c.
53406         * lib/getsockname.c: New file, based on winsock.c.
53407         * lib/getsockopt.c: New file, based on winsock.c.
53408         * lib/ioctl.c: New file, based on winsock.c.
53409         * lib/listen.c: New file, based on winsock.c.
53410         * lib/recv.c: New file, based on winsock.c.
53411         * lib/recvfrom.c: New file, based on winsock.c.
53412         * lib/send.c: New file, based on winsock.c.
53413         * lib/sendto.c: New file, based on winsock.c.
53414         * lib/setsockopt.c: New file, based on winsock.c.
53415         * lib/shutdown.c: New file, based on winsock.c.
53416         * lib/socket.c: New file, based on winsock.c.
53417         * lib/w32sock.h: New file, based on winsock.c.
53418         * lib/winsock.c: Remove file.
53419         * modules/accept: Likewise.
53420         * modules/bind: Likewise.
53421         * modules/connect: Likewise.
53422         * modules/getpeername: Likewise.
53423         * modules/getsockname: Likewise.
53424         * modules/getsockopt: Likewise.
53425         * modules/ioctl: Likewise.
53426         * modules/listen: Likewise.
53427         * modules/recv: Likewise.
53428         * modules/recvfrom: Likewise.
53429         * modules/send: Likewise.
53430         * modules/sendto: Likewise.
53431         * modules/setsockopt: Likewise.
53432         * modules/shutdown: Likewise.
53433         * modules/socket: Use socket.c instead of winsock.c.
53434         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53435         * doc/posix-functions/accept.texi: Doc fix.
53436         * doc/posix-functions/bind.texi: Doc fix.
53437         * doc/posix-functions/close.texi: Doc fix.
53438         * doc/posix-functions/connect.texi: Doc fix.
53439         * doc/posix-functions/getpeername.texi: Doc fix.
53440         * doc/posix-functions/getsockname.texi: Doc fix.
53441         * doc/posix-functions/getsockopt.texi: Doc fix.
53442         * doc/posix-functions/ioctl.texi: Doc fix.
53443         * doc/posix-functions/listen.texi: Doc fix.
53444         * doc/posix-functions/recv.texi: Doc fix.
53445         * doc/posix-functions/recvfrom.texi: Doc fix.
53446         * doc/posix-functions/send.texi: Doc fix.
53447         * doc/posix-functions/sendto.texi: Doc fix.
53448         * doc/posix-functions/setsockopt.texi: Doc fix.
53449         * doc/posix-functions/shutdown.texi: Doc fix.
53450         * doc/posix-functions/socket.texi: Doc fix.
53451
53452 2008-10-20  Bruno Haible  <bruno@clisp.org>
53453
53454         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53455         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53456         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53457         as an alias for SIGABRT.
53458         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53459         (sigaction): Map it to SIGABRT.
53460         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53461
53462 2008-10-20  Bruno Haible  <bruno@clisp.org>
53463
53464         * lib/fts.c: Don't include lstat.h.
53465         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53466
53467         Move the lstat() declaration to <sys/stat.h>.
53468         * lib/lstat.h: Remove file.
53469         * lib/sys_stat.in.h: Add special invocation convention.
53470         (lstat): New declaration.
53471         * lib/lstat.c (orig_lstat): New function.
53472         (rpl_lstat): Use orig_lstat instead of lstat.
53473         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53474         AC_C_INLINE. Set REPLACE_LSTAT.
53475         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53476         and REPLACE_LSTAT.
53477         * modules/lstat (Files): Remove lib/lstat.h.
53478         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53479         (Include): Specify <sys/stat.h> instead of lstat.h.
53480         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53481         REPLACE_LSTAT.
53482         * NEWS: Mention the change.
53483
53484 2008-10-20  Bruno Haible  <bruno@clisp.org>
53485
53486         * modules/posix_spawn-tests: New file.
53487         * tests/test-posix_spawn3.c: New file.
53488
53489 2008-10-20  Bruno Haible  <bruno@clisp.org>
53490
53491         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53492         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53493         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53494         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53495         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53496
53497 2008-10-20  Bruno Haible  <bruno@clisp.org>
53498
53499         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53500         of posix_spawn on AIX 5.3.
53501
53502 2008-10-20  Bruno Haible  <bruno@clisp.org>
53503
53504         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53505
53506 2008-10-20  Bruno Haible  <bruno@clisp.org>
53507
53508         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53509         of AC_LANG_PROGRAM.
53510
53511 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53512
53513         * lib/netdb.in.h: Don't define GNU specific constants until they
53514         are supported or needed.  Reported by Bruno Haible
53515         <bruno@clisp.org>.
53516
53517 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53518
53519         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53520
53521 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53522
53523         * lib/getaddrinfo.h: Remove file.
53524         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53525         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53526         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53527         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53528         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53529         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53530         * tests/test-getaddrinfo.c: Likewise.
53531         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53532         * NEWS: Mention change.
53533
53534 2008-10-19  Bruno Haible  <bruno@clisp.org>
53535
53536         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53537
53538 2008-10-19  Bruno Haible  <bruno@clisp.org>
53539
53540         * lib/wait-process.c: Include simply <sys/wait.h>.
53541         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53542         WIFSTOPPED): Remove fallback definitions.
53543         * modules/wait-process (Depends-on): Add sys_wait.
53544
53545         New module 'sys_wait'.
53546         * modules/sys_wait: New file.
53547         * lib/sys_wait.in.h: New file, partially copied from
53548         lib/wait-process.c.
53549         * m4/sys_wait_h.m4: New file.
53550         * doc/posix-headers/sys_wait.texi: Mention the new module.
53551
53552 2008-10-19  Bruno Haible  <bruno@clisp.org>
53553
53554         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53555
53556 2008-10-19  Bruno Haible  <bruno@clisp.org>
53557
53558         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53559         * lib/wait-process.c (WAIT_T): Remove type.
53560         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53561         (wait_subprocess): Update.
53562
53563 2008-10-19  Bruno Haible  <bruno@clisp.org>
53564
53565         New module 'atoll'.
53566         * modules/atoll: New file.
53567         * lib/stdlib.in.h (atoll): New declaration.
53568         * lib/atoll.c: New file, from glibc with modifications.
53569         * m4/atoll.m4: New file.
53570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53571         HAVE_ATOLL.
53572         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53573         * doc/posix-functions/atoll.texi: Mention the new module.
53574
53575 2008-10-19  Bruno Haible  <bruno@clisp.org>
53576
53577         Add strtoull() declaration to <stdlib.h>.
53578         * lib/stdlib.in.h (strtoull): New declaration.
53579         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53580         Set HAVE_STRTOULL.
53581         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53582         HAVE_STRTOULL.
53583         * modules/strtoull (Depends-on): Add stdlib.
53584         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53585         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53586         HAVE_STRTOULL.
53587
53588 2008-10-19  Bruno Haible  <bruno@clisp.org>
53589
53590         Add strtoll() declaration to <stdlib.h>.
53591         * lib/stdlib.in.h (strtoll): New declaration.
53592         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53593         Set HAVE_STRTOLL.
53594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53595         HAVE_STRTOLL.
53596         * modules/strtoll (Depends-on): Add stdlib.
53597         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53598         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53599
53600 2008-10-19  Bruno Haible  <bruno@clisp.org>
53601
53602         * modules/bcopy (Depends-on): Add strings.
53603         (Include): Specify <strings.h>.
53604
53605 2008-10-19  Bruno Haible  <bruno@clisp.org>
53606
53607         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
53608
53609 2008-10-19  Bruno Haible  <bruno@clisp.org>
53610
53611         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
53612         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
53613         mingw.
53614
53615 2008-10-19  Bruno Haible  <bruno@clisp.org>
53616
53617         * lib/atanl.c: Don't include isnanl.h.
53618         * lib/cosl.c: Likewise.
53619         * lib/ldexpl.c: Likewise.
53620         * lib/logl.c: Likewise.
53621         * lib/sinl.c: Likewise.
53622         * lib/sqrtl.c: Likewise.
53623         * lib/tanl.c: Likewise.
53624
53625         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
53626         * lib/isnanf.h: Remove file.
53627         * lib/isnand.h: Remove file.
53628         * lib/isnanl.h: Remove file.
53629         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
53630         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
53631         macros.
53632         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
53633         HAVE_ISNANF, don't define it as a C macro.
53634         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
53635         HAVE_ISNAND, don't define it as a C macro.
53636         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
53637         HAVE_ISNANL, don't define it as a C macro.
53638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
53639         HAVE_ISNAN[FDL].
53640         * modules/isnanf (Files): Remove lib/isnanf.h.
53641         (Depends-on): Add math.
53642         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53643         (Include): Specify <math.h> instead of isnanf.h.
53644         * modules/isnand (Files): Remove lib/isnand.h.
53645         (Depends-on): Add math.
53646         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53647         (Include): Specify <math.h> instead of isnand.h.
53648         * modules/isnanl (Files): Remove lib/isnanl.h.
53649         (Depends-on): Add math.
53650         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53651         (Include): Specify <math.h> instead of isnanl.h.
53652         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
53653         HAVE_ISNAN[FDL].
53654         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
53655         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
53656         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
53657         * NEWS: Mention the change.
53658
53659 2008-10-18  Bruno Haible  <bruno@clisp.org>
53660
53661         Add getusershell(), setusershell(), endusershell() declarations to
53662         <unistd.h>.
53663         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
53664         declarations.
53665         * lib/getusershell.c: Include unistd.h.
53666         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
53667         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53668         HAVE_GETUSERSHELL.
53669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
53670         and HAVE_GETUSERSHELL.
53671         * modules/getusershell (Depends-on): Add unistd, extensions.
53672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53673         (Include): Specify <unistd.h>.
53674         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
53675         HAVE_GETUSERSHELL.
53676
53677 2008-10-18  Bruno Haible  <bruno@clisp.org>
53678
53679         Add a getloadavg() declaration to <stdlib.h>.
53680         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
53681         getloadavg declaration.
53682         (getloadavg): New declaration.
53683         * lib/getloadavg.c: Include <stdlib.h> first.
53684         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
53685         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
53686         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
53687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
53688         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53689         * modules/getloadavg (Depends-on): Add stdlib, extensions.
53690         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53691         (Include): Specify <stdlib.h>.
53692         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
53693         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53694
53695 2008-10-18  Bruno Haible  <bruno@clisp.org>
53696
53697         * lib/dirchownmod.c: Don't include lchmod.h.
53698
53699         Move the lchmod() declaration to <sys/stat.h>.
53700         * lib/lchmod.h: Remove file.
53701         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
53702         (lchmod): New declaration, moved here from lib/lchown.h.
53703         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
53704         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
53705         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
53706         and HAVE_LCHMOD.
53707         * modules/lchmod (Files): Remove lib/lchmod.h.
53708         (Depends-on): Add sys_stat, extensions.
53709         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53710         (Include): Specify <sys/stat.h> instead of lchmod.h.
53711         * modules/sys_stat (Depends-on): Add link-warning.
53712         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
53713         definition of GL_LINK_WARNING.
53714         * NEWS: Mention the change.
53715
53716 2008-10-18  Bruno Haible  <bruno@clisp.org>
53717
53718         * lib/fchdir.c: Don't include dirfd.h.
53719         * lib/fts.c: Likewise.
53720         * lib/getcwd.c: Likewise.
53721         * lib/glob.c: Likewise.
53722
53723         Move the dirfd() declaration to <dirent.h>.
53724         * lib/dirfd.h: Remove file.
53725         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
53726         (dirfd): New declaration.
53727         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
53728         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53729         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
53730         HAVE_DECL_DIRFD.
53731         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
53732         HAVE_DECL_DIRFD.
53733         * modules/dirfd (Files): Remove lib/dirfd.h.
53734         (Depends-on): Add dirent, extensions.
53735         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
53736         (Include): Specify <dirent.h> instead of dirfd.h.
53737         * modules/dirent (Depends-on): Add link-warning.
53738         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
53739         definition of GL_LINK_WARNING.
53740         * NEWS: Mention the change.
53741
53742 2008-10-18  Bruno Haible  <bruno@clisp.org>
53743
53744         Move the euidaccess() declaration to <unistd.h>.
53745         * lib/euidaccess.h: Remove file.
53746         * lib/unistd.in.h (euidaccess): New declaration.
53747         * lib/euidaccess.c: Don't include euidaccess.h.
53748         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
53749         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
53750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
53751         and HAVE_EUIDACCESS.
53752         * modules/euidaccess (Files): Remove lib/euidaccess.h.
53753         (Depends-on): Add unistd.
53754         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53755         (Include): Specify <unistd.h> instead of euidaccess.h.
53756         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
53757         HAVE_EUIDACCESS.
53758         * NEWS: Mention the change.
53759
53760 2008-10-18  Bruno Haible  <bruno@clisp.org>
53761
53762         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
53763
53764         Move the getdomainname() declaration to <unistd.h>.
53765         * lib/getdomainname.h: Remove file.
53766         * lib/unistd.in.h (getdomainname): New declaration.
53767         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
53768         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
53769         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53770         HAVE_GETDOMAINNAME.
53771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53772         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
53773         * modules/getdomainname (Files): Remove lib/getdomainname.h.
53774         (Depends-on): Add unistd, extensions.
53775         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53776         (Includes): Specify <unistd.h> instead of getdomainname.h.
53777         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
53778         HAVE_GETDOMAINNAME.
53779         * NEWS: Mention the change.
53780
53781 2008-10-18  Bruno Haible  <bruno@clisp.org>
53782
53783         * modules/dirent: New file.
53784         * m4/dirent_h.m4: New file.
53785         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
53786         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
53787         * modules/fchdir (Files): Remove lib/dirent.in.h.
53788         (Depends-on): Add dirent.
53789         (Makefile.am): Move rules to modules/dirent.
53790         * doc/posix-headers/dirent.texi: Mention the new module.
53791
53792 2008-10-18  Bruno Haible  <bruno@clisp.org>
53793
53794         Avoid -Wunused-parameter warnings in public gnulib header files.
53795         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
53796         macro.
53797         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
53798
53799 2008-10-18  Bruno Haible  <bruno@clisp.org>
53800
53801         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
53802         * doc/glibc-functions/error.texi: Mention the module 'error'.
53803         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
53804         * doc/glibc-functions/getdomainname.texi: Mention the module
53805         'getdomainname'.
53806         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
53807         * doc/glibc-functions/getpagesize.texi: Mention the module
53808         'getpagesize'.
53809         * doc/glibc-functions/getusershell.texi: Mention the module
53810         'getusershell'.
53811         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
53812         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
53813         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
53814         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
53815         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
53816         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
53817         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
53818         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
53819         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
53820         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
53821         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
53822         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
53823         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
53824         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
53825
53826 2008-10-17  Bruno Haible  <bruno@clisp.org>
53827
53828         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
53829         HP-UX and IRIX, use -0.0L.
53830         * tests/test-ceill.c (minus_zero): Likewise.
53831         * tests/test-floorl.c (minus_zero): Likewise.
53832         * tests/test-frexpl.c (minus_zero): Likewise.
53833         * tests/test-isnan.c (minus_zerol): Likewise.
53834         * tests/test-isnanl.h (minus_zero): Likewise.
53835         * tests/test-ldexpl.c (minus_zero): Likewise.
53836         * tests/test-roundl.c (minus_zero): Likewise.
53837         * tests/test-signbit.c (minus_zerol): Likewise.
53838         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53839         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53840         * tests/test-truncl.c (minus_zero): Likewise.
53841         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53842         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53843         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
53844         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53845
53846 2008-10-17  Bruno Haible  <bruno@clisp.org>
53847
53848         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
53849         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
53850         that it gets activated only for gcc >= 3.0.
53851         * lib/dirent.in.h: Likewise.
53852         * lib/errno.in.h: Likewise.
53853         * lib/fcntl.in.h: Likewise.
53854         * lib/float.in.h: Likewise.
53855         * lib/iconv.in.h: Likewise.
53856         * lib/inttypes.in.h: Likewise.
53857         * lib/locale.in.h: Likewise.
53858         * lib/math.in.h: Likewise.
53859         * lib/netdb.in.h: Likewise.
53860         * lib/netinet_in.in.h: Likewise.
53861         * lib/search.in.h: Likewise.
53862         * lib/signal.in.h: Likewise.
53863         * lib/spawn.in.h: Likewise.
53864         * lib/stdarg.in.h: Likewise.
53865         * lib/stdint.in.h: Likewise.
53866         * lib/stdio.in.h: Likewise.
53867         * lib/stdlib.in.h: Likewise.
53868         * lib/string.in.h: Likewise.
53869         * lib/strings.in.h: Likewise.
53870         * lib/sys_file.in.h: Likewise.
53871         * lib/sys_ioctl.in.h: Likewise.
53872         * lib/sys_select.in.h: Likewise.
53873         * lib/sys_socket.in.h: Likewise.
53874         * lib/sys_stat.in.h: Likewise.
53875         * lib/sys_time.in.h: Likewise.
53876         * lib/sysexits.in.h: Likewise.
53877         * lib/time.in.h: Likewise.
53878         * lib/unistd.in.h: Likewise.
53879         * lib/wchar.in.h: Likewise.
53880         * lib/wctype.in.h: Likewise.
53881         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53882
53883 2008-10-17  Jim Meyering  <meyering@redhat.com>
53884
53885         ignore-value: don't depend on inline module
53886         * modules/ignore-value (Depends-on): Remove 'inline'.
53887         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
53888         Suggestion from Bruno Haible.
53889
53890 2008-10-17  Bruno Haible  <bruno@clisp.org>
53891
53892         New implementation of condition variables for Win32.
53893         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
53894         (gl_linked_waitqueue_t): New type.
53895         (gl_cond_t): Use it.
53896         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
53897         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
53898         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
53899         (glthread_cond_init_func, glthread_cond_wait_func,
53900         glthread_cond_timedwait_func, glthread_cond_signal_func,
53901         glthread_cond_broadcast_func, glthread_cond_destroy_func):
53902         Reimplemented on the basis of gl_linked_waitqueue_t.
53903         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
53904         gl_waitqueue_t.
53905         (gl_rwlock_t): Update.
53906         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
53907
53908 2008-10-17  Simon Josefsson  <simon@josefsson.org>
53909
53910         * modules/recvfrom (Depends-on): Add dependency on getpeername.
53911         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53912
53913 2008-10-17  Jim Meyering  <meyering@redhat.com>
53914
53915         ignore-value: new module
53916         * modules/ignore-value: New file.
53917         * lib/ignore-value.h: New file.
53918         * MODULES.html.sh (Compiler warning management): New section,
53919         just for this module.  More to come.
53920
53921 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53922
53923         open-safer.c: avoid 'signed and unsigned in conditional...' warning
53924         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
53925         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
53926
53927 2008-10-16  Jim Meyering  <meyering@redhat.com>
53928
53929         openat-die.c: avoid 'no previous prototype' warning
53930         * lib/openat-die.c: Include "openat.h".
53931         Reported by Reuben Thomas <rrt@sc3d.org>.
53932
53933 2008-10-16  Simon Josefsson  <simon@josefsson.org>
53934
53935         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
53936         * lib/netdb.in.h: Fix typo.
53937         Reported by Bruno Haible  <bruno@clisp.org>
53938
53939         * lib/netdb.in.h: Include sys/socket.h for platforms without
53940         netdb.h, to get structures like hostent on MinGW.
53941         * modules/netdb (Depends-on): Add sys_socket.
53942
53943 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53944
53945         * modules/netdb, modules/netdb-tests: New file.
53946         * m4/netdb_h.m4: New file.
53947         * lib/netdb.in.h: Add, currently just an empty file pending
53948         definitions.
53949         * tests/test-netdb.c: New file.
53950         * doc/posix-headers/netdb.texi: Mention that we replace it if
53951         needed.
53952         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53953         netdb.
53954
53955 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53956
53957         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
53958         with code.
53959
53960 2008-10-13  Bruno Haible  <bruno@clisp.org>
53961
53962         * lib/glthread/cond.c (glthread_cond_wait_func,
53963         glthread_cond_timedwait_func): Add a comment.
53964
53965 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53966
53967         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
53968         * tests/test-select.c: Likewise,
53969
53970 2008-10-13  Bruno Haible  <bruno@clisp.org>
53971
53972         * lib/glthread/cond.c (glthread_cond_wait_func,
53973         glthread_cond_timedwait_func): Fix variable name.
53974         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53975
53976 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
53977
53978         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
53979         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
53980         struct sockaddr.sa_len.
53981         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
53982
53983 2008-10-13  Simon Josefsson  <simon@josefsson.org>
53984
53985         * build-aux/pmccabe2html: Add css and css_url parameters.
53986
53987 2008-10-12  Bruno Haible  <bruno@clisp.org>
53988
53989         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
53990         calling aclx_get.
53991         Reported by Rainer Tammer <tammer@tammer.net>.
53992
53993 2008-10-12  Bruno Haible  <bruno@clisp.org>
53994
53995         Use msvcrt aware primitives for creation/termination of Win32 threads.
53996         * lib/glthread/thread.c: Include <process.h>.
53997         (glthread_create_func): Use _beginthreadex instead of CreateThread.
53998         (wrapper_func): Update signature.
53999         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54000
54001 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54002             Bruno Haible  <bruno@clisp.org>
54003
54004         Provide a Win32 implementation of the 'cond' module.
54005         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54006         * lib/glthread/cond.c (glthread_cond_init_func,
54007         glthread_cond_wait_func, glthread_cond_timedwait_func,
54008         glthread_cond_signal_func, glthread_cond_broadcast_func,
54009         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54010         * modules/cond (Dependencies): Add gettimeofday.
54011
54012 2008-10-11  Bruno Haible  <bruno@clisp.org>
54013
54014         Make sleep work on older versions of mingw.
54015         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54016         only whether it exists.
54017         * doc/posix-functions/sleep.texi: Mention the problem with older
54018         versions of mingw.
54019
54020 2008-10-11  Bruno Haible  <bruno@clisp.org>
54021
54022         New module 'shutdown'.
54023         * modules/shutdown: New file.
54024         * lib/sys_socket.in.h (shutdown): New declaration.
54025         * lib/winsock.c (shutdown): New function.
54026         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54027         GNULIB_SHUTDOWN.
54028         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54029         * doc/posix-functions/shutdown.texi: Document the new module.
54030
54031 2008-10-11  Jim Meyering  <meyering@redhat.com>
54032
54033         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54034
54035 2008-10-11  Bruno Haible  <bruno@clisp.org>
54036
54037         New module 'fclose'.
54038         * modules/fclose: New file.
54039         * lib/stdio.in.h (fclose): New declaration.
54040         * lib/fclose.c: New file.
54041         * m4/fclose.m4: New file.
54042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54043         REPLACE_FCLOSE.
54044         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54045         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54046         REPLACE_FCLOSE.
54047         * modules/close (Depends-on): fclose.
54048         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54049
54050 2008-10-11  Bruno Haible  <bruno@clisp.org>
54051
54052         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54053         set errno and don't call _close.
54054
54055 2008-10-10  Bruno Haible  <bruno@clisp.org>
54056
54057         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54058         ACL, not afterwards. Fixes test failure on Cygwin.
54059
54060 2008-10-09  Ben Pfaff  <blp@gnu.org>
54061
54062         * build-aux/announce-gen: Fix gnulib version related part of usage
54063         message.  Die with a useful error message if no tarballs are
54064         found.
54065
54066 2008-10-10  Jim Meyering  <meyering@redhat.com>
54067
54068         bootstrap: use git's --depth=N option only if it's supported
54069         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54070         recognize the --depth option.  Reported by Pádraig Brady.
54071
54072 2008-10-09  Bruno Haible  <bruno@clisp.org>
54073
54074         New module 'ioctl'.
54075         * modules/ioctl: New file.
54076         * lib/sys_socket.in.h (ioctl): Remove declaration.
54077         * lib/winsock.c: Include <sys/ioctl.h>.
54078         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54079         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54080         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54081         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54082         * doc/posix-functions/ioctl.texi: Mention the new module.
54083
54084 2008-10-09  Bruno Haible  <bruno@clisp.org>
54085
54086         New module 'sys_ioctl'.
54087         * lib/sys_ioctl.in.h: New file.
54088         * m4/sys_ioctl_h.m4: New file.
54089         * modules/sys_ioctl: New file.
54090         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54091
54092 2008-10-09  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54095         * lib/winsock.c: Include <stdarg.h>.
54096         (rpl_ioctl): Change to second argument 'int' and then varargs.
54097
54098 2008-10-09  Bruno Haible  <bruno@clisp.org>
54099
54100         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54101         when the sys_socket module is present and the system has <winsock2.h>.
54102
54103 2008-10-09  Bruno Haible  <bruno@clisp.org>
54104
54105         * doc/posix-functions/close.texi: Mention module 'close' instead of
54106         module 'sys_socket'.
54107
54108 2008-10-09  Bruno Haible  <bruno@clisp.org>
54109
54110         * doc/glibc-headers/sys_ioctl.texi: New file.
54111         * doc/gnulib.texi: Include it.
54112
54113 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54114             Bruno Haible  <bruno@clisp.org>
54115
54116         Combine the two replacements of 'close'.
54117         * lib/sys_socket.in.h (close): Define to a reminder to include
54118         <unistd.h>.
54119         (_gl_close_fd_maybe_socket): New declaration.
54120         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54121         * lib/winsock.c (close): Remove undefinition.
54122         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54123         needed for the gnulib module 'close'.
54124         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54125         define to an error symbol or to a warning, if suitable.
54126         * lib/close.c: Include <sys/socket.h>.
54127         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54128         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54129         UNISTD_H_HAVE_WINSOCK2_H.
54130         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54132         UNISTD_H_HAVE_WINSOCK2_H.
54133         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54134         (configure.ac): Set a module indicator.
54135         (Makefile.am): Substitute GNULIB_CLOSE.
54136         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54137         * modules/poll-tests (Depends-on): Add close.
54138         * modules/select-tests (Depends-on): Likewise.
54139
54140 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54141             Bruno Haible  <bruno@clisp.org>
54142
54143         New module 'close'.
54144         * modules/close: New file.
54145         * lib/unistd.in.h (close): Move declaration out of the
54146         FCHDIR_REPLACEMENT scope.
54147         (_gl_unregister_fd): New declaration.
54148         * lib/close.c: New file.
54149         * lib/fchdir.c (rpl_close): Remove function.
54150         * m4/close.m4: New file.
54151         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54152         close.
54153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54154         REPLACE_CLOSE.
54155         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54156         REPLACE_CLOSE.
54157         * modules/fchdir (Depends-on): Add close.
54158
54159 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54160             Bruno Haible  <bruno@clisp.org>
54161
54162         * lib/fcntl.in.h (open): Simplify conditionals.
54163         (_gl_register_fd): New declaration.
54164         * lib/fchdir.c (rpl_open): Remove function.
54165         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54166         also.
54167         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54168         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54169         open.
54170
54171 2008-10-09  Jim Meyering  <meyering@redhat.com>
54172
54173         GNUmakefile: use the more name-space-friendly "_version"
54174         * top/GNUmakefile (_dummy): Update.
54175         (_version): Rename from "version".
54176
54177 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54178             Bruno Haible  <bruno@clisp.org>
54179
54180         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54181         rpl_close.
54182         (_gl_register_fd): New function, extracted from rpl_open.
54183         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54184         (rpl_open, rpl_opendir): Use _gl_register_fd.
54185
54186 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54187
54188         Fix organization of 'open' replacement.
54189         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54190         (gl_FUNC_OPEN): Use it.
54191         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54192
54193 2008-10-08  Bruno Haible  <bruno@clisp.org>
54194
54195         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54196
54197 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54198
54199         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54200         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54201         listen).
54202
54203 2008-10-08  Eric Blake  <ebb9@byu.net>
54204
54205         GNUmakefile: add 'make version' target
54206         * top/GNUmakefile (_curr-ver): Split version update rules...
54207         (version): ...into a target.
54208
54209 2008-10-07  Bruno Haible  <bruno@clisp.org>
54210
54211         Use a more portable replacement expression for -0.0L.
54212         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54213         instead of -0.0L. Fix m4 quotation.
54214
54215         * tests/test-signbit.c: Include <float.h>.
54216         (minus_zero): New variable.
54217         (test_signbitl): Use minus_zero instead of -zero.
54218         * modules/signbit-tests (Depends-on): Add float.
54219
54220         * tests/test-ceill.c: Include <float.h>.
54221         (zero): Remove variable.
54222         (minus_zero): New variable.
54223         (main): Use minus_zero instead of -zero.
54224         * modules/ceill-tests (Depends-on): Add float.
54225
54226         * tests/test-floorl.c: Include <float.h>.
54227         (zero): Remove variable.
54228         (minus_zero): New variable.
54229         (main): Use minus_zero instead of -zero.
54230         * modules/floorl-tests (Depends-on): Add float.
54231
54232         * tests/test-roundl.c: Include <float.h>.
54233         (zero): Remove variable.
54234         (minus_zero): New variable.
54235         (main): Use minus_zero instead of -zero.
54236         * modules/roundl-tests (Depends-on): Add float.
54237
54238         * tests/test-truncl.c: Include <float.h>.
54239         (zero): Remove variable.
54240         (minus_zero): New variable.
54241         (main): Use minus_zero instead of -zero.
54242         * modules/truncl-tests (Depends-on): Add float.
54243
54244         * tests/test-frexpl.c (zero): Remove variable.
54245         (minus_zero): New variable.
54246         (main): Use minus_zero instead of -zero.
54247         * modules/frexpl-tests (Depends-on): Add float.
54248
54249         * tests/test-isnan.c (zerol): Remove variable.
54250         (minus_zerol): New variable.
54251         (test_long_double): Use minus_zerol instead of -zerol.
54252         * modules/isnan-tests (Depends-on): Add float.
54253
54254         * tests/test-isnanl.h (zero): Remove variable.
54255         (minus_zero): New variable.
54256         (main): Use minus_zero instead of -zero.
54257         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54258         * modules/isnanl-tests (Depends-on): Add float.
54259
54260         * tests/test-ldexpl.c (zero): Remove variable.
54261         (minus_zero): New variable.
54262         (main): Use minus_zero instead of -zero.
54263         * modules/ldexpl-tests (Depends-on): Add float.
54264
54265         * tests/test-snprintf-posix.h (zerol): Remove variable.
54266         (minus_zerol): New variable.
54267         (test_function): Use minus_zerol instead of -zerol.
54268         * modules/snprintf-posix-tests (Depends-on): Add float.
54269         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54270
54271         * tests/test-sprintf-posix.h (zerol): Remove variable.
54272         (minus_zerol): New variable.
54273         (test_function): Use minus_zerol instead of -zerol.
54274         * modules/sprintf-posix-tests (Depends-on): Add float.
54275         * modules/vsprintf-posix-tests (Depends-on): Add float.
54276
54277         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54278         (minus_zerol): New variable.
54279         (test_function): Use minus_zerol instead of -zerol.
54280         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54281
54282         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54283         (minus_zerol): New variable.
54284         (test_function): Use minus_zerol instead of -zerol.
54285         * modules/vasprintf-posix-tests (Depends-on): Add float.
54286
54287 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54288
54289         * MODULES.html.sh (Support for building documentation): Mention
54290         pmccabe2html.  Sort entries.
54291
54292         Add pmccabe2html module, from gnupdf.
54293         * build-aux/pmccabe.css: New file.
54294         * build-aux/pmccabe2html: New file.
54295         * m4/pmccabe2html.m4: New file.
54296         * modules/pmccabe2html: New file.
54297
54298 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54299
54300         flock: new module
54301         * MODULES.html.sh: Add to list of modules.
54302         * lib/flock.c: flock implementation for Windows and Unix systems
54303         which have fcntl.
54304         * doc/glibc-functions/flock.texi: Update documentation.
54305         * lib/sys_file.in.h: <sys/file.h> header file.
54306         * m4/flock.m4: M4 macros.
54307         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54308         * modules/flock: flock module.
54309         * modules/flock-tests: flock tests module.
54310         * modules/sys_file: sys/file.h module.
54311         * tests/test-flock.c: test suite for flock.
54312
54313 2008-10-06  Jim Meyering  <meyering@redhat.com>
54314
54315         bootstrap: check for LT_INIT more portably still ;-)
54316         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54317         Spotted by Bruno Haible.
54318
54319 2008-10-06  Eric Blake  <ebb9@byu.net>
54320
54321         test-signbit: avoid tripping Irix cc bug on -0.0L
54322         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54323         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54324         entire testsuite consistent and avoids an Irix 6.2 bug.
54325
54326 2008-10-05  Bruno Haible  <bruno@clisp.org>
54327             Jim Meyering  <jim@meyering.net>
54328
54329         Add an option for ignoring EPIPE during close_stdout.
54330         * lib/closeout.h: Include <stdbool.h>.
54331         (close_stdout_set_ignore_EPIPE): New declaration.
54332         * lib/closeout.c: Include <stdbool.h>.
54333         (ignore_EPIPE): New variable.
54334         (close_stdout_set_ignore_EPIPE): New function.
54335         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54336         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54337         failure.
54338         * modules/closeout (Depends-on): Add stdbool.
54339
54340 2008-10-05  Bruno Haible  <bruno@clisp.org>
54341
54342         * modules/accept: New file.
54343         * modules/bind: New file.
54344         * modules/connect: New file.
54345         * modules/getpeername: New file.
54346         * modules/getsockname: New file.
54347         * modules/getsockopt: New file.
54348         * modules/listen: New file.
54349         * modules/recv: New file.
54350         * modules/recvfrom: New file.
54351         * modules/send: New file.
54352         * modules/sendto: New file.
54353         * modules/setsockopt: New file.
54354         * modules/socket: New file.
54355         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54356         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54357         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54358         the particular module is requested. Add a link warning when the
54359         particular module is not requested.
54360         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54361         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54362         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54363         the particular module is requested.
54364         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54365         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54366         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54367         * modules/sys_socket (Depends-on): Add link-warning.
54368         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54369         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54370         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54371         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54372         GL_LINK_WARNING.
54373         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54374         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54375         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54376         * doc/posix-functions/getpeername.texi: Mention the new module
54377         'getpeername'.
54378         * doc/posix-functions/getsockname.texi: Mention the new module
54379         'getsockname'.
54380         * doc/posix-functions/getsockopt.texi: Mention the new module
54381         'getsockopt'.
54382         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54383         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54384         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54385         * doc/posix-functions/send.texi: Mention the new module 'send'.
54386         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54387         * doc/posix-functions/setsockopt.texi: Mention the new module
54388         'setsockopt'.
54389         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54390         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54391         listen, connect, accept.
54392         * modules/select-tests (Depends-on): Likewise.
54393
54394 2008-10-05  Bruno Haible  <bruno@clisp.org>
54395
54396         * lib/winsock.c (strerror): Remove unused #undef.
54397         (rpl_close): Remove unused local variable.
54398
54399         * modules/sys_socket (Depends-on); Add errno.
54400
54401 2008-10-05  Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54404         (select): Add a link warning when the 'select' module is not used.
54405         * modules/sys_select (Depends-on): Add link-warning.
54406         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54407         Suggested by Paolo Bonzini.
54408
54409 2008-10-05  Jim Meyering  <meyering@redhat.com>
54410
54411         bootstrap: check for LT_INIT more portably
54412         * build-aux/bootstrap: Avoid using grep -E, since it's not
54413         portable enough.  Suggestion from Bruno Haible.
54414
54415 2008-10-05  Bruno Haible  <bruno@clisp.org>
54416
54417         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54418         as being fixed by gnulib.
54419
54420 2008-10-05  Bruno Haible  <bruno@clisp.org>
54421
54422         * modules/select-tests: New file, mostly copied from
54423         modules/sys_select-tests.
54424         * tests/test-select.c: New file, mostly copied from
54425         tests/test-sys_select.c.
54426         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54427         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54428         (Makefile.am): Remove test_sys_select_LDADD.
54429
54430         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54431         to an undefined symbol, for an error message.
54432         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54433         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54434         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54435         winsock-select.c here.
54436         * modules/sys_select (Files): Remove lib/winsock-select.c.
54437         (Depends-on): Remove alloca.
54438         (Makefile.am): Substitute GNULIB_SELECT.
54439         * modules/select: New file.
54440         * doc/posix-functions/select.texi: Update.
54441
54442 2008-10-05  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54445         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54446         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54447         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54448         getdtablesize.
54449         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54450         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54451
54452 2008-10-05  Bruno Haible  <bruno@clisp.org>
54453
54454         * modules/getdtablesize-tests: New file.
54455         * tests/test-getdtablesize.c: New file.
54456
54457         New module 'getdtablesize'.
54458         * lib/unistd.in.h (getdtablesize): New declaration.
54459         * lib/getdtablesize.c: New file.
54460         * m4/getdtablesize.m4: New file.
54461         * modules/getdtablesize: New file.
54462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54463         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54464         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54465         HAVE_GETDTABLESIZE.
54466         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54467
54468 2008-10-05  Bruno Haible  <bruno@clisp.org>
54469
54470         * modules/sched (Makefile.am): Fix typo.
54471         Reported by Simon Josefsson.
54472
54473 2008-10-05  Jim Meyering  <meyering@redhat.com>
54474
54475         bootstrap: check for LT_INIT, too
54476         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54477         are deprecated.  Suggestion from Ralf Wildenhues.
54478
54479 2008-10-05  Bruno Haible  <bruno@clisp.org>
54480
54481         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54482         overriding them by ours.
54483         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54484
54485 2008-10-05  Jim Meyering  <meyering@redhat.com>
54486
54487         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54488         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54489         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54490
54491 2008-10-04  Bruno Haible  <bruno@clisp.org>
54492
54493         * modules/dup2 (License): Change to LGPLv2+.
54494         * modules/sleep (License): Likewise.
54495         * modules/perror (License): Likewise.
54496         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54497         Blake.
54498         * modules/signal (License): Likewise.
54499         * modules/sigprocmask (License): Likewise.
54500         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54501         Meyering.
54502
54503 2008-10-04  Bruno Haible  <bruno@clisp.org>
54504
54505         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54506         Reported by Rainer Tammer <tammer@tammer.net>.
54507
54508 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54509             Bruno Haible  <bruno@clisp.org>
54510
54511         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54512         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54513         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54514
54515 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54516
54517         filevercmp: new module
54518         * lib/filevercmp.h: New function filevercmp comparing version strings.
54519         * lib/filevercmp.c: Implementation of filevercmp function.
54520         * modules/filevercmp: Module metadata.
54521         * tests/test-filevercmp.c: Unit test for new module.
54522         * modules/filevercmp-tests: Unit test metadata.
54523         * MODULES.html.sh: Add filevercmp module.
54524
54525 2008-10-03  Bruno Haible  <bruno@clisp.org>
54526
54527         * lib/c-ctype.h: Add comment.
54528         Reported by Jim Meyering.
54529
54530 2008-10-02  Bruno Haible  <bruno@clisp.org>
54531
54532         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54533
54534 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54535
54536         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54537         name of bootstrap.conf accordingly.
54538
54539 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54540
54541         * build-aux/bootstrap: Install git-merge-changelog configuration
54542         items into .gitconfig if needed.
54543
54544 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54545
54546         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54547         git repository, and initialize/update it accordingly.
54548
54549 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54550
54551         * modules/fsync-tests: New file.
54552         * tests/test-fsync.c: New file.
54553
54554         New module 'fsync'.
54555         * lib/fsync.c: New file.
54556         * m4/fsync.m4: New file.
54557         * modules/fsync: New file.
54558         * lib/unistd.in.h (fsync): New declaration.
54559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54560         GNULIB_FSYNC and HAVE_FSYNC.
54561         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54562         * MODULES.html.sh (posix_functions): Add fsync.
54563         * doc/posix-functions/fsync.texi: Mention the new module.
54564
54565 2008-10-02  Jim Meyering  <meyering@redhat.com>
54566
54567         fts.c: sync with similar code from coreutils' remove.c
54568         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54569         Guard also with "#if defined __linux__", since for now at least,
54570         this code is Linux-kernel-specific.
54571
54572 2008-10-02  Jim Meyering  <meyering@redhat.com>
54573
54574         fts: bug fixes
54575         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54576         Include <sys/vfs.h>, not <sys/statfs.h>.
54577
54578         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54579         Include <sys/vfs.h>, not <sys/statfs.h>.
54580
54581 2008-10-01  Bruno Haible  <bruno@clisp.org>
54582
54583         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54584         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54585         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54586         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54587         * doc/posix-functions/posix_spawnp.texi: Likewise.
54588         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54589         whether posix_spawn actually works.
54590         * m4/pipe.m4 (gl_PIPE): Likewise.
54591         * modules/execute (Files): Add m4/posix_spawn.m4.
54592         * modules/pipe (Files): Add m4/posix_spawn.m4.
54593         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54594
54595 2008-10-01  Jim Meyering  <meyering@redhat.com>
54596
54597         remove trailing spaces
54598         * NEWS: Likewise.
54599         * lib/poll.c (poll): Likewise.
54600         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54601         * lib/winsock.c (rpl_close): Likewise.
54602         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
54603         * modules/yield: Likewise.
54604         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
54605         * tests/test-sys_select.c (connect_to_socket): Likewise.
54606
54607         fts.c: adjust a new interface to be more generally useful
54608         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
54609         (fts_build): Adjust caller.
54610
54611 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54612
54613         * modules/cond-tests: New file.
54614         * tests/test-cond.c: New file.
54615
54616 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54617             Bruno Haible  <bruno@clisp.org>
54618
54619         * modules/cond (Dependencies): Add errno, time.
54620         * lib/glthread/cond.h: Include <time.h>.
54621         (gl_cond_define, gl_cond_define_initialized): Use the same definition
54622         across platforms.
54623
54624 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54625             Bruno Haible  <bruno@clisp.org>
54626
54627         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
54628
54629 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54630             Bruno Haible  <bruno@clisp.org>
54631
54632         * modules/tls-tests (Depends-on): Add thread, yield.
54633         (configure.ac): Remove all checks.
54634         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
54635         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54636         gl_thread_self): Remove definitions. Include glthread/thread.h and
54637         glthread/yield.h instead.
54638         (test_tls): Pass an additional NULL argument to gl_thread_join.
54639
54640 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54641             Bruno Haible  <bruno@clisp.org>
54642
54643         * modules/lock-tests (Depends-on): Add thread, yield.
54644         (configure.ac): Remove all checks.
54645         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
54646         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54647         gl_thread_self): Remove definitions. Include glthread/thread.h and
54648         glthread/yield.h instead.
54649         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
54650         additional NULL argument to gl_thread_join.
54651
54652 2008-09-30  Bruno Haible  <bruno@clisp.org>
54653
54654         Fix the Win32 implementation of the 'thread' module.
54655         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
54656         pointer type.
54657         (gl_thread_self): Invoke gl_thread_self_func.
54658         (gl_thread_self_func): New declaration.
54659         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
54660         (do_init_self_key, init_self_key): New functions.
54661         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
54662         Remove some fields.
54663         (running_threads, running_lock): Remove variables.
54664         (get_current_thread_handle): New function.
54665         (gl_thread_self_func, wrapper_func, glthread_create_func,
54666         glthread_join_func, gl_thread_exit_func): Largely rewritten and
54667         simplified.
54668
54669 2008-09-30  Bruno Haible  <bruno@clisp.org>
54670
54671         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
54672         files.
54673
54674 2008-09-30  Jim Meyering  <meyering@redhat.com>
54675
54676         fts.m4: correct the test for statfs.f_type
54677         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
54678         when checking for statfs.f_type.
54679
54680 2008-09-15  Simon Josefsson  <simon@josefsson.org>
54681
54682         tests: avoid some compiler warnings
54683         * tests/test-memchr.c (main): Pass NULL indirectly.
54684         * tests/test-getdate.c (main): Remove unused variable 'ret'.
54685
54686 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
54687
54688         getdate.y: disallow countable dayshifts like "4 yesterday ago"
54689         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
54690         exactly specified dayshifts.
54691         (dayshift): New rule.
54692         (rel): Add dayshift.
54693         (relative_time_table) [tomorrow, yesterday, today, now]:
54694         Use tDAY_SHIFT in place of tDAY_UNIT.
54695         * tests/test-getdate.c: Add tests for now-disallowed countable
54696         dayshifts, e.g., "4 yesterday ago".
54697
54698 2008-09-29  Bruno Haible  <bruno@clisp.org>
54699
54700         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
54701         * tests/test-posix_spawn1.in.sh: Renamed from
54702         tests/test-posix_spawn.in.sh.
54703         * tests/test-posix_spawn2.c: New file.
54704         * tests/test-posix_spawn2.in.sh: New file.
54705         * modules/posix_spawnp-tests (Files): Update.
54706         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
54707
54708 2008-09-29  Bruno Haible  <bruno@clisp.org>
54709
54710         Propagate effects of putenv/setenv/unsetenv to child processes.
54711         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
54712         * lib/pipe.c (create_pipe): Likewise.
54713
54714 2008-09-29  Bruno Haible  <bruno@clisp.org>
54715
54716         Enable use of shell scripts as executables in mingw.
54717         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
54718         run the program as a shell script.
54719         * lib/pipe.c (create_pipe): Likewise.
54720         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
54721         resulting array.
54722
54723 2008-09-29  Eric Blake  <ebb9@byu.net>
54724
54725         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
54726
54727 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
54728
54729         * doc/posix-functions/accept.texi: Update mingw problems.
54730         * doc/posix-functions/bind.texi: Update mingw problems.
54731         * doc/posix-functions/close.texi: Update mingw problems.
54732         * doc/posix-functions/connect.texi: Update mingw problems.
54733         * doc/posix-functions/getpeername.texi: Update mingw problems.
54734         * doc/posix-functions/getsockname.texi: Update mingw problems.
54735         * doc/posix-functions/getsockopt.texi: Update mingw problems.
54736         * doc/posix-functions/ioctl.texi: Update mingw problems.
54737         * doc/posix-functions/listen.texi: Update mingw problems.
54738         * doc/posix-functions/recv.texi: Update mingw problems.
54739         * doc/posix-functions/recvfrom.texi: Update mingw problems.
54740         * doc/posix-functions/select.texi: Update mingw problems.
54741         * doc/posix-functions/send.texi: Update mingw problems.
54742         * doc/posix-functions/sendto.texi: Update mingw problems.
54743         * doc/posix-functions/setsockopt.texi: Update mingw problems.
54744         * doc/posix-functions/socket.texi: Update mingw problems.
54745
54746 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
54747             Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/sys_select.in.h: Include sys/time.h.
54750         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
54751         * modules/sys_select: Depend on sys_time.
54752         * tests/test-sys_select.c: Test that sys/select.h defines struct
54753         timeval fully.
54754
54755 2008-09-29  Bruno Haible  <bruno@clisp.org>
54756
54757         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
54758         * lib/sys_select.in.h: Likewise.
54759
54760 2008-09-29  Bruno Haible  <bruno@clisp.org>
54761
54762         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
54763
54764 2008-09-29  Bruno Haible  <bruno@clisp.org>
54765
54766         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
54767         Set LIBSOCKET instead of augmenting LIBS.
54768         * modules/sockets (Link): New section.
54769         * modules/sockets-tests (test_sockets_LDADD): New variable.
54770         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
54771         * modules/poll-tests (test_poll_LDADD): New variable.
54772         * NEWS: Document the change.
54773
54774 2008-09-29  Bruno Haible  <bruno@clisp.org>
54775
54776         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
54777         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
54778         ARPA_INET_H directly.
54779         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54780
54781 2008-09-28  Bruno Haible  <bruno@clisp.org>
54782
54783         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
54784         from gl_HEADER_SYS_SOCKET.
54785         (gl_HEADER_SYS_SOCKET): Invoke it.
54786         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54787
54788 2008-09-28  Bruno Haible  <bruno@clisp.org>
54789
54790         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
54791         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
54792         Needed on OSF/1 4.0.
54793
54794 2008-09-28  Bruno Haible  <bruno@clisp.org>
54795
54796         Override open more carefully.
54797         * lib/open.c (orig_open): New function.
54798         (rpl_open): Use orig_open instead of open.
54799         * lib/fcntl.in.h: Add special invocation convention.
54800         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
54801         (gl_FUNC_OPEN): Invoke it.
54802
54803         Override freopen more carefully.
54804         * lib/freopen.c (orig_freopen): New function.
54805         (rpl_freopen): Use orig_freopen instead of freopen.
54806         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
54807         (gl_FUNC_FREOPEN): Invoke it.
54808
54809         Override fopen more carefully.
54810         * lib/fopen.c (orig_fopen): New function.
54811         (rpl_fopen): Use orig_fopen instead of fopen.
54812         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
54813         (gl_FUNC_FOPEN): Invoke it.
54814         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
54815
54816 2008-09-28  Bruno Haible  <bruno@clisp.org>
54817
54818         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
54819         SIGPIPE.
54820
54821 2008-09-28  Bruno Haible  <bruno@clisp.org>
54822
54823         * tests/test-sigaction.c (handler, main): Disable the check whether
54824         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
54825         glibc systems with LinuxThreads.
54826
54827 2008-09-28  Bruno Haible  <bruno@clisp.org>
54828
54829         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
54830
54831         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
54832         with AIX xlc.
54833         * lib/fcntl.in.h (open): Likewise.
54834         Reported by Rainer Tammer <tammer@tammer.net>.
54835
54836 2008-09-28  Bruno Haible  <bruno@clisp.org>
54837
54838         * modules/posix_spawnp-tests: New file.
54839         * tests/test-posix_spawn.c: New file.
54840         * tests/test-posix_spawn.in.sh: New file.
54841
54842         New module 'posix_spawnp'.
54843         * modules/posix_spawnp: New file.
54844         * lib/spawnp.c: New file, from GNU libc with modifications.
54845         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
54846
54847         New module 'posix_spawn'.
54848         * modules/posix_spawn: New file.
54849         * lib/spawn.c: New file, from GNU libc with modifications.
54850         * doc/posix-functions/posix_spawn.texi: Mention the new module.
54851
54852         New module 'posix_spawnattr_destroy'.
54853         * modules/posix_spawnattr_destroy: New file.
54854         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
54855         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
54856         module.
54857
54858         New module 'posix_spawnattr_setsigmask'.
54859         * modules/posix_spawnattr_setsigmask: New file.
54860         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
54861         modifications.
54862         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
54863         new module.
54864
54865         New module 'posix_spawnattr_getsigmask'.
54866         * modules/posix_spawnattr_getsigmask: New file.
54867         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
54868         modifications.
54869         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
54870         new module.
54871
54872         New module 'posix_spawnattr_setsigdefault'.
54873         * modules/posix_spawnattr_setsigdefault: New file.
54874         * lib/spawnattr_setdefault.c: New file, from GNU libc with
54875         modifications.
54876         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
54877         new module.
54878
54879         New module 'posix_spawnattr_getsigdefault'.
54880         * modules/posix_spawnattr_getsigdefault: New file.
54881         * lib/spawnattr_getdefault.c: New file, from GNU libc with
54882         modifications.
54883         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
54884         new module.
54885
54886         New module 'posix_spawnattr_setschedpolicy'.
54887         * modules/posix_spawnattr_setschedpolicy: New file.
54888         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
54889         modifications.
54890         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
54891         new module.
54892
54893         New module 'posix_spawnattr_getschedpolicy'.
54894         * modules/posix_spawnattr_getschedpolicy: New file.
54895         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
54896         modifications.
54897         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
54898         new module.
54899
54900         New module 'posix_spawnattr_setschedparam'.
54901         * modules/posix_spawnattr_setschedparam: New file.
54902         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
54903         modifications.
54904         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
54905         new module.
54906
54907         New module 'posix_spawnattr_getschedparam'.
54908         * modules/posix_spawnattr_getschedparam: New file.
54909         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
54910         modifications.
54911         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
54912         new module.
54913
54914         New module 'posix_spawnattr_setpgroup'.
54915         * modules/posix_spawnattr_setpgroup: New file.
54916         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
54917         modifications.
54918         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
54919         module.
54920
54921         New module 'posix_spawnattr_getpgroup'.
54922         * modules/posix_spawnattr_getpgroup: New file.
54923         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
54924         modifications.
54925         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
54926         module.
54927
54928         New module 'posix_spawnattr_setflags'.
54929         * modules/posix_spawnattr_setflags: New file.
54930         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
54931         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
54932         module.
54933
54934         New module 'posix_spawnattr_getflags'.
54935         * modules/posix_spawnattr_getflags: New file.
54936         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
54937         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
54938         module.
54939
54940         New module 'posix_spawnattr_init'.
54941         * modules/posix_spawnattr_init: New file.
54942         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
54943         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
54944         module.
54945
54946         New module 'posix_spawn_file_actions_destroy'.
54947         * modules/posix_spawn_file_actions_destroy: New file.
54948         * lib/spawn_faction_destroy.c: New file, from GNU libc with
54949         modifications.
54950         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
54951         the new module.
54952
54953         New module 'posix_spawn_file_actions_addopen'.
54954         * modules/posix_spawn_file_actions_addopen: New file.
54955         * lib/spawn_faction_addopen.c: New file, from GNU libc with
54956         modifications.
54957         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
54958         the new module.
54959
54960         New module 'posix_spawn_file_actions_adddup2'.
54961         * modules/posix_spawn_file_actions_adddup2: New file.
54962         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
54963         modifications.
54964         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
54965         the new module.
54966
54967         New module 'posix_spawn_file_actions_addclose'.
54968         * modules/posix_spawn_file_actions_addclose: New file.
54969         * lib/spawn_faction_addclose.c: New file, from GNU libc with
54970         modifications.
54971         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
54972         the new module.
54973
54974         New module 'posix_spawn_file_actions_init'.
54975         * modules/posix_spawn_file_actions_init: New file.
54976         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
54977         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
54978         new module.
54979
54980         New module 'posix_spawn-internal'.
54981         * modules/posix_spawn-internal: New file.
54982         * lib/spawn_int.h: New file, from GNU libc with modifications.
54983         * lib/spawni.c: New file, from GNU libc with modifications.
54984         * m4/posix_spawn.m4: New file.
54985
54986         New module 'spawn'.
54987         * modules/spawn: New file.
54988         * lib/spawn.in.h: New file, from GNU libc with modifications.
54989         * m4/spawn_h.m4: New file.
54990         * doc/posix-headers/spawn.texi: Mention the new module.
54991
54992 2008-09-28  Bruno Haible  <bruno@clisp.org>
54993
54994         * modules/sched-tests: New file.
54995         * tests/test-sched.c: New file.
54996
54997         New module 'sched'.
54998         * modules/sched: New file.
54999         * lib/sched.in.h: New file.
55000         * m4/sched_h.m4: New file.
55001         * doc/posix-headers/sched.texi: Mention the new module.
55002
55003 2008-09-27  Eric Blake  <ebb9@byu.net>
55004
55005         Fix previous patch, and tweak references to $0.
55006         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55007         (func_version, func_gnulib_dir): Don't call this program
55008         gnulib-tool.
55009         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55010         with using $0 in function.
55011         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55012         (func_fatal_error): Reuse the name the user invoked us with.
55013
55014 2008-09-27  Bruno Haible  <bruno@clisp.org>
55015
55016         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55017         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55018         (gl_ICONV_H): Not here.
55019         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55020         instead of assigning ICONV_H directly.
55021
55022         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55024         WCHAR_H directly.
55025
55026 2008-09-27  Bruno Haible  <bruno@clisp.org>
55027
55028         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55029         * modules/arpa_inet (Depends-on): Add link-warning.
55030         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55031         * modules/unistd (Makefile.am): Likewise.
55032
55033 2008-09-26  Bruno Haible  <bruno@clisp.org>
55034
55035         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55036         variables.
55037         (func_version): Essentially copied from gnulib-tool.
55038         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55039         func_readlink): Copied from gnulib-tool.
55040
55041 2008-09-26  Bruno Haible  <bruno@clisp.org>
55042
55043         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55044         invoking git-version-gen.
55045
55046 2008-09-26  Bruno Haible  <bruno@clisp.org>
55047
55048         * posix-modules: Update to directory names changed on 2008-01-19.
55049         Remove commas in output before splitting into words. No more need to
55050         avoid 'ftruncate' since 2007-02-19.
55051
55052 2008-09-26  Bruno Haible  <bruno@clisp.org>
55053
55054         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55055
55056 2008-09-26  Bruno Haible  <bruno@clisp.org>
55057
55058         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55059         * modules/fwriteerror (Depends-on): Add errno.
55060
55061 2008-09-26  Bruno Haible  <bruno@clisp.org>
55062
55063         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55064         * tests/test-vc-list-files-cvs.sh: Likewise.
55065
55066 2008-09-26  Bruno Haible  <bruno@clisp.org>
55067
55068         * doc/posix-headers/sys_resource.texi: Reorder items.
55069
55070 2008-09-26  Jim Meyering  <meyering@redhat.com>
55071
55072         fts: tweak inode comparison function
55073         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55074         inode numbers, as documented.
55075
55076         fts: sort dirent entries on inode number before traversing
55077         This avoids a quadratic, seek-related performance penalty when
55078         operating on a directory containing many entries (measurable at 10k;
55079         3.5 hours at 2 million entries with a cold cache) on certain types
55080         of file systems, including ext3 and ext4, but not tmpfs.
55081         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55082         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55083         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55084         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55085         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55086         (fts_build): Set the stat.st_ino member from D_INO.
55087         If it is likely to be useful, sort dirent entries on inode number.
55088
55089         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55090         and the struct statfs.f_type member.
55091         * modules/fts (Depends-on): Add d-ino.
55092
55093 2008-09-26  Bruno Haible  <bruno@clisp.org>
55094
55095         * modules/sigpipe-die (Depends-on): Add sigpipe.
55096
55097         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55098         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55099         and GNULIB_STDIO_H_SIGPIPE are set.
55100         * lib/stdio-write.c: New file.
55101         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55102         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55103         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55104         REPLACE_STDIO_WRITE_FUNCS.
55105         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55106         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55107         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55108         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55109         * modules/stdio (Files): Add lib/stdio-write.c.
55110         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55111         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55112         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55113         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55114         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55115         REPLACE_FPRINTF_POSIX.
55116         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55117         REPLACE_PRINTF_POSIX.
55118         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55119         REPLACE_VFPRINTF_POSIX.
55120         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55121         REPLACE_VPRINTF_POSIX.
55122         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55123         SIGPIPE issue.
55124         * doc/posix-functions/fputc.texi: Likewise.
55125         * doc/posix-functions/fputs.texi: Likewise.
55126         * doc/posix-functions/fwrite.texi: Likewise.
55127         * doc/posix-functions/printf.texi: Likewise.
55128         * doc/posix-functions/putc.texi: Likewise.
55129         * doc/posix-functions/putchar.texi: Likewise.
55130         * doc/posix-functions/puts.texi: Likewise.
55131         * doc/posix-functions/vfprintf.texi: Likewise.
55132         * doc/posix-functions/vprintf.texi: Likewise.
55133
55134         * modules/safe-write (Depends-on): Add write.
55135
55136         * modules/sigpipe-tests: New file.
55137         * tests/test-sigpipe.c: New file.
55138         * tests/test-sigpipe.sh: New file.
55139
55140         * modules/write: New file.
55141         * lib/unistd.in.h: Include <sys/types.h>.
55142         (write): New declaration.
55143         * lib/write.c: New file.
55144         * m4/write.m4: New file.
55145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55146         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55147         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55148         GNULIB_WRITE, REPLACE_WRITE.
55149         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55150         and the SIGPIPE issue.
55151
55152         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55153         (raise): New declaration.
55154         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55155         (ext_signal): New function.
55156         (rpl_raise): New function.
55157         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55158         GNULIB_SIGNAL_H_SIGPIPE.
55159         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55160         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55161
55162         * modules/sigpipe: New file.
55163         * m4/sigpipe.m4: New file.
55164
55165 2008-09-25  Derek Price  <derek@ximbiot.com>
55166             Bruno Haible  <bruno@clisp.org>
55167
55168         * gnulib-tool (func_import): Report all license incompatibilities, not
55169         just the first one.
55170
55171 2008-09-25  Bruno Haible  <bruno@clisp.org>
55172
55173         * gnulib-tool (func_import): When computing the edits, consider not
55174         only the Makefile.ams that exist but also those that will be generated.
55175
55176 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55177
55178         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55179         fixes gnulib-tool --test warning about duplicate dependency.
55180
55181 2008-09-25  Bruno Haible  <bruno@clisp.org>
55182
55183         * gnulib-tool: Don't ask the user to perform edits in the generated
55184         Makefile.ams.
55185         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55186         apply to the Makefile.am being generated.
55187         (func_emit_tests_Makefile_am): Execute edits that apply to the
55188         Makefile.am being generated.
55189         (func_import): Setup list of Makefile.am edits before emitting the
55190         Makefile.ams, not at the end.
55191         (func_create_testdir): Update.
55192         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55193
55194 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55195
55196         * gnulib-tool (func_import): Store the --tests-base option in the
55197         comment in gnulib-cache.m4.
55198
55199 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55200
55201         * NEWS: Document increased portability that sys_select now provides.
55202
55203         * lib/sys_select.in.h: Install select wrapper.
55204         * lib/sys_socket.in.h: Use more descriptive name when there is no
55205         select wrapper.
55206         * lib/winsock-select.c: New.
55207         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55208         Require gl_HEADER_SYS_SOCKET.
55209         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55210         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55211         * tests/test-sys_select.c: Add functional tests.
55212
55213 2008-09-24  Eric Blake  <ebb9@byu.net>
55214
55215         open, fopen: close fd leak in last patch
55216         * lib/open.c (rpl_open): Close fd before returning error.
55217         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55218         * doc/posix-functions/open.texi (open): Document that Irix also
55219         has the bug.
55220         * doc/posix-functions/fopen.texi (fopen): Likewise.
55221         Reported by Paolo Bonzini.
55222
55223 2008-09-24  Bruno Haible  <bruno@clisp.org>
55224
55225         Ensure that a filename ending in a slash cannot be used to access a
55226         non-directory.
55227         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55228         to check whether it's really a directory.
55229         * lib/fopen.c: Include fcntl.h, unistd.h.
55230         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55231         and fdopen().
55232         * modules/fopen (Depends-on): Add unistd.
55233         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55234         * tests/test-fopen.c (main): Likewise.
55235         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55236         * doc/posix-functions/fopen.texi: Likewise.
55237         Reported by Eric Blake.
55238
55239 2008-09-23  Eric Blake  <ebb9@byu.net>
55240
55241         c-stack: avoid compiler optimizations when provoking overflow
55242         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55243         recursion harder to optimize, to ensure a stack overflow occurs.
55244         * tests/test-c-stack.c (recurse): Likewise.
55245         Borrowed from libsigsegv.
55246
55247         c-stack: work around Irix sigaltstack bug
55248         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55249         whether sigaltstack uses wrong end of stack_t (copied in part from
55250         libsigsegv).
55251         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55252         Irix bug, without requiring an over-allocation.
55253         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55254         bug.
55255
55256         fopen: document mingw bug on directories
55257         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55258         not allowing a stream visiting a directory, even though reading
55259         from such a stream is not portable.
55260
55261 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55262
55263         * lib/poll.c: Rewrite.
55264         * modules/poll: Depend on alloca.
55265
55266 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55267
55268         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55269         instead define prototypes for a full set of wrappers.  Ensure
55270         that Cygwin does not use the compatibility code, which is only
55271         for MinGW.
55272         * lib/winsock.c: New.
55273         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55274         * modules/sys_socket: Add lib/winsock.c.
55275
55276         * modules/poll-tests: Add errno and perror.
55277         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55278
55279 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55280
55281         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55282
55283 2008-09-23  Bruno Haible  <bruno@clisp.org>
55284
55285         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55286         * doc/glibc-functions/*: Likewise.
55287
55288 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55289
55290         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55291         success.
55292
55293 2008-09-22  Eric Blake  <ebb9@byu.net>
55294             Bruno Haible  <bruno@clisp.org>
55295
55296         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55297         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55298         supply %A but mishandle pseudo-NaN.
55299         Reported by Simon Josefsson.
55300
55301 2008-09-21  Bruno Haible  <bruno@clisp.org>
55302
55303         * tests/test-lock.c (main): Tweak skip message.
55304         * tests/test-tls.c (main): Likewise.
55305
55306 2008-09-21  Bruno Haible  <bruno@clisp.org>
55307
55308         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55309         whether 'struct sigaction' has sa_sigaction here...
55310         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55311         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55312
55313 2008-09-21  Bruno Haible  <bruno@clisp.org>
55314
55315         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55316         section.
55317         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55318         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55319         the new section.
55320         (Support for obsolete systems lacking POSIX:2001): New section.
55321         (String handling <string.h>): Move strdup to the new section.
55322         Suggested by Simon Josefsson and Paolo Bonzini.
55323
55324 2008-09-21  Bruno Haible  <bruno@clisp.org>
55325
55326         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55327         exponents in %e and %g results on 'long double'. Needed for mingw's
55328         improved *printf functions.
55329         * tests/test-vasprintf-posix.c (test_function): Likewise.
55330         * tests/test-snprintf-posix.h (test_function): Likewise.
55331         * tests/test-sprintf-posix.h (test_function): Likewise.
55332         Reported by Eric Blake.
55333
55334 2008-09-21  Bruno Haible  <bruno@clisp.org>
55335
55336         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55337         * tests/test-sprintf-posix.h (test_function): Likewise.
55338
55339 2008-09-21  Bruno Haible  <bruno@clisp.org>
55340
55341         * modules/getpass (Depends-on): Add strdup-posix.
55342
55343         New module 'strdup-posix'.
55344         * modules/strdup-posix: New file.
55345         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55346         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55348         REPLACE_STRDUP.
55349         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55350         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55351         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55352         strdup-posix.
55353
55354         * modules/strdup (Depends-on): Remove malloc-posix.
55355
55356 2008-09-20  Bruno Haible  <bruno@clisp.org>
55357
55358         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55359         Wildenhues.
55360
55361 2008-09-20  Bruno Haible  <bruno@clisp.org>
55362
55363         Ensure that wint_t gets defined on IRIX 5.3.
55364         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55365         * lib/wctype.in.h (wint_t): Likewise.
55366         (__wctype_wint_t): Remove type.
55367         (isw*): Use wint_t instead of __wctype_wint_t.
55368         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55369         * modules/wchar (Files): Add m4/wint_t.m4.
55370         (Makefile.am): Substitute HAVE_WINT_T.
55371         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55372         * tests/test-wctype.c: Check that wint_t is defined.
55373         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55374         * doc/posix-headers/wctype.texi: Likewise.
55375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55376
55377 2008-09-18  Bruno Haible  <bruno@clisp.org>
55378
55379         * gnulib-tool (func_exit): Update comment.
55380
55381 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55382
55383         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55384         assumes strdup exists and does not depend on strdup to return
55385         ENOMEM on out of memory conditions.
55386
55387 2008-09-18  Bruno Haible  <bruno@clisp.org>
55388
55389         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55390         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55391         digits for the exponent.
55392
55393 2008-09-18  Jim Meyering  <meyering@redhat.com>
55394             Bruno Haible  <bruno@clisp.org>
55395
55396         * lib/vasnprintf.c (decimal_point_char): Define also if
55397         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55398
55399 2008-09-16  Bruno Haible  <bruno@clisp.org>
55400         and Eric Blake  <ebb9@byu.net>
55401
55402         vasnprintf: support Irix 5.3
55403         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55404         that mishandle long double infinity.
55405         Reported by Tom G. Christensen.
55406
55407 2008-09-16  Bruno Haible  <bruno@clisp.org>
55408
55409         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55410         Solaris 9.
55411         * doc/glibc-functions/alphasort.texi: Likewise.
55412         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55413
55414 2008-09-16  Jim Meyering  <meyering@redhat.com>
55415
55416         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55417         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55418         a umask modification leak out of a subshell.  Otherwise, the
55419         opensolaris /bin/sh would be accepted and thus cause unwarranted
55420         failures in the coreutils test suite.
55421
55422 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55423
55424         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55425         to succeed.
55426
55427 2008-09-16  Jim Meyering  <meyering@redhat.com>
55428
55429         avoid spurious test failure when library is built without ACL support
55430         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55431         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55432         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55433         * tests/test-copy-acl.sh: Likewise.
55434
55435 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55436
55437         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55438         based on character occurrence counts.
55439
55440 2008-09-15  Eric Blake  <ebb9@byu.net>
55441
55442         tests: avoid some compiler warnings
55443         * tests/test-memchr.c (main): Pass NULL indirectly.
55444         * tests/test-closein.c (main): Avoid unused variable.
55445
55446 2008-09-15  Bruno Haible  <bruno@clisp.org>
55447
55448         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55449         are missing on OpenBSD 4.0 individually.
55450         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55451
55452 2008-09-15  Bruno Haible  <bruno@clisp.org>
55453
55454         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55455         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55456         * doc/posix-functions/perror.texi: Likewise.
55457         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55458         is missing.
55459         Reported by Eric Blake.
55460
55461         * lib/errno.in.h: Use replacement values >= 2000.
55462         Reported by Eric Blake.
55463
55464 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55465
55466         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55467         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55468         limit.
55469         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55470         compareseq was aborted.
55471
55472 2008-09-14  Bruno Haible  <bruno@clisp.org>
55473
55474         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55475         yvec_edit_count.
55476         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55477         (fstrcmp_bounded): Simplify result computation accordingly.
55478
55479 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55480
55481         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55482         (fstrcmp): Define in terms of fstrcmp_bounded.
55483         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55484         lower_bound argument.
55485         Return quickly if the result is certainly < lower_bound.
55486         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55487
55488 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55489
55490         * lib/diffseq.h (EARLY_ABORT): New macro.
55491         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55492         evaluates to true.
55493
55494 2008-09-14  Bruno Haible  <bruno@clisp.org>
55495
55496         * modules/perror-tests: New file.
55497         * tests/test-perror.sh: New file.
55498         * tests/test-perror.c: New file.
55499
55500         New module 'perror'.
55501         * lib/stdio.in.h (perror): New declaration.
55502         * lib/perror.c: New file.
55503         * m4/perror.m4: New file.
55504         * modules/perror: New file.
55505         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55506         * doc/posix-functions/perror.texi: Mention the perror module.
55507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55508         REPLACE_PERROR.
55509         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55510         REPLACE_PERROR.
55511
55512 2008-09-14  Bruno Haible  <bruno@clisp.org>
55513
55514         * modules/stdio (Makefile.am): Reorder to match the order in
55515         lib/stdio.in.h.
55516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55517
55518 2008-09-13  Bruno Haible  <bruno@clisp.org>
55519
55520         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55521
55522 2008-09-13  Bruno Haible  <bruno@clisp.org>
55523
55524         Extend strerror to cover the added errno values.
55525         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55526         (rpl_strerror): Provide error messages for the added errno values and
55527         for the WSA* values.
55528         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55529         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55530         strerror.
55531         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55532         * modules/strerror (Depends-on): Add errno.
55533         * doc/posix-functions/strerror.texi: Document the change.
55534         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55535         and EOVERFLOW.
55536
55537 2008-09-13  Bruno Haible  <bruno@clisp.org>
55538
55539         * modules/EOVERFLOW: Remove file.
55540         * m4/eoverflow.m4: Remove file.
55541         * modules/EOVERFLOW-tests: Remove file.
55542         * tests/test-EOVERFLOW.c: Remove file.
55543         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55544         * modules/ftell (Depends-on): Likewise.
55545         * modules/getdelim (Depends-on): Likewise.
55546         * modules/getugroups (Depends-on): Likewise.
55547         * modules/poll (Depends-on): Likewise.
55548         * modules/snprintf (Depends-on): Likewise.
55549         * modules/sprintf-posix (Depends-on): Likewise.
55550         * modules/vasnprintf (Depends-on): Likewise.
55551         * modules/vasprintf (Depends-on): Likewise.
55552         * modules/vfprintf-posix (Depends-on): Likewise.
55553         * modules/vsnprintf (Depends-on): Likewise.
55554         * modules/vsprintf-posix (Depends-on): Likewise.
55555         * modules/xvasprintf (Depends-on): Likewise.
55556         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55557         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55558         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55559         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55560         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55561         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55562         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55563         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55564         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55565         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55566         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55567         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55568         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55569         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55570         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55571         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55572         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55573         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55574         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55575         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55576         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55577         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55578         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55579         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55580         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55581         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55582         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55583         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55584         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55585         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55586         * MODULES.html.sh: Remove EOVERFLOW.
55587         * NEWS: Mention the change.
55588
55589 2008-09-13  Bruno Haible  <bruno@clisp.org>
55590
55591         * modules/errno-tests: New file.
55592         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55593
55594         * lib/errno.in.h: New file.
55595         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55596         * modules/errno: New file.
55597         * doc/posix-headers/errno.texi: Update documentation.
55598         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55599
55600 2008-09-13  Bruno Haible  <bruno@clisp.org>
55601
55602         * tests/test-poll.c: Use #if for native Windows, rather than testing
55603         __MSVCRT__.
55604
55605 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55606             Bruno Haible  <bruno@clisp.org>
55607
55608         * lib/glob.c: Don't include <pwd.h> on native Windows.
55609         (WINDOWS32): New macro.
55610         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
55611
55612 2008-09-13  Bruno Haible  <bruno@clisp.org>
55613
55614         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
55615         (ETIMEDOUT): Remove macro.
55616         (glthread_cond_timedwait_multithreaded): New declaration.
55617         (glthread_cond_timedwait): Use it.
55618         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
55619         (glthread_cond_timedwait_multithreaded): New function.
55620
55621 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55622
55623         * modules/poll-tests: Do not check for io.h.
55624         * tests/test-poll.c: Check for __MSVCRT__ instead.
55625
55626 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55627
55628         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
55629         * modules/poll-tests: Add inet_pton, stdbool, sockets.
55630         * tests/test-poll.c: Use them.  Use _pipe on Windows.
55631
55632 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55633
55634         * modules/poll-tests: New.
55635         * tests/test-poll.c: New.
55636
55637 2008-09-12  Eric Blake  <ebb9@byu.net>
55638
55639         frexp: test for NetBSD failure on -0.0
55640         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
55641         not all, bugs from NetBSD 3.0 have been fixed.
55642         * doc/posix-functions/frexp.texi (frexp): Document bug.
55643         Reported by Thomas Klausner.
55644
55645         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
55646         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
55647         literal -0.0.
55648         Reported by Jonathan C. Patschke <jp@centtech.com>.
55649
55650 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55651
55652         * lib/glthread/cond.h: Use dummy implementation also if
55653         USE_WIN32_THREADS.
55654
55655 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55656
55657         * modules/fnmatch-posix (License): Change to LGPLv2+.
55658         * modules/fnmatch-gnu (License): Likewise.
55659
55660 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55661
55662         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
55663
55664 2008-09-11  Jim Meyering  <meyering@redhat.com>
55665
55666         * users.txt: Add gtk-vnc.
55667
55668 2008-09-08  Simon Josefsson  <simon@josefsson.org>
55669
55670         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
55671         rotate amounts.
55672
55673         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
55674         required for 16-bit and 8-bit rotates.
55675         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
55676         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
55677         UINT8_MAX instead of hard-coded constants.
55678         Suggested by Paul Eggert.
55679
55680 2008-09-07  Bruno Haible  <bruno@clisp.org>
55681
55682         * tests/test-striconveh.c (main): Check behaviour when converting from
55683         UTF-7.
55684
55685         Make striconveh work better with stateful encodings.
55686         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
55687         that iconv does not increment the inptr when returning -1/EINVAL.
55688
55689 2008-09-07  Bruno Haible  <bruno@clisp.org>
55690
55691         * build-aux/config.rpath: Update according to libtool-2.2.6.
55692         * build-aux/config.libpath: Likewise.
55693
55694 2008-09-06  Bruno Haible  <bruno@clisp.org>
55695
55696         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
55697         * lib/freadptr.c (freadptr): Likewise.
55698         * lib/freadseek.c (freadptrinc): Likewise.
55699         Reported by Simon Josefsson.
55700
55701 2008-09-06  Bruno Haible  <bruno@clisp.org>
55702
55703         * modules/freadptr (License): Change to LGPLv2+.
55704         * modules/freadseek (License): Likewise.
55705         Suggested by Eric Blake.
55706
55707         * modules/memchr2 (License): Change to LGPLv2+.
55708         Approved by Eric Blake.
55709
55710 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55711             Bruno Haible  <bruno@clisp.org>
55712
55713         Make gnulib-tool work with native 'sed' on AIX.
55714         * gnulib-tool (sed_noop): New variable.
55715         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
55716         func_add_or_update, func_create_testdir): Use it to initialize sed
55717         script variables.
55718         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55719
55720 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
55721             Bruno Haible  <bruno@clisp.org>
55722
55723         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
55724         also works after #include directives.
55725
55726 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
55727
55728         getdate.y: reject an out-of-range timezone value
55729         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
55730         the range [-24...+24].  When specified with only one or two digits,
55731         * tests/test-getdate.c: Tests for the fix.
55732         * doc/getdate.texi: Document this change.
55733
55734 2008-09-03  Bruno Haible  <bruno@clisp.org>
55735
55736         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
55737
55738 2008-09-02  Simon Josefsson  <simon@josefsson.org>
55739
55740         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
55741         <bruce.korb@gmail.com> with ideas from Ben Pfaff
55742         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
55743         Blake <ebb9@byu.net>.
55744
55745         * tests/test-bitrotate.c: Add more test vectors.
55746
55747 2008-09-02  Eric Blake  <ebb9@byu.net>
55748
55749         vasnprintf-posix: handle large precision via %.*d
55750         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
55751         when handling it ourselves.
55752         * tests/test-vasnprintf-posix.c (test_function): Add test.
55753         * tests/test-snprintf-posix.h (test_function): Likewise.
55754         * tests/test-sprintf-posix.h (test_function): Likewise.
55755         * tests/test-vasprintf-posix.c (test_function): Likewise.
55756         Reported by Alain Guibert.
55757
55758 2008-09-01  Eric Blake  <ebb9@byu.net>
55759
55760         c-stack: make configure-time check more robust
55761         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
55762         successful sigaction call.
55763         Reported by Tom G. Christensen.
55764
55765 2008-09-01  Bruno Haible  <bruno@clisp.org>
55766
55767         New module 'findprog-lgpl'.
55768         * modules/findprog-lgpl: New file.
55769         * lib/findprog-lgpl.c: New file.
55770         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
55771         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
55772         to decide whether to use strdup or xstrdup, concatenated_filename or
55773         xconcatenated_filename.
55774
55775 2008-09-01  Bruno Haible  <bruno@clisp.org>
55776
55777         Split module 'concat-filename' into 'concat-filename' (LGPL) and
55778         'xconcat-filename' (GPL).
55779         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
55780         (License): Change to LGPLv2+.
55781         * modules/xconcat-filename: New file.
55782         * lib/concat-filename.h (concatenated_filename): Change specification.
55783         (xconcatenated_filename): New declaration.
55784         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
55785         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
55786         memory situations.
55787         * lib/xconcat-filename.c: New file.
55788         * NEWS: Mention the change.
55789         * lib/findprog.c: Include concat-filename.h, not filename.h.
55790         (find_in_path): Use xconcatenated_filename instead of
55791         concatenated_filename.
55792         * lib/javacomp.c: Include concat-filename.h, not filename.h.
55793         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55794         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55795         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55796         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
55797         instead of concatenated_filename.
55798         * lib/javaexec.c: Include concat-filename.h, not filename.h.
55799         (execute_java_class): Use xconcatenated_filename instead of
55800         concatenated_filename.
55801         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
55802         * modules/javacomp (Depends-on): Likewise.
55803         * modules/javaexec (Depends-on): Likewise.
55804
55805 2008-09-01  Bruno Haible  <bruno@clisp.org>
55806
55807         Split module 'filename' into 'filename' and 'concat-filename'.
55808         * modules/filename: Keep only lib/filename.h.
55809         (License): Change to LGPLv2+.
55810         * modules/concat-filename: New file, extracted from modules/filename.
55811         * lib/filename.h (concatenated_filename): Remove declaration.
55812         * lib/concat-filename.h: New file, extracted from lib/filename.h.
55813         * lib/concat-filename.c: Include concat-filename.h.
55814         * NEWS: Mention the change.
55815
55816 2008-09-01  Simon Josefsson  <simon@josefsson.org>
55817
55818         * lib/bitrotate.h (rotl8, rotr8): Add.
55819
55820         * modules/bitrotate (configure.ac): Need
55821         AC_REQUIRE([AC_C_INLINE]).
55822         (Description): Mention stdint.h.  Reported by Bruno Haible
55823         <bruno@clisp.org>.
55824
55825         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
55826         Paolo Bonzini <bonzini@gnu.org>.
55827
55828 2008-08-31  Bruno Haible  <bruno@clisp.org>
55829
55830         Assume Solaris specific bi-arch conventions on Solaris systems.
55831         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
55832         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
55833         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
55834         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
55835         like acl_libdirstem.
55836         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
55837         acl_libdirstem.
55838         * NEWS: Mention the change.
55839         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
55840
55841 2008-08-31  Jim Meyering  <meyering@redhat.com>
55842
55843         * lib/strftime.h: Add comments describing the two added arguments.
55844
55845         remove duplicate #include directives
55846         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
55847         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
55848
55849 2008-08-31  Bruno Haible  <bruno@clisp.org>
55850
55851         New module 'sigpipe-die'.
55852         * modules/sigpipe-die: New file.
55853         * lib/sigpipe-die.h: New file.
55854         * lib/sigpipe-die.c: New file.
55855         * MODULES.html.sh (Signal handling): Add sigpipe-die.
55856
55857 2008-08-31  Bruno Haible  <bruno@clisp.org>
55858
55859         Don't override previously installed signal handlers.
55860         * lib/fatal-signal.c (saved_sigactions): New variable.
55861         (uninstall_handlers): Reset the signal to the saved handler, not
55862         to SIG_DFL (except when ignored).
55863         (install_handlers): Save the previous handlers.
55864
55865 2008-08-30  Bruno Haible  <bruno@clisp.org>
55866
55867         * gnulib-tool (func_reset_sigpipe): New function.
55868         (func_get_automake_snippet, func_modules_transitive_closure,
55869         func_import): Invoke it before a join command that reads from stdin,
55870         to avoid "echo: write error: Broken pipe" error messages on stderr.
55871         Reported by Sam Steingold <sds@gnu.org>.
55872
55873 2008-08-30  Bruno Haible  <bruno@clisp.org>
55874
55875         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
55876         Code copied from m4/open.m4.
55877         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
55878         access and the filename ends in a slash. Code copied from lib/open.c.
55879         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
55880         * tests/test-fopen.c (main): Check against bug with trailing slash.
55881
55882 2008-08-29  Bruno Haible  <bruno@clisp.org>
55883
55884         Avoid some "gcc -pedantic" warnings.
55885         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
55886         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
55887         * lib/dirent.in.h: Likewise.
55888         * lib/fcntl.in.h: Likewise.
55889         * lib/float.in.h: Likewise.
55890         * lib/iconv.in.h: Likewise.
55891         * lib/inttypes.in.h: Likewise.
55892         * lib/locale.in.h: Likewise.
55893         * lib/math.in.h: Likewise.
55894         * lib/netinet_in.in.h: Likewise.
55895         * lib/search.in.h: Likewise.
55896         * lib/signal.in.h: Likewise.
55897         * lib/stdarg.in.h: Likewise.
55898         * lib/stdint.in.h: Likewise.
55899         * lib/stdio.in.h: Likewise.
55900         * lib/stdlib.in.h: Likewise.
55901         * lib/string.in.h: Likewise.
55902         * lib/strings.in.h: Likewise.
55903         * lib/sys_select.in.h: Likewise.
55904         * lib/sys_socket.in.h: Likewise.
55905         * lib/sys_stat.in.h: Likewise.
55906         * lib/sys_time.in.h: Likewise.
55907         * lib/sysexits.in.h: Likewise.
55908         * lib/time.in.h: Likewise.
55909         * lib/unistd.in.h: Likewise.
55910         * lib/wchar.in.h: Likewise.
55911         * lib/wctype.in.h: Likewise.
55912         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
55913         * modules/fchdir (Makefile.am): Likewise.
55914         * modules/fcntl (Makefile.am): Likewise.
55915         * modules/float (Makefile.am): Likewise.
55916         * modules/iconv_open (Makefile.am): Likewise.
55917         * modules/inttypes (Makefile.am): Likewise.
55918         * modules/locale (Makefile.am): Likewise.
55919         * modules/math (Makefile.am): Likewise.
55920         * modules/netinet_in (Makefile.am): Likewise.
55921         * modules/search (Makefile.am): Likewise.
55922         * modules/signal (Makefile.am): Likewise.
55923         * modules/stdarg (Makefile.am): Likewise.
55924         * modules/stdint (Makefile.am): Likewise.
55925         * modules/stdio (Makefile.am): Likewise.
55926         * modules/stdlib (Makefile.am): Likewise.
55927         * modules/string (Makefile.am): Likewise.
55928         * modules/strings (Makefile.am): Likewise.
55929         * modules/sys_select (Makefile.am): Likewise.
55930         * modules/sys_socket (Makefile.am): Likewise.
55931         * modules/sys_stat (Makefile.am): Likewise.
55932         * modules/sys_time (Makefile.am): Likewise.
55933         * modules/sysexits (Makefile.am): Likewise.
55934         * modules/time (Makefile.am): Likewise.
55935         * modules/unistd (Makefile.am): Likewise.
55936         * modules/wchar (Makefile.am): Likewise.
55937         * modules/wctype (Makefile.am): Likewise.
55938         Reported by Reuben Thomas <rrt@sc3d.org>.
55939
55940 2008-08-29  Bruno Haible  <bruno@clisp.org>
55941
55942         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
55943         any more.
55944
55945 2008-08-29  Simon Josefsson  <simon@josefsson.org>
55946
55947         * MODULES.html.sh (Misc): Add bitrotate.
55948
55949         * modules/bitrotate: New file.
55950
55951         * lib/bitrotate.h: New file.
55952
55953         * modules/bitrotate-tests: New file.
55954
55955         * tests/test-bitrotate.c: New file.
55956
55957         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
55958         on the bitrotate module.
55959
55960         * lib/arctwo.c: Use new bitrotate module.
55961
55962 2008-08-29  Jim Meyering  <meyering@redhat.com>
55963
55964         bootstrap: merge changes from coreutils
55965         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
55966         of copied files.  Remove a kludge, now that this is fixed.
55967         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
55968         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
55969         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
55970
55971 2008-08-29  Bruno Haible  <bruno@clisp.org>
55972
55973         * MODULES.html.sh: Remove --cvs-urls option.
55974
55975 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
55976
55977         maint.mk: adjust to file name change
55978         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
55979
55980 2008-08-28  Jim Meyering  <meyering@redhat.com>
55981
55982         * modules/getndelim2 (License): Relicense to LGPLv2+.
55983         Approved by Richard Stallman for the version of 1995, and by
55984         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
55985
55986 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
55987
55988         * lib/getdelim.c (flockfile, funlockfile): Make all of them
55989         dummy if one is not available.  Do not touch them if
55990         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
55991         (getc_maybe_unlocked): New.
55992         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
55993
55994 2008-08-26  Eric Blake  <ebb9@byu.net>
55995
55996         doc/INSTALL: resync from autoconf
55997         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
55998         (INSTALL_PRELUDE): Delete; this is done more efficiently by
55999         moving...
56000         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56001         * INSTALL: Regenerate.
56002         * INSTALL.ISO: New file.
56003         * INSTALL.UTF-8: Likewise.
56004
56005 2008-08-26  Jim Meyering  <meyering@redhat.com>
56006
56007         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56008         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56009         these definitions conditional, so that they may be overridden, too.
56010
56011 2008-08-26  Bruno Haible  <bruno@clisp.org>
56012
56013         Generate INSTALL file variants with prettier quotes.
56014         * doc/Makefile (INSTALL_PRELUDE): New macro.
56015         (INSTALL): Use it.
56016         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56017
56018 2008-08-26  Bruno Haible  <bruno@clisp.org>
56019
56020         Run makeinfo in an English locale.
56021         * doc/Makefile (MAKEINFO): New variable.
56022
56023 2008-08-26  Bruno Haible  <bruno@clisp.org>
56024
56025         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56026         Suggested by Eric Blake.
56027
56028 2008-08-25  Bruno Haible  <bruno@clisp.org>
56029
56030         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56031
56032 2008-08-25  Eric Blake  <ebb9@byu.net>
56033
56034         c-stack: test that stack overflow can be caught
56035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56036         that platform allows handling stack overflow; at least OS/2 EMX
56037         has sigaltstack, but crashes before transferring control to
56038         handler on stack overflow.
56039         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56040         check for HAVE_STACK_OVERFLOW_HANDLING.
56041         Reported by Elbert Pol.
56042
56043 2008-08-25  Bruno Haible  <bruno@clisp.org>
56044
56045         * doc/posix-functions/strftime.texi: Fix description of strftime
56046         module.
56047
56048 2008-08-24  Bruno Haible  <bruno@clisp.org>
56049
56050         * tests/uniwidth/test-uc_width2.c: New file.
56051         * tests/uniwidth/test-uc_width2.sh: New file.
56052         * modules/uniwidth/width-tests (Files): Add the new files.
56053         (TESTS): Add uniwidth/test-uc_width2.sh.
56054         (TESTS_ENVIRONMENT): New variable.
56055         (check_PROGRAMS): Add test-uc_width2.
56056         (test_uc_width2_SOURCES): New variable.
56057
56058         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56059         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56060         not 0x00AB.
56061         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56062
56063 2008-08-22  Eric Blake  <ebb9@byu.net>
56064
56065         test-lock, test-tls: mention why a test is skipped
56066         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56067         skipped.
56068         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56069
56070         count-one-bits: relax license
56071         * modules/count-one-bits (License): Relicense to LGPLv2+.
56072         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56073
56074 2008-08-22  Andreas Schwab  <schwab@suse.de>
56075
56076         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56077         Remove spurious space in assignment.
56078
56079 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56080
56081         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56082         Paul Eggert <eggert@CS.UCLA.EDU>.
56083
56084 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56085
56086         * modules/gettext: Add m4/threadlib.m4.
56087
56088 2008-08-19  Eric Blake  <ebb9@byu.net>
56089
56090         test-c-stack: fix compilation failure on FreeBSD 5.0
56091         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56092         headers before <sys/resource.h>.
56093         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56094         the bug.
56095         Reported by Nelson H. F. Beebe.
56096
56097         strverscmp: migrate from "strverscmp.h" to <string.h>
56098         * modules/string (Makefile.am): Add new hooks.
56099         * modules/strverscmp (Files): Remove strverscmp.h.
56100         (Depends-on): Add string.
56101         (configure.ac): Add indicator.
56102         (Include): Mention new header.
56103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56104         defaults.
56105         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56106         results.
56107         * lib/strverscmp.h: Delete.
56108         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56109         * tests/test-strverscmp.c (includes): Adjust client.
56110         * lib/check-version.c (includes): Likewise.
56111         * NEWS: Document the change.
56112
56113         strverscmp: add unit test
56114         * modules/strverscmp-tests: New file.
56115         * tests/test-strverscmp.c: Likewise.
56116
56117 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56118
56119         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56120         regarding Windows crypto stuff, from Mono.
56121
56122 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56123
56124         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56125         if present, for intel RND.  Return error on failures.
56126
56127 2008-08-18  Ben Pfaff  <blp@gnu.org>
56128
56129         gitlog-to-changelog: give better diagnostic for failed pipe-open
56130         * build-aux/gitlog-to-changelog: Improve error message: suggest
56131         that the version of Git may be too old.
56132
56133 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56134
56135         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56136         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56137
56138 2008-08-18  Bruno Haible  <bruno@clisp.org>
56139
56140         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56141         pthread_in_use().
56142
56143 2008-08-18  Bruno Haible  <bruno@clisp.org>
56144
56145         * lib/glthread/threadlib.c: Include <pthread.h>.
56146
56147 2008-08-18  Bruno Haible  <bruno@clisp.org>
56148
56149         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56150         glthread_recursive_lock_* macros.
56151         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56152         Fix syntax error.
56153
56154 2008-08-18  Bruno Haible  <bruno@clisp.org>
56155
56156         * lib/glthread/thread.c: Avoid forcing a context switch right after
56157         thread creation.
56158
56159 2008-08-17  Bruno Haible  <bruno@clisp.org>
56160
56161         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56162         * lib/glthread/thread.h: Provide Win32 specific implementation.
56163         * modules/thread (Files): Add lib/glthread/thread.c.
56164         (Depends-on): Add lock.
56165         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56166
56167 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56168
56169         New module 'yield'.
56170         * modules/yield: New file.
56171         * lib/glthread/yield.h: New file.
56172         * m4/yield.m4: New file.
56173         * MODULES.html.sh (Multithreading): Add yield.
56174
56175 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56176
56177         New module 'thread'.
56178         * modules/thread: New file.
56179         * lib/glthread/thread.h: New file.
56180         * m4/thread.m4: New file.
56181         * MODULES.html.sh (Multithreading): Add thread.
56182
56183 2008-08-17  Bruno Haible  <bruno@clisp.org>
56184
56185         * lib/glthread/lock.h: Include <stdlib.h> always.
56186         * lib/glthread/tls.h: Likewise.
56187         * lib/glthread/cond.h: Likewise.
56188
56189 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56190
56191         New module 'cond'.
56192         * modules/cond: New file.
56193         * lib/glthread/cond.h: New file.
56194         * lib/glthread/cond.c: New file.
56195         * m4/cond.m4: New file.
56196         * MODULES.html.sh (Multithreading): Add cond.
56197
56198 2008-08-16  Eric Blake  <ebb9@byu.net>
56199
56200         c-stack: fix regression on Irix 5.3 from 2008-06-21
56201         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56202         sa_sigaction...
56203         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56204         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56205         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56206         * modules/signal (Makefile.am): Use the value.
56207         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56208         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56209         * doc/posix-headers/signal.texi (signal.h): Document this
56210         portability issue.
56211         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56212         Reported by Tom G. Christensen.
56213
56214 2008-08-17  Bruno Haible  <bruno@clisp.org>
56215
56216         New module 'threadlib'.
56217         * modules/threadlib: New file.
56218         * lib/glthread/threadlib.c: New file, extracted from
56219         lib/glthread/lock.c.
56220         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56221         functions.
56222         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56223         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56224         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56225         macros.
56226         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56227         (gl_DISABLE_THREADS): Remove macro.
56228         * modules/lock (Files): Remove build-aux/config.rpath.
56229         (Depends-on): Remove havelib. Add threadlib.
56230         (configure.ac-early): Remove section.
56231         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56232         * modules/tls (Depends-on): Remove lock. Add threadlib.
56233         (Link): New section, copied from threadlib.
56234         * MODULES.html.sh (Multithreading): Add threadlib.
56235
56236 2008-08-14  Bruno Haible  <bruno@clisp.org>
56237
56238         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56239         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56240         glthread_rwlock_unlock, glthread_rwlock_destroy,
56241         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56242         glthread_recursive_lock_destroy): Define as macros always.
56243         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56244         glthread_lock_lock.
56245         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56246         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56247         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56248         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56249         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56250         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56251         (glthread_recursive_lock_lock_func): Renamed from
56252         glthread_recursive_lock_lock.
56253         (glthread_recursive_lock_unlock_func): Renamed from
56254         glthread_recursive_lock_unlock.
56255         (glthread_recursive_lock_destroy_func): Renamed from
56256         glthread_recursive_lock_destroy.
56257
56258 2008-08-14  Bruno Haible  <bruno@clisp.org>
56259
56260         * lib/glthread/lock.h: Renamed from lib/lock.h.
56261         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56262         * lib/glthread/tls.h: Renamed from lib/tls.h.
56263         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56264         * lib/fstrcmp.c: Update includes.
56265         * lib/strsignal.c: Update includes.
56266         * modules/lock (Files, Makefile.am): Update.
56267         (Include): Change to "glthread/lock.h".
56268         * modules/tls (Files, Makefile.am): Update.
56269         (Include): Change to "glthread/tls.h".
56270         * tests/test-lock.c: Update includes.
56271         * tests/test-tls.c: Update includes.
56272         * NEWS: Mention the renamed header files.
56273
56274 2008-08-11  Jim Meyering  <meyering@redhat.com>
56275
56276         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56277
56278 2008-08-11  Eric Blake  <ebb9@byu.net>
56279
56280         test-c-stack: avoid C99-ism
56281         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56282         before statement.
56283         Reported by Alain Guibert.
56284
56285 2008-08-10  Jim Meyering  <meyering@redhat.com>
56286
56287         ensure that return value of uinttostr et al are not ignored
56288         * lib/inttostr.h (__GNUC_PREREQ): Define.
56289         (__attribute_warn_unused_result__): Define.
56290         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56291
56292 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56293
56294         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56295         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56296
56297 2008-08-07  Jim Meyering  <meyering@redhat.com>
56298
56299         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56300
56301         * modules/mkstemp (License): Relicense under LGPLv2+.
56302         * modules/tempname (License): Likewise.
56303
56304 2008-08-06  Bruno Haible  <bruno@clisp.org>
56305
56306         * lib/poll.c (poll): Further micro-optimization.
56307
56308 2008-08-06  Jim Meyering  <meyering@redhat.com>
56309
56310         inet_pton.c: use locale-independent tolower
56311         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56312         (inet_pton6): Use c_tolower rather than tolower.
56313         * modules/inet_pton (Depends-on): Add c-ctype.
56314
56315 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56316
56317         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56318         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56319
56320 2008-08-06  Jim Meyering  <meyering@redhat.com>
56321
56322         * modules/inet_pton (License): Relicense under LGPLv2+.
56323
56324 2008-08-03  Bruno Haible  <bruno@clisp.org>
56325
56326         Additional non-aborting API for lock and tls.
56327         * lib/lock.h: Include <errno.h>.
56328         (glthread_lock_init): New macro/function.
56329         (gl_lock_init): Define as wrapper around glthread_lock_init.
56330         (glthread_lock_lock): New macro/function.
56331         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56332         (glthread_lock_unlock): New macro/function.
56333         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56334         (glthread_lock_destroy): New macro/function.
56335         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56336         (glthread_rwlock_init): New macro/function.
56337         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56338         (glthread_rwlock_rdlock): New macro/function.
56339         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56340         (glthread_rwlock_wrlock): New macro/function.
56341         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56342         (glthread_rwlock_unlock): New macro/function.
56343         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56344         (glthread_rwlock_destroy): New macro/function.
56345         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56346         (glthread_recursive_lock_init): New macro/function.
56347         (gl_recursive_lock_init): Define as wrapper around
56348         glthread_recursive_lock_init.
56349         (glthread_recursive_lock_lock): New macro/function.
56350         (gl_recursive_lock_lock): Define as wrapper around
56351         glthread_recursive_lock_lock.
56352         (glthread_recursive_lock_unlock): New macro/function.
56353         (gl_recursive_lock_unlock): Define as wrapper around
56354         glthread_recursive_lock_unlock.
56355         (glthread_recursive_lock_destroy): New macro/function.
56356         (gl_recursive_lock_destroy): Define as wrapper around
56357         glthread_recursive_lock_destroy.
56358         (glthread_once): New macro/function.
56359         (gl_once): Define as wrapper around glthread_once.
56360         Update function declarations.
56361         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56362         glthread_rwlock_init. Return error code.
56363         (glthread_rwlock_rdlock_multithreaded): Renamed from
56364         glthread_rwlock_rdlock. Return error code.
56365         (glthread_rwlock_wrlock_multithreaded): Renamed from
56366         glthread_rwlock_wrlock. Return error code.
56367         (glthread_rwlock_unlock_multithreaded): Renamed from
56368         glthread_rwlock_unlock. Return error code.
56369         (glthread_rwlock_destroy_multithreaded): Renamed from
56370         glthread_rwlock_destroy. Return error code.
56371         (glthread_recursive_lock_init_multithreaded): Renamed from
56372         glthread_recursive_lock_init. Return error code.
56373         (glthread_recursive_lock_lock_multithreaded): Renamed from
56374         glthread_recursive_lock_lock. Return error code.
56375         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56376         glthread_recursive_lock_unlock. Return error code.
56377         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56378         glthread_recursive_lock_destroy. Return error code.
56379         (glthread_once_call): Make static.
56380         (glthread_once_multithreaded): Renamed from glthread_once.
56381         * lib/tls.h: Include <errno.h>.
56382         (glthread_tls_key_init): New macro/function.
56383         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56384         (glthread_tls_set): New macro/function.
56385         (gl_tls_set): Define as wrapper around glthread_tls_set.
56386         (glthread_tls_key_destroy): New macro/function.
56387         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56388         Update function declarations.
56389         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56390         glthread_tls_get.
56391         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56392
56393 2008-08-04  Eric Blake  <ebb9@byu.net>
56394
56395         gnumakefile: use space, not TAB, outside of targets
56396         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56397
56398 2008-08-02  Jim Meyering  <meyering@redhat.com>
56399
56400         getdate.y: avoid locale-dependent date parsing failure
56401         In Turkish locales, getdate would fail to recognize keywords
56402         containing a lowercase "i".  The solution is not to rely on
56403         locale-sensitive case-conversion.
56404         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56405         (lookup_word): Use c_toupper in place of toupper.
56406         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56407         Reported by Vefa Bicakci <bicave@superonline.com> in
56408         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56409         * modules/getdate (Depends-on): Add c-ctype.
56410
56411 2008-08-02  Bruno Haible  <bruno@clisp.org>
56412
56413         * gnulib-tool (func_import): When updating or creating a .gitignore
56414         file, prepend each added line with a slash, and ignore leading slashes
56415         from the existing lines.
56416         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56417
56418 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56419
56420         Portability fix for GNU make 3.79.1.
56421         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56422         versions do not understand.
56423
56424 2008-08-01  Bruno Haible  <bruno@clisp.org>
56425
56426         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56427         * tests/test-isnanf.h (zero): New variable.
56428         (main): Avoid literal -0.0f.
56429         * tests/test-isnand.h (zero): New variable.
56430         (main): Avoid literal -0.0.
56431         * tests/test-isnanl.h (zero): New variable.
56432         (main): Avoid literal -0.0L.
56433         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56434         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56435         -0.0, -0.0L.
56436         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56437         (test_signbitd): Avoid literal -0.0.
56438         (test_signbitl): Avoid literal -0.0L.
56439         * tests/test-ceilf1.c (zero): New variable.
56440         (main): Avoid literal -0.0f.
56441         * tests/test-ceill.c (zero): New variable.
56442         (main): Avoid literal -0.0L.
56443         * tests/test-floorf1.c (zero): New variable.
56444         (main): Avoid literal -0.0f.
56445         * tests/test-floorl.c (zero): New variable.
56446         (main): Avoid literal -0.0L.
56447         * tests/test-roundf1.c (zero): New variable.
56448         (main): Avoid literal -0.0f.
56449         * tests/test-round1.c (zero): New variable.
56450         (main): Avoid literal -0.0.
56451         * tests/test-roundl.c (zero): New variable.
56452         (main): Avoid literal -0.0L.
56453         * tests/test-truncf1.c (zero): New variable.
56454         (main): Avoid literal -0.0f.
56455         * tests/test-trunc1.c (zero): New variable.
56456         (main): Avoid literal -0.0.
56457         * tests/test-truncl.c (zero): New variable.
56458         (main): Avoid literal -0.0L.
56459         * tests/test-frexp.c (zero): New variable.
56460         (main): Avoid literal -0.0.
56461         * tests/test-frexpl.c (zero): New variable.
56462         (main): Avoid literal -0.0L.
56463         * tests/test-ldexpl.c (zero): New variable.
56464         (main): Avoid literal -0.0L.
56465         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56466         (zerod, zerol): New variables.
56467         (test_function): Avoid literals -0.0, -0.0L.
56468         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56469         (zerod, zerol): New variables.
56470         (test_function): Avoid literals -0.0, -0.0L.
56471         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56472         (zerod, zerol): New variables.
56473         (test_function): Avoid literals -0.0, -0.0L.
56474         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56475         (zerod, zerol): New variables.
56476         (test_function): Avoid literals -0.0, -0.0L.
56477         * tests/test-strtod.c (zero): New variable.
56478         (main): Avoid literal -0.0.
56479         Reported by Jonathan C. Patschke <jp@centtech.com>.
56480
56481 2008-07-31  Jim Meyering  <meyering@redhat.com>
56482
56483         sha256.h: correct definition of SHA224_DIGEST_SIZE
56484         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56485         Reported by Paulie Pena IV <paulie4@gmail.com>.
56486         Define as 224 / 8, rather than as a literal.
56487         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56488         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56489         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56490
56491 2008-07-31  Bruno Haible  <bruno@clisp.org>
56492
56493         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56494         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56495         Reported by Jonathan Patschke <jp@centtech.com>.
56496
56497 2008-07-31  Bruno Haible  <bruno@clisp.org>
56498
56499         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56500         Reported by Paolo Bonzini <bonzini@gnu.org>.
56501
56502 2008-07-30  Eric Blake  <ebb9@byu.net>
56503
56504         test-strtod: allow compilation without -lm
56505         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56506         Reported by Dennis Clarke <blastwave@gmail.com>.
56507
56508 2008-07-28  Jim Meyering  <meyering@redhat.com>
56509
56510         bootstrap: work also when there are no .po files in po/
56511         * build-aux/bootstrap (update_po_files): Complete the change
56512         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56513
56514 2008-07-27  Jim Meyering  <meyering@redhat.com>
56515
56516         * users.txt: Add zile.
56517
56518 2008-07-26  Ben Pfaff  <blp@gnu.org>
56519
56520         Add missing dependencies on new m4/exponent[fdl].m4 files.
56521         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56522         * modules/isnand-nolibm: Add m4/exponentd.m4.
56523         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56524         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56525         m4/isnan[fdl].m4, because the macros actually used moved.
56526         Reported by Jim Meyering.
56527
56528 2008-07-14  Ben Pfaff  <blp@gnu.org>
56529
56530         Add isinf module.
56531         * lib/isinf.c: New file.
56532         * lib/math.in.h: Define isinf macro if we have decided to replace
56533         it.
56534         * m4/isinf.m4: New file.
56535         * m4/math_h.m4: Initialize and substitute variables for isinf
56536         module.
56537         * modules/isinf: New file.
56538         * modules/isinf-tests: New file.
56539         * modules/math: Add substitutions for new module.
56540         * tests/test-isinf.c: New file.
56541         * doc/posix-functions/isinf.texi: Mention new module.
56542         * MODULES.html.sh: Mention new module.
56543
56544 2008-07-14  Ben Pfaff  <blp@gnu.org>
56545
56546         Factor out some macros for use by additional modules.
56547         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56548         exponentf.m4.
56549         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56550         exponentd.m4.
56551         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56552         file exponentl.m4.
56553         * m4/exponentf.m4: New file.
56554         * m4/exponentd.m4: New file.
56555         * m4/exponentl.m4: New file.
56556         * modules/isnanf: Use new file m4/exponentf.m4.
56557         * modules/isnand: Use new file m4/exponentd.m4.
56558         * modules/isnanl: Use new file m4/exponentl.m4.
56559
56560 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56561
56562         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56563         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56564         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56565         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56566
56567         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56568         readlink on platforms without PATH_MAX.
56569
56570 2008-07-21  Eric Blake  <ebb9@byu.net>
56571
56572         Warn, not fail, on stale version.
56573         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56574
56575         Don't allow installation with stale devel version number.
56576         * top/GNUmakefile (_is-install-target): New macro.
56577         (_curr-ver): Forbid installation with stale version number.
56578
56579 2008-07-20  Bruno Haible  <bruno@clisp.org>
56580
56581         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56582         TESTS_ENVIRONMENT.
56583         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56584
56585 2008-07-20  Bruno Haible  <bruno@clisp.org>
56586
56587         * lib/c-stack.h (c_stack_action): Add documentation.
56588         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56589
56590 2008-07-20  Bruno Haible  <bruno@clisp.org>
56591
56592         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56593         * modules/readlink (License): Likewise.
56594
56595 2008-07-17  Eric Blake  <ebb9@byu.net>
56596
56597         * modules/c-stack (Link): Fix typo.
56598
56599         Make c-stack use libsigsegv, when available.
56600         * modules/c-stack (Depends-on): Add libsigsegv.
56601         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56602         needed.
56603         * lib/c-stack.c (SIGSTKSZ): Define fallback.
56604         (segv_handler, overflow_handler, c_stack_action)
56605         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
56606         implementation when libsigsegv is available, but only when using
56607         the library is necessary.
56608         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
56609         comment, explaining why XSI check fails on Linux.
56610         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
56611         * tests/test-c-stack2.sh: Tweak skip message.
56612         * NEWS: Document new link-time requirements.
56613
56614 2008-07-16  Eric Blake  <ebb9@byu.net>
56615
56616         c-stack: Expose false positives when not using libsigsegv.
56617         * modules/c-stack-tests (Files): Expand test.
56618         * tests/test-c-stack.c (main): Add means to conditionally trigger
56619         non-overflow SIGSEGV.
56620         * tests/test-c-stack2.sh: New file.
56621
56622 2008-07-14  Bruno Haible  <bruno@clisp.org>
56623
56624         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
56625         Reported by Eric Blake.
56626
56627 2008-07-14  Sam Steingold  <sds@gnu.org>
56628             Bruno Haible  <bruno@clisp.org>
56629
56630         New module libsigsegv.
56631         * modules/libsigsegv: New file.
56632         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
56633         modifications.
56634         * MODULES.html.sh (Signal handling): New section.
56635
56636 2008-07-14  Bruno Haible  <bruno@clisp.org>
56637
56638         * modules/unictype/ctype-* (Description): Add the word "function".
56639         Improves the resulting doc in MODULES.html.
56640
56641 2008-07-12  Ben Pfaff  <blp@gnu.org>
56642
56643         Add longlong module.
56644         * modules/longlong: New file.
56645
56646 2008-07-12  Bruno Haible  <bruno@clisp.org>
56647
56648         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
56649         to empty.
56650
56651 2008-07-10  Ben Pfaff  <blp@gnu.org>
56652
56653         Add isnan module.
56654         * doc/posix-functions/isnan.texi: Mention new module.
56655         * lib/math.in.h: Define isnan macro if we have decided to replace
56656         it.
56657         * m4/isnan.m4: New file.
56658         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
56659         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
56660         also.
56661         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
56662         redundancy.
56663         * m4/math_h.m4: Initialize and substitute variables for isnan
56664         module.
56665         * modules/isnan: New file.
56666         * modules/isnan-tests: New file.
56667         * modules/math: Add substitutions for new module.
56668         * tests/test-isnan.c: New file.
56669         * MODULES.html.sh: Mention new module.
56670
56671 2008-07-10  Ben Pfaff  <blp@gnu.org>
56672
56673         Add isnanf module.
56674         * lib/isnanf.m4: New file.
56675         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
56676         (gl_HAVE_ISNANF_IN_LIBM): New macro.
56677         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
56678         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
56679         * modules/isnanf: New file.
56680         * modules/isnanf-tests: New file.
56681         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
56682         files.
56683         * tests/test-isnanf-nolibm.c: factored most of its contents into
56684         new file tests/test-isnanf.h.
56685         * tests/test-isnanf.h: New file.
56686         * tests/test-isnanf.c: New file.
56687         * MODULES.html.sh: Mention new module.
56688         * doc/glibc-functions/isnanf.texi: Mention new module.
56689
56690 2008-07-10  Ben Pfaff  <blp@gnu.org>
56691
56692         Add isnand module.
56693         * lib/isnand.h: New file.
56694         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
56695         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
56696         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
56697         functionality also.
56698         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
56699         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
56700         (gl_HAVE_ISNAND_IN_LIBM): New macro.
56701         * modules/isnand: New file.
56702         * modules/isnand-tests: New file.
56703         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
56704         files.
56705         * tests/test-isnand-nolibm.c: factored most of its contents into
56706         new file tests/test-isnand.h.
56707         * tests/test-isnand.h: New file.
56708         * tests/test-isnand.c: New file.
56709         * MODULES.html.sh: Mention new module.
56710
56711 2008-07-10  Ben Pfaff  <blp@gnu.org>
56712
56713         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
56714         * lib/isnand.h: Rename lib/isnand-nolibm.h.
56715         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
56716         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
56717         * modules/isnanf-nolibm: Update references to renamed files.
56718         * modules/isnand-nolibm: Likewise.
56719         * modules/isnanf-nolibm-tests: Likewise.
56720         * modules/isnand-nolibm-tests: Likewise.
56721         * lib/frexp.c: Likewise.
56722         * lib/isfinite.c: Likewise.
56723         * lib/signbitd.c: Likewise.
56724         * lib/signbitf.c: Likewise.
56725         * lib/vasnprintf.c: Likewise.
56726         * tests/test-ceilf1.c: Likewise.
56727         * tests/test-ceilf2.c: Likewise.
56728         * tests/test-floorf1.c: Likewise.
56729         * tests/test-floorf2.c: Likewise.
56730         * tests/test-frexp.c: Likewise.
56731         * tests/test-round1.c: Likewise.
56732         * tests/test-round2.c: Likewise.
56733         * tests/test-roundf1.c: Likewise.
56734         * tests/test-strtod.c: Likewise.
56735         * tests/test-trunc1.c: Likewise.
56736         * tests/test-trunc2.c: Likewise.
56737         * tests/test-truncf1.c: Likewise.
56738         * tests/test-truncf2.c: Likewise.
56739         * NEWS: Mention the renamed header files.
56740
56741 2008-07-11  Jim Meyering  <meyering@redhat.com>
56742
56743         vc-list-files: make the last-resort awk code more portable
56744         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
56745         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
56746         does not support it.
56747
56748 2008-07-10  Eric Blake  <ebb9@byu.net>
56749
56750         Work with tar's bootstrap.
56751         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
56752         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
56753         an m4 comment.
56754
56755 2008-07-09  Jim Meyering  <meyering@redhat.com>
56756
56757         posix-shell.m4: fix typo that made this test malfunction
56758         * m4/posix-shell.m4: Remove capitalization in variable name.
56759
56760 2008-07-08  Bruno Haible  <bruno@clisp.org>
56761
56762         * m4/onceonly.m4: Update comments.
56763         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56764
56765 2008-07-04  Jim Meyering  <meyering@redhat.com>
56766
56767         * users.txt: Add vc-dwim.
56768         (bison, coreutils): Use the gitweb URL.
56769
56770 2008-07-03  Jim Meyering  <meyering@redhat.com>
56771
56772         * users.txt: Add libffcall.  From Sam Steingold.
56773
56774 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
56775
56776         getdate.y: do not ignore TZ with relative day, month or year offset
56777         * lib/getdate.y (get_date): Move the tz-handling block to follow the
56778         relative-date-handling, since otherwise, the latter would clobber the
56779         sole output (an updated Start value) of the tz-handling block.
56780         * tests/test-getdate.c: Tests for the fix
56781
56782 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56783
56784         Recognize 'foo_LIBRARIES += libgnu.a'.
56785         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
56786         makefile snippet has already specified an installation location,
56787         also using '+='.
56788
56789 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
56790
56791         getdate.y: factor out common actions
56792         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
56793         Use them in place of open-coded actions.
56794
56795 2008-07-01  Simon Josefsson  <simon@josefsson.org>
56796
56797         Add self-test for getdate module.
56798         * modules/getdate-tests: New file.
56799         * tests/test-getdate.c: New file.
56800
56801 2008-06-29  Bruno Haible  <bruno@clisp.org>
56802
56803         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
56804         .gitignore.
56805         Reported by Sylvain Beucler <beuc@beuc.net>.
56806
56807 2008-06-29  Bruno Haible  <bruno@clisp.org>
56808
56809         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
56810         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
56811
56812 2008-06-29  Bruno Haible  <bruno@clisp.org>
56813
56814         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
56815         EXTRA_DIST.
56816         Reported by Sylvain Beucler <beuc@beuc.net>.
56817
56818 2008-06-26  Jim Meyering  <meyering@redhat.com>
56819
56820         make several modules depend on the "open" module
56821         This provides slightly increased consistency when opening-for-write
56822         the name of a non-directory spelled with a trailing slash.
56823         * modules/chdir-safer: Likewise.
56824         * modules/chown: Likewise.
56825         * modules/clean-temp: Likewise.
56826         * modules/copy-file: Likewise.
56827         * modules/fchdir: Likewise.
56828         * modules/fcntl-safer: Likewise.
56829         * modules/pipe: Likewise.
56830         * modules/utime: Likewise.
56831         Prompted by Eric Blake and Bruno Haible.
56832
56833 2008-06-24  Andreas Schwab  <schwab@suse.de>
56834
56835         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
56836         literals can be used as initializers for global variables.
56837
56838 2008-06-23  Eric Blake  <ebb9@byu.net>
56839
56840         Make gnulib-cache.m4 easier to diff.
56841         * gnulib-tool (func_import): Allow newlines when reading cached
56842         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
56843
56844 2008-06-23  Bruno Haible  <bruno@clisp.org>
56845
56846         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
56847         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
56848         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
56849         m4/signalblocking.m4.
56850         (gl_PREREQ_SIGACTION): Don't invoke it.
56851         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
56852         gl_PREREQ_SIG_HANDLER_H.
56853         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56854         Don't check for sigaction here.
56855
56856 2008-06-23  Bruno Haible  <bruno@clisp.org>
56857
56858         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
56859         (install_handlers): Don't set the SA_RESETHAND flag.
56860
56861 2008-06-23  Bruno Haible  <bruno@clisp.org>
56862
56863         * m4/sigaction.m4: Comment fixes.
56864         * lib/signal.in.h: Likewise.
56865
56866 2008-06-23  Eric Blake  <ebb9@byu.net>
56867
56868         Fix typo.
56869         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
56870
56871         Avoid SA_ namespace.
56872         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
56873         Reported by Ralf Wildenhues.
56874
56875         Avoid test failure due to SA_RESTORER.
56876         * tests/test-sigaction.c (SA_MASK): New macro.
56877         (main): Avoid failing due to extension flags being set.
56878         Reported by Jim Meyering.
56879
56880         Revert use of sig-handler.h in sigprocmask.c.
56881         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
56882         it requires the existence of struct sigaction.
56883         * lib/sigprocmask.c (handler_t): Restore typedef.
56884         (rpl_signal, old_handlers): Use local type.
56885
56886 2008-06-22  Bruno Haible  <bruno@clisp.org>
56887
56888         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
56889         conditionally.
56890         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56891
56892 2008-06-22  Bruno Haible  <bruno@clisp.org>
56893
56894         * doc/posix-functions/siginterrupt.texi: Move note.
56895
56896         * lib/signal.in.h (SA_RESTART): New macro.
56897         * lib/sigaction.c: Update comment.
56898
56899         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
56900
56901         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
56902         (gl_PREREQ_SIGPROCMASK): Invoke it.
56903         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
56904
56905         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
56906
56907         * lib/sigprocmask.c: Update a comment.
56908
56909 2008-06-21  Eric Blake  <ebb9@byu.net>
56910
56911         Use sigaction module rather than signal().
56912         * modules/c-stack (Depends-on): Add sigaction.
56913         * modules/fatal-signal (Depends-on): Likewise.
56914         * modules/nanosleep (Depends-on): Likewise.
56915         * modules/sigprocmask (Files): Add sig-handler.h.
56916         * modules/sigaction (Files): Likewise.
56917         * lib/sig-handler.h (get_handler): New file, suggested by Paul
56918         Eggert.
56919         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
56920         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
56921         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
56922         (init_fatal_signals): Likewise.
56923         * lib/nanosleep.c (rpl_nanosleep): Likewise.
56924         (siginterrupt): Delete fallback.
56925         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
56926         instead.
56927         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
56928         siginterrupt.
56929
56930         New module sigaction, for mingw.
56931         * modules/sigaction: New module...
56932         * modules/sigaction-tests: ...and its test.
56933         * m4/sigaction.m4: New file.
56934         * lib/sigaction.c: Likewise.
56935         * tests/test-sigaction.c: Likewise.
56936         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
56937         * modules/signal (Makefile.am): Likewise.
56938         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
56939         needed.
56940         * doc/posix-headers/signal.texi (signal.h): Mention provided
56941         types.
56942         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
56943         that sigaction is preferable.
56944         * doc/posix-functions/sigaction.texi (sigaction): Mention new
56945         module.
56946         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56947         sigaction.
56948
56949         Improve robustness of sigprocmask by overriding signal.
56950         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
56951         is in use.
56952         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
56953         (SIGKILL, SIGSTOP): Provide fallbacks.
56954         (rpl_signal): Implement.
56955         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
56956         signal can be called inside handlers.
56957
56958         Fix nanosleep module on mingw.
56959         * modules/nanosleep (Depends-on): Add sys_select.
56960         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
56961
56962         Fix licensing of sigprocmask.
56963         * modules/raise (License): Relicense as LGPL.
56964
56965 2008-06-21  Bruno Haible  <bruno@clisp.org>
56966
56967         * lib/propername.c (proper_name_utf8): Don't use the transliterated
56968         result if it contains question marks.
56969         Reported by Michael Geng <linux@michaelgeng.de>.
56970
56971 2008-06-19  Bruno Haible  <bruno@clisp.org>
56972
56973         Fix CVS-ism.
56974         * doc/gnulib.texi: Include updated-stamp.texi.
56975         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
56976         (updated-stamp.texi): New rule.
56977         (gnulib.info): Depend on it.
56978         * doc/.gitignore: Add updated-stamp.texi.
56979         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
56980
56981 2008-06-19  Bruno Haible  <bruno@clisp.org>
56982
56983         * doc/Makefile (gnulib.info): Update and simplify dependencies.
56984         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56985
56986 2008-06-19  Eric Blake  <ebb9@byu.net>
56987
56988         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
56989         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
56990         Reported by Stepan Kasal.
56991
56992 2008-06-18  Bruno Haible  <bruno@clisp.org>
56993
56994         * lib/fatal-signal.c (init_fatal_signals): Add comment.
56995         Reported by Eric Blake.
56996
56997 2008-06-18  Eric Blake  <ebb9@byu.net>
56998
56999         Work around cygwin 1.5.25 strsignal bug.
57000         * tests/test-strsignal.c: Allow for const char *.
57001         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57002
57003 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57004
57005         * users.txt: Update URL to article and add author/date
57006         information.
57007
57008 2008-06-17  Bruno Haible  <bruno@clisp.org>
57009
57010         New macro gl_DISABLE_THREADS.
57011         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57012         if the user did not pass --enable-threads or --disable-threads option.
57013         (gl_DISABLE_THREADS): New macro.
57014         Reported by Eric Blake <ebb9@byu.net>.
57015
57016 2008-06-17  Bruno Haible  <bruno@clisp.org>
57017
57018         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57019         when the macro ignores it.
57020         Based on a patch by Eric Blake <ebb9@byu.net>.
57021
57022 2008-06-17  Bruno Haible  <bruno@clisp.org>
57023
57024         * modules/tls (License): Change to LGPLv2+.
57025         Reported by Eric Blake.
57026
57027 2008-06-17  Eric Blake  <ebb9@byu.net>
57028
57029         Simplify c-stack prerequisites.
57030         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57031         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57032         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57033         check.
57034         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57035         <sys/resource.h>.
57036
57037         Move c-stack test into testsuite.
57038         * modules/c-stack-tests: New file.
57039         * lib/c-stack.c [DEBUG]: Move test program...
57040         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57041         fail test if sigaltstack is lacking.
57042         * tests/test-c-stack.sh: New driver file.
57043
57044 2008-06-16  Eric Blake  <ebb9@byu.net>
57045
57046         Use raise module consistently.
57047         * modules/fatal-signal (Depends-on): Add raise.
57048         * modules/sigprocmask (Depends-on): Likewise.
57049         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57050         * lib/sigprocmask.c (sigprocmask): Likewise.
57051         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57052         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57053
57054         Fix compliance bug in sigpending.
57055         * lib/sigprocmask.c (sigpending): Return pending array via
57056         parameter, not return value.
57057
57058 2008-06-14  Eric Blake  <ebb9@byu.net>
57059
57060         Improve obstack-printf test code.
57061         * tests/test-obstack-printf.c (test_function): Fix comment, and
57062         simplify usage of obstack_* in macros.  Add a test for coverage.
57063         Reported by Bruno Haible.
57064
57065 2008-06-14  Bruno Haible  <bruno@clisp.org>
57066
57067         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57068         array size as a constant, not as a const variable.
57069         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57070         AC_USE_SYSTEM_EXTENSIONS.
57071         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57072         Test whether the obstack_printf function actually exists.
57073         * modules/obstack-printf (Depends-on): Add extensions.
57074         (Include): Remove obstack.h.
57075         * modules/obstack-printf-posix (Depends-on): Add extensions.
57076         (Include): Remove obstack.h.
57077
57078 2008-06-13  Eric Blake  <ebb9@byu.net>
57079
57080         Add obstack-printf and obstack-printf-posix modules.
57081         * modules/obstack-printf: New file.
57082         * modules/obstack-printf-posix: Likewise.
57083         * MODULES.html.sh (Misc): Mention them.
57084         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57085         Likewise.
57086         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57087         Likewise.
57088         * modules/stdio (Makefile.am): Accomodate new modules.
57089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57090         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57091         Declare.
57092         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57093         functions.
57094         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57095         (gl_REPLACE_OBSTACK_PRINTF): New macros
57096         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57097         * tests/test-obstack-printf.c: New file.
57098         * modules/obstack-printf-tests: Likewise.
57099         * modules/obstack-printf-posix-tests: Likewise.
57100
57101 2008-06-11  Bruno Haible  <bruno@clisp.org>
57102
57103         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57104         * lib/open.c: Include errno.h.
57105         (open): Fail when attempting to write to a file that has a trailing
57106         slash.
57107         * tests/test-open.c (main): Test against trailing slash bug.
57108         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57109
57110 2008-06-10  Bruno Haible  <bruno@clisp.org>
57111
57112         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57113         for $? to work inside the trap command, with various /bin/sh-s.
57114         * tests/test-vc-list-files-cvs.sh: Likewise.
57115
57116 2008-06-10  Bruno Haible  <bruno@clisp.org>
57117
57118         * lib/acl-internal.h: Don't include gettext.h here.
57119         * lib/set-mode-acl.c: Include gettext.h here.
57120         * lib/copy-acl.c: Likewise.
57121
57122 2008-06-10  Bruno Haible  <bruno@clisp.org>
57123
57124         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57125         * lib/wait-process.c (wait_subprocess): Likewise.
57126         * lib/execute.h (execute): Add termsigp argument.
57127         * lib/execute.c (execute): Likewise.
57128         * lib/csharpcomp.c (compile_csharp_using_pnet,
57129         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57130         * lib/csharpexec.c (execute_csharp_using_pnet,
57131         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57132         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57133         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57134         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57135         is_jikes_present): Update.
57136         * lib/javaexec.c (execute_java_class): Update.
57137         * lib/javaversion.c (execute_and_read_line): Update.
57138         * NEWS: Document the changes.
57139         Reported by Eric Blake.
57140
57141 2008-06-10  Eric Blake  <ebb9@byu.net>
57142
57143         Add missing include.
57144         * tests/test-strstr.c (includes): Add <signal.h>.
57145         * tests/test-strcasestr.c (includes): Likewise.
57146         * tests/test-memmem.c (includes): Likewise.
57147
57148 2008-06-10  Bruno Haible  <bruno@clisp.org>
57149
57150         * lib/wait-process.c (wait_subprocess): Add an assertion.
57151
57152 2008-06-10  Bruno Haible  <bruno@clisp.org>
57153
57154         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57155
57156 2008-06-10  Bruno Haible  <bruno@clisp.org>
57157
57158         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57159         using alarm().
57160         * tests/test-strcasestr.c (main): Likewise.
57161         * tests/test-strstr.c (main): Likewise.
57162
57163 2008-06-09  Bruno Haible  <bruno@clisp.org>
57164
57165         Work around the Solaris 10 ACE ACLs ABI change.
57166         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57167         declare if ACL_NO_TRIVIAL is present.
57168         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57169         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57170         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57171         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57172         define if ACL_NO_TRIVIAL is present.
57173         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57174         and use the current ABI.
57175         (file_has_acl): Use same #if condition as elsewhere.
57176         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57177         in use, and use the current ABI.
57178         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57179         Reported by Jim Meyering.
57180
57181 2008-06-09  Eric Blake  <ebb9@byu.net>
57182
57183         Work around environments that (stupidly) ignore SIGALRM.
57184         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57185         before using alarm().
57186         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57187         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57188         Reported by Ian Beckwith <ianb@erislabs.net>.
57189
57190         Produce autobuild blurb earlier in log.
57191         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57192
57193 2008-06-09  Jim Meyering  <meyering@redhat.com>
57194         and OndÅ™ej Vašík  <ovasik@redhat.com>
57195
57196         utimens.c: correct kernel bug work-around
57197         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57198         failure, not success, and the kernel bug we're trying to work
57199         around affects not just the utimensat call, but also the fallback
57200         futimens call.
57201         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57202         not success.
57203         [HAVE_FUTIMENS]: Use the same work-around, here.
57204
57205 2008-06-09  Jim Meyering  <meyering@redhat.com>
57206
57207         add more guards around definition of ACE_-related code
57208         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57209         ALLOW and ACE_OWNER are also defined.
57210
57211 2008-06-08  Bruno Haible  <bruno@clisp.org>
57212
57213         * lib/acl-internal.h: Add me as co-author.
57214         * lib/file-has-acl.c: Likewise.
57215         * lib/set-mode-acl.c: Likewise.
57216         * lib/copy-acl.c: Likewise.
57217
57218 2008-06-08  Bruno Haible  <bruno@clisp.org>
57219
57220         Add support for AIX ACLs.
57221         * lib/acl-internal.h (acl_nontrivial): New declaration.
57222         * lib/file-has-acl.c (acl_nontrivial): New function.
57223         (file_has_acl): Add implementation using AIX 4 ACL API.
57224         * lib/set-mode-acl.c (qset_acl): Likewise.
57225         * lib/copy-acl.c (qcopy_acl): Likewise.
57226
57227 2008-06-08  Bruno Haible  <bruno@clisp.org>
57228
57229         Add support for HP-UX ACLs.
57230         * lib/acl-internal.h (acl_nontrivial): New declaration.
57231         * lib/file-has-acl.c (acl_nontrivial): New function.
57232         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57233         * lib/set-mode-acl.c (qset_acl): Likewise.
57234         * lib/copy-acl.c (qcopy_acl): Likewise.
57235
57236 2008-06-08  Bruno Haible  <bruno@clisp.org>
57237
57238         Add support for Cygwin ACLs.
57239         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57240         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57241         the chmod_or_fchmod call.
57242         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57243
57244 2008-06-08  Bruno Haible  <bruno@clisp.org>
57245
57246         Fix bug with setuid modes in Solaris 10+ code.
57247         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57248         succeeded, when the mode contains some special bits.
57249
57250 2008-06-08  Bruno Haible  <bruno@clisp.org>
57251
57252         Add support for Solaris 7..10 ACLs.
57253         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57254         declarations.
57255         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57256         functions.
57257         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57258         * lib/set-mode-acl.c (qset_acl): Likewise.
57259         * lib/copy-acl.c (qcopy_acl): Likewise.
57260
57261 2008-06-08  Bruno Haible  <bruno@clisp.org>
57262
57263         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57264         declaration.
57265         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57266         (acl_access_nontrivial): Remove MacOS X case.
57267         (file_has_acl): Use acl_extended_nontrivial.
57268         * lib/copy-acl.c (qcopy_acl): Likewise.
57269
57270 2008-06-08  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57273
57274 2008-06-08  Jim Meyering  <meyering@redhat.com>
57275
57276         * modules/acl (Maintainer): Add Bruno Haible.
57277
57278 2008-06-07  Bruno Haible  <bruno@clisp.org>
57279
57280         Improve support for Tru64 ACLs.
57281         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57282         ACL on OSF/1.
57283
57284 2008-06-07  Bruno Haible  <bruno@clisp.org>
57285
57286         Add support for MacOS X ACLs.
57287         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57288         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57289         * lib/set-mode-acl.c (qset_acl): Likewise.
57290         * lib/copy-acl.c (qcopy_acl): Likewise.
57291
57292 2008-06-07  Bruno Haible  <bruno@clisp.org>
57293
57294         Fix memory leak introduced on 2008-05-22.
57295         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57296         use.
57297
57298 2008-06-07  Bruno Haible  <bruno@clisp.org>
57299
57300         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57301         to construct an empty ACL.
57302
57303 2008-06-07  Bruno Haible  <bruno@clisp.org>
57304
57305         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57306         precisely.
57307         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57308
57309 2008-06-07  Bruno Haible  <bruno@clisp.org>
57310
57311         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57312         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57313
57314 2008-06-07  Bruno Haible  <bruno@clisp.org>
57315
57316         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57317         regardless of POSIX.
57318         * doc/posix-functions/_longjmp.texi: Likewise.
57319         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57320         SystemV platform in this case.
57321
57322 2008-06-06  Eric Blake  <ebb9@byu.net>
57323
57324         Document abort() bugs.
57325         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57326
57327         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57328         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57329         sigsetjmp.
57330         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57331         siglongjmp, but only as a macro.
57332         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57333         is obsolete.
57334         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57335
57336         Tweak documentation to cover cygwin argz bugs.
57337         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57338         argz bug fix; no code change needed since no cygwin releases
57339         occurred between the last fix and the bug being tested.
57340         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57341         module and recently fixed cygwin bugs.
57342         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57343         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57344         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57345         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57346         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57347         Likewise.
57348         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57349         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57350         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57351         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57352         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57353         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57354         Likewise.
57355
57356         Avoid gcc warning on cygwin.
57357         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57358         !ACL_NO_TRIVIAL]: Avoid unused variable.
57359
57360 2008-06-05  Eric Blake  <ebb9@byu.net>
57361
57362         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57363         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57364         git-version-gen fails to come up with a version.
57365         Reported by Simon Josefsson.
57366
57367 2008-06-05  Jim Meyering  <meyering@redhat.com>
57368             Paul Eggert  <eggert@cs.ucla.edu>
57369
57370         utimens.c: work around a probable Linux kernel bug
57371         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57372         appears to be a kernel bug that causes utimensat to return 280
57373         instead of 0, indicating success.
57374
57375 2008-06-04  Bruno Haible  <bruno@clisp.org>
57376
57377         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57378         2008-06-01 commit.
57379
57380 2008-06-04  Bruno Haible  <bruno@clisp.org>
57381
57382         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57383         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57384         (file_has_acl): Use it. Save errno afterwards.
57385         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57386
57387 2008-06-03  Bruno Haible  <bruno@clisp.org>
57388
57389         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57390         draft code. Simplify #ifs.
57391         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57392         Put Solaris code after POSIX-draft code. Fix comments regarding
57393         Solaris 10, HP-UX. Mention Cygwin.
57394         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57395
57396 2008-06-03  Eric Blake  <ebb9@byu.net>
57397
57398         Provide fallback for older kernels.
57399         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57400         Provide runtime fallback if kernel lacks support.
57401         Reported by Mike Frysinger.
57402
57403 2008-06-02  Bruno Haible  <bruno@clisp.org>
57404
57405         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57406         it exists.
57407
57408 2008-06-02  Bruno Haible  <bruno@clisp.org>
57409
57410         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57411         * lib/copy-acl.c (qcopy_acl): Update comment.
57412
57413 2008-06-02  Bruno Haible  <bruno@clisp.org>
57414
57415         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57416         like ACL APIs.
57417
57418 2008-06-02  Bruno Haible  <bruno@clisp.org>
57419
57420         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57421         * tests/test-set-mode-acl.sh: Likewise.
57422         * tests/test-copy-acl.sh: Likewise.
57423         * tests/test-copy-file.sh: Likewise.
57424
57425 2008-06-02  Bruno Haible  <bruno@clisp.org>
57426
57427         * tests/test-file-has-acl.sh: Remove unused code.
57428
57429 2008-06-01  Bruno Haible  <bruno@clisp.org>
57430
57431         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57432         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57433         messages.
57434         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57435
57436 2008-06-01  Bruno Haible  <bruno@clisp.org>
57437
57438         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57439         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57440         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57441         APIs.
57442         * modules/acl-tests (configure.ac): Remove tests now contained in
57443         m4/acl.m4.
57444
57445 2008-06-02  Jim Meyering  <meyering@redhat.com>
57446
57447         announce-gen: use a better key-server host name
57448         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57449         it may be more consistently reliable.  Suggested by Werner Koch
57450         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57451
57452 2008-06-01  Bruno Haible  <bruno@clisp.org>
57453
57454         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57455         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57456
57457 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57458
57459         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57460
57461 2008-06-01  Bruno Haible  <bruno@clisp.org>
57462
57463         New ACL tests.
57464         * tests/test-file-has-acl.sh: New file.
57465         * tests/test-file-has-acl.c: New file.
57466         * tests/test-set-mode-acl.sh: New file.
57467         * tests/test-set-mode-acl.c: New file.
57468         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57469         * tests/test-copy-acl.c: New file.
57470         * modules/acl-tests: New file, based on modules/copy-file-tests.
57471         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57472         (Depends-on): Add acl-tests.
57473         (configure.ac): Remove checks.
57474         (Makefile.am): Don't create test-sameacls program here any more.
57475
57476 2008-06-01  Bruno Haible  <bruno@clisp.org>
57477
57478         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57479         * tests/test-sameacls.c: Include progname.h.
57480         (main): Invoke set_program_name. Portability fixes for MacOS X,
57481         Solaris, HP-UX.
57482
57483 2008-06-01  Bruno Haible  <bruno@clisp.org>
57484
57485         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57486         function.
57487         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57488
57489 2008-06-01  Bruno Haible  <bruno@clisp.org>
57490
57491         * modules/rpmatch (Depends-on): Add strdup.
57492
57493 2008-06-01  Bruno Haible  <bruno@clisp.org>
57494
57495         * lib/pipe.c: Include unistd-safer.h.
57496         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57497         * modules/pipe (Depends-on): Add unistd-safer.
57498
57499 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57500
57501         * modules/autobuild (configure.ac): Call AB_INIT.
57502
57503 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57504
57505         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57506         Suggested by Bruno Haible <bruno@clisp.org>.
57507
57508 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57509
57510         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57511         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57512         <bruno@clisp.org>.
57513
57514 2008-05-29  Eric Blake  <ebb9@byu.net>
57515
57516         Prefer new POSIX 200x interfaces over futimesat.
57517         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57518         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57519         when available.
57520         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57521
57522 2008-05-28  Bruno Haible  <bruno@clisp.org>
57523
57524         * modules/stpcpy (License): Change to LGPLv2+.
57525         Requested by David Lutterkort <dlutter@redhat.com>.
57526
57527 2008-05-27  Bruno Haible  <bruno@clisp.org>
57528
57529         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57530         current mingw.
57531         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57532
57533 2008-05-27  Bruno Haible  <bruno@clisp.org>
57534
57535         * modules/iconv_open (Link): New section, from module 'iconv'.
57536         * modules/striconv (Link): Likewise.
57537         * modules/striconveh (Link): Likewise.
57538         * modules/xstriconv (Link): Likewise.
57539         * modules/unicodeio (Link): Likewise.
57540         * modules/propername (Link): Likewise.
57541         Reported by Jim Meyering.
57542
57543 2008-05-26  Jim Meyering  <meyering@redhat.com>
57544
57545         sha256: do not artificially restrict buffer length to be < 2^32
57546         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57547         uint32_t to size_t.
57548         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57549         to match.
57550
57551         avoid unaligned access errors, e.g., on sparc
57552         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57553         direct access through a possibly-unaligned uint64* pointer.
57554         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57555         direct access through a possibly-unaligned uint32* pointer.
57556         Prompted by this patch from Tom "spot" Callaway:
57557         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57558
57559         sha512.c: fix typo in comment
57560         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57561
57562 2008-05-25  Bruno Haible  <bruno@clisp.org>
57563
57564         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57565         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57566         (Makefile.am): Update lib_SOURCES.
57567
57568 2008-05-25  Bruno Haible  <bruno@clisp.org>
57569
57570         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57571
57572 2008-05-25  Jim Meyering  <meyering@redhat.com>
57573
57574         useless-if-before-free: freed expr may have white-space differences
57575         * build-aux/useless-if-before-free: Recognize cases in which the
57576         freed expression differs from the tested one in embedded white
57577         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57578         $1 was used, so we can't make any regexp shy.  Improved tests now
57579         detect this.
57580
57581         useless-if-before-free: accept white space in the expression.
57582         * build-aux/useless-if-before-free: For now, any white space
57583         in the expression must be identical in the free argument.
57584
57585         useless-if-before-free: efficiency tweak
57586         * build-aux/useless-if-before-free: Make the expression-matching
57587         regexp "shy".
57588         Make the *outer* regexp shy, not the expr-matching one.
57589
57590         update code-in-comment to accept cast of free arg
57591         * build-aux/useless-if-before-free: Update regexp.
57592
57593 2008-05-25  Bruno Haible  <bruno@clisp.org>
57594
57595         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57596         * modules/copy-file-tests (Files, Makefile.am): Update.
57597         * tests/test-copy-file.c (func_test_copy): Update.
57598
57599 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57600
57601         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57602
57603 2008-05-23  Bruno Haible  <bruno@clisp.org>
57604
57605         Improve support for ACLs on OSF/1.
57606         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
57607         Remove fallback for unknown flavors of ACLs.
57608
57609 2008-05-22  Bruno Haible  <bruno@clisp.org>
57610
57611         Add support for ACLs on OSF/1.
57612         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
57613         replacements.
57614         (acl_free_text): New macro fallback.
57615         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
57616         acl_free.
57617         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
57618         acl_free_text function. Require AC_C_INLINE.
57619
57620 2008-05-22  Bruno Haible  <bruno@clisp.org>
57621
57622         Make copy_acl work on MacOS X 10.5.
57623         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
57624         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
57625         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
57626         If MODE_INSIDE_ACL, don't assume that every system has the same text
57627         representation for ACLs as FreeBSD.
57628         * lib/copy-acl.c (copy_acl): Add support for platforms with
57629         !MODE_INSIDE_ACL.
57630         * lib/file-has-acl.c (file_has_acl): Likewise.
57631         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
57632         FreeBSD, MacOS X, or IRIX, respectively.
57633
57634 2008-05-22  Bruno Haible  <bruno@clisp.org>
57635
57636         * lib/acl.h: Don't include <sys/acl.h>.
57637         (GETACLCNT): Move fallback to lib/acl-internal.h.
57638         * lib/acl-internal.h: Include <sys/acl.h> here.
57639         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
57640
57641 2008-05-22  Bruno Haible  <bruno@clisp.org>
57642
57643         Split off copy_acl function to separate file.
57644         * lib/copy-acl.c: New file, extracted from lib/acl.c.
57645         * lib/acl.c (copy_acl): Moved function to separate file.
57646         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
57647         * modules/acl (Files): Add lib/copy-acl.c.
57648         (Makefiles.am): Augment lib_SOURCES.
57649
57650 2008-05-22  Bruno Haible  <bruno@clisp.org>
57651
57652         * modules/copy-file-tests: New file.
57653         * tests/test-copy-file.sh: New file.
57654         * tests/test-copy-file.c: New file.
57655         * tests/test-copy-file-sameacls.c: New file.
57656
57657 2008-05-22  Eric Blake  <ebb9@byu.net>
57658
57659         Avoid gcc warning.
57660         * tests/test-memcmp.c (main): Pass NULL indirectly.
57661
57662 2008-05-21  Bruno Haible  <bruno@clisp.org>
57663
57664         Add reference doc about ACLs.
57665         * doc/acl-resources.txt: New file.
57666         * doc/acl-cygwin.txt: New file.
57667
57668 2008-05-21  Bruno Haible  <bruno@clisp.org>
57669
57670         Avoid one more warning from gcc.
57671         * lib/vasnprintf.c (IF_LINT): Update comments.
57672         (VASNPRINTF): Use it also for the 'prefix' array initializer.
57673
57674 2008-05-21  Jim Meyering  <meyering@redhat.com>
57675
57676         avoid a warning from gcc
57677         * lib/vasnprintf.c (IF_LINT): Define.
57678         (scale10_round_decimal_long_double):
57679         Use it to avoid a "may be used uninitialized" warning.
57680         (scale10_round_decimal_double): Likewise.
57681
57682 2008-05-21  Simon Josefsson  <simon@josefsson.org>
57683
57684         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
57685         declared.
57686
57687 2008-05-20  Bruno Haible  <bruno@clisp.org>
57688
57689         * tests/test-memcmp.c (main): Test also the sign of the result. Test
57690         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
57691
57692 2008-05-20  Simon Josefsson  <simon@josefsson.org>
57693
57694         * modules/memcmp-tests: New file.
57695         * tests/test-memcmp.c: New file.
57696
57697 2008-05-19  Bruno Haible  <bruno@clisp.org>
57698
57699         * modules/propername (Notice, configure.ac): Put quoted "..." into
57700         --keyword option.
57701         * lib/propername.h: Update comments accordingly.
57702         Reported by Eric Blake.
57703
57704 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
57705
57706         * modules/getpass-gnu (Depends-on): Add fseeko.
57707
57708 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57709
57710         * modules/base64-tests: New file.
57711
57712 2008-05-19  Bo Borgerson <gigabo@gmail.com>
57713
57714         * lib/base64.c (base64_decode_ctx): If a decode context structure
57715         was passed in use it to ignore newlines.  If a context structure
57716         was _not_ passed in, continue to treat newlines as garbage (this
57717         is the historical behavior).  Formerly base64_decode.
57718         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57719         takes a decode context structure.
57720         * lib/base64.h (base64_decode): Macro for four-argument calls.
57721         (base64_decode_alloc): Likewise.
57722         * lib/base64.c (base64_decode_ctx): If a decode context structure
57723         was passed in use it to ignore newlines.  If a context structure
57724         was _not_ passed in, continue to treat newlines as garbage (this
57725         is the historical behavior).  Formerly base64_decode.
57726         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57727         takes a decode context structure.
57728         * lib/base64.h (base64_decode): Macro for four-argument calls.
57729         (base64_decode_alloc): Likewise.
57730
57731 2008-05-19  Jim Meyering  <meyering@redhat.com>
57732
57733         avoid a warning from gcc
57734         * lib/trim.c (IF_LINT): Define.
57735         (trim2): Use it to avoid a "may be used uninitialized" warning.
57736
57737         Fix doc typo.
57738         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
57739
57740 2008-05-19  Bruno Haible  <bruno@clisp.org>
57741
57742         * doc/glibc-functions/getpass.texi: Document limits of other
57743         implementations.
57744
57745 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57746             Bruno Haible <bruno@clisp.org>
57747
57748         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
57749
57750 2008-05-18  Bruno Haible  <bruno@clisp.org>
57751
57752         * modules/propername: New file, from GNU gettext.
57753         * lib/propername.h: New file, from GNU gettext.
57754         * lib/propername.c: New file, from GNU gettext.
57755         * MODULES.html.sh (Internationalization functions): Add propername.
57756
57757 2008-05-16  Jim Meyering  <meyering@redhat.com>
57758             Bruno Haible  <bruno@clisp.org>
57759
57760         Avoid some warnings from "gcc -Wshadow".
57761         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
57762
57763 2008-05-15  Eric Blake  <ebb9@byu.net>
57764
57765         Extend previous patch to cygwin 1.7.0.
57766         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
57767         fast implementation in cygwin >= 1.7.0.
57768         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57769         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57770
57771 2008-05-15  Bruno Haible  <bruno@clisp.org>
57772
57773         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
57774         implementation in glibc >= 2.9.
57775         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57776         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57777
57778 2008-05-15  Bruno Haible  <bruno@clisp.org>
57779
57780         * MODULES.html.sh (Internationalization functions): Remove linebreak.
57781         (Unicode string functions): Add unilbrk/*.
57782         Reported by Karl Berry.
57783
57784 2008-05-15  Eric Blake  <ebb9@byu.net>
57785
57786         Fix violation of <stdbool.h> replacement in regex.
57787         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
57788         * lib/regexec.c (re_search_internal): Likewise.
57789         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
57790
57791 2008-05-15  Jim Meyering  <meyering@redhat.com>
57792
57793         avoid distracting test output when git or cvs is not found
57794         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
57795         * tests/test-vc-list-files-git.sh: Likewise.
57796
57797 2008-05-15  Eric Blake  <ebb9@byu.net>
57798
57799         Glibc finally accepted the memmem speedup code, bugzilla #5514.
57800         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
57801         glibc version.
57802         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
57803         * doc/posix-functions/strstr.texi (strstr): Likewise.
57804         * lib/str-two-way.h (MAX): Sychronize with glibc.
57805
57806 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
57807
57808         * lib/regcomp.c (optimize_utf8): Add a note on why we test
57809         opr.ctx_type.
57810         (calc_first): Initialize constraint field.
57811         (duplicate_node_closure): Use it instead of special casing ANCHORS.
57812         Fix grammar.
57813         (duplicate_node): Merge constraint field for all node types.
57814         (calc_eclosure_iter): Look at constraint field for all node types.
57815         * lib/regex_internal.c (create_cd_newstate): Don't look at
57816         opr.ctx_type.
57817
57818 2008-05-14  Bruno Haible  <bruno@clisp.org>
57819
57820         Help GCC to do better code generation.
57821         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
57822         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
57823         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
57824         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
57825         Declare with attribute 'malloc' if supported.
57826
57827 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
57828
57829         use "echo STR|wc -c" rather than unportable "expr length STR"
57830         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
57831         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
57832
57833 2008-05-14  Jim Meyering  <meyering@redhat.com>
57834
57835         use dd ibs=$n count=1 ... rather than less-portable head -c$n
57836         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
57837         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
57838         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
57839         via Collin Lasse.
57840
57841 2008-05-14  Eric Blake  <ebb9@byu.net>
57842
57843         Avoid quadratic growth in gl_LIBSOURCES.
57844         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
57845         Suggested by Bruno Haible.
57846
57847         Test xmemdup0.
57848         * modules/xmemdup0-tests: New file.
57849         * tests/test-xmemdup0.c: Likewise.
57850
57851 2008-05-13  Eric Blake  <ebb9@byu.net>
57852
57853         Split xmemdup0 into its own module.
57854         * modules/xmemdup0: New file.
57855         * lib/xmemdup0.h: Likewise.
57856         * lib/xmemdup0.c: Likewise.
57857         * MODULES.html.sh (Memory management functions): Add xmemdup0.
57858         * lib/xalloc.h (xmemdup0): Remove.
57859         * lib/xmalloc.c (xmemdup0): Likewise.
57860
57861 2008-05-13  Eric Blake  <ebb9@byu.net>
57862             Bruno Haible  <bruno@clisp.org>
57863
57864         Reduce number of forks required during autoconf.
57865         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
57866         and gl_LIBSOURCES_DIR.
57867         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
57868         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
57869         m4_syscmd per file.
57870         <m4_foreach_w>: Move...
57871         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
57872
57873 2008-05-13  Eric Blake  <ebb9@byu.net>
57874
57875         * gnulib-tool: Fix various comment typos.
57876
57877 2008-05-12  Bruno Haible  <bruno@clisp.org>
57878
57879         Tailor the linebreaking algorithm.
57880         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
57881
57882 2008-05-12  Bruno Haible  <bruno@clisp.org>
57883
57884         Update to Unicode 5.0.0.
57885         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57886         LBP_JV, LBP_JT. Redistribute values.
57887         (unilbrk_table): Change size.
57888         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
57889         Unicode TR#14 rev. 22.
57890         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57891         LBP_JV, LBP_JT. Redistribute values.
57892         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
57893         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
57894         Update.
57895         * lib/unilbrk/lbrkprop1.h: Regenerated.
57896         * lib/unilbrk/lbrkprop2.h: Regenerated.
57897         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
57898         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
57899         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
57900         Likewise.
57901         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
57902         Likewise.
57903         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
57904         result.
57905         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57906         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57907         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57908         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
57909         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
57910         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
57911
57912 2008-05-11  Bruno Haible  <bruno@clisp.org>
57913
57914         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
57915
57916 2008-05-11  Bruno Haible  <bruno@clisp.org>
57917
57918         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
57919         * modules/unilbrk/gen-lbrk: New file.
57920
57921 2008-05-11  Bruno Haible  <bruno@clisp.org>
57922
57923         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
57924         * m4/sha512.m4 (gl_SHA512): Likewise.
57925
57926 2008-05-11  Jim Meyering  <meyering@redhat.com>
57927
57928         New modules: crypto/sha256, crypto/sha512 (from coreutils)
57929         * modules/crypto/sha256: New file.
57930         * modules/crypto/sha512: Likewise.
57931         * lib/sha256.c: Likewise.
57932         * lib/sha256.h: Likewise.
57933         * lib/sha512.c: Likewise.
57934         * lib/sha512.h: Likewise.
57935         * lib/u64.h: Likewise.
57936         * m4/sha256.m4: Likewise.
57937         * m4/sha512.m4: Likewise.
57938         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
57939
57940 2008-05-10  Bruno Haible  <bruno@clisp.org>
57941
57942         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
57943         (Input/Output <stdio.h>): Add xprintf.
57944         (Signal handling <signal.h>): Add strsignal.
57945         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
57946         (Core language properties): Add func.
57947         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
57948         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
57949         strings.
57950         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
57951         (Input/output): New section.
57952         (File system functions): Add openat-die, stat-macros.
57953         (Networking functions): Add sockets.
57954         (Unicode string functions): Add unictype/*.
57955         (Support for building libraries and executables): Add gperf.
57956         (Support for building documentation): Add agpl-3.0.
57957         (Misc): Add nocrash.
57958
57959 2008-05-10  Bruno Haible  <bruno@clisp.org>
57960
57961         * modules/unictype/gen-ctype: New file.
57962
57963 2008-05-10  Jim Meyering  <meyering@redhat.com>
57964
57965         Make chdir-safer.c more efficient on a system with no symlinks.
57966         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
57967         also if ELOOP is zero.  Suggested by Bruno Haible.
57968
57969         Make chdir-safer.c slightly safer.
57970         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
57971         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
57972
57973         Avoid compile failure on systems without ELOOP (like mingw).
57974         * lib/chdir-safer.c (ELOOP): Define if not already defined.
57975         Reported by Bruno Haible.
57976
57977 2008-05-10  Bruno Haible  <bruno@clisp.org>
57978
57979         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
57980         (is_utf8_encoding): Use a case-insensitive comparison.
57981         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
57982         streq.
57983
57984 2008-05-10  Bruno Haible  <bruno@clisp.org>
57985
57986         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
57987         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
57988         * lib/unilbrk/ulc-common.h (iconv_string_length,
57989         iconv_string_keeping_offsets): Remove declarations.
57990         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
57991         Don't include <iconv.h>, streq.h, xsize.h.
57992         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
57993         conversion.
57994         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
57995         <iconv.h>, streq.h, xsize.h.
57996         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
57997         conversion.
57998         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
57999         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58000         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58001         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58002
58003 2008-05-10  Bruno Haible  <bruno@clisp.org>
58004
58005         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58006         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58007
58008         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58009         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58010
58011         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58012         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58013
58014         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58015         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58016
58017         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58018         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58019
58020         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58021         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58022
58023         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58024         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58025
58026         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58027         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58028
58029 2008-05-10  Bruno Haible  <bruno@clisp.org>
58030
58031         Split up 'linebreak' module.
58032         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58033         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58034         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58035         modifications.
58036         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58037         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58038         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58039         lib/linebreak.c.
58040         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58041         lib/linebreak.c.
58042         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58043         lib/linebreak.c.
58044         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58045         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58046         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58047         lib/linebreak.c.
58048         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58049         lib/linebreak.c.
58050         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58051         lib/linebreak.c.
58052         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58053         lib/linebreak.c.
58054         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58055         lib/linebreak.c.
58056         * modules/unilbrk/base: New file.
58057         * modules/unilbrk/tables: New file.
58058         * modules/unilbrk/u8-possible-linebreaks: New file.
58059         * modules/unilbrk/u16-possible-linebreaks: New file.
58060         * modules/unilbrk/u32-possible-linebreaks: New file.
58061         * modules/unilbrk/ulc-common: New file.
58062         * modules/unilbrk/ulc-possible-linebreaks: New file.
58063         * modules/unilbrk/u8-width-linebreaks: New file.
58064         * modules/unilbrk/u16-width-linebreaks: New file.
58065         * modules/unilbrk/u32-width-linebreaks: New file.
58066         * modules/unilbrk/ulc-width-linebreaks: New file.
58067         * lib/linebreak.h: Remove file.
58068         * lib/linebreak.c: Remove file.
58069         * m4/linebreak.m4: Remove file.
58070         * modules/linebreak: Remove file.
58071         * NEWS: Mention the changes.
58072
58073 2008-05-09  Eric Blake  <ebb9@byu.net>
58074
58075         Add xmemdup0.
58076         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58077         implementation.
58078         * lib/xmalloc.c (xmemdup0): New C implementation.
58079
58080 2008-05-08  Bruno Haible  <bruno@clisp.org>
58081
58082         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58083
58084 2008-05-07  Eric Blake  <ebb9@byu.net>
58085
58086         Support cross-compilation of <wctype.h>.
58087         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58088         AC_CACHE_CHECK.
58089
58090 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58091
58092         * build-aux/vc-list-files: Add support for bzr.
58093
58094 2008-05-03  Jim Meyering  <meyering@redhat.com>
58095
58096         avoid failed assertion with tight malloc
58097         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58098
58099 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58100
58101         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58102         are needed from arpa/inet.h.
58103         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58104         Reported by Bruno Haible.
58105
58106 2008-05-02  Jim Meyering  <meyering@redhat.com>
58107
58108         avoid compilation error on FreeBSD 6
58109         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58110
58111 2008-05-01  Jim Meyering  <meyering@redhat.com>
58112
58113         useless-if-before-free: correct --help's exit status description
58114         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58115         for one or more matches, etc.  Reported by Bruno Haible.
58116
58117         vc-list-files: make the stand-alone gnulib test work
58118         * modules/vc-list-files-tests (configure.ac):
58119         Define and AC_SUBST abs_aux_dir.
58120         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58121         $(abs_top_srcdir) to each script and having each of them
58122         duplicate the work of setting PATH, set PATH here, using
58123         the new variable, abs_aux_dir instead.
58124         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58125         * tests/test-vc-list-files-git.sh: Likewise.
58126         Reported by Bruno Haible.
58127
58128 2008-05-01  Bruno Haible  <bruno@clisp.org>
58129
58130         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58131         reallocation. Rename 'done' to 'found_delimiter'.
58132
58133 2008-05-01  Jim Meyering  <meyering@redhat.com>
58134
58135         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58136         * build-aux/vc-list-files: Use `...`, not $(...).
58137
58138 2008-04-30  Jim Meyering  <meyering@redhat.com>
58139
58140         add tests for vc-list-files
58141         * modules/vc-list-files-tests: New module.
58142         * tests/test-vc-list-files-cvs.sh: New file.
58143         * tests/test-vc-list-files-git.sh: New file.
58144
58145         avoid a warning from gcc
58146         * lib/getndelim2.c (IF_LINT): Define.
58147         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58148
58149         vc-list-files: work properly with build-aux/cvsu, too
58150         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58151         to all cvs-based clauses.
58152
58153         vc-list-files: work properly in the CVS+awk case, too
58154         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58155
58156         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58157         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58158         take more than one file argument, so .  Add quotes, just in case $dir
58159         ever contains a shell meta-character.  Prompted by Soren Hansen in
58160         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58161
58162 2008-04-29  Eric Blake  <ebb9@byu.net>
58163
58164         Optimize getndelim2 to use block operations when possible.
58165         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58166         freadseek, and memchr2.
58167         * lib/getndelim2.c (getndelim2): Use them for block reads.
58168
58169 2008-04-29  Bruno Haible  <bruno@clisp.org>
58170
58171         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58172         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58173         * modules/inet_ntop (Depends-on): Add extensions.
58174         * modules/inet_pton (Depends-on): Likewise.
58175         Reported by Simon Josefsson.
58176
58177 2008-04-29  Jim Meyering  <meyering@redhat.com>
58178
58179         When the is more than one match in a block, match all of them.
58180         * build-aux/useless-if-before-free: Iterate through each block
58181         until there are no more matches.
58182
58183         Fix broken useless-if-before-free script.
58184         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58185         the expression to match cast of argument to free-like function.
58186
58187 2008-04-29  Eric Blake  <ebb9@byu.net>
58188
58189         Use new header.
58190         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58191
58192 2008-04-29  Jim Meyering  <meyering@redhat.com>
58193
58194         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58195         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58196         by gnulib to exist and to declare e.g., inet_ntop.
58197         Don't include "inet_ntop.h", now removed.
58198
58199         * m4/arpa_inet_h.m4: Remove trailing blanks.
58200
58201 2008-04-29  Eric Blake  <ebb9@byu.net>
58202
58203         Silence valgrind on safe reads beyond potential array bounds.
58204         * lib/rawmemchr.valgrind: New file.
58205         * lib/strchrnul.valgrind: Likewise.
58206         * modules/rawmemchr (Files): Distribute new file.
58207         * modules/strchrnul (Files): Likewise.
58208         Suggested by Bruno Haible.
58209
58210 2008-04-29  Bruno Haible  <bruno@clisp.org>
58211
58212         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58213         (inet_ntop, inet_pton): Change portability warning's wording.
58214         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58215         Invoke gl_CHECK_NEXT_HEADERS.
58216         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58217         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58218         set ARPA_INET_H.
58219         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58220         * modules/arpa_inet (Description): No longer only for systems that
58221         lack it.
58222         (Depends-on): Add include_next.
58223         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58224         HAVE_ARPA_INET_H.
58225
58226 2008-04-29  Jim Meyering  <meyering@redhat.com>
58227
58228         * modules/mkdir (License): Re-license as LGPLv2+.
58229
58230 2008-04-29  Bruno Haible  <bruno@clisp.org>
58231
58232         * modules/rawmemchr (Maintainer): Set to Eric.
58233         * modules/strchrnul (Maintainer): Likewise.
58234
58235 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58236
58237         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58238         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58239
58240         * modules/arpa_inet (arpa/inet.h): Use them.
58241
58242 2008-04-28  Eric Blake  <ebb9@byu.net>
58243
58244         Test getndelim2.
58245         * modules/getndelim2-tests: New file.
58246         * tests/test-getndelim2.c: Likewise.
58247         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58248         stream.
58249         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58250
58251         * MODULES.html.sh: Document new module.
58252
58253 2008-04-20  Bruno Haible  <bruno@clisp.org>
58254
58255         * lib/c-stack.c (die): Use raise.
58256         * modules/c-stack (Depends-on): Add raise.
58257
58258 2008-04-28  Bruno Haible  <bruno@clisp.org>
58259
58260         Expect rpmatch to be declared.
58261         * lib/yesno.c (rpmatch): Remove declaration.
58262
58263         Declare rpmatch.
58264         * lib/stdlib.in.h (rpmatch): New declaration.
58265         * lib/rpmatch.c: Include <stdlib.h> first.
58266         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58267         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58269         HAVE_RPMATCH.
58270         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58271         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58272         (Include): Set to <stdlib.h>.
58273         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58274         HAVE_RPMATCH.
58275         * NEWS: Document the change.
58276
58277 2008-04-28  Bruno Haible  <bruno@clisp.org>
58278
58279         Change rpmatch to use nl_langinfo when appropriate.
58280         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58281         (N_): New macro.
58282         (localized_pattern): New function/macro.
58283         (try): Remove match, nomatch arguments. Copy the pattern into safe
58284         memory before caching it.
58285         (rpmatch): Use localized_pattern. Add translator comments.
58286         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58287         Suggested by Eric Blake.
58288         * modules/rpmatch (Depends-on): Add stdbool.
58289
58290 2008-04-28  Eric Blake  <ebb9@byu.net>
58291
58292         Add rawmemchr module, matching glibc.
58293         * modules/string (Makefile.am): New indicator.
58294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58295         * lib/string.in.h (rawmemchr): Declare when appropriate.
58296         * modules/rawmemchr: New file.
58297         * m4/rawmemchr.m4: Likewise.
58298         * lib/rawmemchr.c: Likewise.
58299         * modules/rawmemchr-tests: Likewise.
58300         * tests/test-rawmemchr.c: Likewise.
58301         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58302         module.
58303         * modules/strchrnul (Depends-on): Add rawmemchr.
58304         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58305
58306         Whitespace cleanup.
58307         * tests/test-strchrnul.c: Reindent.
58308         * lib/strchrnul.c: Likewise.
58309
58310         Optimize and test strchrnul.
58311         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58312         * modules/strchrnul-tests: New file.
58313         * tests/test-strchrnul.c: Likewise.
58314
58315         Remove intprops dependency.
58316         * modules/memchr (Depends-on): Remove intprops.
58317         * modules/memrchr (Depends-on): Likewise.
58318         * modules/memchr2 (Depends-on): Likewise.
58319         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58320         * lib/memrchr.c (__memrchr): Likewise.
58321         * lib/memrchr2.c (memchr2): Likewise.
58322         Reported by Simon Josefsson.
58323
58324 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58325
58326         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58327         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58328
58329 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58330
58331         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58332
58333         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58334
58335         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58336
58337         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58338         declarations.
58339         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58340
58341         * m4/inet_pton.m4: Don't check for header files.
58342
58343         * m4/inet_ntop.m4: Don't check for header files.
58344
58345 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58346
58347         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58348         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58349         trigger for cygwin).
58350         Reported by Bruno Haible  <bruno@clisp.org>.
58351
58352 2008-04-28  Bruno Haible  <bruno@clisp.org>
58353
58354         * doc/posix-functions/strdup.texi: Mention mingw problem.
58355
58356 2008-04-27  Bruno Haible  <bruno@clisp.org>
58357
58358         * modules/stat-time-tests (Depends-on): Add sleep.
58359         * tests/test-stat-time.c (force_unlink): New function.
58360         (cleanup): Use it.
58361         (test_mtime): Remove the ctime related tests.
58362         (test_ctime): New function, containing the ctime related tests.
58363         (main): Call test_ctime, except on native Windows platforms.
58364
58365 2008-04-27  Bruno Haible  <bruno@clisp.org>
58366
58367         * lib/rpmatch.c (rpmatch): Add some comments.
58368         Reported by James Youngman <jay@gnu.org>.
58369
58370 2008-04-27  Bruno Haible  <bruno@clisp.org>
58371
58372         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58373         quiet NaNs.
58374
58375 2008-04-27  Bruno Haible  <bruno@clisp.org>
58376
58377         Make test-yesno.sh work on mingw.
58378         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58379         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58380         (main): Set stdin to binary mode.
58381         * modules/yesno-tests (Depends-on): Add binary-io.
58382
58383 2008-04-27  Bruno Haible  <bruno@clisp.org>
58384
58385         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58386         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58387         argument that lie outside the IEEE 854 domain.
58388         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58389         (gl_ISFINITE): Use it.
58390         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58391
58392 2008-04-27  Bruno Haible  <bruno@clisp.org>
58393
58394         Allow local renaming in config.h.
58395         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58396
58397 2008-04-27  Bruno Haible  <bruno@clisp.org>
58398
58399         * lib/memchr.c (__memchr): Change type of 'i'.
58400         * lib/memchr2.c (memchr2): Likewise.
58401
58402 2008-04-26  Eric Blake  <ebb9@byu.net>
58403         and Bruno Haible  <bruno@clisp.org>
58404
58405         Optimize and test memrchr.
58406         * modules/memrchr (Depends-on): Add intprops.
58407         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58408         * modules/memrchr-tests: New file.
58409         * tests/test-memrchr.c: New file.
58410
58411 2008-04-26  Bruno Haible  <bruno@clisp.org>
58412
58413         Add tentative support for DragonFly BSD.
58414         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58415         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58416         fp.
58417         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58418         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58419         * lib/fpurge.c (fpurge): Likewise.
58420         * lib/freadable.c (freaadable): Likewise.
58421         * lib/freadahead.c (freadahead): Likewise.
58422         * lib/freading.c (freading): Likewise.
58423         * lib/freadptr.c (freadptr): Likewise.
58424         * lib/freadseek.c (freadptrinc): Likewise.
58425         * lib/fseeko.c (fseeko): Likewise.
58426         * lib/fseterr.c (fseterr): Likewise.
58427         * lib/fwritable.c (fwritable): Likewise.
58428         * lib/fwriting.c (fwriting): Likewise.
58429
58430 2008-04-26  Bruno Haible  <bruno@clisp.org>
58431
58432         * lib/stdio-impl.h: New file.
58433         * lib/fbufmode.c: Include stdio-impl.h.
58434         (fbufmode): Use fp_, remove redundant #defines.
58435         * lib/fflush.c: Include stdio-impl.h.
58436         (clear_ungetc_buffer): Remove redundant #defines.
58437         * lib/fpurge.c: Include stdio-impl.h.
58438         (fpurge): Remove redundant #defines.
58439         * lib/freadable.c: Include stdio-impl.h.
58440         (freadable): Remove redundant #defines.
58441         * lib/freadahead.c: Include stdio-impl.h.
58442         (freadahead): Remove redundant #defines.
58443         * lib/freading.c: Include stdio-impl.h.
58444         (freading): Remove redundant #defines.
58445         * lib/freadptr.c: Include stdio-impl.h.
58446         (freadptr): Remove redundant #defines.
58447         * lib/freadseek.c: Include stdio-impl.h.
58448         (freadptrinc): Remove redundant #defines.
58449         * lib/fseeko.c: Include stdio-impl.h.
58450         (rpl_fseeko): Remove redundant #defines.
58451         * lib/fseterr.c: Include stdio-impl.h.
58452         (fseterr): Remove redundant #defines.
58453         * lib/fwritable.c: Include stdio-impl.h.
58454         (fwritable: Remove redundant #defines.
58455         * lib/fwriting.c: Include stdio-impl.h.
58456         (fwriting): Remove redundant #defines.
58457         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58458         * modules/fflush (Files): Likewise.
58459         * modules/fpurge (Files): Likewise.
58460         * modules/freadable (Files): Likewise.
58461         * modules/freadahead (Files): Likewise.
58462         * modules/freading (Files): Likewise.
58463         * modules/freadptr (Files): Likewise.
58464         * modules/freadseek (Files): Likewise.
58465         * modules/fseeko (Files): Likewise.
58466         * modules/fseterr (Files): Likewise.
58467         * modules/fwritable (Files): Likewise.
58468         * modules/fwriting (Files): Likewise.
58469
58470 2008-04-26  Bruno Haible  <bruno@clisp.org>
58471
58472         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58473         restore_seek_optimization, update_fpos_cache): New functions, extracted
58474         from rpl_fflush.
58475         (rpl_fflush): Use them.
58476         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58477         (gl_REPLACE_FFLUSH): Use it.
58478
58479 2008-04-26  Bruno Haible  <bruno@clisp.org>
58480
58481         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58482         on Solaris.
58483         * tests/test-xstrtoimax.sh: Likewise.
58484         * tests/test-xstrtoumax.sh: Likewise.
58485         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58486
58487 2008-04-26  Bruno Haible  <bruno@clisp.org>
58488
58489         * modules/memchr-tests: New file.
58490         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58491
58492 2008-04-26  Eric Blake  <ebb9@byu.net>
58493             Bruno Haible  <bruno@clisp.org>
58494
58495         * lib/memchr.c: Include intprops.h.
58496         (__memchr): Optimize parallel detection of matching bytes. Rename local
58497         variables. Add explanatory comments.
58498
58499 2008-04-26  Bruno Haible  <bruno@clisp.org>
58500
58501         Fix module 'memchr', broken since 2000-10-28.
58502         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58503
58504 2008-04-26  Bruno Haible  <bruno@clisp.org>
58505
58506         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58507         comments.
58508
58509 2008-04-25  Eric Blake  <ebb9@byu.net>
58510
58511         Use native fstatat on cygwin 1.7.0.
58512         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58513         first.
58514
58515 2008-04-23  Eric Blake  <ebb9@byu.net>
58516
58517         Improve memchr2 performance.
58518         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58519         NUL bytes.
58520         * modules/memchr2 (Depends-on): Use intprops.h.
58521
58522 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58523
58524         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58525         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58526         <blp@cs.stanford.edu>.
58527
58528 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58529
58530         * lib/arpa_inet.in.h: New file.
58531
58532         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58533         (Makefile.am): Sed in substitute header file.
58534
58535         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58536         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58537
58538         * modules/inet_ntop (configure.ac): Use
58539         gl_ARPA_INET_MODULE_INDICATOR.
58540
58541         * modules/inet_pton (configure.ac): Use
58542         gl_ARPA_INET_MODULE_INDICATOR.
58543
58544 2008-04-22  Jim Meyering  <meyering@redhat.com>
58545
58546         * modules/verify (License): Re-license as LGPLv2+.
58547
58548 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58549
58550         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58551         parameter to void* as per POSIX standard (MinGW uses char*).
58552
58553 2008-04-21  Bruno Haible  <bruno@clisp.org>
58554
58555         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58556         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58557         Define to replacements if REPLACE_ISWCNTRL is 1.
58558         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58559         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58560         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58561         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58562         what it fixes.
58563         * doc/posix-functions/iswalpha.texi: Likewise.
58564         * doc/posix-functions/iswblank.texi: Likewise.
58565         * doc/posix-functions/iswcntrl.texi: Likewise.
58566         * doc/posix-functions/iswdigit.texi: Likewise.
58567         * doc/posix-functions/iswgraph.texi: Likewise.
58568         * doc/posix-functions/iswlower.texi: Likewise.
58569         * doc/posix-functions/iswprint.texi: Likewise.
58570         * doc/posix-functions/iswpunct.texi: Likewise.
58571         * doc/posix-functions/iswspace.texi: Likewise.
58572         * doc/posix-functions/iswupper.texi: Likewise.
58573         * doc/posix-functions/iswxdigit.texi: Likewise.
58574         Reported by Alain Guibert.
58575
58576 2008-04-21  Bruno Haible  <bruno@clisp.org>
58577
58578         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58579         Patch by Alain Guibert.
58580
58581 2008-04-21  Bruno Haible  <bruno@clisp.org>
58582
58583         Fix test failures on mingw.
58584         * tests/test-xstrtol.c (print_no_progname): New function.
58585         (main): Install it in error_print_progname hook.
58586         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58587         * tests/test-xstrtoimax.sh: Likewise.
58588         * tests/test-xstrtoumax.sh: Likewise.
58589
58590 2008-04-21  Bruno Haible  <bruno@clisp.org>
58591
58592         Fix test failure on mingw.
58593         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58594
58595 2008-04-21  Bruno Haible  <bruno@clisp.org>
58596
58597         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58598         Actually assign a value.
58599
58600 2008-04-20  Bruno Haible  <bruno@clisp.org>
58601
58602         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
58603         take 2.
58604         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58605         'canonicalize-lgpl' module is also used.
58606         * lib/canonicalize-lgpl.c: Undo last change.
58607         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
58608
58609 2008-04-20  Bruno Haible  <bruno@clisp.org>
58610
58611         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
58612         config.h. Provide _mkdir based fallback for mingw.
58613         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
58614         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
58615         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
58616         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
58617         rather than defining mkdir in config.h.
58618         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
58619         (gl_SYS_STAT_H_DEFAULTS): New macro.
58620         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
58621         HAVE_IO_H any more.
58622         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
58623         HAVE_DECL_MKDIR and HAVE_IO_H.
58624
58625 2008-04-20  Bruno Haible  <bruno@clisp.org>
58626
58627         * lib/isapipe.c: Port to native Windows platforms.
58628
58629 2008-04-20  Bruno Haible  <bruno@clisp.org>
58630
58631         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
58632
58633 2008-04-21  Eric Blake  <ebb9@byu.net>
58634
58635         Work around preprocessors that don't handle UINTMAX_MAX.
58636         * lib/memchr2.c (memchr2): Avoid embedded #if.
58637         Reported by Alain Guibert, fix suggested by Bruno Haible.
58638
58639 2008-04-21  Simon Josefsson  <simon@josefsson.org>
58640
58641         * doc/posix-functions/strftime.texi (strftime): Explain better
58642         Windows incompatibility.  Suggested by Micah Cowan
58643         <micah@cowan.name>.
58644
58645 2008-04-20  Bruno Haible  <bruno@clisp.org>
58646
58647         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
58648         unistr/u8-mblen.
58649
58650 2008-04-20  Bruno Haible  <bruno@clisp.org>
58651
58652         Fix test failure on platforms with non-GNU iconv.
58653         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
58654         (U_TO_U8): Use it, rather than u16_to_u8.
58655         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
58656         units at the end of the input string.
58657         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
58658
58659 2008-04-20  Bruno Haible  <bruno@clisp.org>
58660
58661         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
58662         when the resulting length is 0.
58663         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
58664
58665 2008-04-20  Bruno Haible  <bruno@clisp.org>
58666
58667         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
58668         works.
58669         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
58670
58671 2008-04-20  Bruno Haible  <bruno@clisp.org>
58672
58673         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
58674         * modules/tsearch-tests (configure.ac): Test for initstate function.
58675
58676 2008-04-20  Bruno Haible  <bruno@clisp.org>
58677
58678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
58679         for nlink_t if missing.
58680         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
58681
58682 2008-04-19  Bruno Haible  <bruno@clisp.org>
58683
58684         Work around snprintf bug on Linux libc5.
58685         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
58686         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58687         gl_SNPRINTF_SIZE1.
58688         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58689         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
58690         that test failed.
58691         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
58692         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
58693         * modules/snprintf (Files): Add m4/printf.m4.
58694         * modules/vsnprintf (Files): Likewise.
58695         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
58696         * doc/posix-functions/vsnprintf.texi: Likewise.
58697
58698 2008-04-19  Bruno Haible  <bruno@clisp.org>
58699
58700         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
58701         from 0.0058 to less than 10^-7.
58702
58703 2008-04-19  Bruno Haible  <bruno@clisp.org>
58704
58705         Fix rounding when a precision is given.
58706         * lib/vasnprintf.c (is_borderline): New function.
58707         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
58708         9...9x.
58709         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
58710         %e, %g.
58711         * tests/test-vasprintf-posix.c (test_function): Likewise.
58712         * tests/test-snprintf-posix.h (test_function): Likewise.
58713         * tests/test-sprintf-posix.h (test_function): Likewise.
58714         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
58715         * tests/test-printf-posix.h (test_function): Likewise.
58716         * tests/test-printf-posix.output: Update.
58717         Reported by John Darrington <john@darrington.wattle.id.au> via
58718         Ben Pfaff <blp@cs.stanford.edu>.
58719
58720 2008-04-18  Simon Josefsson  <simon@josefsson.org>
58721
58722         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
58723         Suggested by Bruno Haible <bruno@clisp.org>.
58724
58725 2008-04-17  Bruno Haible  <bruno@clisp.org>
58726
58727         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
58728         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
58729         implementation.
58730         Patch by Bruce Merry <bmerry@gmail.com>.
58731
58732 2008-04-17  Simon Josefsson  <simon@josefsson.org>
58733
58734         * doc/posix-functions/strftime.texi (strftime): Mention that %e
58735         doesn't work under Windows.
58736
58737 2008-04-16  Bruno Haible  <bruno@clisp.org>
58738
58739         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
58740         New macros.
58741         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
58742         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
58743         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
58744         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
58745         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
58746         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
58747         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
58748         macros.
58749         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
58750         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
58751         Northern Sotho, Uighur.
58752
58753 2008-04-16  Bruno Haible  <bruno@clisp.org>
58754
58755         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
58756         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
58757         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
58758         Reported by Daniel Bergström <daniel@octocode.com>.
58759
58760 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
58761             Bruno Haible  <bruno@clisp.org>
58762
58763         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
58764         function.
58765         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
58766         New functions, mostly extracted from gl_locale_name_default.
58767         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
58768
58769 2008-04-16  Eric Blake  <ebb9@byu.net>
58770
58771         Adjust strtod detection to catch glibc 2.7 bug.
58772         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
58773         Reported by John Gatewood Ham.
58774
58775 2008-04-16  Bruno Haible  <bruno@clisp.org>
58776
58777         Add tentative support for Linux libc5.
58778         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
58779         * lib/fpurge.c (fpurge): Likewise.
58780         * lib/freadable.c (freadable): Likewise.
58781         * lib/freadahead.c (freadahead): Likewise.
58782         * lib/freading.c (freading): Likewise.
58783         * lib/freadptr.c (freadptr): Likewise.
58784         * lib/freadseek.c (freadptrinc): Likewise.
58785         * lib/fseeko.c (rpl_fseeko): Likewise.
58786         * lib/fseterr.c (fseterr): Likewise.
58787         * lib/fwritable.c (fwritable): Likewise.
58788         * lib/fwriting.c (fwriting): Likewise.
58789         Reported by Alain Guibert <alguibert+bts@free.fr>.
58790
58791 2008-04-15  Bruno Haible  <bruno@clisp.org>
58792
58793         * modules/mathl (configure.ac): Define module indicator.
58794
58795 2008-04-15  Bruno Haible  <bruno@clisp.org>
58796
58797         * lib/logl.c (logl): Remove unused variables.
58798
58799 2008-04-15  Bruno Haible  <bruno@clisp.org>
58800
58801         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
58802         fails.
58803
58804 2008-04-15  Bruno Haible  <bruno@clisp.org>
58805
58806         * lib/trim.c (trim2): Fix argument of isspace() macro.
58807
58808 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
58809
58810         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
58811         to 0.
58812         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
58813
58814 2008-04-14  Bruno Haible  <bruno@clisp.org>
58815
58816         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
58817         AC_LANG_PROGRAM argument.
58818         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
58819         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
58820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58821         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58822         * m4/math_h.m4 (gl_MATH_H): Likewise.
58823         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58824         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58825         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58826         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
58827         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58828         * m4/regex.m4 (gl_REGEX): Likewise.
58829         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
58830         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
58831         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58832         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
58833         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58834         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58835         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58836         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58837
58838 2008-04-14  Jim Meyering  <meyering@redhat.com>
58839
58840         test-strtod: fix typos: s/abs/fabs/
58841         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
58842
58843 2008-04-13  Bruno Haible  <bruno@clisp.org>
58844
58845         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
58846         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
58847         module is also used and while not building the reloc-wrapper.
58848
58849 2008-04-13  Bruno Haible  <bruno@clisp.org>
58850
58851         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
58852
58853 2008-04-13  Bruno Haible  <bruno@clisp.org>
58854
58855         Fix AIX compilation failure introduced on 2008-04-02.
58856         * tests/test-frexp.c (exp): Undefine before redefining.
58857         * tests/test-frexpl.c (exp): Likewise.
58858
58859 2008-04-13  Bruno Haible  <bruno@clisp.org>
58860
58861         Work around a HP-UX stdio bug.
58862         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
58863         * tests/test-ftello.c (main): Likewise.
58864         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
58865         * doc/posix-functions/ftello.texi: Likewise.
58866
58867 2008-04-13  Bruno Haible  <bruno@clisp.org>
58868
58869         Make test-signbit pass on HP-UX/hppa.
58870         * tests/test-signbit.c (minus_zerol): New variable.
58871         (test_signbitl): Use it.
58872
58873 2008-04-13  Bruno Haible  <bruno@clisp.org>
58874
58875         Make truncl work on OSF/1 4.0.
58876         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
58877         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58878         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
58880         HAVE_DECL_TRUNCL.
58881         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
58882         HAVE_DECL_TRUNCL.
58883         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
58884
58885 2008-04-13  Bruno Haible  <bruno@clisp.org>
58886
58887         * lib/unictype.h: Remove trailing comma from enumeration definitions.
58888
58889 2008-04-13  Bruno Haible  <bruno@clisp.org>
58890
58891         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
58892         expression, so as to avoid HP-UX 11 cc compiler bug.
58893
58894 2008-04-13  Bruno Haible  <bruno@clisp.org>
58895
58896         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
58897
58898 2008-04-13  Bruno Haible  <bruno@clisp.org>
58899
58900         * lib/git-merge-changelog.c: Remove empty declaration outside of
58901         functions.
58902
58903 2008-04-13  Bruno Haible  <bruno@clisp.org>
58904
58905         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
58906
58907 2008-04-13  Bruno Haible  <bruno@clisp.org>
58908
58909         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
58910         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
58911         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
58912         also if it exists but lacks definitions of the SHUT_* macros.
58913         * modules/sys_socket (Description): Update.
58914         Reported by Elbert Pol <e.pol@chello.nl>.
58915
58916 2008-04-13  Bruno Haible  <bruno@clisp.org>
58917
58918         * lib/localcharset.c (OS2): Don't redefine if already defined.
58919         Reported by Elbert Pol <e.pol@chello.nl>.
58920
58921 2008-04-13  Bruno Haible  <bruno@clisp.org>
58922
58923         * lib/binary-io.h [__EMX__]: Include <io.h>.
58924         Reported by Elbert Pol <e.pol@chello.nl>.
58925
58926 2008-04-12  Bruno Haible  <bruno@clisp.org>
58927
58928         * lib/fpucw.h: Enable the definitions also for x86_64.
58929         Needed for NetBSD/x86_64.
58930         Reported by Thomas Klausner <tk@giga.or.at>.
58931
58932 2008-04-12  Bruno Haible  <bruno@clisp.org>
58933
58934         * tests/test-strtod.c: Include isnand.h.
58935         (main): Use isnand instead of isnan.
58936         Reported by Jim Meyering.
58937
58938 2008-04-12  Bruno Haible  <bruno@clisp.org>
58939
58940         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
58941         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58942
58943 2008-04-12  Jim Meyering  <meyering@redhat.com>
58944
58945         * m4/math_h.m4 (gl_MATH_H): Fix typos.
58946
58947 2008-04-12  Bruno Haible  <bruno@clisp.org>
58948
58949         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
58950         Reported by Elbert Pol <e.pol@chello.nl>.
58951
58952 2008-04-12  Eric Blake  <ebb9@byu.net>
58953
58954         Work around Solaris 10 math.h bug.
58955         * m4/math_h.m4 (gl_MATH_H): Check for bug.
58956         (gl_MATH_H_DEFAULTS): Set up default.
58957         * modules/math (Makefile.am): Replace new indicators.
58958         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
58959         * tests/test-math.c (main): Test this.
58960         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
58961         * doc/posix-headers/math.texi (math.h): Mention bug.
58962         Reported by Nelson H. F. Beebe and Jim Meyering.
58963
58964 2008-04-11  Bruno Haible  <bruno@clisp.org>
58965
58966         Adapt to future versions of Apple GCC.
58967         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
58968         Reported by Peter O'Gorman <peter@pogma.com>.
58969
58970 2008-04-11  Bruno Haible  <bruno@clisp.org>
58971
58972         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
58973
58974 2008-04-11  Bruno Haible  <bruno@clisp.org>
58975
58976         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
58977
58978         * modules/getaddrinfo-tests (Makefile.am): Define
58979         test_getaddrinfo_LDADD.
58980
58981 2008-04-11  Bruno Haible  <bruno@clisp.org>
58982
58983         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
58984         (init): Fix syntax error.
58985         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
58986         is declared.
58987
58988 2008-04-11  Bruno Haible  <bruno@clisp.org>
58989
58990         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
58991         * modules/glob (Depends-on): Add stdbool.
58992
58993 2008-04-11  Bruno Haible  <bruno@clisp.org>
58994
58995         * lib/trim.c: Include <string.h>.
58996
58997 2008-04-11  Eric Blake  <ebb9@byu.net>
58998
58999         Avoid compile failure on OS/2.
59000         * lib/regex_internal.h (internal_function): Disable optimization
59001         on OS/2 (__EMX__), where it caused compiler error.
59002         Reported by Elbert Pol.
59003
59004 2008-04-11  Bruno Haible  <bruno@clisp.org>
59005
59006         Flush the standard error stream before aborting. Needed on mingw.
59007         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59008         * tests/test-array_list.c (ASSERT): Likewise.
59009         * tests/test-array_oset.c (ASSERT): Likewise.
59010         * tests/test-avltree_list.c (ASSERT): Likewise.
59011         * tests/test-avltree_oset.c (ASSERT): Likewise.
59012         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59013         * tests/test-binary-io.c (ASSERT): Likewise.
59014         * tests/test-byteswap.c (ASSERT): Likewise.
59015         * tests/test-c-ctype.c (ASSERT): Likewise.
59016         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59017         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59018         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59019         * tests/test-c-strstr.c (ASSERT): Likewise.
59020         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59021         * tests/test-canonicalize.c (ASSERT): Likewise.
59022         * tests/test-carray_list.c (ASSERT): Likewise.
59023         * tests/test-ceilf1.c (ASSERT): Likewise.
59024         * tests/test-ceilf2.c (ASSERT): Likewise.
59025         * tests/test-ceill.c (ASSERT): Likewise.
59026         * tests/test-count-one-bits.c (ASSERT): Likewise.
59027         * tests/test-fbufmode.c (ASSERT): Likewise.
59028         * tests/test-fflush2.c (ASSERT): Likewise.
59029         * tests/test-floorf1.c (ASSERT): Likewise.
59030         * tests/test-floorf2.c (ASSERT): Likewise.
59031         * tests/test-floorl.c (ASSERT): Likewise.
59032         * tests/test-fopen.c (ASSERT): Likewise.
59033         * tests/test-fpending.c (ASSERT): Likewise.
59034         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59035         * tests/test-fpurge.c (ASSERT): Likewise.
59036         * tests/test-freadable.c (ASSERT): Likewise.
59037         * tests/test-freadahead.c (ASSERT): Likewise.
59038         * tests/test-freading.c (ASSERT): Likewise.
59039         * tests/test-freadptr.c (ASSERT): Likewise.
59040         * tests/test-freadptr2.c (ASSERT): Likewise.
59041         * tests/test-freadseek.c (ASSERT): Likewise.
59042         * tests/test-freopen.c (ASSERT): Likewise.
59043         * tests/test-frexp.c (ASSERT): Likewise.
59044         * tests/test-frexpl.c (ASSERT): Likewise.
59045         * tests/test-fseek.c (ASSERT): Likewise.
59046         * tests/test-fseeko.c (ASSERT): Likewise.
59047         * tests/test-fstrcmp.c (ASSERT): Likewise.
59048         * tests/test-ftell.c (ASSERT): Likewise.
59049         * tests/test-ftello.c (ASSERT): Likewise.
59050         * tests/test-func.c (ASSERT): Likewise.
59051         * tests/test-fwritable.c (ASSERT): Likewise.
59052         * tests/test-fwriting.c (ASSERT): Likewise.
59053         * tests/test-getdelim.c (ASSERT): Likewise.
59054         * tests/test-getline.c (ASSERT): Likewise.
59055         * tests/test-i-ring.c (ASSERT): Likewise.
59056         * tests/test-iconv-utf.c (ASSERT): Likewise.
59057         * tests/test-iconv.c (ASSERT): Likewise.
59058         * tests/test-isfinite.c (ASSERT): Likewise.
59059         * tests/test-isnand.c (ASSERT): Likewise.
59060         * tests/test-isnanf.c (ASSERT): Likewise.
59061         * tests/test-isnanl.h (ASSERT): Likewise.
59062         * tests/test-ldexpl.c (ASSERT): Likewise.
59063         * tests/test-linked_list.c (ASSERT): Likewise.
59064         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59065         * tests/test-localename.c (ASSERT): Likewise.
59066         * tests/test-lseek.c (ASSERT): Likewise.
59067         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59068         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59069         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59070         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59071         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59072         * tests/test-mbschr.c (ASSERT): Likewise.
59073         * tests/test-mbscspn.c (ASSERT): Likewise.
59074         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59075         * tests/test-mbspbrk.c (ASSERT): Likewise.
59076         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59077         * tests/test-mbsrchr.c (ASSERT): Likewise.
59078         * tests/test-mbsspn.c (ASSERT): Likewise.
59079         * tests/test-mbsstr1.c (ASSERT): Likewise.
59080         * tests/test-mbsstr2.c (ASSERT): Likewise.
59081         * tests/test-mbsstr3.c (ASSERT): Likewise.
59082         * tests/test-memchr2.c (ASSERT): Likewise.
59083         * tests/test-memmem.c (ASSERT): Likewise.
59084         * tests/test-open.c (ASSERT): Likewise.
59085         * tests/test-printf-frexp.c (ASSERT): Likewise.
59086         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59087         * tests/test-printf-posix.c (ASSERT): Likewise.
59088         * tests/test-quotearg.c (ASSERT): Likewise.
59089         * tests/test-rbtree_list.c (ASSERT): Likewise.
59090         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59091         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59092         * tests/test-round1.c (ASSERT): Likewise.
59093         * tests/test-roundf1.c (ASSERT): Likewise.
59094         * tests/test-roundl.c (ASSERT): Likewise.
59095         * tests/test-signbit.c (ASSERT): Likewise.
59096         * tests/test-sleep.c (ASSERT): Likewise.
59097         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59098         * tests/test-snprintf.c (ASSERT): Likewise.
59099         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59100         * tests/test-stat-time.c (ASSERT): Likewise.
59101         * tests/test-strcasestr.c (ASSERT): Likewise.
59102         * tests/test-strerror.c (ASSERT): Likewise.
59103         * tests/test-striconv.c (ASSERT): Likewise.
59104         * tests/test-striconveh.c (ASSERT): Likewise.
59105         * tests/test-striconveha.c (ASSERT): Likewise.
59106         * tests/test-strsignal.c (ASSERT): Likewise.
59107         * tests/test-strstr.c (ASSERT): Likewise.
59108         * tests/test-strtod.c (ASSERT): Likewise.
59109         * tests/test-trunc1.c (ASSERT): Likewise.
59110         * tests/test-trunc2.c (ASSERT): Likewise.
59111         * tests/test-truncf1.c (ASSERT): Likewise.
59112         * tests/test-truncf2.c (ASSERT): Likewise.
59113         * tests/test-truncl.c (ASSERT): Likewise.
59114         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59115         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59116         * tests/test-vasnprintf.c (ASSERT): Likewise.
59117         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59118         * tests/test-vasprintf.c (ASSERT): Likewise.
59119         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59120         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59121         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59122         * tests/test-vsnprintf.c (ASSERT): Likewise.
59123         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59124         * tests/test-wcwidth.c (ASSERT): Likewise.
59125         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59126         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59127         * tests/test-xvasprintf.c (ASSERT): Likewise.
59128         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59129         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59130         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59131         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59132         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59133         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59134         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59135         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59136         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59137         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59138         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59139         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59140         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59141         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59142         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59143         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59144         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59145         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59146         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59147         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59148         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59149         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59150         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59151         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59152         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59153         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59154         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59155         * tests/unictype/test-combining.c (ASSERT): Likewise.
59156         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59157         * tests/unictype/test-digit.c (ASSERT): Likewise.
59158         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59159         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59160         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59161         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59162         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59163         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59164         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59165         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59166         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59167         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59168         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59169         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59170         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59171         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59172         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59173         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59174         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59175         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59176         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59177         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59178         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59179         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59180         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59181         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59182         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59183         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59184         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59185         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59186         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59187         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59188         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59189         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59190         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59191         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59192         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59193         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59194         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59195         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59196         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59197         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59198         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59199         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59200         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59201         Reported by Eric Blake.
59202
59203 2008-04-11  Bruno Haible  <bruno@clisp.org>
59204
59205         * lib/wchar.in.h: Tweak comment.
59206
59207 2008-04-11  Bruno Haible  <bruno@clisp.org>
59208
59209         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59210         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59211         gl_COMMON.
59212         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59213
59214 2008-04-11  Bruno Haible  <bruno@clisp.org>
59215
59216         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59217
59218 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59219
59220         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59221         of attempting to use non-existing /dev/*random.  Based on patch
59222         from Adam Strzelecki <ono@java.pl> in
59223         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59224
59225 2008-04-08  Bruno Haible  <bruno@clisp.org>
59226
59227         Add tentative support for emx+gcc.
59228         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59229         * lib/fpurge.c (fpurge): Likewise.
59230         * lib/freadable.c (freadable): Likewise.
59231         * lib/freadahead.c (freadahead): Likewise.
59232         * lib/freading.c (freading): Likewise.
59233         * lib/freadptr.c (freadptr): Likewise.
59234         * lib/freadseek.c (freadptrinc): Likewise.
59235         * lib/fseeko.c (rpl_fseeko): Likewise.
59236         * lib/fseterr.c (fseterr): Likewise.
59237         * lib/fwritable.c (fwritable): Likewise.
59238         * lib/fwriting.c (fwriting): Likewise.
59239         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59240
59241 2008-04-09  Eric Blake  <ebb9@byu.net>
59242
59243         Avoid some autoconf warnings.
59244         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59245         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59246         * m4/afs.m4 (gl_AFS): Likewise.
59247         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59248         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59249         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59250         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59251         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59252         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59253         (AC_CHECK_DECLS_ONCE): Likewise.
59254         Rename file...
59255         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59256         gnulib-tool requires autoconf 2.59 or better.
59257         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59258
59259 2008-04-08  Eric Blake  <ebb9@byu.net>
59260
59261         Use 'git describe --match' if present (added in git 1.5.5).
59262         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59263         if possible.
59264
59265 2008-04-08  Bruno Haible  <bruno@clisp.org>
59266
59267         Add tentative support for OpenServer.
59268         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59269         _ptr, _cnt.
59270         * lib/fpurge.c (fpurge): Likewise.
59271         * lib/freadable.c (freadable): Likewise.
59272         * lib/freadahead.c (freadahead): Likewise.
59273         * lib/freading.c (freading): Likewise.
59274         * lib/freadptr.c (freadptr): Likewise.
59275         * lib/freadseek.c (freadptrinc): Likewise.
59276         * lib/fseeko.c (rpl_fseeko): Likewise.
59277         * lib/fseterr.c (fseterr): Likewise.
59278         * lib/fwritable.c (fwritable): Likewise.
59279         * lib/fwriting.c (fwriting): Likewise.
59280         Reported by Roger Cornelius <rac@tenzing.org> and
59281         Brian K. White <brian@aljex.com>.
59282
59283 2008-04-06  Jim Meyering  <meyering@redhat.com>
59284
59285         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59286
59287 2008-04-06  Bruno Haible  <bruno@clisp.org>
59288
59289         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59290         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59291         * tests/test-printf-posix.sh: Likewise.
59292         * tests/test-vfprintf-posix.sh: Likewise.
59293         * tests/test-vprintf-posix.sh: Likewise.
59294         * tests/test-xprintf-posix.sh: Likewise.
59295
59296 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59297
59298         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59299         hide error from 'ls', needed on OS/2.
59300         Report by Elbert Pol <elbert.pol@gmail.com>.
59301
59302 2008-04-04  Eric Blake  <ebb9@byu.net>
59303
59304         Make test-fseeko.c failures meaningful.
59305         * tests/test-fseeko.c: Print line number on failure.
59306         * tests/test-fseek.c: Likewise.
59307         Reported by Nelson H. F. Beebe.
59308
59309         Improve strtod bug detection check.
59310         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59311         required for Solaris 10.
59312         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59313
59314 2008-04-04  Bruno Haible  <bruno@clisp.org>
59315
59316         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59317         by m4/setenv.m4.
59318
59319 2008-04-03  Eric Blake  <ebb9@byu.net>
59320
59321         Ensure sane .version contents.
59322         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59323         version string.
59324         * build-aux/git-version-gen: Improve documentation.
59325
59326         Make GNU make output nicer.
59327         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59328         MAKECMDGOALS to enforce message for all command line targets.  Set
59329         srcdir for use in maint.mk.
59330
59331         Another maintainer tweak.
59332         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59333         a target that regenerates version.
59334
59335 2008-04-03  Jim Meyering  <meyering@redhat.com>
59336
59337         vc-list-files: don't cause coreutils "make po-check" failure
59338         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59339
59340 2008-04-03  Eric Blake  <ebb9@byu.net>
59341
59342         Allow VPATH usage of vc-list-files.
59343         * build-aux/vc-list-files (scriptversion): Add timestamp.
59344         (options): Add --help, --version, -C.
59345         (CVS): Support installed cvsu.
59346
59347 2008-04-02  Bruno Haible  <bruno@clisp.org>
59348
59349         Avoid some "statement with no effect" warnings from gcc.
59350         * tests/test-wctype.c (main): Explicitly ignore unused values.
59351         Reported by Jim Meyering.
59352
59353 2008-04-02  Jim Meyering  <meyering@redhat.com>
59354
59355         Avoid some warnings from "gcc -Wshadow".
59356         * tests/test-frexp.c (exp): Define to a different identifier.
59357         * tests/test-frexpl.c (exp): Likewise.
59358
59359 2008-04-03  Jim Meyering  <meyering@redhat.com>
59360
59361         bootstrap: remove dangling *.[ch] symlinks from lib
59362         * build-aux/bootstrap [dangling symlink removal]: Move find's
59363         -depth option to precede all others, to avoid a warning.
59364         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59365
59366 2008-04-02  Bruno Haible  <bruno@clisp.org>
59367
59368         Avoid some warnings from "gcc -Wshadow".
59369         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59370         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59371         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59372         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59373         Reported by Jim Meyering.
59374
59375 2008-04-01  Bruno Haible  <bruno@clisp.org>
59376
59377         Fix test to work on IRIX 6.5 with cc.
59378         * tests/test-math.c (numeric_equal): New function.
59379         (main): Use it.
59380
59381 2008-04-01  Bruno Haible  <bruno@clisp.org>
59382
59383         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59384
59385 2008-04-01  Bruno Haible  <bruno@clisp.org>
59386
59387         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59388         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59389         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59390         (Depends-on): Remove math.
59391
59392         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59393         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59394         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59395         (Depends-on): Remove math.
59396
59397         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59398         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59399         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59400         (Depends-on): Remove math.
59401         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59402         (Depends-on): Remove math.
59403
59404         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59405         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59406         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59407         (Depends-on): Remove math.
59408         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59409         (Depends-on): Remove math.
59410
59411         * tests/test-round1.c: Include nan.h.
59412         (main): Use NaNd instead of NAN.
59413         * modules/round-tests (Files): Add tests/nan.h.
59414
59415         * tests/test-trunc1.c: Include nan.h.
59416         (main): Use NaNd instead of NAN.
59417         * modules/trunc-tests (Files): Add tests/nan.h.
59418
59419         * tests/test-roundf1.c: Include nan.h.
59420         (main): Use NaNf instead of NAN.
59421         * modules/roundf-tests (Files): Add tests/nan.h.
59422
59423         * tests/test-truncf1.c: Include nan.h.
59424         (main): Use NaNf instead of NAN.
59425         * modules/truncf-tests (Files): Add tests/nan.h.
59426
59427         * tests/test-ceilf1.c: Include nan.h.
59428         (main): Use NaNf instead of NAN.
59429         * modules/ceilf-tests (Files): Add tests/nan.h.
59430
59431         * tests/test-floorf1.c: Include nan.h.
59432         (main): Use NaNf instead of NAN.
59433         * modules/floorf-tests (Files): Add tests/nan.h.
59434
59435         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59436         (main): Use NaNf instead of NAN.
59437         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59438
59439         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59440         (main): Use NaNd instead of NAN.
59441         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59442
59443         * tests/test-frexp.c: Include nan.h.
59444         (main): Use NaNd instead of NAN.
59445         * modules/frexp-tests (Files): Add tests/nan.h.
59446
59447         * lib/isnan.c: Don't include <math.h>.
59448         (FUNC): Don't use NAN macro.
59449         * modules/isnand-nolibm (Depends-on): Remove math.
59450         * modules/isnanf-nolibm (Depends-on): Remove math.
59451         * modules/isnanl (Depends-on): Remove math.
59452         * modules/isnanl-nolibm (Depends-on): Remove math.
59453
59454         * tests/nan.h: New file.
59455
59456 2008-04-01  Eric Blake  <ebb9@byu.net>
59457
59458         Fix typos.
59459         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59460         values to be the right type.
59461
59462         For now, cater to gnulib strtod inaccuracies.
59463         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59464         fractional results.  While not as nice from a QoI perspective, it
59465         is a quicker patch than correctly implementing decimal to binary
59466         rounding.
59467
59468 2008-03-31  Eric Blake  <ebb9@byu.net>
59469
59470         Guarantee a definition of NAN.
59471         * lib/math.in.h (NAN): Define if missing.
59472         * tests/test-math.c (main): Test it.
59473         * doc/posix-headers/math.texi (math.h): Document this.
59474         * lib/isnan.c (rpl_isnand): Use it.
59475         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59476         * tests/test-floorf1.c (NaN): Likewise.
59477         * tests/test-frexp.c (NaN): Likewise.
59478         * tests/test-isnand.c (NaN): Likewise.
59479         * tests/test-isnanf.c (NaN): Likewise.
59480         * tests/test-round1.c (NaN): Likewise.
59481         * tests/test-roundf1.c (NaN): Likewise.
59482         * tests/test-snprintf-posix.h (NaN): Likewise.
59483         * tests/test-sprintf-posix.h (NaN): Likewise.
59484         * tests/test-trunc1.c (NaN): Likewise.
59485         * tests/test-truncf1.c (NaN): Likewise.
59486         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59487         * tests/test-vasprintf-posix.c (NaN): Likewise.
59488         * modules/isnand-nolibm (Depends-on): Add math.
59489         * modules/isnanf-nolibm (Depends-on): Likewise.
59490         * modules/isnanl (Depends-on): Likewise.
59491         * modules/isnanl-nolibm (Depends-on): Likewise.
59492         * modules/snprintf-posix-tests (Depends-on): Likewise.
59493         * modules/sprintf-posix-tests (Depends-on): Likewise.
59494         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59495         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59496         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59497         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59498
59499 2008-03-31  Bruno Haible  <bruno@clisp.org>
59500
59501         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59502         * doc/posix-functions/strtod.texi: Likewise.
59503
59504 2008-03-31  Bruno Haible  <bruno@clisp.org>
59505
59506         * tests/test-strtod.c (main): Don't use C99 syntax.
59507
59508 2008-03-31  Bruno Haible  <bruno@clisp.org>
59509
59510         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59511         Reported by Eric Blake.
59512
59513 2008-03-31  Jim Meyering  <meyering@redhat.com>
59514
59515         Don't compare actual signbit return values.
59516         * tests/test-strtod.c (main): Rather, compare only their
59517         zero/non-zero nature.
59518
59519 2008-03-31  Eric Blake  <ebb9@byu.net>
59520
59521         More strtod documentation.
59522         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59523         failures as distinct bugs.
59524
59525 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59526
59527         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59528         Problem reported by Erik Benada in
59529         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59530
59531 2008-03-30  Bruno Haible  <bruno@clisp.org>
59532
59533         * tests/test-strtod.c: Add comments about which assertion fails on which
59534         platform.
59535         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59536
59537 2008-03-30  Eric Blake  <ebb9@byu.net>
59538
59539         Test signbit behavior on zeros.
59540         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59541         (test_signbitd, test_signbitl): Likewise.
59542
59543         More strtod touchups.
59544         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59545         sign of negative underflow, for now.  Use .5, not .1.
59546         * doc/posix-functions/strtod.texi (strtod): Mention these
59547         limitations.
59548         Reported by Jim Meyering.
59549
59550 2008-03-30  Bruno Haible  <bruno@clisp.org>
59551
59552         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59553         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59554
59555 2008-03-30  Bruno Haible  <bruno@clisp.org>
59556
59557         Avoid failure when attempting to return empty iconv results on some
59558         platforms.
59559         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59560         allocation, don't report ENOMEM when the resulting string is empty.
59561
59562 2008-03-30  Bruno Haible  <bruno@clisp.org>
59563
59564         Fix buffer overrun.
59565         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59566         Don't consider the width for tmp_length. Check count against tmp_length
59567         before doing the padding. Ensure enough allocation during padding.
59568
59569 2008-03-30  Eric Blake  <ebb9@byu.net>
59570
59571         strtod touchups.
59572         * lib/strtod.c (strtod): Avoid compiler warnings.
59573         Reported by Jim Meyering.
59574
59575 2008-03-30  Bruno Haible  <bruno@clisp.org>
59576
59577         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59578         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59579         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59580         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59581         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59582         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59583         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59584         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59585
59586         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59587         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59588         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59589         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59590         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59591         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59592         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59593         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59594
59595         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59596         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59597         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59598         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59599         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59600         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59601         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59602         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
59603
59604         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
59605         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
59606
59607         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59608         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
59609
59610         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
59611         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
59612
59613         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
59614         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
59615         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
59616
59617         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
59618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
59619         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
59620
59621         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
59622         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
59623         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
59624
59625         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
59626         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
59627         * modules/vasprintf (Depends-on): Add EOVERFLOW.
59628
59629         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
59630         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
59631         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
59632         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
59633         (Depends-on): Add EOVERFLOW.
59634         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
59635         (Depends-on): Add EOVERFLOW.
59636         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59637         (Depends-on): Add EOVERFLOW.
59638         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59639         (Depends-on): Add EOVERFLOW.
59640         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59641         (Depends-on): Add EOVERFLOW.
59642         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59643         (Depends-on): Add EOVERFLOW.
59644         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59645         (Depends-on): Add EOVERFLOW.
59646         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59647         (Depends-on): Add EOVERFLOW.
59648
59649         * lib/sprintf.c (EOVERFLOW): Remove fallback.
59650         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
59651         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
59652
59653         * lib/snprintf.c (EOVERFLOW): Remove fallback.
59654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
59655         * modules/snprintf (Depends-on): Add EOVERFLOW.
59656
59657         * lib/poll.c (EOVERFLOW): Remove fallback.
59658         * modules/poll (Depends-on): Add EOVERFLOW.
59659
59660         * lib/getugroups.c (EOVERFLOW): Remove fallback.
59661         * modules/getugroups (Depends-on): Add EOVERFLOW.
59662
59663         * lib/getdelim.c (EOVERFLOW): Remove fallback.
59664         * modules/getdelim (Depends-on): Add EOVERFLOW.
59665
59666         * lib/ftell.c (EOVERFLOW): Remove fallback.
59667         * modules/ftell (Depends-on): Add EOVERFLOW.
59668
59669         * lib/fprintf.c (EOVERFLOW): Remove fallback.
59670         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
59671         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
59672
59673         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
59674
59675         * modules/EOVERFLOW-tests: New file.
59676         * tests/test-EOVERFLOW.c: New file.
59677
59678         * modules/EOVERFLOW: New file.
59679         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
59680
59681 2008-03-30  Bruno Haible  <bruno@clisp.org>
59682
59683         Fix bug introduced on 2007-06-10.
59684         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
59685         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
59686
59687 2008-03-30  Bruno Haible  <bruno@clisp.org>
59688
59689         Improve freadseek's efficiency after ungetc.
59690         * lib/freadseek.c: Include freadahead.h.
59691         (freadptrinc): New function, extracted from freadseek.
59692         (freadseek): Use it in a loop. Use freadahead to determine the number
59693         of loop iterations.
59694         * modules/freadseek (Depends-on): Add freadahead.
59695         (configure.ac): Require AC_C_INLINE.
59696
59697 2008-03-30  Bruno Haible  <bruno@clisp.org>
59698
59699         * lib/freadseek.c (freadseek): Don't ignore the return value of
59700         freadptr.
59701
59702 2008-03-29  Eric Blake  <ebb9@byu.net>
59703
59704         Add hex float support.
59705         * modules/strtod (Depends-on): Add c-ctype.
59706         (Link): Mention POW_LIB.
59707         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
59708         whitespace between 'e' and exponent.
59709         * tests/test-strtod.c (main): Enable hex float tests.
59710         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
59711         now provides.
59712
59713         Document various strtod bugs, with some fixes.
59714         * doc/posix-functions/strtod.texi (strtod): Document bugs with
59715         "-0x", "inf", "nan", and hex constants.
59716         * doc/posix-functions/atof.texi (atof): Likewise.
59717         * modules/stdlib (Makefile.am): Support strtod.
59718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59719         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
59720         detect additional strtod bugs.
59721         * lib/stdlib.in.h (rpl_strtod): Add declarations.
59722         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
59723         bool where appropriate.  Parse 'inf' and 'nan'.
59724         * tests/test-strtod.c: New file.
59725         * modules/strtod (Depends-on): Add stdbool, stdlib.
59726         (configure.ac): Turn on module indicator.
59727         * modules/strtod-tests: New module.
59728
59729 2008-03-29  Eric Blake  <ebb9@byu.net>
59730
59731         Fix ftell on mingw.
59732         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
59733         * modules/ftell-tests (Depends-on): Add binary-io.
59734         * modules/ftello-tests (Depends-on): Likewise.
59735         * tests/test-ftell.c (main): Enhance test to cover behavior after
59736         ungetc.  Enforce binary mode.
59737         * tests/test-ftello.c (main): Likewise.
59738
59739         Pass test-freadseek on cygwin.
59740         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
59741         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
59742         ungetc buffer.
59743
59744         * tests/test-fflush2.c (main): Fix typo.
59745
59746 2008-03-29  Bruno Haible  <bruno@clisp.org>
59747
59748         * tests/test-fflush2.c (main): Temporarily disable the contents of
59749         this test.
59750         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
59751         Reported by Eric Blake.
59752
59753 2008-03-28  Simon Josefsson  <simon@josefsson.org>
59754
59755         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
59756         (GC_SHA224_DIGEST_SIZE): Add.
59757
59758         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
59759         (gc_hash_digest_length): Likewise.
59760         (gc_hash_buffer): Likewise.
59761
59762 2008-03-25  Bruno Haible  <bruno@clisp.org>
59763
59764         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
59765         detail which gettext release to use.
59766         Reported by Simon Josefsson.
59767
59768 2008-03-26  Jim Meyering  <meyering@redhat.com>
59769
59770         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
59771         * modules/gnumakefile (clean-GNUmakefile): Also, use
59772         test ... && ... || : syntax rather than if-then ... fi.
59773
59774         gnumakefile: Don't double-quote-expand $(VPATH) value.
59775         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
59776
59777 2008-03-24  Eric Blake  <ebb9@byu.net>
59778
59779         Alter GNUmakefile to install into top directory.
59780         * modules/maintainer-makefile: Split, and add dependency...
59781         * modules/gnumakefile: to this new module.
59782         * build-aux/GNUmakefile: Move...
59783         * top/GNUmakefile: ...here.
59784         * build-aux/maint.mk: Move...
59785         * top/maint.mk: ...here.
59786         * MODULES.html.sh (Support for maintaining...): Document new
59787         module.
59788
59789 2008-03-23  Bruno Haible  <bruno@clisp.org>
59790
59791         * gnulib-tool: New options --vc-files, --no-vc-files.
59792         (func_usage): Document them.
59793         (vc_files): New variable.
59794         (func_import): Consider vc_files.
59795         (func_create_testdir): Set vc_files to empty.
59796         Suggested by Jim Meyering and Karl Berry.
59797
59798 2008-03-23  Bruno Haible  <bruno@clisp.org>
59799
59800         Fix regex compilation error on HP-UX 11.
59801         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
59802         * modules/regex (Files): Add m4/mbstate_t.m4.
59803         Reported by Ton Voon <ton.voon@altinity.com>.
59804
59805 2008-03-23  Bruno Haible  <bruno@clisp.org>
59806
59807         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
59808
59809 2008-03-23  Eric Blake  <ebb9@byu.net>
59810             Bruno Haible  <bruno@clisp.org>
59811
59812         Install files from top/ in the destination directory.
59813         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59814         augmentation also for the files from top/.
59815         (func_import, func_create_testdir): Rewrite file names:
59816         top/filename -> filename.
59817
59818 2008-03-23  Bruno Haible  <bruno@clisp.org>
59819
59820         Tweak "gnulib --version" output.
59821         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
59822
59823 2008-03-23  Bruno Haible  <bruno@clisp.org>
59824
59825         Tweak "gnulib --version" output.
59826         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
59827         rather than contents of ChangeLog, when possible.
59828
59829 2008-03-21  Eric Blake  <ebb9@byu.net>
59830
59831         More --version tweaks.
59832         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
59833         date of last ChangeLog entry.
59834
59835 2008-03-21  Jim Meyering  <meyering@redhat.com>
59836
59837         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
59838
59839 2008-03-20  Eric Blake  <ebb9@byu.net>
59840
59841         VPATH fix.
59842         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
59843
59844 2008-03-20  Simon Josefsson  <simon@josefsson.org>
59845
59846         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
59847         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
59848
59849 2008-03-20  Eric Blake  <ebb9@byu.net>
59850
59851         Sync GNUmakefile with coreutils.
59852         * build-aux/GNUmakefile (have-Makefile): Rename...
59853         (_have-Makefile): ...to this, for namespace consideration.
59854         (GNUmakefile.cfg): Include, if present.
59855         (_autoreconf): Define a default.
59856         (_is-dist-target): New rule for rebuilds to pick up intra-release
59857         version.
59858         (maint-cfg.mk): Rename...
59859         (cfg.mk): ...to this.
59860
59861 2008-03-18  Jim Meyering  <meyering@redhat.com>
59862
59863         New script and module: mktempd
59864         * MODULES.html.sh (maint+release support): Add mktempd.
59865         * build-aux/mktempd: New file.
59866         * modules/mktempd: New file.
59867
59868 2008-03-15  Jim Meyering  <meyering@redhat.com>
59869
59870         Undo last change.
59871         * lib/sha1.c, lib/md5.c: 63 != ~63.
59872         Reported by Andreas Schwab.
59873
59874         sha1.c, md5.c: Hoist a redundant expression.
59875         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
59876         "ctx->buflen" only once, before calling *_process_block.
59877         * lib/md5.c (md5_process_bytes): Likewise.
59878
59879 2008-03-14  Eric Blake  <ebb9@byu.net>
59880
59881         Bump copyright year in files generated by gnulib-tool.
59882         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
59883         gnulib-tool, rather than hard-coding it.
59884
59885         Fix 'gnulib-tool --version' output to work with git.
59886         * gnulib-tool (func_gnulib_dir): New function, extracted from...
59887         (startup): ...here.
59888         (func_version): Use it to invoke git-version-gen, rather than
59889         relying on CVS keyword expansion.  Modernize wording.
59890         (cvsdatestamp, last_checkin_date, version): Kill unused
59891         variables.
59892
59893 2008-03-12  Jim Meyering  <meyering@redhat.com>
59894
59895         Recognize optional cast of the argument to free.
59896         * build-aux/useless-if-before-free: Update regexps.
59897
59898         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
59899
59900 2008-03-11  Bruno Haible  <bruno@clisp.org>
59901
59902         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
59903         by a single package.
59904         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
59905         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
59906         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
59907         Reported by Sam Steingold <sds@gnu.org>.
59908
59909 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59910
59911         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
59912         repositories.
59913
59914 2008-03-11  Bruno Haible  <bruno@clisp.org>
59915
59916         Avoid conflicts between local macro definitions.
59917         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59918         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
59919
59920 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
59921             Bruno Haible  <bruno@clisp.org>
59922
59923         Make va_copy work with some version of xlc on AIX 5.1.
59924         * lib/stdarg.in.h: New file.
59925         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
59926         On AIX, use a <stdarg.h> file substitute.
59927         * modules/stdarg (Files): Add lib/stdarg.in.h.
59928         (Depends-on): Add include_next.
59929         (Makefile.am): Build a stdarg.h substitute if requested.
59930         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
59931
59932 2008-03-10  Bruno Haible  <bruno@clisp.org>
59933
59934         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
59935         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59936         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59937
59938 2008-03-10  Bruno Haible  <bruno@clisp.org>
59939
59940         * modules/stdlib (Depends-on): Add include_next, remove
59941         absolute-header.
59942
59943 2008-03-09  Bruno Haible  <bruno@clisp.org>
59944
59945         * lib/freadahead.h (freadahead): Document more precisely.
59946         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
59947         the sum of both buffer sizes.
59948         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
59949         * NEWS: Document the change.
59950
59951 2008-03-09  Bruno Haible  <bruno@clisp.org>
59952
59953         Extend freadptr to return also the buffer size.
59954         * lib/freadptr.h (freadptr): Add sizep argument.
59955         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
59956         (freadptr): Add sizep argument. Determine buffer size like freadahead
59957         does.
59958         * tests/test-freadptr.c: Don't include freadahead.h.
59959         (main): Adapt for new calling convention of freadptr.
59960         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
59961         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
59962         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
59963         tests/test-freadptr2.sh.
59964         (Depends): Remove freadahead.
59965         (TESTS): Add test-freadptr2.sh.
59966         (check_PROGRAMS): Add test-freadptr2.
59967
59968 2008-03-09  Bruno Haible  <bruno@clisp.org>
59969
59970         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
59971         Report and solution by Simon Josefsson.
59972
59973 2008-03-06  Bruno Haible  <bruno@clisp.org>
59974
59975         Make fflush after ungetc work on BSD platforms.
59976         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
59977         * tests/test-fflush2.c: New file.
59978         * tests/test-fflush2.sh: New file.
59979         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
59980         tests/test-fflush2.c.
59981         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
59982         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
59983
59984 2008-03-06  Eric Blake  <ebb9@byu.net>
59985
59986         Likewise for ftello.
59987         * modules/ftello (Dependencies): Add extensions.
59988         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
59989
59990 2008-03-06  Bruno Haible  <bruno@clisp.org>
59991
59992         * modules/fseeko (Dependencies): Add extensions.
59993         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
59994         Needed on glibc systems.
59995
59996 2008-03-06  Bruno Haible  <bruno@clisp.org>
59997
59998         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
59999         email address.
60000         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60001
60002 2008-03-06  Bruno Haible  <bruno@clisp.org>
60003
60004         * users.txt: Add libgnupdf.
60005
60006 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60007
60008         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60009         (Header File Substitutes, Function Substitutes,
60010         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60011         (Build robot for gnulib): Fix typo.
60012
60013 2008-03-06  Bruno Haible  <bruno@clisp.org>
60014
60015         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60016         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60017
60018 2008-03-06  Bruno Haible  <bruno@clisp.org>
60019
60020         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60021         * doc/gnulib.texi: Include it.
60022
60023 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60024
60025         * modules/func (License): Change license to unlimited; there was
60026         no LGPL parts in the module anyway.
60027
60028 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60029
60030         * modules/__func__: Renamed to modules/func.
60031         * modules/__func__-tests: Renamed to modules/func-tests.
60032         * tests/test-__func__.c: Renamed to tests/test-func.c.
60033         * m4/__func__.m4: Renamed to m4/func.m4.
60034         * doc/gnulib.texi (__func__): Section renamed to func.
60035         Suggested by Eric Blake <ebb9@byu.net>.
60036
60037 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60038
60039         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60040         about __func__.  Make example self-contained.  Suggested by Eric
60041         Blake <ebb9@byu.net>.
60042
60043         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60044         Suggested by Eric Blake <ebb9@byu.net>.
60045
60046 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60047
60048         * modules/__func__: New file.
60049         * modules/__func__-tests: New file.
60050         * tests/test-__func__.c: New file.
60051         * m4/__func__.m4: New file.
60052         * doc/gnulib.texi (__func__): Document __func__ module.
60053
60054 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60055
60056         * modules/byteswap (License): Re-license as LGPLv2+.
60057
60058 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60059
60060         * doc/Makefile: Add pdf target.
60061
60062 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60063
60064         * modules/inline (License): Use 'unlimited', since there are only
60065         *.m4 files in this module.
60066
60067 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60068             Bruno Haible  <bruno@clisp.org>
60069
60070         Add support for HP C 7.1 on OpenVMS 8.3.
60071         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60072
60073 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60074
60075         Update VMS specifics.
60076         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60077
60078 2008-03-02  Jim Meyering  <meyering@redhat.com>
60079
60080         Remove the last dependency on the "free" module.
60081         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60082         Reported by Bob Proulx.
60083
60084         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60085
60086         Remove useless "if" tests before free.  Deprecate "free" module.
60087         * doc/posix-functions/free.texi: Mention that this
60088         module is no longer useful.
60089         * modules/free (Notice): Say this module is obsolete.
60090         * modules/readutmp (Depends-on): Remove free.
60091         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60092         * lib/putenv.c (putenv): Likewise.
60093         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60094         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60095         * tests/test-c-strcasestr.c (main): Likewise.
60096         * tests/test-c-strstr.c (main): Likewise.
60097         * tests/test-mbscasestr1.c (main): Likewise.
60098         * tests/test-mbscasestr2.c (main): Likewise.
60099         * tests/test-mbsstr1.c (main): Likewise.
60100         * tests/test-mbsstr2.c (main): Likewise.
60101         * tests/test-memmem.c (main): Likewise.
60102         * tests/test-strcasestr.c (main): Likewise.
60103         * tests/test-striconv.c (main): Likewise.
60104         * tests/test-striconveh.c (main): Likewise.
60105         * tests/test-striconveha.c (main): Likewise.
60106         * tests/test-strstr.c (main): Likewise.
60107
60108         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60109
60110         bootstrap: sync from coreutils again
60111         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60112
60113 2008-03-01  Jim Meyering  <meyering@redhat.com>
60114
60115         bootstrap: sync from coreutils
60116         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60117         also when the target doesn't exist.
60118
60119 2008-03-01  Eric Blake  <ebb9@byu.net>
60120
60121         Fix bugs in last patch.
60122         * lib/memchr2.c (memchr2): Fix typo.
60123         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60124         extension.
60125         Reported by Bruce Korb.
60126
60127         New module 'memchr2'.
60128         * modules/memchr2: New file.
60129         * modules/memchr2-tests: Likewise.
60130         * lib/memchr2.h: Likewise.
60131         * lib/memchr2.c: Likewise, based on memchr.c.
60132         * tests/test-memchr2.c: New test.
60133         * MODULES.html.sh (String handling): Add memchr2.
60134
60135 2008-02-29  Bruno Haible  <bruno@clisp.org>
60136
60137         * modules/freadseek-tests: New file.
60138         * tests/test-freadseek.sh: New file.
60139         * tests/test-freadseek.c: New file.
60140
60141         New module 'freadseek'.
60142         * modules/freadseek: New file.
60143         * lib/freadseek.h: New file.
60144         * lib/freadseek.c: New file.
60145         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60146
60147 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60148
60149         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60150         wydawca.
60151
60152         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60153         program_invocation_name and program_invocation_short_name are
60154         present.
60155
60156 2008-02-28  Bruno Haible  <bruno@clisp.org>
60157
60158         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60159         * tests/test-freadptr.sh: Also test non-seekable stdin.
60160
60161 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60162
60163         * build-aux/bootstrap (source_base, m4_base)
60164         (doc_base, tests_base): New variables.
60165         (gnulib_tool_options): Do not hardcode base directories, use
60166         the above variables instead.
60167
60168 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60169
60170         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60171
60172 2008-02-28  Bruno Haible  <bruno@clisp.org>
60173
60174         * modules/freadptr-tests: New file.
60175         * tests/test-freadptr.sh: New file.
60176         * tests/test-freadptr.c: New file.
60177
60178         New module 'freadptr'.
60179         * modules/freadptr: New file.
60180         * lib/freadptr.h: New file.
60181         * lib/freadptr.c: New file.
60182         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60183
60184 2008-02-26  Karl Berry  <karl@freefriends.org>
60185
60186         Sync from Libtool:
60187         * libltdl/argz.c (argz_add, argz_count): New functions.
60188         * libltdl/argz.in.h: Declare them.
60189         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60190
60191 2008-02-22  Bruno Haible  <bruno@clisp.org>
60192
60193         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60194         is a pointer type.  Needed for HP-UX 10.
60195         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60196         * doc/posix-functions/gmtime_r.texi: Likewise.
60197         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60198
60199 2008-02-24  Bruno Haible  <bruno@clisp.org>
60200
60201         * modules/environ-tests: New file.
60202         * tests/test-environ.c: New file.
60203
60204         New module 'environ'.
60205         * modules/environ: New file.
60206         * lib/unistd.in.h (environ): New declaration.
60207         * m4/environ.m4: New file.
60208         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60209         after use.
60210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60211         HAVE_DECL_ENVIRON.
60212         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60213         HAVE_DECL_ENVIRON.
60214         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60215         wrong claim that 'environ' is missing on some systems.
60216         * modules/execute (Depends-on): Add environ.
60217         * lib/execute.c (environ): Remove fallback declaration.
60218         * modules/pipe (Depends-on): Add environ.
60219         * lib/pipe.c (environ): Remove fallback declaration.
60220         * modules/setenv (Depends-on): Add environ.
60221         * lib/setenv.c (environ): Remove fallback declaration.
60222         * modules/unsetenv (Depends-on): Add environ.
60223         * lib/unsetenv.c (environ): Remove fallback declaration.
60224         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60225         m4/environ.m4.
60226         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60227         (gl_PREREQ_UNSETENV): Likewise.
60228
60229 2008-02-24  Bruno Haible  <bruno@clisp.org>
60230
60231         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60232
60233 2008-02-20  Bob Proulx  <bob@proulx.com>
60234
60235         Enable use of older two part flavor 'git describe'.
60236         * build-aux/git-version-gen: If using the older two part flavor of
60237         git version then recreate the third part now present in the
60238         newer three part flavor of git describe.
60239
60240 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60241
60242         * lib/fts.c (fts_build): Typo correction to comment.
60243
60244 2008-02-17  Bruno Haible  <bruno@clisp.org>
60245
60246         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60247         generating no-op conflicts.
60248
60249 2008-02-17  Bruno Haible  <bruno@clisp.org>
60250
60251         Speed up by 10%.
60252         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60253         result_entries, rather than an index-based loop.
60254
60255 2008-02-17  Bruno Haible  <bruno@clisp.org>
60256
60257         Speed up by 25%.
60258         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60259         'hashcode_cached'.
60260         (entry_create): New function.
60261         (entry_hashcode): Use the cached hashcode if possible.
60262         (read_changelog_file, try_split_merged_entry): Use entry_create.
60263
60264 2008-02-17  Bruno Haible  <bruno@clisp.org>
60265
60266         Speed up from O(n^2) to O(n) for long ChangeLog files.
60267         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60268         (read_changelog_file): Change implementation of entries_reversed list
60269         to rbtreehash.
60270         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60271
60272 2008-02-17  Bruno Haible  <bruno@clisp.org>
60273
60274         New option --split-merged-entry.
60275         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60276         (find_paragraph_end, try_split_merged_entry): New functions.
60277         (long_options): Add option --split-merged-entry.
60278         (usage): Document option --split-merged-entry.
60279         (main): Implement option --split-merged-entry.
60280         Reported by Eric Blake.
60281
60282 2008-02-17  Bruno Haible  <bruno@clisp.org>
60283
60284         * lib/git-merge-changelog.c: Include c-strstr.h.
60285         (main): Support the "git pull --rebase" situation.
60286         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60287         Reported by Eric Blake.
60288
60289 2008-02-16  Eric Blake  <ebb9@byu.net>
60290
60291         Avoid doubling \ in common case of "c-maybe" quoting style.
60292         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60293         eliding outer quotes.
60294         * lib/quotearg.h: Document this.
60295         * tests/test-quotearg.c (result_strings, inputs, results_g)
60296         (flag_results, locale_results): Test it by adding a new string to
60297         each test group.
60298         (compare_strings): Test new string.
60299
60300 2008-02-13  Eric Blake  <ebb9@byu.net>
60301
60302         Avoid trigraph quoting in default output.
60303         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60304         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60305         unless explicitly requested.
60306         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60307
60308 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60309
60310         Don't rely on signed integer overflowing to negative value.
60311         * lib/getugroups.c (getugroups): Include <limits.h>.
60312         Instead, compare against INT_MAX, and increment only if the test passes.
60313
60314 2008-02-13  Jim Meyering  <meyering@redhat.com>
60315         and Eric Blake  <ebb9@byu.net>
60316
60317         Avoid shadowing warning and compile errors on Linux.
60318         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60319         forwarding macros on Linux.
60320         (dcgettext): Define a stub, for Linux.
60321         (results_g, main): Avoid warnings.
60322
60323 2008-02-12  Eric Blake  <ebb9@byu.net>
60324
60325         Silence warning in last patch.
60326         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60327
60328         Quotearg part 4: add tests, fix c-maybe colon quoting.
60329         * lib/quotearg.h: Improve documentation.
60330         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60331         escapes when adding outer quotes.  When quoting trigraphs, use
60332         valid C notation.  When quoting NUL, omit extra characters if next
60333         character is not digit.  Alter prototype.
60334         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60335         callers.
60336         * modules/quotearg-tests: New module.
60337         * tests/test-quotearg.c: New test.
60338
60339 2008-02-07  Eric Blake  <ebb9@byu.net>
60340
60341         Quotearg part 3: add flag to control outer quote elision.
60342         * lib/quotearg.h (c_maybe_quoting_style): New style.
60343         (enum quoting_flags): Better documentation of flags.
60344         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60345         c-maybe style.
60346         (quotearg_buffer_restyled): Handle new flag to elide outer
60347         quotes.
60348
60349         Quotearg part 2: add flag that can control NUL elision.
60350         * lib/quotearg.h (set_quoting_flags): New prototype.
60351         * lib/quotearg.c (struct quoting_options): Add flag field.
60352         (set_quoting_flags): New function.
60353         (quotearg_buffer_restyled): Add flags parameter.
60354         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60355         (quotearg_n_options): Set the flag, since length cannot be
60356         returned.
60357         (quoting_options_from_style): Default flags correctly.
60358
60359         Quotearg part 1: more wrappers, restore quotearg_char state.
60360         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60361         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60362         (quotearg_colon_mem): New wrappers.
60363         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60364         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60365         functions.
60366         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60367         (quotearg_colon_mem): New functions.
60368
60369 2008-02-11  Bruno Haible  <bruno@clisp.org>
60370
60371         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60372         library in the current directory: it does not work with parallel make.
60373         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60374
60375 2008-02-11  Bruno Haible  <bruno@clisp.org>
60376
60377         * .gitattributes: New file.
60378
60379 2008-02-11  Jim Meyering  <meyering@redhat.com>
60380
60381         useless-if-before-free: Fix reversed exit values.
60382         * build-aux/useless-if-before-free: Use correct values
60383         for EXIT_MATCH and EXIT_NO_MATCH.
60384
60385         * build-aux/useless-if-before-free: Close stdout carefully.
60386
60387 2008-02-10  Bruno Haible  <bruno@clisp.org>
60388
60389         New module 'git-merge-changelog'.
60390         * modules/git-merge-changelog: New file.
60391         * lib/git-merge-changelog.c: New file.
60392
60393 2008-02-10  Jim Meyering  <meyering@redhat.com>
60394
60395         useless-if-before-free: New option: --list (-l).
60396
60397         useless-if-before-free: Don't exit immediately upon open failure.
60398         * build-aux/useless-if-before-free: Exit 2 for errors.
60399         Upon failure to open a file, don't exit immediately.
60400         Rather, just warn and continue with any remaining files.
60401
60402 2008-02-10  Bruno Haible  <bruno@clisp.org>
60403
60404         New abstract list operation 'node_set_value'.
60405         * lib/gl_list.h (gl_list_node_set_value): New function.
60406         (struct gl_list_implementation): New field node_set_value.
60407         * lib/gl_list.c (gl_list_node_set_value): New function.
60408         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60409         (gl_array_list_implementation): Update.
60410         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60411         (gl_carray_list_implementation): Update.
60412         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60413         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60414         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60415         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60416         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60417         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60418         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60419         Update.
60420         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60421         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60422         (gl_sublist_list_implementation): Update.
60423
60424 2008-02-10  Bruno Haible  <bruno@clisp.org>
60425
60426         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60427         Needed when ELEMENT is #defined to 'some_type *'.
60428
60429 2008-02-10  Jim Meyering  <meyering@redhat.com>
60430
60431         New script and module: useless-if-before-free
60432         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60433         * build-aux/useless-if-before-free: New file.
60434         * modules/useless-if-before-free: New file.
60435
60436         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60437
60438         xstrtol_error: Fix typo.
60439         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60440         s/exit_failure/exit_status/.
60441
60442 2008-02-09  Jim Meyering  <meyering@redhat.com>
60443
60444         New script and module: gitlog-to-changelog
60445         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60446         * modules/gitlog-to-changelog: New file.
60447         * build-aux/gitlog-to-changelog: New file.
60448
60449 2008-02-08  Jim Meyering  <meyering@redhat.com>
60450
60451         Avoid two "parameter unused" warnings.
60452         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60453         Mark "st" as used.
60454
60455         Use "git COMMAND", not "git-COMMAND".
60456         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60457         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60458         * build-aux/git-version-gen: Use "git status", not "git-status".
60459
60460 2008-02-07  Bruno Haible  <bruno@clisp.org>
60461
60462         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60463         Avoids a crash on Windows Vista.
60464         Reported by Adam Strzelecki <ono@java.pl> via
60465         Simon Josefsson <simon@josefsson.org>.
60466
60467 2008-02-06  Bruno Haible  <bruno@clisp.org>
60468
60469         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60470         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60471         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60472         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60473         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60474         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60475         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60476         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60477         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60478         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60479         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60480         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60481         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60482         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60483         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60484         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60485         left-adjust flag.
60486         * tests/test-snprintf-posix.h (test_function): Likewise.
60487         * tests/test-sprintf-posix.h (test_function): Likewise.
60488         * tests/test-vasprintf-posix.c (test_function): Likewise.
60489         * doc/posix-functions/fprintf.texi: Update.
60490         * doc/posix-functions/printf.texi: Update.
60491         * doc/posix-functions/snprintf.texi: Update.
60492         * doc/posix-functions/sprintf.texi: Update.
60493         * doc/posix-functions/vfprintf.texi: Update.
60494         * doc/posix-functions/vprintf.texi: Update.
60495         * doc/posix-functions/vsnprintf.texi: Update.
60496         * doc/posix-functions/vsprintf.texi: Update.
60497         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60498
60499 2008-02-06  Bruno Haible  <bruno@clisp.org>
60500
60501         Fix bug introduced on 2008-01-26.
60502         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60503
60504 2008-02-06  Bruno Haible  <bruno@clisp.org>
60505
60506         Fix bug introduced on 2007-06-10.
60507         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60508         !NEED_PRINTF_FLAG_ZERO.
60509
60510 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60511
60512         getloadavg: use libperfstat on AIX5
60513         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60514
60515 2008-02-03  Bruno Haible  <bruno@clisp.org>
60516
60517         * lib/diffseq.h: Add comments about required #includes.
60518         Reported by Michael Biggs <gnulib@doubleplum.net>.
60519
60520 2008-02-01  Bruno Haible  <bruno@clisp.org>
60521
60522         * users.txt: Add gnuit.
60523
60524 2008-01-31  Bruno Haible  <bruno@clisp.org>
60525
60526         * lib/md4.c (set_uint32): Mark as inline.
60527         * lib/md5.c (set_uint32): Likewise.
60528         * lib/sha1.c (set_uint32): Likewise.
60529         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60530         * m4/md5.m4 (gl_MD5): Likewise.
60531         * m4/sha1.m4 (gl_SHA1): Likewise.
60532
60533 2008-01-31  Jim Meyering  <meyering@redhat.com>
60534
60535         Use "sizeof VAR", rather than a literal "4".
60536         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60537         * lib/md4.c (md4_read_ctx): Likewise.
60538         * lib/sha1.c (sha1_read_ctx): Likewise.
60539
60540 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60541
60542         * tests/test-sha1.c: New file, based on test-md5.c.
60543
60544         * modules/crypto/sha1-tests: New file.
60545
60546 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60547
60548         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60549
60550 2008-01-31  Jim Meyering  <meyering@redhat.com>
60551
60552         Prefer "sizeof v" over the equivalent "4".
60553         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60554         * lib/md5.c (set_uint32): Likewise.
60555         * lib/sha1.c (set_uint32): Likewise.
60556
60557 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60558
60559         * lib/sha1.c (set_uint32): Mark function as static.
60560
60561 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60562
60563         md2: clarify comments to say that alignment is not required.
60564         * lib/md2.h: Remove warning about alignment in comment.
60565         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60566         never been required.
60567
60568 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60569
60570         md4: adapt alignment constraint fix from sha1.
60571         * lib/md4.c (set_uint32): New function, from sha1.c
60572         (md4_read_ctx): Use it.
60573         (md4_finish_ctx): Doc fix.
60574         * lib/md4.h: Doc fix.
60575
60576 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60577
60578         md5: adapt alignment constraint fix from sha1.
60579         * lib/md5.c (set_uint32): New function, from sha1.c
60580         (md5_read_ctx): Use it.
60581         (md5_finish_ctx): Doc fix.
60582         * lib/md5.h: Doc fix.
60583
60584 2008-01-30  Peter Palfrader  <weasel@debian.org>
60585
60586         sha1: remove the result buffer alignment constraint
60587         * lib/sha1.c (set_uint32): New function.
60588         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60589         constraint.
60590         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60591         * lib/sha1.h: Likewise.
60592
60593 2008-01-30  Andreas Schwab  <schwab@suse.de>
60594             Bruno Haible  <bruno@clisp.org>
60595
60596         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60597         correct definition of LDBL_MIN_EXP.
60598
60599 2008-01-30  Karl Berry  <karl@gnu.org>
60600
60601         * config/srclist-update: try to preserve x bit on updates.
60602         * config/srclistvars.sh: update for karl.
60603
60604 2008-01-29  Jim Meyering  <meyering@redhat.com>
60605
60606         vasnprintf.c: Avoid warning about unused label
60607         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
60608         "overflow" label definition and associated code with the
60609         same cpp condition that guards the sole use of that label.
60610
60611 2008-01-26  Bruno Haible  <bruno@clisp.org>
60612
60613         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
60614         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
60615         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
60616         * lib/isnanl-nolibm.h (isnanl): Likewise.
60617         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60618
60619 2008-01-26  Bruno Haible  <bruno@clisp.org>
60620
60621         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
60622         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
60623
60624 2008-01-26  Bruno Haible  <bruno@clisp.org>
60625
60626         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
60627         GCC >= 4.0 built-in.
60628         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
60629
60630 2008-01-26  Bruno Haible  <bruno@clisp.org>
60631
60632         Rename isnan, applicable to 'double' only, to isnand.
60633         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
60634         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
60635         (configure.ac): Update.
60636         (Include): Replace "isnan.h" with "isnand.h".
60637         * m4/isnand.m4: Renamed from m4/isnan.m4.
60638         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
60639         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
60640         instead of isnan.c.
60641         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
60642         instead of HAVE_ISNAN_IN_LIBC.
60643         (isnand): Renamed from isnan.
60644         * lib/isnand.c: New file.
60645         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
60646         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
60647         (Makefile.am): Update.
60648         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
60649         Include isnand.h instead of isnan.h.
60650         (main): Test isnand instead of isnan.
60651         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
60652         isnan-nolibm.
60653         * modules/frexp (Depends-on): Likewise.
60654         * modules/frexp-tests (Depends-on): Likewise.
60655         * modules/frexp-nolibm (Depends-on): Likewise.
60656         * modules/frexp-nolibm-tests (Depends-on): Likewise.
60657         * modules/isfinite (Depends-on): Likewise.
60658         * modules/round-tests (Depends-on): Likewise.
60659         * modules/signbit (Depends-on): Likewise.
60660         * modules/signbit-tests (Depends-on): Likewise.
60661         * modules/snprintf-posix (Depends-on): Likewise.
60662         * modules/sprintf-posix (Depends-on): Likewise.
60663         * modules/trunc-tests (Depends-on): Likewise.
60664         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60665         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60666         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60667         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60668         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60669         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60670         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60671         * modules/vasnprintf-posix (Depends-on): Likewise.
60672         * modules/vasprintf-posix (Depends-on): Likewise.
60673         * modules/vfprintf-posix (Depends-on): Likewise.
60674         * modules/vsnprintf-posix (Depends-on): Likewise.
60675         * modules/vsprintf-posix (Depends-on): Likewise.
60676         * lib/frexp.c: Include isnand.h instead of isnan.h.
60677         (ISNAN): Set to isnand instead of isnan.
60678         * lib/isfinite.c: Include isnand.h instead of isnan.h.
60679         (gl_isfinited): Use isnand instead of isnan.
60680         * lib/signbitd.c: Include isnand.h instead of isnan.h.
60681         (gl_signbitd): Use isnand instead of isnan.
60682         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
60683         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
60684         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
60685         (main): Use isnand instead of isnan.
60686         * tests/test-round1.c: Include isnand.h.
60687         (main): Use isnand instead of isnan.
60688         * tests/test-round2.c: Include isnand.h instead of isnan.h.
60689         (ISNAN): Set to isnand instead of isnan.
60690         * tests/test-trunc1.c: Include isnand.h.
60691         (main): Use isnand instead of isnan.
60692         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
60693         (equal): Use isnand instead of isnan.
60694         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
60695         isnand-nolibm.
60696         * NEWS: Mention the change.
60697
60698 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60699             Bruno Haible  <bruno@clisp.org>
60700
60701         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
60702         the GCC builtins for signbits are present and set
60703         REPLACE_SIGNBIT_USING_GCC if so.
60704         * lib/math.in.h (signbit): Define using GCC builtins if
60705         REPLACE_SIGNBIT_USING_GCC is set.
60706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
60707         REPLACE_SIGNBIT_USING_GCC.
60708         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
60709
60710 2008-01-25  Jim Meyering  <meyering@redhat.com>
60711
60712         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
60713         * lib/poll.c: Include <config.h>, not "config.h".
60714         * tests/test-getaddrinfo.c: Likewise.
60715
60716 2008-01-25  Simon Josefsson  <simon@josefsson.org>
60717
60718         * modules/sockets-tests: New file.
60719
60720 2008-01-24  Simon Josefsson  <simon@josefsson.org>
60721
60722         * modules/sockets: New module, can be used to call WSA_Startup and
60723         WSA_Cleanup when needed.
60724
60725         * lib/sockets.h, lib/sockets.c: New files.
60726
60727         * m4/sockets.m4: New file.
60728
60729         * tests/test-sockets.c: New file.
60730
60731 2008-01-19  Bruno Haible  <bruno@clisp.org>
60732
60733         * doc/posix-headers: Renamed from doc/headers.
60734         * doc/posix-functions: Renamed from doc/functions.
60735         * doc/gnulib.texi: Update.
60736
60737 2008-01-19  Bruno Haible  <bruno@clisp.org>
60738
60739         * doc/glibc-functions/strcasestr.texi: Include contents of
60740         doc/functions/strcasestr.texi, fixing the list of platforms.
60741         * doc/functions/strcasestr.texi: Remove file.
60742
60743 2008-01-19  Bruno Haible  <bruno@clisp.org>
60744
60745         * doc/glibc-functions/memmem.texi: Include contents of
60746         doc/functions/memmem.texi.
60747         * doc/functions/memmem.texi: Remove file.
60748
60749 2008-01-18  Bruno Haible  <bruno@clisp.org>
60750
60751         * doc/glibc-functions/*.texi: New files.
60752         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
60753         to use the new files.
60754
60755 2008-01-17  Bruno Haible  <bruno@clisp.org>
60756
60757         * tests/test-gethostname.c (main): Fix printf statement.
60758
60759 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60760
60761         * modules/gethostname-tests: New file.
60762
60763         * tests/test-gethostname.c: New file.
60764
60765 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60766
60767         * lib/gethostname.c: Include string.h unconditionally, strncpy is
60768         used by the UNAME case.  Reported by Bruno Haible
60769         <bruno@clisp.org>.
60770
60771 2008-01-17  Eric Blake  <ebb9@byu.net>
60772
60773         Convert c-strcasestr to be more efficient.
60774         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
60775         (Depends-on): Add c-strcase, remove malloca, strnlen.
60776         * tests/test-c-strcasestr.c (main): Enhance test.
60777         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
60778
60779 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60780
60781         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
60782         Use it in creating po/Makevars.
60783
60784 2008-01-15  Simon Josefsson  <simon@josefsson.org>
60785
60786         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
60787         Applications that requires it should initialize libgcrypt
60788         manually.
60789
60790 2008-01-16  Simon Josefsson  <simon@josefsson.org>
60791
60792         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
60793
60794 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
60795
60796         Fix problem with getdate on mingw32 reported by Simon Josefsson
60797         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
60798         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
60799         tzname", when deciding whether to declare tzname.
60800         * lib/strftime.c (tzname): Likewise.
60801
60802 2008-01-15  Bruno Haible  <bruno@clisp.org>
60803
60804         Work around a MacOS X 10.5 bug in frexpl().
60805         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
60806         * doc/functions/frexpl.texi: Document the bug.
60807         Reported by Elias Pipping <pipping@gentoo.org>.
60808
60809 2008-01-14  Eric Blake  <ebb9@byu.net>
60810
60811         Touch up previous patch.
60812         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
60813         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
60814
60815         Convert strcasestr module to use Two-Way algorithm.
60816         * modules/strcasestr-simple: New module, based on the old
60817         strcasestr, but with Two-Way rather than KMP.
60818         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
60819         * lib/string.in.h (rpl_strcasestr): Declare.
60820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
60821         performance.
60822         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
60823         * modules/string (Makefile.am): Support strcasestr.
60824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60825         * modules/strcasestr-tests (Depends-on): Check for alarm.
60826         * tests/test-strcasestr.c: Augment test.
60827         * lib/str-two-way.h: Clean up stray macro.
60828         * NEWS: Document new module.
60829         * MODULES.html.sh (string handling): Likewise.
60830         * doc/functions/strcasestr.texi: New file.
60831         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
60832         here, since it is not a POSIX function.
60833
60834 2008-01-14  Colin Watson  <cjwatson@debian.org>
60835             Bruno Haible  <bruno@clisp.org>
60836
60837         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
60838         works fine; if not, set REPLACE_STRSIGNAL.
60839         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
60840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60841         REPLACE_STRSIGNAL.
60842         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
60843         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
60844         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
60845
60846 2008-01-14  Bruno Haible  <bruno@clisp.org>
60847
60848         * modules/strsignal (Include): Change to <string.h>.
60849
60850 2008-01-14  Colin Watson  <cjwatson@debian.org>
60851
60852         * modules/argp (Notice): Add a notice recommending to change
60853         XGETTEXT_OPTIONS.
60854         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
60855
60856 2008-01-13  Colin Watson  <cjwatson@debian.org>
60857
60858         * modules/strsignal-tests: New file.
60859         * tests/test-strsignal.c: New file.
60860
60861         * lib/strsignal.c: New file, from glibc with modifications.
60862         * lib/siglist.h: New file, from glibc with modifications.
60863         * lib/string.in.h (strsignal): New declaration.
60864         * m4/strsignal.m4: New file.
60865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60866         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
60867         * modules/strsignal: New file.
60868         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
60869         HAVE_DECL_STRSIGNAL.
60870
60871 2008-01-13  Bruno Haible  <bruno@clisp.org>
60872
60873         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
60874         locale encoding is not ASCII. Needed for OpenBSD 4.0.
60875         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60876         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60877
60878 2008-01-13  Bruno Haible  <bruno@clisp.org>
60879
60880         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
60881         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
60882         * lib/argp.h (__attribute__): Likewise.
60883         * lib/c-stack.c (__attribute__): Likewise.
60884         * lib/error.h (__attribute__): Likewise.
60885         * lib/fts.c (__attribute__): Likewise.
60886         * lib/openat.h (__attribute__): Likewise.
60887         * lib/stdio.in.h (__attribute__): Likewise.
60888         * lib/string.in.h (__attribute__): Likewise.
60889         * lib/utimens.c (__attribute__): Likewise.
60890         * lib/vasnprintf.h (__attribute__): Likewise.
60891         * lib/xalloc.h (__attribute__): Likewise.
60892         * lib/xprintf.h (__attribute__): Likewise.
60893         * lib/xstrtol.h (__attribute__): Likewise.
60894         * lib/xvasprintf.h (__attribute__): Likewise.
60895
60896 2008-01-12  Bruno Haible  <bruno@clisp.org>
60897
60898         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
60899         * doc/glibc-headers/a.out.texi: New file.
60900         * doc/glibc-headers/aliases.texi: New file.
60901         * doc/glibc-headers/alloca.texi: New file.
60902         * doc/glibc-headers/ar.texi: New file.
60903         * doc/glibc-headers/argp.texi: New file.
60904         * doc/glibc-headers/argz.texi: New file.
60905         * doc/glibc-headers/byteswap.texi: New file.
60906         * doc/glibc-headers/crypt.texi: New file.
60907         * doc/glibc-headers/endian.texi: New file.
60908         * doc/glibc-headers/envz.texi: New file.
60909         * doc/glibc-headers/err.texi: New file.
60910         * doc/glibc-headers/error.texi: New file.
60911         * doc/glibc-headers/execinfo.texi: New file.
60912         * doc/glibc-headers/fpu_control.texi: New file.
60913         * doc/glibc-headers/fstab.texi: New file.
60914         * doc/glibc-headers/fts.texi: New file.
60915         * doc/glibc-headers/getopt.texi: New file.
60916         * doc/glibc-headers/ieee754.texi: New file.
60917         * doc/glibc-headers/ifaddrs.texi: New file.
60918         * doc/glibc-headers/libintl.texi: New file.
60919         * doc/glibc-headers/mcheck.texi: New file.
60920         * doc/glibc-headers/mntent.texi: New file.
60921         * doc/glibc-headers/obstack.texi: New file.
60922         * doc/glibc-headers/paths.texi: New file.
60923         * doc/glibc-headers/printf.texi: New file.
60924         * doc/glibc-headers/pty.texi: New file.
60925         * doc/glibc-headers/resolv.texi: New file.
60926         * doc/glibc-headers/shadow.texi: New file.
60927         * doc/glibc-headers/sysexits.texi: New file.
60928         * doc/glibc-headers/ttyent.texi: New file.
60929
60930 2008-01-12  Jim Meyering  <meyering@redhat.com>
60931
60932         announce-gen: emit Gnulib's git-based version string.
60933         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
60934         New option --gnulib-version=V, where V is expected to be
60935         the output of running git describe in the gnulib directory.
60936         (get_tool_versions): Request feedback on xdelta.  I suspect it's
60937         not useful, and plan to stop publishing an xdelta file with each
60938         coreutils release.
60939
60940         * build-aux/announce-gen: Also check for lzma-compressed files.
60941
60942 2008-01-11  Bruno Haible  <bruno@clisp.org>
60943
60944         * tests/test-memmem.c (main): Increase maximum allowed time.
60945         * tests/test-strstr.c (main): Likewise.
60946
60947 2008-01-11  Bruno Haible  <bruno@clisp.org>
60948
60949         * doc/functions/memmem.texi: Add more precisions about platforms.
60950         * doc/functions/strstr.texi: Likewise.
60951
60952 2008-01-10  Eric Blake  <ebb9@byu.net>
60953
60954         * m4/strstr.m4: Delete cruft from copy-n-paste.
60955         Reported by Bruno Haible.
60956
60957 2008-01-10  Bruno Haible  <bruno@clisp.org>
60958
60959         Make c-strstr rely on strstr.
60960         * lib/c-strstr.c: Don't include str-kmp.h.
60961         (c_strstr): Define in terms of strstr.
60962         * modules/c-strstr (Files): Remove lib/str-kmp.h.
60963         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
60964
60965 2008-01-10  Bruno Haible  <bruno@clisp.org>
60966
60967         * doc/gnulib.texi (String Functions in C Locale): New section.
60968         * doc/c-ctype.texi: New file.
60969         * doc/c-strcase.texi: New file.
60970         * doc/c-strcaseeq.texi: New file.
60971         * doc/c-strcasestr.texi: New file.
60972         * doc/c-strstr.texi: New file.
60973         * doc/c-strtod.texi: New file.
60974         * doc/c-strtold.texi: New file.
60975
60976 2008-01-10  Eric Blake  <ebb9@byu.net>
60977
60978         * lib/relocatable.h: Fix a comment.
60979
60980 2008-01-10  Eric Blake  <ebb9@byu.net>
60981
60982         Share two-way algorithm.
60983         * lib/str-two-way.h: New file, merged from...
60984         * lib/memmem.c: ...here...
60985         * lib/strstr.c: ...and here.
60986         * modules/memmem (Files): Use it.
60987         * modules/strstr (Files): Likewise.
60988
60989         Avoid quadratic strstr implementations.
60990         * lib/strstr.c: New file.
60991         * m4/strstr.m4: Likewise.
60992         * modules/strstr: Likewise.
60993         * modules/strstr-tests: Likewise.
60994         * tests/test-strstr.c: Likewise.
60995         * lib/string.in.h (rpl_strstr): Declare.
60996         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
60997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
60998         * modules/string (Makefile.am): Likewise.
60999         * MODULES.html.sh (string handling): Mention new module.
61000         * doc/functions/strstr.texi (strstr): Document the bug.
61001
61002 2008-01-10  Bruno Haible  <bruno@clisp.org>
61003
61004         * lib/relocatable.h (relocate): State whether result is freshly
61005         allocated or not.
61006         * lib/relocatable.c (relocate): Return a freshly allocated string
61007         instead of a pointer to a privately held string.
61008         Reported by Sylvain Beucler <beuc@gnu.org>.
61009
61010 2008-01-10  Colin Watson  <cjwatson@debian.org>
61011
61012         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61013         s/S_ISNLK/S_ISLNK/.
61014
61015 2008-01-09  Bruno Haible  <bruno@clisp.org>
61016
61017         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61018         and other files.
61019         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61020         if it's only a guess.
61021         * modules/memmem: Simplify by depending on memmem-simple.
61022
61023 2008-01-09  Bruno Haible  <bruno@clisp.org>
61024
61025         Work around OpenBSD 4.0 tdelete() bug.
61026         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61027         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61028         macros and don't redefine the enum values.
61029         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61030         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61031         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61032
61033 2008-01-09  Bruno Haible  <bruno@clisp.org>
61034
61035         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61036         (main): Don't perform the tests if setlocale did not install a UTF-8
61037         locale. Needed on OpenBSD 4.0.
61038         * modules/wcwidth-tests (Depends-on): Add localcharset.
61039
61040 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61041
61042         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61043         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61044         * NEWS: announce this.
61045         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61046
61047 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61048         and Eric Blake  <ebb9@byu.net>
61049
61050         Add memmem-simple module.
61051         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61052         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61053         * modules/memmem-simple: New file.
61054         * modules/memmem (Description): Tweak.
61055         * MODULES.html.sh (string handling): Mention new module.
61056         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61057         addressed by memmem-simple.
61058         * NEWS: Document the difference.
61059
61060 2008-01-09  Eric Blake  <ebb9@byu.net>
61061
61062         Give gcc some memmem optimization hints.
61063         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61064         (strcasestr): Declare as pure.
61065         * modules/memmem (Maintainer): Claim my implementation.
61066
61067 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61068
61069         Support AIX 6.1 and higher.
61070         * build-aux/config.libpath: Likewise.
61071         * build-aux/config.rpath: Likewise.
61072
61073 2008-01-08  Jim Meyering  <meyering@redhat.com>
61074             Bruno Haible  <bruno@clisp.org>
61075
61076         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61077         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61078         Reported by Peter Fales in
61079         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61080
61081 2008-01-08  Bruno Haible  <bruno@clisp.org>
61082
61083         * modules/unictype/category-of (Depends-on): Add
61084         unictype/category-none.
61085         * modules/unictype/category-and-tests (Depends-on): Add
61086         unictype/category-{L,N,Lu,Nd}.
61087         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61088         * modules/unictype/category-or-tests (Depends-on): Add
61089         unictype/category-{L,N}.
61090         * modules/unictype/category-name-tests (Depends-on): Add
61091         unictype/category-{Z,Nl}.
61092         Reported by Simon Josefsson.
61093
61094 2008-01-08  Bruno Haible  <bruno@clisp.org>
61095
61096         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61097         convention better.
61098         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61099         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61100         Reported by Peter Miller <millerp@canb.auug.org.au>.
61101
61102 2008-01-08  Eric Blake  <ebb9@byu.net>
61103
61104         Rewrite memmem to guarantee linear complexity without malloc.
61105         * lib/memmem.c (memmem): Use Two-Way rather than
61106         Knuth-Morris-Pratt, to allow O(1) space usage.
61107         (critical_factorization, two_way_short_needle)
61108         (two_way_long_needle): New functions.
61109         (knuth_morris_pratt): Delete.
61110         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61111         Add stdint.
61112         * tests/test-memmem.c (main): Add tests for periodic needle and
61113         sublinear performance.
61114         * doc/functions/memmem.texi (memmem): Document other deficiencies
61115         in cygwin and older glibc.
61116
61117 2008-01-08  Bruno Haible  <bruno@clisp.org>
61118
61119         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61120         augmentation.
61121
61122 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61123
61124         Add a configure time option: --disable-acl.
61125         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61126         AC_ARG_ENABLE(acl).
61127
61128 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61129
61130         * tests/test-localename.c: Don't include obsolete "setenv.h".
61131
61132         * modules/localename-tests (Depends-on): Need unsetenv.
61133
61134 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61135
61136         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61137
61138 2008-01-06  Colin Watson  <cjwatson@debian.org>
61139
61140         * users.txt: Add man-db.
61141
61142 2008-01-07  Bruno Haible  <bruno@clisp.org>
61143
61144         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61145         previous section name.
61146
61147 2008-01-07  Bruno Haible  <bruno@clisp.org>
61148
61149         * lib/progname.c (set_program_name): Don't strip off a leading
61150         "lt-" prefix outside a .libs directory.
61151         Suggested by Paul Eggert.
61152
61153 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61154             Bruno Haible  <bruno@clisp.org>
61155
61156         Improve memory cleanup in 'relocatable' module.
61157         * lib/relocatable.h (compute_curr_prefix): Change return type to
61158         'char *'.
61159         * lib/relocatable.c (compute_curr_prefix): Change return type to
61160         'char *'. Free curr_installdir after use.
61161         (relocate): Free curr_prefix_better after use.
61162         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61163
61164 2008-01-01  Bruno Haible  <bruno@clisp.org>
61165
61166         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61167         failure on older glibc systems.
61168         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61169
61170 2008-01-05  Eric Blake  <ebb9@byu.net>
61171
61172         Avoid quadratic system memmem.
61173         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61174         Reported by Ralf Wildenhues.
61175
61176         Fix memmem test for mingw.
61177         * modules/memmem-tests (configure.ac): Check for alarm.
61178         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61179         it.
61180         * doc/functions/memmem.texi: New file.
61181         * doc/gnulib.texi (Function Substitutes): Add memmem.
61182         Reported by Bruno Haible.
61183
61184 2008-01-04  Bruno Haible  <bruno@clisp.org>
61185
61186         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61187         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61188         gl_HEADER_STRING_H_DEFAULTS.
61189
61190 2008-01-04  Eric Blake  <ebb9@byu.net>
61191
61192         Shorten duration of memmem test.
61193         * tests/test-memmem.c (main): Use alarm to declare failure if test
61194         is taking too long.
61195         Reported by Ralf Wildenhues.
61196
61197 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61198
61199         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61200         string, needed by strerror.
61201
61202 2008-01-03  Colin Watson  <cjwatson@debian.org>
61203             Bruno Haible  <bruno@clisp.org>
61204
61205         * doc/gnulib-tool.texi (Localization): New section.
61206
61207 2008-01-02  Bruno Haible  <bruno@clisp.org>
61208
61209         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61210         variables to 'unsigned char *' type.
61211         Reported by Paul Eggert.
61212
61213 2008-01-02  Jim Meyering  <jim@meyering.net>
61214
61215         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61216
61217 2007-12-31  Jim Meyering  <jim@meyering.net>
61218
61219         Avoid use of private FTS type name.
61220         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61221
61222 2007-12-30  Karl Berry  <karl@gnu.org>
61223
61224         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61225         work around defect in Texinfo and/or the standalone Info browser.
61226
61227 2007-12-30  Bruno Haible  <bruno@clisp.org>
61228
61229         Unify 5 copies of the KMP code.
61230         * lib/str-kmp.h: New file.
61231         * lib/c-strcasestr.c: Include str-kmp.h.
61232         (knuth_morris_pratt): Remove function.
61233         (c_strcasestr): Update.
61234         * lib/c-strstr.c: Include str-kmp.h.
61235         (knuth_morris_pratt): Remove function.
61236         (c_strcasestr): Update.
61237         * lib/mbscasestr.c: Include str-kmp.h.
61238         (knuth_morris_pratt_unibyte): Remove function.
61239         * lib/mbsstr.c: Include str-kmp.h.
61240         (knuth_morris_pratt_unibyte): Remove function.
61241         * lib/strcasestr.c: Include str-kmp.h.
61242         (knuth_morris_pratt): Remove function.
61243         (strcasestr): Update.
61244         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61245         * modules/c-strstr (Files): Likewise.
61246         * modules/mbscasestr (Files): Likewise.
61247         * modules/mbsstr (Files): Likewise.
61248         * modules/strcasestr (Files): Likewise.
61249         Suggested by Paul Eggert.
61250
61251 2007-12-30  Bruno Haible  <bruno@clisp.org>
61252
61253         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61254         defined.
61255
61256 2007-12-30  Bruno Haible  <bruno@clisp.org>
61257
61258         * lib/xmalloca.h: Include xalloc.h.
61259         (xnmalloca): New macro.
61260
61261 2007-12-30  Bruno Haible  <bruno@clisp.org>
61262
61263         * lib/malloca.h (nmalloca): New macro.
61264         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61265         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61266         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61267         knuth_morris_pratt_multibyte): Likewise.
61268         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61269         knuth_morris_pratt_multibyte): Likewise.
61270         * lib/memmem.c (knuth_morris_pratt): Likewise.
61271         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61272
61273 2007-12-25  Bruno Haible  <bruno@clisp.org>
61274
61275         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61276         * lib/glob.c: Don't include openat.h.
61277         (link_exists2_p): Add back the code that deals with the
61278         !GLOB_ALTDIRFUNC case.
61279         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61280         let it do the filename concatenation.
61281         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61282         * modules/glob (Depends-on): Remove openat.
61283
61284 2007-12-31  Bruno Haible  <bruno@clisp.org>
61285
61286         * modules/dirfd (License): Change to LGPLv2+.
61287         Approved by Jim Meyering.
61288
61289 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61290
61291         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61292         when multiplying M by sizeof (size_t).
61293
61294 2007-12-10  Martin Lambers  <marlam@marlam.de>
61295
61296         Override getpagesize on mingw.
61297         * lib/getpagesize.c: New file.
61298         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61299         * modules/getpagesize (Files): Add lib/getpagesize.c.
61300         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61302         REPLACE_GETPAGESIZE.
61303         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61304
61305 2007-12-25  Bruno Haible  <bruno@clisp.org>
61306
61307         * modules/localcharset (Notice): New field.
61308         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61309         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61310
61311 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61312             Bruno Haible  <bruno@clisp.org>
61313
61314         Avoid using the syntax symbol() in formatted documentation.
61315         * MODULES.html.sh (func_module): When replacing symbol() with a
61316         hyperlink, remove the parentheses. Show an error if some remain.
61317         Recognize and render the '...' syntax.
61318         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61319         Rework. Add paragraph about GCC's inlining.
61320         * doc/alloca.texi: Likewise.
61321         * doc/error.texi: Remove parentheses from symbol reference.
61322         * doc/gnulib-intro.texi: Likewise.
61323         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61324         * modules/fnmatch (Description): Reword to say "the ... function".
61325         * modules/full-read (Description): Likewise.
61326         * modules/full-write (Description): Likewise.
61327         * modules/safe-read (Description): Likewise.
61328         * modules/safe-write (Description): Likewise.
61329         * modules/strchrnul (Description): Likewise.
61330         * modules/trim (Description): Likewise.
61331         * modules/error (Description): Remove parentheses from symbol
61332         references.
61333         * modules/verror (Description): Likewise.
61334         Reported by Karl Berry.
61335
61336 2007-12-25  Bruno Haible  <bruno@clisp.org>
61337
61338         Fixup after 2007-10-16 commit.
61339         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61340
61341 2007-12-24  Bruno Haible  <bruno@clisp.org>
61342
61343         Make --enable-relocatable work with DESTDIR.
61344         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61345         to compute installdir from destprog.
61346         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61347         also set the RELOC_DESTDIR variable.
61348         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61349
61350 2007-12-24  Bruno Haible  <bruno@clisp.org>
61351
61352         Fix link error due to xalloc_die().
61353         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61354         of xreadlink.
61355         * lib/relocwrapper.c: Update comments.
61356         * build-aux/install-reloc: Remove xreadlink.c from file list.
61357         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61358         xreadlink.c.
61359         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61360
61361 2007-12-24  Bruno Haible  <bruno@clisp.org>
61362
61363         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61364         * lib/setenv.h: Remove file.
61365         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61366         lib/setenv.h.
61367         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61368         (Depends-on): Add stdlib.
61369         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61370         gl_FUNC_UNSETENV.
61371         (Include): Replace setenv.h with <stdlib.h>.
61372         * modules/unsetenv: New file.
61373         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61374         * lib/unsetenv.c: Include <stdlib.h> first.
61375         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61376         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61377         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61378         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61379         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61380         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61382         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61383         * doc/functions/unsetenv.texi: Update.
61384         * modules/xsetenv (Depends-on): Add unsetenv.
61385         * modules/getdate (Depends-on): Likewise.
61386         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61387         * lib/xsetenv.c: Don't include setenv.h.
61388         * lib/getdate.y: Likewise.
61389         * lib/relocwrapper.c: Likewise.
61390         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61391         (Depends-on): Add stdlib.
61392         * NEWS: Mention the changes.
61393         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61394
61395 2007-12-23  Bruno Haible  <bruno@clisp.org>
61396
61397         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61398         indentation.
61399
61400 2007-12-23  Bruno Haible  <bruno@clisp.org>
61401
61402         * lib/c-strcasestr.c: Add more comments.
61403         * lib/c-strstr.c: Likewise.
61404         * lib/mbscasestr.c: Likewise.
61405         * lib/mbsstr.c: Likewise.
61406         * lib/strcasestr.c: Likewise.
61407         * lib/memmem.c: Likewise.
61408
61409 2007-12-23  Bruno Haible  <bruno@clisp.org>
61410
61411         * tests/test-memmem.c: Include <string.h> first.
61412
61413 2007-12-22  Bruno Haible  <bruno@clisp.org>
61414
61415         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61416         the contents of $testsbase.
61417         Reported by Ralf Wildenhues.
61418
61419 2007-12-22  Bruno Haible  <bruno@clisp.org>
61420
61421         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61422         two variables local_ldadd_before, local_ldadd_last.
61423
61424 2007-12-20  Eric Blake  <ebb9@byu.net>
61425
61426         Work around circular library issue when cross-compiling.
61427         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61428         that progname.o does not need to pull in rpl_memcmp.
61429
61430 2007-12-19  Eric Blake  <ebb9@byu.net>
61431
61432         Fix memmem to avoid O(n^2) worst-case complexity.
61433         * lib/memmem.c (knuth_morris_pratt): New function.
61434         (memmem): Use it if first few naive iterations fail.
61435         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61436         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61437         * modules/memchr (License): Likewise.
61438         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61439         malloca.
61440         * tests/test-memmem.c: Rewrite, borrowing ideas from
61441         test-mbsstr1.c; the old version wouldn't even compile!
61442         * modules/memmem-tests: New file.
61443         * lib/string.in.h (rpl_memmem): Add declaration.
61444         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61446         REPLACE_MEMMEM.
61447
61448 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61449
61450         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61451         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61452         before any system include files, and undef after them all.  This
61453         should fix a problem on VMS reported by John E. Malmberg in
61454         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61455
61456 2007-12-17  Eric Blake  <ebb9@byu.net>
61457
61458         Revert addition of verify, for BSD/OS.
61459         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61460         can't handle large files, for the sake of obsolete platforms.
61461         * modules/fseeko (Depends-on): Remove verify.
61462         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61463         * doc/functions/ftello.texi (ftello): Likewise.
61464         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61465         Reported by Larry Jones.
61466
61467 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61468
61469         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61470         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61471
61472 2007-12-17  Jim Meyering  <meyering@redhat.com>
61473
61474         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61475         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61476         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61477         * modules/getcwd (Depends-on): Add openat.
61478         Reported by Petr Salinger.
61479
61480 2007-12-17  Bruno Haible  <bruno@clisp.org>
61481
61482         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61483         avoid a segmentation fault of the configure test on x86_64 systems.
61484
61485 2007-12-15  Jim Meyering  <meyering@redhat.com>
61486
61487         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61488
61489 2007-12-13  Eric Blake  <ebb9@byu.net>
61490
61491         Another fseek test.
61492         * tests/test-fseek.c (main): Also test ungetc handling.
61493         * tests/test-fseeko.c (main): Likewise.
61494         * modules/fseeko (Depends-on): Add verify.
61495         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61496         large.
61497         Reported by Larry Jones.
61498
61499         Fix fseeko on mingw.
61500         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61501         seek.
61502
61503         Beef up fseek tests.
61504         * tests/test-fseek.c (main): Also test eof handling.
61505         * tests/test-fseeko.c (main): Likewise.
61506         Reported by Larry Jones.
61507
61508 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61509
61510         Fix fseeko on BSD-based platforms.
61511         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61512         successful seek.
61513
61514 2007-12-12  Eric Blake  <ebb9@byu.net>
61515
61516         Allow circular dependency of separate libtests.a
61517         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61518         when use_libtests.
61519
61520 2007-12-11  Eric Blake  <ebb9@byu.net>
61521
61522         Fix bug with -0.0L in previous patch.
61523         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61524         * tests/test-isnan.c (main): Also test on zeroes.
61525         * tests/test-isnanf.c (main): Likewise.
61526         * tests/test-isnanl.h (main): Likewise.
61527
61528         Detect pseudo-denormals on x86 even when cross-compiling.
61529         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61530         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61531         invalid bit patterns that happen to satisfy ==.
61532
61533         Avoid link failures with separate libtests.a.
61534         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61535         last, to satisfy circular dependencies.
61536
61537 2007-12-11  Eric Blake  <ebb9@byu.net>
61538         and Bruno Haible  <bruno@clisp.org>
61539
61540         Fix OpenBSD 4.0 <float.h> handling of long double.
61541         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61542         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61543         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61544
61545 2007-12-11  Jim Meyering  <meyering@redhat.com>
61546
61547         * users.txt: Add libvirt.
61548
61549         Support versions of autoconf prior to 2.59c.
61550         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61551         if it is not already defined.
61552
61553 2007-12-09  Bruno Haible  <bruno@clisp.org>
61554
61555         Let 'gnulib-tool --import' collect sources needed for the tests in
61556         tests/ rather than in lib/.
61557         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61558         argument. If true, add rules to generate libtests.a, and put libtests.a
61559         into $(LDADD). Consider source files in subdirectories and set
61560         uses_subdirs.
61561         (func_emit_initmacro_start, func_emit_initmacro_end,
61562         func_emit_initmacro_done): Pass all arguments explicitly.
61563         (func_import): Determine two module lists main_modules,
61564         testsrelated_modules. Determine use_libtests. Determine two variables
61565         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61566         instead of just sed_transform_lib_file. Determine two variables
61567         main_files and testsrelated_files. Compute 'files' as the union of
61568         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61569         func_add_or_update. In the generated gnulib-comp.m4, collect the
61570         object files for tests/ in different variables than those for lib/.
61571         Substitute LIBTESTS_LIBDEPS.
61572         (func_create_testdir): Combine the uses_subdirs results from
61573         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61574
61575 2007-12-09  Bruno Haible  <bruno@clisp.org>
61576
61577         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61578         the build-aux directory.
61579
61580 2007-12-09  Bruno Haible  <bruno@clisp.org>
61581
61582         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61583         introduced on 2006-09-09.
61584
61585 2007-12-07  Jim Meyering  <meyering@redhat.com>
61586
61587         Let these macros work also with autoconf-2.59.
61588         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61589         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61590         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61591
61592 2007-12-06  Jim Meyering  <meyering@redhat.com>
61593
61594         Avoid a configure-time syntax error in gl_FUNC_ACL.
61595         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61596         function in each branch, before testing the cache variable.
61597
61598 2007-12-04  Eric Blake  <ebb9@byu.net>
61599
61600         Make scripts executable.
61601         * build-aux/config.guess: Add execute permissions.
61602         * build-aux/config.sub: Likewise.
61603         * build-aux/gendocs.sh: Likewise.
61604
61605         Fix frexp on mingw.
61606         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
61607         cross-compiling.
61608         * doc/functions/frexp.texi (frexp): Document the bug.
61609
61610         Make cygwin fseeko check more reliable.
61611         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
61612         version numbers, rather than unrelated feature check.
61613         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
61614         * doc/functions/ftello.texi (ftello): Likewise.
61615         Reported by Bruno Haible.
61616
61617         * m4/strerror.m4: Bump version number.
61618
61619 2007-12-03  Bruno Haible  <bruno@clisp.org>
61620
61621         * doc/functions/mprotect.texi: Mention the mingw problem.
61622
61623 2007-12-03  Eric Blake  <ebb9@byu.net>
61624
61625         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
61626         REPLACE_STRERROR is initialized before this macro.
61627
61628 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61629
61630         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
61631         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
61632         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
61633         put -lsec in even for programs other than 'ls'.  This fixes a problem
61634         for gettext reported by Bruno Haible in
61635         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
61636         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
61637         Add support for Solaris 10.  This isn't efficient, but should get the
61638         job done for now.
61639
61640 2007-12-03  James Youngman  <jay@gnu.org>
61641
61642         * doc/regexprops-generic.texi: change "an close-group" to "a
61643         close-group" and "illegal" to "not allowed".
61644
61645 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61646
61647         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
61648         pr_byname.h. Needed for the rare case when the maintainer has done
61649         "make maintainer-clean" in the source directory and then attempts a
61650         build outside the source directory.
61651         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61652         scripts_byname.h.
61653
61654 2007-12-02  Martin Lambers <marlam@marlam.de>
61655             Bruno Haible  <bruno@clisp.org>
61656
61657         * lib/getpagesize.h: Remove file.
61658         * lib/unistd.in.h: Include declaration of getpagesize here.
61659         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
61660         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
61661         HAVE_SYS_PARAM_H.
61662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
61663         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61664         * modules/getpagesize (Files): Remove lib/getpagesize.h.
61665         (Depends-on): Add unistd.
61666         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61667         (Include): Use <unistd.h> instead of getpagesize.h.
61668         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
61669         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61670         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
61671         gl_GETPAGESIZE invocation, already handled by module dependency.
61672         * lib/pagealign_alloc.c: Don't include getpagesize.h.
61673
61674 2007-12-02  Bruno Haible  <bruno@clisp.org>
61675
61676         * modules/strings-tests: New file.
61677         * tests/test-strings.c: New file.
61678
61679         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
61680         * lib/strings.in.h: New file.
61681         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
61682         * m4/strings_h.m4: New file.
61683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
61684         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
61685         * modules/strings: New file.
61686         * modules/string (Makefile.am): Update.
61687         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
61688         Reported by Karl Berry.
61689
61690 2007-12-01  Eric Blake  <ebb9@byu.net>
61691
61692         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
61693         accommodate fix in cygwin 1.5.25.
61694
61695 2007-12-01  Jim Meyering  <meyering@redhat.com>
61696
61697         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
61698         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
61699         that would inhibit utf8-optimization of a regexp containing line-
61700         or buffer-anchors, e.g., `^', `$'.
61701
61702 2007-11-30  Bruno Haible  <bruno@clisp.org>
61703
61704         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
61705         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
61706         glthread_recursive_lock_init.
61707         * lib/lock.c (glthread_recursive_lock_init)
61708         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
61709         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61710
61711 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
61712
61713         New function qset_acl, like set_acl but with syscall semantics.
61714         * lib/acl.h (qset_acl): New decl.
61715         * lib/acl.c (qset_acl): New function.
61716         (set_acl): Use new function.  Use more-consistent diagnostics.
61717
61718 2007-11-28  Jim Meyering  <meyering@redhat.com>
61719
61720         * modules/physmem (License): Change from GPL to LGPLv2+.
61721
61722 2007-11-26  Bruno Haible  <bruno@clisp.org>
61723
61724         * lib/vasnprintf.c (decode_long_double): Don't abort if the
61725         'long double' type has excess precision.
61726         Reported by Jim Meyering in
61727         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
61728
61729 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61730
61731         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
61732         Sync from <http://gnu.org/licenses>.
61733         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
61734         with license text from same location.
61735         * doc/maintain.texi, doc/standards.texi:  Sync from
61736         <http://savannah.gnu.org/projects/gnustandards>.
61737
61738 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
61739         and Jim Meyering  <meyering@redhat.com>
61740
61741         Adjust getdate' grammar to accept a slightly more regular language.
61742         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
61743         Before, the former was rejected.
61744         * lib/getdate.y (digits_to_date_time): New function, factored
61745         out of ...
61746         (number): ...here.  Just call digits_to_date_time.
61747         (hybrid): New non-terminal to handle an <unsigned number,
61748         signed relative offset> sequence consistently.
61749
61750 2007-11-18  Jim Meyering  <meyering@redhat.com>
61751
61752         Pull my changes from coreutils:
61753         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
61754         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
61755         use of $gnulib_tool_option_extras, so that it's separated from the
61756         preceding argument.
61757
61758         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
61759         * build-aux/bootstrap (cp_mark_as_generated): Create any required
61760         parent destination directories before copying a file into place.
61761
61762 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61763
61764         bootstrap: work also with 4-argument variant of AC_INIT
61765         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
61766
61767 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61768
61769         Port test-getaddrinfo to Solaris.
61770         Problem reported by Bruno Haible in
61771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
61772         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
61773         explanation of setting 'hints'.
61774         Don't reject an implementation merely because it returns EAI_SERVICE.
61775         (EAI_SERVICE): Define to 0 if not defined.
61776
61777 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61778
61779         The license of gnu-make and posix-shell is now "GPLed build tool".
61780         * modules/gnu-make (License): Likewise.
61781         * modules/posix-shell (License): Likewise.
61782
61783         New module posix-shell, for determining a POSIX shell
61784         or perhaps something that is close enough to a POSIX shell.
61785         * m4/posix-shell.m4: New file.
61786         * modules/posix-shell: New file.
61787
61788         * MODULES.html.sh: Mention new module.
61789
61790         New module gnu-make, for determining whether we're using GNU Make.
61791         * m4/gnu-make.m4: New file.
61792         * modules/gnu-make: New file.
61793         * MODULES.html.sh: Mention new module.
61794
61795 2007-11-14  Jim Meyering  <meyering@redhat.com>
61796
61797         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
61798         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
61799         use this macro to create a function _definition_.
61800         Remove useless "#undef ARGMATCH_DIE".
61801
61802 2007-11-14  Bruno Haible  <bruno@clisp.org>
61803
61804         * lib/config.charset: Update for OpenBSD 4.1.
61805         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
61806
61807 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         Document 64-bit #if problems in stdint.texi.
61810         * doc/headers/stdint.texi (stdint.h): Mention problems with
61811         64-bit-#if, and how to work around them.
61812
61813         Don't insist on 'long long int' support in the preprocessor.  It
61814         breaks too many things.  For example, PRIdMAX still uses a 'long
61815         long int' format with the latest Sun compiler, even though
61816         HAVE_LONG_LONG_INT isn't defined due to that compiler's
61817         preprocessor problem.  This causes the latest coreutils to dump
61818         core on Solaris 10 sparc with the Sun C compiler.
61819         Instead, fix the 2007-10-16 problem in a different way, by evaluating
61820         the troublesome expressions at configure-time, not at #if-time.
61821         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
61822         preprocessor.
61823         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
61824         compile-time C checks, done at 'configure'-time.
61825         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
61826         * modules/inttypes (Makefile): Substitute the new symbols that
61827         gl_INTTYPES_H now generates.
61828         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
61829
61830 2007-11-12  Bruno Haible  <bruno@clisp.org>
61831
61832         Tests for Unicode character classification functions.
61833
61834         * modules/unictype/bidicategory-byname-tests: New file.
61835         * modules/unictype/bidicategory-name-tests: New file.
61836         * modules/unictype/bidicategory-of-tests: New file.
61837         * modules/unictype/bidicategory-test-tests: New file.
61838         * modules/unictype/block-list-tests: New file.
61839         * modules/unictype/block-of-tests: New file.
61840         * modules/unictype/block-test-tests: New file.
61841         * modules/unictype/category-C-tests: New file.
61842         * modules/unictype/category-Cc-tests: New file.
61843         * modules/unictype/category-Cf-tests: New file.
61844         * modules/unictype/category-Cn-tests: New file.
61845         * modules/unictype/category-Co-tests: New file.
61846         * modules/unictype/category-Cs-tests: New file.
61847         * modules/unictype/category-L-tests: New file.
61848         * modules/unictype/category-Ll-tests: New file.
61849         * modules/unictype/category-Lm-tests: New file.
61850         * modules/unictype/category-Lo-tests: New file.
61851         * modules/unictype/category-Lt-tests: New file.
61852         * modules/unictype/category-Lu-tests: New file.
61853         * modules/unictype/category-M-tests: New file.
61854         * modules/unictype/category-Mc-tests: New file.
61855         * modules/unictype/category-Me-tests: New file.
61856         * modules/unictype/category-Mn-tests: New file.
61857         * modules/unictype/category-N-tests: New file.
61858         * modules/unictype/category-Nd-tests: New file.
61859         * modules/unictype/category-Nl-tests: New file.
61860         * modules/unictype/category-No-tests: New file.
61861         * modules/unictype/category-P-tests: New file.
61862         * modules/unictype/category-Pc-tests: New file.
61863         * modules/unictype/category-Pd-tests: New file.
61864         * modules/unictype/category-Pe-tests: New file.
61865         * modules/unictype/category-Pf-tests: New file.
61866         * modules/unictype/category-Pi-tests: New file.
61867         * modules/unictype/category-Po-tests: New file.
61868         * modules/unictype/category-Ps-tests: New file.
61869         * modules/unictype/category-S-tests: New file.
61870         * modules/unictype/category-Sc-tests: New file.
61871         * modules/unictype/category-Sk-tests: New file.
61872         * modules/unictype/category-Sm-tests: New file.
61873         * modules/unictype/category-So-tests: New file.
61874         * modules/unictype/category-Z-tests: New file.
61875         * modules/unictype/category-Zl-tests: New file.
61876         * modules/unictype/category-Zp-tests: New file.
61877         * modules/unictype/category-Zs-tests: New file.
61878         * modules/unictype/category-and-not-tests: New file.
61879         * modules/unictype/category-and-tests: New file.
61880         * modules/unictype/category-byname-tests: New file.
61881         * modules/unictype/category-name-tests: New file.
61882         * modules/unictype/category-none-tests: New file.
61883         * modules/unictype/category-of-tests: New file.
61884         * modules/unictype/category-or-tests: New file.
61885         * modules/unictype/category-test-withtable-tests: New file.
61886         * modules/unictype/combining-class-tests: New file.
61887         * modules/unictype/ctype-alnum-tests: New file.
61888         * modules/unictype/ctype-alpha-tests: New file.
61889         * modules/unictype/ctype-blank-tests: New file.
61890         * modules/unictype/ctype-cntrl-tests: New file.
61891         * modules/unictype/ctype-digit-tests: New file.
61892         * modules/unictype/ctype-graph-tests: New file.
61893         * modules/unictype/ctype-lower-tests: New file.
61894         * modules/unictype/ctype-print-tests: New file.
61895         * modules/unictype/ctype-punct-tests: New file.
61896         * modules/unictype/ctype-space-tests: New file.
61897         * modules/unictype/ctype-upper-tests: New file.
61898         * modules/unictype/ctype-xdigit-tests: New file.
61899         * modules/unictype/decimal-digit-tests: New file.
61900         * modules/unictype/digit-tests: New file.
61901         * modules/unictype/mirror-tests: New file.
61902         * modules/unictype/numeric-tests: New file.
61903         * modules/unictype/property-alphabetic-tests: New file.
61904         * modules/unictype/property-ascii-hex-digit-tests: New file.
61905         * modules/unictype/property-bidi-arabic-digit-tests: New file.
61906         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
61907         * modules/unictype/property-bidi-block-separator-tests: New file.
61908         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
61909         * modules/unictype/property-bidi-common-separator-tests: New file.
61910         * modules/unictype/property-bidi-control-tests: New file.
61911         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
61912         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
61913         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
61914         * modules/unictype/property-bidi-european-digit-tests: New file.
61915         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
61916         * modules/unictype/property-bidi-left-to-right-tests: New file.
61917         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
61918         * modules/unictype/property-bidi-other-neutral-tests: New file.
61919         * modules/unictype/property-bidi-pdf-tests: New file.
61920         * modules/unictype/property-bidi-segment-separator-tests: New file.
61921         * modules/unictype/property-bidi-whitespace-tests: New file.
61922         * modules/unictype/property-byname-tests: New file.
61923         * modules/unictype/property-combining-tests: New file.
61924         * modules/unictype/property-composite-tests: New file.
61925         * modules/unictype/property-currency-symbol-tests: New file.
61926         * modules/unictype/property-dash-tests: New file.
61927         * modules/unictype/property-decimal-digit-tests: New file.
61928         * modules/unictype/property-default-ignorable-code-point-tests: New file.
61929         * modules/unictype/property-deprecated-tests: New file.
61930         * modules/unictype/property-diacritic-tests: New file.
61931         * modules/unictype/property-extender-tests: New file.
61932         * modules/unictype/property-format-control-tests: New file.
61933         * modules/unictype/property-grapheme-base-tests: New file.
61934         * modules/unictype/property-grapheme-extend-tests: New file.
61935         * modules/unictype/property-grapheme-link-tests: New file.
61936         * modules/unictype/property-hex-digit-tests: New file.
61937         * modules/unictype/property-hyphen-tests: New file.
61938         * modules/unictype/property-id-continue-tests: New file.
61939         * modules/unictype/property-id-start-tests: New file.
61940         * modules/unictype/property-ideographic-tests: New file.
61941         * modules/unictype/property-ids-binary-operator-tests: New file.
61942         * modules/unictype/property-ids-trinary-operator-tests: New file.
61943         * modules/unictype/property-ignorable-control-tests: New file.
61944         * modules/unictype/property-iso-control-tests: New file.
61945         * modules/unictype/property-join-control-tests: New file.
61946         * modules/unictype/property-left-of-pair-tests: New file.
61947         * modules/unictype/property-line-separator-tests: New file.
61948         * modules/unictype/property-logical-order-exception-tests: New file.
61949         * modules/unictype/property-lowercase-tests: New file.
61950         * modules/unictype/property-math-tests: New file.
61951         * modules/unictype/property-non-break-tests: New file.
61952         * modules/unictype/property-not-a-character-tests: New file.
61953         * modules/unictype/property-numeric-tests: New file.
61954         * modules/unictype/property-other-alphabetic-tests: New file.
61955         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
61956         * modules/unictype/property-other-grapheme-extend-tests: New file.
61957         * modules/unictype/property-other-id-continue-tests: New file.
61958         * modules/unictype/property-other-id-start-tests: New file.
61959         * modules/unictype/property-other-lowercase-tests: New file.
61960         * modules/unictype/property-other-math-tests: New file.
61961         * modules/unictype/property-other-uppercase-tests: New file.
61962         * modules/unictype/property-paired-punctuation-tests: New file.
61963         * modules/unictype/property-paragraph-separator-tests: New file.
61964         * modules/unictype/property-pattern-syntax-tests: New file.
61965         * modules/unictype/property-pattern-white-space-tests: New file.
61966         * modules/unictype/property-private-use-tests: New file.
61967         * modules/unictype/property-punctuation-tests: New file.
61968         * modules/unictype/property-quotation-mark-tests: New file.
61969         * modules/unictype/property-radical-tests: New file.
61970         * modules/unictype/property-sentence-terminal-tests: New file.
61971         * modules/unictype/property-soft-dotted-tests: New file.
61972         * modules/unictype/property-space-tests: New file.
61973         * modules/unictype/property-terminal-punctuation-tests: New file.
61974         * modules/unictype/property-test-tests: New file.
61975         * modules/unictype/property-titlecase-tests: New file.
61976         * modules/unictype/property-unassigned-code-value-tests: New file.
61977         * modules/unictype/property-unified-ideograph-tests: New file.
61978         * modules/unictype/property-uppercase-tests: New file.
61979         * modules/unictype/property-variation-selector-tests: New file.
61980         * modules/unictype/property-white-space-tests: New file.
61981         * modules/unictype/property-xid-continue-tests: New file.
61982         * modules/unictype/property-xid-start-tests: New file.
61983         * modules/unictype/property-zero-width-tests: New file.
61984         * modules/unictype/scripts-tests: New file.
61985         * modules/unictype/syntax-c-ident-tests: New file.
61986         * modules/unictype/syntax-c-whitespace-tests: New file.
61987         * modules/unictype/syntax-java-ident-tests: New file.
61988         * modules/unictype/syntax-java-whitespace-tests: New file.
61989         * tests/unictype/test-bidi_byname.c: New file.
61990         * tests/unictype/test-bidi_name.c: New file.
61991         * tests/unictype/test-bidi_of.c: New file.
61992         * tests/unictype/test-bidi_test.c: New file.
61993         * tests/unictype/test-block_list.c: New file.
61994         * tests/unictype/test-block_of.c: New file.
61995         * tests/unictype/test-block_test.c: New file.
61996         * tests/unictype/test-categ_and.c: New file.
61997         * tests/unictype/test-categ_and_not.c: New file.
61998         * tests/unictype/test-categ_byname.c: New file.
61999         * tests/unictype/test-categ_name.c: New file.
62000         * tests/unictype/test-categ_none.c: New file.
62001         * tests/unictype/test-categ_of.c: New file.
62002         * tests/unictype/test-categ_or.c: New file.
62003         * tests/unictype/test-categ_test_withtable.c: New file.
62004         * tests/unictype/test-combining.c: New file.
62005         * tests/unictype/test-decdigit.c: New file.
62006         * tests/unictype/test-digit.c: New file.
62007         * tests/unictype/test-mirror.c: New file.
62008         * tests/unictype/test-numeric.c: New file.
62009         * tests/unictype/test-pr_byname.c: New file.
62010         * tests/unictype/test-pr_test.c: New file.
62011         * tests/unictype/test-predicate-part1.h: New file.
62012         * tests/unictype/test-predicate-part2.h: New file.
62013         * tests/unictype/test-scripts.c: New file.
62014         * tests/unictype/test-sy_c_ident.c: New file.
62015         * tests/unictype/test-sy_java_ident.c: New file.
62016
62017         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62018         for Unicode 5.0.0.
62019         * tests/unictype/test-categ_Cc.c: Likewise.
62020         * tests/unictype/test-categ_Cf.c: Likewise.
62021         * tests/unictype/test-categ_Cn.c: Likewise.
62022         * tests/unictype/test-categ_Co.c: Likewise.
62023         * tests/unictype/test-categ_Cs.c: Likewise.
62024         * tests/unictype/test-categ_L.c: Likewise.
62025         * tests/unictype/test-categ_Ll.c: Likewise.
62026         * tests/unictype/test-categ_Lm.c: Likewise.
62027         * tests/unictype/test-categ_Lo.c: Likewise.
62028         * tests/unictype/test-categ_Lt.c: Likewise.
62029         * tests/unictype/test-categ_Lu.c: Likewise.
62030         * tests/unictype/test-categ_M.c: Likewise.
62031         * tests/unictype/test-categ_Mc.c: Likewise.
62032         * tests/unictype/test-categ_Me.c: Likewise.
62033         * tests/unictype/test-categ_Mn.c: Likewise.
62034         * tests/unictype/test-categ_N.c: Likewise.
62035         * tests/unictype/test-categ_Nd.c: Likewise.
62036         * tests/unictype/test-categ_Nl.c: Likewise.
62037         * tests/unictype/test-categ_No.c: Likewise.
62038         * tests/unictype/test-categ_P.c: Likewise.
62039         * tests/unictype/test-categ_Pc.c: Likewise.
62040         * tests/unictype/test-categ_Pd.c: Likewise.
62041         * tests/unictype/test-categ_Pe.c: Likewise.
62042         * tests/unictype/test-categ_Pf.c: Likewise.
62043         * tests/unictype/test-categ_Pi.c: Likewise.
62044         * tests/unictype/test-categ_Po.c: Likewise.
62045         * tests/unictype/test-categ_Ps.c: Likewise.
62046         * tests/unictype/test-categ_S.c: Likewise.
62047         * tests/unictype/test-categ_Sc.c: Likewise.
62048         * tests/unictype/test-categ_Sk.c: Likewise.
62049         * tests/unictype/test-categ_Sm.c: Likewise.
62050         * tests/unictype/test-categ_So.c: Likewise.
62051         * tests/unictype/test-categ_Z.c: Likewise.
62052         * tests/unictype/test-categ_Zl.c: Likewise.
62053         * tests/unictype/test-categ_Zp.c: Likewise.
62054         * tests/unictype/test-categ_Zs.c: Likewise.
62055         * tests/unictype/test-ctype_alnum.c: Likewise.
62056         * tests/unictype/test-ctype_alpha.c: Likewise.
62057         * tests/unictype/test-ctype_blank.c: Likewise.
62058         * tests/unictype/test-ctype_cntrl.c: Likewise.
62059         * tests/unictype/test-ctype_digit.c: Likewise.
62060         * tests/unictype/test-ctype_graph.c: Likewise.
62061         * tests/unictype/test-ctype_lower.c: Likewise.
62062         * tests/unictype/test-ctype_print.c: Likewise.
62063         * tests/unictype/test-ctype_punct.c: Likewise.
62064         * tests/unictype/test-ctype_space.c: Likewise.
62065         * tests/unictype/test-ctype_upper.c: Likewise.
62066         * tests/unictype/test-ctype_xdigit.c: Likewise.
62067         * tests/unictype/test-decdigit.h: Likewise.
62068         * tests/unictype/test-digit.h: Likewise.
62069         * tests/unictype/test-numeric.h: Likewise.
62070         * tests/unictype/test-pr_alphabetic.c: Likewise.
62071         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62072         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62073         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62074         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62075         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62076         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62077         * tests/unictype/test-pr_bidi_control.c: Likewise.
62078         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62079         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62080         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62081         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62082         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62083         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62084         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62085         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62086         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62087         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62088         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62089         * tests/unictype/test-pr_combining.c: Likewise.
62090         * tests/unictype/test-pr_composite.c: Likewise.
62091         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62092         * tests/unictype/test-pr_dash.c: Likewise.
62093         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62094         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62095         * tests/unictype/test-pr_deprecated.c: Likewise.
62096         * tests/unictype/test-pr_diacritic.c: Likewise.
62097         * tests/unictype/test-pr_extender.c: Likewise.
62098         * tests/unictype/test-pr_format_control.c: Likewise.
62099         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62100         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62101         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62102         * tests/unictype/test-pr_hex_digit.c: Likewise.
62103         * tests/unictype/test-pr_hyphen.c: Likewise.
62104         * tests/unictype/test-pr_id_continue.c: Likewise.
62105         * tests/unictype/test-pr_id_start.c: Likewise.
62106         * tests/unictype/test-pr_ideographic.c: Likewise.
62107         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62108         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62109         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62110         * tests/unictype/test-pr_iso_control.c: Likewise.
62111         * tests/unictype/test-pr_join_control.c: Likewise.
62112         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62113         * tests/unictype/test-pr_line_separator.c: Likewise.
62114         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62115         * tests/unictype/test-pr_lowercase.c: Likewise.
62116         * tests/unictype/test-pr_math.c: Likewise.
62117         * tests/unictype/test-pr_non_break.c: Likewise.
62118         * tests/unictype/test-pr_not_a_character.c: Likewise.
62119         * tests/unictype/test-pr_numeric.c: Likewise.
62120         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62121         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62122         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62123         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62124         * tests/unictype/test-pr_other_id_start.c: Likewise.
62125         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62126         * tests/unictype/test-pr_other_math.c: Likewise.
62127         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62128         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62129         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62130         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62131         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62132         * tests/unictype/test-pr_private_use.c: Likewise.
62133         * tests/unictype/test-pr_punctuation.c: Likewise.
62134         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62135         * tests/unictype/test-pr_radical.c: Likewise.
62136         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62137         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62138         * tests/unictype/test-pr_space.c: Likewise.
62139         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62140         * tests/unictype/test-pr_titlecase.c: Likewise.
62141         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62142         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62143         * tests/unictype/test-pr_uppercase.c: Likewise.
62144         * tests/unictype/test-pr_variation_selector.c: Likewise.
62145         * tests/unictype/test-pr_white_space.c: Likewise.
62146         * tests/unictype/test-pr_xid_continue.c: Likewise.
62147         * tests/unictype/test-pr_xid_start.c: Likewise.
62148         * tests/unictype/test-pr_zero_width.c: Likewise.
62149         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62150         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62151
62152 2007-11-12  Bruno Haible  <bruno@clisp.org>
62153
62154         Unicode character classification functions.
62155         * lib/unictype.h: New file.
62156         * modules/unictype/base: New file.
62157         * modules/unictype/category-L: New file.
62158         * modules/unictype/category-Lu: New file.
62159         * modules/unictype/category-Ll: New file.
62160         * modules/unictype/category-Lt: New file.
62161         * modules/unictype/category-Lm: New file.
62162         * modules/unictype/category-Lo: New file.
62163         * modules/unictype/category-M: New file.
62164         * modules/unictype/category-Mn: New file.
62165         * modules/unictype/category-Mc: New file.
62166         * modules/unictype/category-Me: New file.
62167         * modules/unictype/category-N: New file.
62168         * modules/unictype/category-Nd: New file.
62169         * modules/unictype/category-Nl: New file.
62170         * modules/unictype/category-No: New file.
62171         * modules/unictype/category-P: New file.
62172         * modules/unictype/category-Pc: New file.
62173         * modules/unictype/category-Pd: New file.
62174         * modules/unictype/category-Ps: New file.
62175         * modules/unictype/category-Pe: New file.
62176         * modules/unictype/category-Pi: New file.
62177         * modules/unictype/category-Pf: New file.
62178         * modules/unictype/category-Po: New file.
62179         * modules/unictype/category-S: New file.
62180         * modules/unictype/category-Sm: New file.
62181         * modules/unictype/category-Sc: New file.
62182         * modules/unictype/category-Sk: New file.
62183         * modules/unictype/category-So: New file.
62184         * modules/unictype/category-Z: New file.
62185         * modules/unictype/category-Zs: New file.
62186         * modules/unictype/category-Zl: New file.
62187         * modules/unictype/category-Zp: New file.
62188         * modules/unictype/category-C: New file.
62189         * modules/unictype/category-Cc: New file.
62190         * modules/unictype/category-Cf: New file.
62191         * modules/unictype/category-Cs: New file.
62192         * modules/unictype/category-Co: New file.
62193         * modules/unictype/category-Cn: New file.
62194         * modules/unictype/category-or: New file.
62195         * modules/unictype/category-of: New file.
62196         * modules/unictype/category-test: New file.
62197         * modules/unictype/category-test-withtable: New file.
62198         * modules/unictype/category-byname: New file.
62199         * modules/unictype/category-none: New file.
62200         * modules/unictype/category-and: New file.
62201         * modules/unictype/category-and-not: New file.
62202         * modules/unictype/category-name: New file.
62203         * modules/unictype/combining-class: New file.
62204         * modules/unictype/category-all: New file.
62205         * modules/unictype/bidicategory-all: New file.
62206         * modules/unictype/bidicategory-byname: New file.
62207         * modules/unictype/bidicategory-name: New file.
62208         * modules/unictype/bidicategory-of: New file.
62209         * modules/unictype/bidicategory-test: New file.
62210         * modules/unictype/decimal-digit: New file.
62211         * modules/unictype/digit: New file.
62212         * modules/unictype/numeric: New file.
62213         * modules/unictype/mirror: New file.
62214         * modules/unictype/property-white-space: New file.
62215         * modules/unictype/property-alphabetic: New file.
62216         * modules/unictype/property-other-alphabetic: New file.
62217         * modules/unictype/property-not-a-character: New file.
62218         * modules/unictype/property-default-ignorable-code-point: New file.
62219         * modules/unictype/property-other-default-ignorable-code-point: New
62220         file.
62221         * modules/unictype/property-deprecated: New file.
62222         * modules/unictype/property-logical-order-exception: New file.
62223         * modules/unictype/property-variation-selector: New file.
62224         * modules/unictype/property-private-use: New file.
62225         * modules/unictype/property-unassigned-code-value: New file.
62226         * modules/unictype/property-uppercase: New file.
62227         * modules/unictype/property-other-uppercase: New file.
62228         * modules/unictype/property-lowercase: New file.
62229         * modules/unictype/property-other-lowercase: New file.
62230         * modules/unictype/property-titlecase: New file.
62231         * modules/unictype/property-soft-dotted: New file.
62232         * modules/unictype/property-id-start: New file.
62233         * modules/unictype/property-other-id-start: New file.
62234         * modules/unictype/property-id-continue: New file.
62235         * modules/unictype/property-other-id-continue: New file.
62236         * modules/unictype/property-xid-start: New file.
62237         * modules/unictype/property-xid-continue: New file.
62238         * modules/unictype/property-pattern-white-space: New file.
62239         * modules/unictype/property-pattern-syntax: New file.
62240         * modules/unictype/property-join-control: New file.
62241         * modules/unictype/property-grapheme-base: New file.
62242         * modules/unictype/property-grapheme-extend: New file.
62243         * modules/unictype/property-other-grapheme-extend: New file.
62244         * modules/unictype/property-grapheme-link: New file.
62245         * modules/unictype/property-bidi-control: New file.
62246         * modules/unictype/property-bidi-left-to-right: New file.
62247         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62248         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62249         * modules/unictype/property-bidi-european-digit: New file.
62250         * modules/unictype/property-bidi-eur-num-separator: New file.
62251         * modules/unictype/property-bidi-eur-num-terminator: New file.
62252         * modules/unictype/property-bidi-arabic-digit: New file.
62253         * modules/unictype/property-bidi-common-separator: New file.
62254         * modules/unictype/property-bidi-block-separator: New file.
62255         * modules/unictype/property-bidi-segment-separator: New file.
62256         * modules/unictype/property-bidi-whitespace: New file.
62257         * modules/unictype/property-bidi-non-spacing-mark: New file.
62258         * modules/unictype/property-bidi-boundary-neutral: New file.
62259         * modules/unictype/property-bidi-pdf: New file.
62260         * modules/unictype/property-bidi-embedding-or-override: New file.
62261         * modules/unictype/property-bidi-other-neutral: New file.
62262         * modules/unictype/property-hex-digit: New file.
62263         * modules/unictype/property-ascii-hex-digit: New file.
62264         * modules/unictype/property-ideographic: New file.
62265         * modules/unictype/property-unified-ideograph: New file.
62266         * modules/unictype/property-radical: New file.
62267         * modules/unictype/property-ids-binary-operator: New file.
62268         * modules/unictype/property-ids-trinary-operator: New file.
62269         * modules/unictype/property-zero-width: New file.
62270         * modules/unictype/property-space: New file.
62271         * modules/unictype/property-non-break: New file.
62272         * modules/unictype/property-iso-control: New file.
62273         * modules/unictype/property-format-control: New file.
62274         * modules/unictype/property-dash: New file.
62275         * modules/unictype/property-hyphen: New file.
62276         * modules/unictype/property-punctuation: New file.
62277         * modules/unictype/property-line-separator: New file.
62278         * modules/unictype/property-paragraph-separator: New file.
62279         * modules/unictype/property-quotation-mark: New file.
62280         * modules/unictype/property-sentence-terminal: New file.
62281         * modules/unictype/property-terminal-punctuation: New file.
62282         * modules/unictype/property-currency-symbol: New file.
62283         * modules/unictype/property-math: New file.
62284         * modules/unictype/property-other-math: New file.
62285         * modules/unictype/property-paired-punctuation: New file.
62286         * modules/unictype/property-left-of-pair: New file.
62287         * modules/unictype/property-combining: New file.
62288         * modules/unictype/property-composite: New file.
62289         * modules/unictype/property-decimal-digit: New file.
62290         * modules/unictype/property-numeric: New file.
62291         * modules/unictype/property-diacritic: New file.
62292         * modules/unictype/property-extender: New file.
62293         * modules/unictype/property-ignorable-control: New file.
62294         * modules/unictype/property-test: New file.
62295         * modules/unictype/property-byname: New file.
62296         * modules/unictype/property-all: New file.
62297         * modules/unictype/scripts: New file.
62298         * modules/unictype/scripts-all: New file.
62299         * modules/unictype/block-of: New file.
62300         * modules/unictype/block-test: New file.
62301         * modules/unictype/block-list: New file.
62302         * modules/unictype/block-all: New file.
62303         * modules/unictype/syntax-c-whitespace: New file.
62304         * modules/unictype/syntax-java-whitespace: New file.
62305         * modules/unictype/syntax-c-ident: New file.
62306         * modules/unictype/syntax-java-ident: New file.
62307         * modules/unictype/ctype-alnum: New file.
62308         * modules/unictype/ctype-alpha: New file.
62309         * modules/unictype/ctype-cntrl: New file.
62310         * modules/unictype/ctype-digit: New file.
62311         * modules/unictype/ctype-graph: New file.
62312         * modules/unictype/ctype-lower: New file.
62313         * modules/unictype/ctype-print: New file.
62314         * modules/unictype/ctype-punct: New file.
62315         * modules/unictype/ctype-space: New file.
62316         * modules/unictype/ctype-upper: New file.
62317         * modules/unictype/ctype-xdigit: New file.
62318         * modules/unictype/ctype-blank: New file.
62319         * lib/unictype/bidi_byname.c: New file.
62320         * lib/unictype/bidi_name.c: New file.
62321         * lib/unictype/bidi_of.c: New file.
62322         * lib/unictype/bidi_test.c: New file.
62323         * lib/unictype/bitmap.h: New file.
62324         * lib/unictype/block_test.c: New file.
62325         * lib/unictype/blocks.c: New file.
62326         * lib/unictype/categ_C.c: New file.
62327         * lib/unictype/categ_Cc.c: New file.
62328         * lib/unictype/categ_Cf.c: New file.
62329         * lib/unictype/categ_Cn.c: New file.
62330         * lib/unictype/categ_Co.c: New file.
62331         * lib/unictype/categ_Cs.c: New file.
62332         * lib/unictype/categ_L.c: New file.
62333         * lib/unictype/categ_Ll.c: New file.
62334         * lib/unictype/categ_Lm.c: New file.
62335         * lib/unictype/categ_Lo.c: New file.
62336         * lib/unictype/categ_Lt.c: New file.
62337         * lib/unictype/categ_Lu.c: New file.
62338         * lib/unictype/categ_M.c: New file.
62339         * lib/unictype/categ_Mc.c: New file.
62340         * lib/unictype/categ_Me.c: New file.
62341         * lib/unictype/categ_Mn.c: New file.
62342         * lib/unictype/categ_N.c: New file.
62343         * lib/unictype/categ_Nd.c: New file.
62344         * lib/unictype/categ_Nl.c: New file.
62345         * lib/unictype/categ_No.c: New file.
62346         * lib/unictype/categ_P.c: New file.
62347         * lib/unictype/categ_Pc.c: New file.
62348         * lib/unictype/categ_Pd.c: New file.
62349         * lib/unictype/categ_Pe.c: New file.
62350         * lib/unictype/categ_Pf.c: New file.
62351         * lib/unictype/categ_Pi.c: New file.
62352         * lib/unictype/categ_Po.c: New file.
62353         * lib/unictype/categ_Ps.c: New file.
62354         * lib/unictype/categ_S.c: New file.
62355         * lib/unictype/categ_Sc.c: New file.
62356         * lib/unictype/categ_Sk.c: New file.
62357         * lib/unictype/categ_Sm.c: New file.
62358         * lib/unictype/categ_So.c: New file.
62359         * lib/unictype/categ_Z.c: New file.
62360         * lib/unictype/categ_Zl.c: New file.
62361         * lib/unictype/categ_Zp.c: New file.
62362         * lib/unictype/categ_Zs.c: New file.
62363         * lib/unictype/categ_and.c: New file.
62364         * lib/unictype/categ_and_not.c: New file.
62365         * lib/unictype/categ_byname.c: New file.
62366         * lib/unictype/categ_name.c: New file.
62367         * lib/unictype/categ_none.c: New file.
62368         * lib/unictype/categ_of.c: New file.
62369         * lib/unictype/categ_or.c: New file.
62370         * lib/unictype/categ_test.c: New file.
62371         * lib/unictype/combining.c: New file.
62372         * lib/unictype/ctype_alnum.c: New file.
62373         * lib/unictype/ctype_alpha.c: New file.
62374         * lib/unictype/ctype_blank.c: New file.
62375         * lib/unictype/ctype_cntrl.c: New file.
62376         * lib/unictype/ctype_digit.c: New file.
62377         * lib/unictype/ctype_graph.c: New file.
62378         * lib/unictype/ctype_lower.c: New file.
62379         * lib/unictype/ctype_print.c: New file.
62380         * lib/unictype/ctype_punct.c: New file.
62381         * lib/unictype/ctype_space.c: New file.
62382         * lib/unictype/ctype_upper.c: New file.
62383         * lib/unictype/ctype_xdigit.c: New file.
62384         * lib/unictype/decdigit.c: New file.
62385         * lib/unictype/digit.c: New file.
62386         * lib/unictype/identsyntaxmap.h: New file.
62387         * lib/unictype/mirror.c: New file.
62388         * lib/unictype/numeric.c: New file.
62389         * lib/unictype/pr_alphabetic.c: New file.
62390         * lib/unictype/pr_ascii_hex_digit.c: New file.
62391         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62392         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62393         * lib/unictype/pr_bidi_block_separator.c: New file.
62394         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62395         * lib/unictype/pr_bidi_common_separator.c: New file.
62396         * lib/unictype/pr_bidi_control.c: New file.
62397         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62398         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62399         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62400         * lib/unictype/pr_bidi_european_digit.c: New file.
62401         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62402         * lib/unictype/pr_bidi_left_to_right.c: New file.
62403         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62404         * lib/unictype/pr_bidi_other_neutral.c: New file.
62405         * lib/unictype/pr_bidi_pdf.c: New file.
62406         * lib/unictype/pr_bidi_segment_separator.c: New file.
62407         * lib/unictype/pr_bidi_whitespace.c: New file.
62408         * lib/unictype/pr_byname.c: New file.
62409         * lib/unictype/pr_byname.gperf: New file.
62410         * lib/unictype/pr_combining.c: New file.
62411         * lib/unictype/pr_composite.c: New file.
62412         * lib/unictype/pr_currency_symbol.c: New file.
62413         * lib/unictype/pr_dash.c: New file.
62414         * lib/unictype/pr_decimal_digit.c: New file.
62415         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62416         * lib/unictype/pr_deprecated.c: New file.
62417         * lib/unictype/pr_diacritic.c: New file.
62418         * lib/unictype/pr_extender.c: New file.
62419         * lib/unictype/pr_format_control.c: New file.
62420         * lib/unictype/pr_grapheme_base.c: New file.
62421         * lib/unictype/pr_grapheme_extend.c: New file.
62422         * lib/unictype/pr_grapheme_link.c: New file.
62423         * lib/unictype/pr_hex_digit.c: New file.
62424         * lib/unictype/pr_hyphen.c: New file.
62425         * lib/unictype/pr_id_continue.c: New file.
62426         * lib/unictype/pr_id_start.c: New file.
62427         * lib/unictype/pr_ideographic.c: New file.
62428         * lib/unictype/pr_ids_binary_operator.c: New file.
62429         * lib/unictype/pr_ids_trinary_operator.c: New file.
62430         * lib/unictype/pr_ignorable_control.c: New file.
62431         * lib/unictype/pr_iso_control.c: New file.
62432         * lib/unictype/pr_join_control.c: New file.
62433         * lib/unictype/pr_left_of_pair.c: New file.
62434         * lib/unictype/pr_line_separator.c: New file.
62435         * lib/unictype/pr_logical_order_exception.c: New file.
62436         * lib/unictype/pr_lowercase.c: New file.
62437         * lib/unictype/pr_math.c: New file.
62438         * lib/unictype/pr_non_break.c: New file.
62439         * lib/unictype/pr_not_a_character.c: New file.
62440         * lib/unictype/pr_numeric.c: New file.
62441         * lib/unictype/pr_other_alphabetic.c: New file.
62442         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62443         * lib/unictype/pr_other_grapheme_extend.c: New file.
62444         * lib/unictype/pr_other_id_continue.c: New file.
62445         * lib/unictype/pr_other_id_start.c: New file.
62446         * lib/unictype/pr_other_lowercase.c: New file.
62447         * lib/unictype/pr_other_math.c: New file.
62448         * lib/unictype/pr_other_uppercase.c: New file.
62449         * lib/unictype/pr_paired_punctuation.c: New file.
62450         * lib/unictype/pr_paragraph_separator.c: New file.
62451         * lib/unictype/pr_pattern_syntax.c: New file.
62452         * lib/unictype/pr_pattern_white_space.c: New file.
62453         * lib/unictype/pr_private_use.c: New file.
62454         * lib/unictype/pr_punctuation.c: New file.
62455         * lib/unictype/pr_quotation_mark.c: New file.
62456         * lib/unictype/pr_radical.c: New file.
62457         * lib/unictype/pr_sentence_terminal.c: New file.
62458         * lib/unictype/pr_soft_dotted.c: New file.
62459         * lib/unictype/pr_space.c: New file.
62460         * lib/unictype/pr_terminal_punctuation.c: New file.
62461         * lib/unictype/pr_test.c: New file.
62462         * lib/unictype/pr_titlecase.c: New file.
62463         * lib/unictype/pr_unassigned_code_value.c: New file.
62464         * lib/unictype/pr_unified_ideograph.c: New file.
62465         * lib/unictype/pr_uppercase.c: New file.
62466         * lib/unictype/pr_variation_selector.c: New file.
62467         * lib/unictype/pr_white_space.c: New file.
62468         * lib/unictype/pr_xid_continue.c: New file.
62469         * lib/unictype/pr_xid_start.c: New file.
62470         * lib/unictype/pr_zero_width.c: New file.
62471         * lib/unictype/scripts.c: New file.
62472         * lib/unictype/sy_c_ident.c: New file.
62473         * lib/unictype/sy_c_whitespace.c: New file.
62474         * lib/unictype/sy_java_ident.c: New file.
62475         * lib/unictype/sy_java_whitespace.c: New file.
62476
62477         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62478         Unicode 5.0.0.
62479         * lib/unictype/blocks.h: Likewise.
62480         * lib/unictype/categ_C.h: Likewise.
62481         * lib/unictype/categ_Cc.h: Likewise.
62482         * lib/unictype/categ_Cf.h: Likewise.
62483         * lib/unictype/categ_Cn.h: Likewise.
62484         * lib/unictype/categ_Co.h: Likewise.
62485         * lib/unictype/categ_Cs.h: Likewise.
62486         * lib/unictype/categ_L.h: Likewise.
62487         * lib/unictype/categ_Ll.h: Likewise.
62488         * lib/unictype/categ_Lm.h: Likewise.
62489         * lib/unictype/categ_Lo.h: Likewise.
62490         * lib/unictype/categ_Lt.h: Likewise.
62491         * lib/unictype/categ_Lu.h: Likewise.
62492         * lib/unictype/categ_M.h: Likewise.
62493         * lib/unictype/categ_Mc.h: Likewise.
62494         * lib/unictype/categ_Me.h: Likewise.
62495         * lib/unictype/categ_Mn.h: Likewise.
62496         * lib/unictype/categ_N.h: Likewise.
62497         * lib/unictype/categ_Nd.h: Likewise.
62498         * lib/unictype/categ_Nl.h: Likewise.
62499         * lib/unictype/categ_No.h: Likewise.
62500         * lib/unictype/categ_P.h: Likewise.
62501         * lib/unictype/categ_Pc.h: Likewise.
62502         * lib/unictype/categ_Pd.h: Likewise.
62503         * lib/unictype/categ_Pe.h: Likewise.
62504         * lib/unictype/categ_Pf.h: Likewise.
62505         * lib/unictype/categ_Pi.h: Likewise.
62506         * lib/unictype/categ_Po.h: Likewise.
62507         * lib/unictype/categ_Ps.h: Likewise.
62508         * lib/unictype/categ_S.h: Likewise.
62509         * lib/unictype/categ_Sc.h: Likewise.
62510         * lib/unictype/categ_Sk.h: Likewise.
62511         * lib/unictype/categ_Sm.h: Likewise.
62512         * lib/unictype/categ_So.h: Likewise.
62513         * lib/unictype/categ_Z.h: Likewise.
62514         * lib/unictype/categ_Zl.h: Likewise.
62515         * lib/unictype/categ_Zp.h: Likewise.
62516         * lib/unictype/categ_Zs.h: Likewise.
62517         * lib/unictype/categ_of.h: Likewise.
62518         * lib/unictype/combining.h: Likewise.
62519         * lib/unictype/ctype_alnum.h: Likewise.
62520         * lib/unictype/ctype_alpha.h: Likewise.
62521         * lib/unictype/ctype_blank.h: Likewise.
62522         * lib/unictype/ctype_cntrl.h: Likewise.
62523         * lib/unictype/ctype_digit.h: Likewise.
62524         * lib/unictype/ctype_graph.h: Likewise.
62525         * lib/unictype/ctype_lower.h: Likewise.
62526         * lib/unictype/ctype_print.h: Likewise.
62527         * lib/unictype/ctype_punct.h: Likewise.
62528         * lib/unictype/ctype_space.h: Likewise.
62529         * lib/unictype/ctype_upper.h: Likewise.
62530         * lib/unictype/ctype_xdigit.h: Likewise.
62531         * lib/unictype/decdigit.h: Likewise.
62532         * lib/unictype/digit.h: Likewise.
62533         * lib/unictype/mirror.h: Likewise.
62534         * lib/unictype/numeric.h: Likewise.
62535         * lib/unictype/pr_alphabetic.h: Likewise.
62536         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62537         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62538         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62539         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62540         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62541         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62542         * lib/unictype/pr_bidi_control.h: Likewise.
62543         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62544         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62545         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62546         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62547         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62548         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62549         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62550         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62551         * lib/unictype/pr_bidi_pdf.h: Likewise.
62552         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62553         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62554         * lib/unictype/pr_combining.h: Likewise.
62555         * lib/unictype/pr_composite.h: Likewise.
62556         * lib/unictype/pr_currency_symbol.h: Likewise.
62557         * lib/unictype/pr_dash.h: Likewise.
62558         * lib/unictype/pr_decimal_digit.h: Likewise.
62559         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62560         * lib/unictype/pr_deprecated.h: Likewise.
62561         * lib/unictype/pr_diacritic.h: Likewise.
62562         * lib/unictype/pr_extender.h: Likewise.
62563         * lib/unictype/pr_format_control.h: Likewise.
62564         * lib/unictype/pr_grapheme_base.h: Likewise.
62565         * lib/unictype/pr_grapheme_extend.h: Likewise.
62566         * lib/unictype/pr_grapheme_link.h: Likewise.
62567         * lib/unictype/pr_hex_digit.h: Likewise.
62568         * lib/unictype/pr_hyphen.h: Likewise.
62569         * lib/unictype/pr_id_continue.h: Likewise.
62570         * lib/unictype/pr_id_start.h: Likewise.
62571         * lib/unictype/pr_ideographic.h: Likewise.
62572         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62573         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62574         * lib/unictype/pr_ignorable_control.h: Likewise.
62575         * lib/unictype/pr_iso_control.h: Likewise.
62576         * lib/unictype/pr_join_control.h: Likewise.
62577         * lib/unictype/pr_left_of_pair.h: Likewise.
62578         * lib/unictype/pr_line_separator.h: Likewise.
62579         * lib/unictype/pr_logical_order_exception.h: Likewise.
62580         * lib/unictype/pr_lowercase.h: Likewise.
62581         * lib/unictype/pr_math.h: Likewise.
62582         * lib/unictype/pr_non_break.h: Likewise.
62583         * lib/unictype/pr_not_a_character.h: Likewise.
62584         * lib/unictype/pr_numeric.h: Likewise.
62585         * lib/unictype/pr_other_alphabetic.h: Likewise.
62586         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62587         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62588         * lib/unictype/pr_other_id_continue.h: Likewise.
62589         * lib/unictype/pr_other_id_start.h: Likewise.
62590         * lib/unictype/pr_other_lowercase.h: Likewise.
62591         * lib/unictype/pr_other_math.h: Likewise.
62592         * lib/unictype/pr_other_uppercase.h: Likewise.
62593         * lib/unictype/pr_paired_punctuation.h: Likewise.
62594         * lib/unictype/pr_paragraph_separator.h: Likewise.
62595         * lib/unictype/pr_pattern_syntax.h: Likewise.
62596         * lib/unictype/pr_pattern_white_space.h: Likewise.
62597         * lib/unictype/pr_private_use.h: Likewise.
62598         * lib/unictype/pr_punctuation.h: Likewise.
62599         * lib/unictype/pr_quotation_mark.h: Likewise.
62600         * lib/unictype/pr_radical.h: Likewise.
62601         * lib/unictype/pr_sentence_terminal.h: Likewise.
62602         * lib/unictype/pr_soft_dotted.h: Likewise.
62603         * lib/unictype/pr_space.h: Likewise.
62604         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62605         * lib/unictype/pr_titlecase.h: Likewise.
62606         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62607         * lib/unictype/pr_unified_ideograph.h: Likewise.
62608         * lib/unictype/pr_uppercase.h: Likewise.
62609         * lib/unictype/pr_variation_selector.h: Likewise.
62610         * lib/unictype/pr_white_space.h: Likewise.
62611         * lib/unictype/pr_xid_continue.h: Likewise.
62612         * lib/unictype/pr_xid_start.h: Likewise.
62613         * lib/unictype/pr_zero_width.h: Likewise.
62614         * lib/unictype/scripts.h: Likewise.
62615         * lib/unictype/scripts_byname.gperf: Likewise.
62616         * lib/unictype/sy_c_ident.h: Likewise.
62617         * lib/unictype/sy_c_whitespace.h: Likewise.
62618         * lib/unictype/sy_java_ident.h: Likewise.
62619         * lib/unictype/sy_java_whitespace.h: Likewise.
62620
62621         * lib/unictype/Makefile: New file.
62622         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
62623         glibc.
62624         * lib/unictype/3level.h: New file, copied from glibc.
62625         * lib/unictype/3levelbit.h: New file.
62626
62627 2007-11-11  Bruno Haible  <bruno@clisp.org>
62628
62629         * modules/gperf: New file.
62630         * modules/iconv_open (Depends-on): Add it.
62631         (Makefile.am): Remove the GPERF definition.
62632
62633 2007-11-11  Bruno Haible  <bruno@clisp.org>
62634
62635         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
62636         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
62637
62638 2007-11-11  Bruno Haible  <bruno@clisp.org>
62639
62640         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
62641         (usage): Remove function.
62642
62643 2007-11-11  Bruno Haible  <bruno@clisp.org>
62644
62645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
62646         gl_FUNC_CEILF_LIBS.
62647         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
62648         gl_FUNC_CEIL_LIBS.
62649         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
62650         gl_FUNC_CEILL_LIBS.
62651         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
62652         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
62653         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
62654
62655 2007-11-11  Bruno Haible  <bruno@clisp.org>
62656
62657         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
62658         roundf were declared but do not exist on functions.
62659         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
62660         roundl were declared but do not exist on functions.
62661         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
62662         HAVE_FLOORL_AND_CEILL, respectively.
62663         Needed for Sun C on Solaris 10.
62664
62665 2007-11-11  Bruno Haible  <bruno@clisp.org>
62666
62667         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
62668         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
62669         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
62670         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
62671         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
62672         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
62673         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
62674         HAVE_DECL_ROUNDF.
62675         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
62676         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
62677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
62678         of HAVE_DECL_ROUND*.
62679         * modules/math (Makefile.am): Update.
62680
62681 2007-11-10  Bruno Haible  <bruno@clisp.org>
62682
62683         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
62684         ptrdiff_t as m4/intl.m4.
62685
62686 2007-11-10  Jim Meyering  <meyering@redhat.com>
62687
62688         Avoid link failure for the argmatch test.
62689         * tests/test-argmatch.c (usage): Define function to avoid a link
62690         failure: argmatch_die requires a usage function.
62691
62692 2007-11-09  Bruno Haible  <bruno@clisp.org>
62693
62694         * doc/functions/snprintf.texi: Mention BeOS deficiency.
62695         * doc/functions/vsnprintf.texi: Likewise.
62696         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
62697         with a size argument < 2.
62698
62699 2007-11-09  Bruno Haible  <bruno@clisp.org>
62700
62701         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
62702         buffer. Fixes an inefficiency introduced on 2007-11-03.
62703
62704 2007-11-09  Bruno Haible  <bruno@clisp.org>
62705
62706         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
62707         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
62708
62709 2007-11-08  Jim Meyering  <meyering@redhat.com>
62710
62711         Change cache variable name prefix "jm_" to "gl_" everywhere.
62712         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
62713         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
62714         * m4/uptime.m4: s/gl_/jm_/
62715
62716 2007-11-07  Bruno Haible  <bruno@clisp.org>
62717
62718         Update to GNU gettext 0.17.
62719         * m4/intl.m4: Update to GNU gettext 0.17.
62720         * m4/po.m4: Likewise.
62721         * modules/gettext (Files): Remove m4/ulonglong.m4.
62722         (configure.ac): Require gettext infrastructure from version 0.17.
62723
62724 2007-11-06  Bruno Haible  <bruno@clisp.org>
62725
62726         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
62727         symbolic values are not defined in a public header.
62728         * lib/freadable.c (freadable) [QNX]: Likewise.
62729         * lib/freadahead.c (freadahead) [QNX]: Likewise.
62730         * lib/freading.c (freading) [QNX]: Likewise.
62731         * lib/fseterr.c (fseterr) [QNX]: Likewise.
62732         * lib/fwritable.c (fwritable) [QNX]: Likewise.
62733         * lib/fwriting.c (fwriting) [QNX]: Likewise.
62734         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
62735         Reported by Alain Magloire.
62736
62737         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
62738
62739 2007-11-05  Bruno Haible  <bruno@clisp.org>
62740
62741         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
62742         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
62743         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
62744         Reported by Eric Blake.
62745
62746 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62747             Bruno Haible  <bruno@clisp.org>
62748
62749         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
62750         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
62751         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
62752         (malloc): Undefine also before including <stdlib.h>.
62753         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
62754         Needed on OSF/1 4.0.
62755
62756 2007-11-05  Jim Meyering  <meyering@redhat.com>
62757
62758         git-version-gen: sync from coreutils.
62759         * build-aux/git-version-gen: Add comments.
62760         Change the first '-' to '.' in the snapshot version string,
62761         e.g., 6.9-377-08144 -> 6.9.377-08144
62762         Remove first parameter.
62763         Don't declare a version "-dirty" merely because a time
62764         stamp has changed.
62765
62766 2007-11-04  Bruno Haible  <bruno@clisp.org>
62767
62768         * lib/lock.h: Protect all macro definitions containing an 'if'
62769         statement through a "do { ... } while (0)".
62770         * lib/tls.h: Likewise.
62771
62772 2007-11-04  Bruno Haible  <bruno@clisp.org>
62773
62774         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
62775
62776 2007-11-04  Bruno Haible  <bruno@clisp.org>
62777
62778         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
62779         * modules/fprintf-posix (Depends-on): Add nocrash.
62780         * modules/snprintf-posix (Depends-on): Likewise.
62781         * modules/sprintf-posix (Depends-on): Likewise.
62782         * modules/vasnprintf-posix (Depends-on): Likewise.
62783         * modules/vasprintf-posix (Depends-on): Likewise.
62784         * modules/vfprintf-posix (Depends-on): Likewise.
62785         * modules/vsnprintf-posix (Depends-on): Likewise.
62786         * modules/vsprintf-posix (Depends-on): Likewise.
62787         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62788         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62789         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62790         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62791         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62792         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62793         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62794
62795 2007-11-04  Bruno Haible  <bruno@clisp.org>
62796
62797         * modules/nocrash: New file.
62798         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
62799         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
62800
62801 2007-11-04  Bruno Haible  <bruno@clisp.org>
62802
62803         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
62804         precision handling.
62805         * tests/test-vasprintf-posix.c (test_function): Likewise.
62806         * tests/test-snprintf-posix.h (test_function): Likewise.
62807         * tests/test-sprintf-posix.h (test_function): Likewise.
62808
62809         Fix *printf behaviour for large precisions on mingw and BeOS.
62810         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
62811         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
62812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
62813         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62814         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62815         gl_PRINTF_PRECISION and test its result. Invoke
62816         gl_PREREQ_VASNPRINTF_PRECISION.
62817         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62818         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62819         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62820         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62821         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62822         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62823         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62824         * doc/functions/fprintf.texi: Update.
62825         * doc/functions/printf.texi: Update.
62826         * doc/functions/snprintf.texi: Update.
62827         * doc/functions/sprintf.texi: Update.
62828         * doc/functions/vfprintf.texi: Update.
62829         * doc/functions/vprintf.texi: Update.
62830         * doc/functions/vsnprintf.texi: Update.
62831         * doc/functions/vsprintf.texi: Update.
62832
62833 2007-11-04  Bruno Haible  <bruno@clisp.org>
62834
62835         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
62836
62837 2007-11-04  Bruno Haible  <bruno@clisp.org>
62838
62839         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
62840         Reported by Sylvain Beucler <beuc@gnu.org>.
62841
62842 2007-11-03  Bruno Haible  <bruno@clisp.org>
62843
62844         * tests/test-fprintf-posix2.sh: New file.
62845         * tests/test-fprintf-posix2.c: New file.
62846         * modules/fprintf-posix-tests (Files): Add them.
62847         (TESTS): Add test-fprintf-posix2.sh.
62848         (configure.ac): Check for getrlimit and setrlimit.
62849         (check_PROGRAMS): Add test-fprintf-posix2.
62850
62851         * tests/test-printf-posix2.sh: New file.
62852         * tests/test-printf-posix2.c: New file.
62853         * modules/printf-posix-tests (Files): Add them.
62854         (TESTS): Add test-printf-posix2.sh.
62855         (configure.ac): Check for getrlimit and setrlimit.
62856         (check_PROGRAMS): Add test-printf-posix2.
62857
62858         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
62859         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
62860         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
62861         (decode_double): New function, copied from decode_long_double.
62862         (scale10_round_decimal_decoded): New function, extracted from
62863         scale10_round_decimal_long_double.
62864         (scale10_round_decimal_long_double): Use it.
62865         (scale10_round_decimal_double): New function.
62866         (floorlog10): New function.
62867         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
62868         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
62869         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62870         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62871         gl_PRINTF_ENOMEM and test its result. Invoke
62872         gl_PREREQ_VASNPRINTF_ENOMEM.
62873         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62874         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62875         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62876         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62877         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62878         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62879         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62880         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
62881         * modules/snprintf-posix (Depends-on): Likewise.
62882         * modules/sprintf-posix (Depends-on): Likewise.
62883         * modules/vasnprintf-posix (Depends-on): Likewise.
62884         * modules/vasprintf-posix (Depends-on): Likewise.
62885         * modules/vfprintf-posix (Depends-on): Likewise.
62886         * modules/vsnprintf-posix (Depends-on): Likewise.
62887         * modules/vsprintf-posix (Depends-on): Likewise.
62888         * doc/functions/fprintf.texi: Update.
62889         * doc/functions/printf.texi: Update.
62890         * doc/functions/snprintf.texi: Update.
62891         * doc/functions/sprintf.texi: Update.
62892         * doc/functions/vfprintf.texi: Update.
62893         * doc/functions/vprintf.texi: Update.
62894         * doc/functions/vsnprintf.texi: Update.
62895         * doc/functions/vsprintf.texi: Update.
62896
62897 2007-11-03  Bruno Haible  <bruno@clisp.org>
62898
62899         * modules/frexp-nolibm-tests: New file.
62900
62901         * modules/frexp-nolibm: New file.
62902         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
62903
62904 2007-11-03  Bruno Haible  <bruno@clisp.org>
62905
62906         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
62907         value is C99 compliant.
62908         Needed for OSF/1 5.1.
62909
62910 2007-11-03  Bruno Haible  <bruno@clisp.org>
62911
62912         Fix out-of-memory handling of vasnprintf.
62913         * lib/printf-parse.c: Include <errno.h>.
62914         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
62915         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
62916         is already set.
62917
62918 2007-11-02  Eric Blake  <ebb9@byu.net>
62919
62920         Fix tests on cygwin.
62921         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
62922
62923 2007-11-01  Bruno Haible  <bruno@clisp.org>
62924
62925         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
62926         warning.
62927         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
62928         needed for POSIX compatibility.
62929
62930 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62931
62932         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
62933         for compatibility with GNU.
62934
62935 2007-11-01  Bruno Haible  <bruno@clisp.org>
62936
62937         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
62938         (putenv): Renamed from rpl_putenv. Change argument type from
62939         'const char *' to 'char *'.
62940         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
62941         of defining putenv in config.h, just set REPLACE_PUTENV.
62942         * modules/putenv (Depends-on): Add stdlib.
62943         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62944         (Include): Use <stdlib.h>.
62945         * lib/stdlib.in.h (putenv): New declaration.
62946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
62947         REPLACE_PUTENV.
62948         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
62949         REPLACE_PUTENV.
62950         Needed for MacOS X 10.5.0.
62951         Reported by Peter O'Gorman <peter@pogma.com>.
62952
62953 2007-11-01  Jim Meyering  <meyering@redhat.com>
62954
62955         Treat an empty date string exactly like "0".
62956         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
62957         if the remaining date string (to be parsed) is empty, use "0".
62958         Reported by Mischa Molhoek and discussed in this thread:
62959         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
62960
62961 2007-10-31  Bruno Haible  <bruno@clisp.org>
62962
62963         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
62964         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
62965         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
62966         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
62967         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
62968         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
62969
62970 2007-10-31  Bruno Haible  <bruno@clisp.org>
62971
62972         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
62973         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
62974         (AC_TYPE_LONG_LONG_INT): Use it.
62975         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
62976         it as well.
62977         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
62978         to m4/longlong.m4.
62979         * modules/stdint (Files): Remove m4/ulonglong.m4.
62980         * modules/strtoull (Files): Use m4/longlong.m4 instead of
62981         m4/ulonglong.m4.
62982         * modules/strtoumax (Files): Likewise.
62983
62984 2007-10-30  Bruno Haible  <bruno@clisp.org>
62985
62986         * modules/xvasprintf-posix: New file.
62987         Suggested by Eric Blake.
62988
62989 2007-10-30  Bruno Haible  <bruno@clisp.org>
62990
62991         * modules/xprintf-posix-tests: New file.
62992         * tests/test-xprintf-posix.sh: New file.
62993         * tests/test-xprintf-posix.c: New file.
62994         * tests/test-xfprintf-posix.c: New file.
62995
62996         * modules/xprintf-posix: New file.
62997
62998 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62999
63000         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63001         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63002         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63003
63004 2007-10-29  Bruno Haible  <bruno@clisp.org>
63005
63006         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63007         contain the special marker '_cv_'.
63008         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63009         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63010         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63011         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63012         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63013         Reported by Ralf Wildenhues.
63014
63015 2007-10-29  Bruno Haible  <bruno@clisp.org>
63016
63017         * gnulib-tool (func_import): When --lgpl is not specified, set
63018         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63019         GPLv3.
63020         Reported by Simon Josefsson.
63021
63022 2007-10-28  Bruno Haible  <bruno@clisp.org>
63023
63024         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63025         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63026         HAVE_DECL_ISFINITE.
63027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63028         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63029         HAVE_DECL_ISFINITE.
63030
63031 2007-10-28  Bruno Haible  <bruno@clisp.org>
63032
63033         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63034         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63035
63036 2007-10-28  Bruno Haible  <bruno@clisp.org>
63037
63038         Fix link errors with Sun C 5.0 on Solaris 10.
63039         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63040         function is declared but not present in the compiler's libm.
63041         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63042         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63043         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63044         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63045         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63046         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63047         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63049         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63050         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63051         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63052         HAVE_DECL_FLOORL.
63053
63054 2007-10-28  Bruno Haible  <bruno@clisp.org>
63055
63056         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63057         gl_FUNC_FLOORL. Cache the result.
63058         (gl_FUNC_FLOORL): Use it.
63059         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63060         gl_FUNC_CEILL. Cache the result.
63061         (gl_FUNC_CEILL): Use it.
63062
63063         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63064         gl_FUNC_FLOOR. Cache the result.
63065         (gl_FUNC_FLOOR): Use it.
63066         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63067         gl_FUNC_CEIL. Cache the result.
63068         (gl_FUNC_CEIL): Use it.
63069
63070         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63071         gl_FUNC_FLOORF. Cache the result.
63072         (gl_FUNC_FLOORF): Use it.
63073         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63074         gl_FUNC_CEILF. Cache the result.
63075         (gl_FUNC_CEILF): Use it.
63076
63077 2007-10-28  Bruno Haible  <bruno@clisp.org>
63078
63079         * gnulib-tool: Allow specifying the LGPL version number through
63080         --lgpl=2 or --lgpl=3.
63081         (func_usage): Document --lgpl with argument.
63082         Handle --lgpl=... arguments.
63083         (func_import): Recognize also gl_LGPL calls with an argument. When
63084         --lgpl=2 is used and the module's license is just LGPL, report an
63085         error. Set sed_transform_lib_file according to the lgpl variable. In
63086         the generated files, use --lgpl or gl_LGPL invocations with argument,
63087         if necessary.
63088         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63089         an LGPv2+ license.
63090         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63091         gl_LGPL macro.
63092
63093 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63094             Bruno Haible  <bruno@clisp.org>
63095
63096         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63097         (u16_uctomb_aux): Likewise.
63098         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63099         !HAVE_INLINE.
63100         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63101
63102 2007-10-28  Bruno Haible  <bruno@clisp.org>
63103
63104         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63105         Invoke AM_GETTEXT_OPTION if it exists.
63106         * modules/vasprintf: Likewise.
63107         * modules/verror: Likewise.
63108         * modules/xprintf: Likewise.
63109         * modules/xvasprintf: Likewise.
63110
63111 2007-10-27  Ben Pfaff  <blp@gnu.org>
63112
63113         * lib/math.in.h: Define isfinite macro and prototypes for
63114         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63115         implementations.
63116         * m4/math_h.m4: New substitutions for isfinite module.
63117         * lib/isfinite.c: New file.
63118         * m4/isfinite.m4: New file.
63119         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63120         * modules/isfinite: New file.
63121         * modules/isfinite-tests: New file.
63122         * tests/tests-isfinite.c: New file.
63123         * doc/functions/isfinite.texi: Mention isfinite module.
63124         * MODULES.html.sh: Mention new module.
63125
63126 2007-10-27  Ben Pfaff  <blp@gnu.org>
63127
63128         Ralf Wildenhues reported that Tru64 4.0D declares the round
63129         functions but does not have definitions.
63130         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63131         cannot be found in any library, set the output variable to
63132         "missing" instead of "".
63133         * m4/round.m4: Also use our substitute if we cannot find round in
63134         any library, even if it is declared.
63135         * m4/roundf.m4: Likewise for roundf.
63136         * m4/roundl.m4: Likewise for roundl.
63137         * lib/math.in.h: Undefine roundf, round, roundl before defining
63138         their replacements, to allow for hypothetical systems where these
63139         may be defined as macros but not available in libraries.
63140
63141 2007-10-27  Bruno Haible  <bruno@clisp.org>
63142
63143         * doc/gnulib.texi: Invoke @firstparagraphindent.
63144         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63145         changes in gnulib.
63146         (Source changes): New section.
63147
63148 2007-10-26  Bruno Haible  <bruno@clisp.org>
63149
63150         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63151         borrowed from autoconf.
63152
63153 2007-10-26  Bruno Haible  <bruno@clisp.org>
63154
63155         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63156         strerror returned the empty string. Needed on HP-UX 11.00.
63157
63158 2007-10-24  Micah Cowan  <micah@cowan.name>
63159
63160         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63161         * build-aux/bootstrap: Remove support for now-unnecessary option,
63162         --cvs-user, and envvars CVS_USER, CVS_RSH.
63163
63164 2007-10-24  Jim Meyering  <meyering@redhat.com>
63165
63166         Avoid diagnostics from sha1sum when there is no cached checksum.
63167         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63168         if the po.s1 file hasn't been created yet.
63169
63170         * build-aux/bootstrap: Sync from coreutils:
63171         2007-10-24  Jim Meyering  <meyering@redhat.com>
63172         Get gnulib from the git repository, not from an obsolete cvs one.
63173         * build-aux/bootstrap: Suggestion from Micah Cowan.
63174         2007-10-04  Jim Meyering  <jim@meyering.net>
63175         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63176         (update_po_files): Work also when there are no .po files in po/.
63177
63178 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63179
63180         * README: Append ".git" to git and cg examples.
63181         Problem reported by Benoit Sigoure.
63182
63183 2007-10-23  Micah Cowan  <micah@cowan.name>
63184
63185         * users.txt: Add wget.
63186
63187 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63188
63189         Fix linking of some unistdio tests on FreeBSD.
63190         * modules/unistdio/u16-vsnprintf-tests
63191         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63192         * modules/unistdio/u16-vsprintf-tests
63193         (test_u16_vsnprintf1_LDADD): Likewise.
63194         * modules/unistdio/u32-vsnprintf-tests
63195         (test_u32_vsnprintf1_LDADD): Likewise.
63196         * modules/unistdio/u32-vsprintf-tests
63197         (test_u32_vsprintf1_LDADD): Likewise.
63198         * modules/unistdio/u8-vsnprintf-tests
63199         (test_u8_vsnprintf1_LDADD): Likewise.
63200         * modules/unistdio/u8-vsprintf-tests
63201         (test_u8_vsprintf1_LDADD): Likewise.
63202         * modules/unistdio/ulc-vsnprintf-tests
63203         (test_ulc_vsnprintf1_LDADD): Likewise.
63204         * modules/unistdio/ulc-vsprintf-tests
63205         (test_ulc_vsprintf1_LDADD): Likewise.
63206
63207         Fix linking of some uniconv tests on FreeBSD.
63208         * modules/uniconv/u16-conv-from-enc-tests
63209         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63210         * modules/uniconv/u16-conv-to-enc-tests
63211         (test_u16_conv_to_enc_LDADD): Likewise.
63212         * modules/uniconv/u16-strconv-from-enc-tests
63213         (test_u16_strconv_from_enc_LDADD): Likewise.
63214         * modules/uniconv/u16-strconv-to-enc-tests
63215         (test_u16_strconv_to_enc_LDADD): Likewise.
63216         * modules/uniconv/u32-conv-from-enc-tests
63217         (test_u32_conv_from_enc_LDADD): Likewise.
63218         * modules/uniconv/u32-conv-to-enc-tests
63219         (test_u32_conv_to_enc_LDADD): Likewise.
63220         * modules/uniconv/u32-strconv-from-enc-tests
63221         (test_u32_strconv_from_enc_LDADD): Likewise.
63222         * modules/uniconv/u32-strconv-to-enc-tests
63223         (test_u32_strconv_to_enc_LDADD): Likewise.
63224         * modules/uniconv/u8-conv-from-enc-tests
63225         (test_u8_conv_from_enc_LDADD): Likewise.
63226         * modules/uniconv/u8-conv-to-enc-tests
63227         (test_u8_conv_to_enc_LDADD): Likewise.
63228         * modules/uniconv/u8-strconv-from-enc-tests
63229         (test_u8_strconv_from_enc_LDADD): Likewise.
63230         * modules/uniconv/u8-strconv-to-enc-tests
63231         (test_u8_strconv_to_enc_LDADD): Likewise.
63232
63233 2007-10-22  Bruno Haible  <bruno@clisp.org>
63234
63235         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63236         size.
63237
63238 2007-10-22  Eric Blake  <ebb9@byu.net>
63239
63240         Tweak x*printf documentation.
63241         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63242         variable name and comments.
63243         Suggested by Bruno Haible.
63244
63245 2007-10-22  Bruno Haible  <bruno@clisp.org>
63246
63247         * lib/acl.c (copy_acl): Fix file name in comment.
63248
63249 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63250
63251         Fix Tru64 problem with stdbool.h.
63252         * lib/stdbool.in.h (false, true):
63253         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63254         Don't declare as an enum in this situation; it runs afoul of Tru64.
63255         Problem reported by Steven M. Schweda in
63256         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63257
63258 2007-10-22  Eric Blake  <ebb9@byu.net>
63259
63260         Also wrap vf?printf.
63261         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63262         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63263         (xvprintf, xvfprintf): New functions.
63264
63265 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63266
63267         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63268         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63269
63270         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63271         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63272
63273 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63274
63275         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63276         by Bruno Haible.
63277
63278 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63279
63280         * lib/getloadavg.c
63281         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63282         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63283
63284         * tests/test-i-ring.c: Work for C89.
63285
63286 2007-10-22  Bruno Haible  <bruno@clisp.org>
63287
63288         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63289         -1u, in preprocessor expression, so that we don't test for the bug
63290         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63291         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63292
63293 2007-10-22  Eric Blake  <ebb9@byu.net>
63294
63295         * tests/test-yesno.sh: Silence stderr during test.
63296
63297 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63298
63299         * modules/crypto/gc-camellia: New file.
63300
63301         * m4/gc-camellia.m4: New file.
63302
63303         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63304
63305         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63306
63307 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63308
63309         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63310         --help to stdout.  Reported by sms@antinode.org (Steven
63311         M. Schweda).
63312
63313 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63314
63315         * users.txt: Fix link to libksba.
63316
63317 2007-10-21  Ben Pfaff  <blp@gnu.org>
63318
63319         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63320         round.c roundf implementation that depends on floorf and ceilf to
63321         be tested unconditionally.
63322
63323 2007-10-21  Ben Pfaff  <blp@gnu.org>
63324
63325         * m4/check-libm-func.m4: Removed.
63326         * m4/check-math-lib.m4: New file.
63327         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63328         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63329         definition and lack of AC_LIBOBJ([roundf]).
63330         * m4/roundl.m4: Ditto, and similarly for roundl.
63331         * modules/round: Reference new m4 file.
63332         * modules/roundf: Ditto.
63333         * modules/roundl: Ditto.
63334         * tests/test-round2.c (main): Use ROUND instead of round.
63335         Bug report from Bruno Haible.
63336
63337 2007-10-21  Bruno Haible  <bruno@clisp.org>
63338
63339         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63340         context.
63341
63342 2007-10-21  Bruno Haible  <bruno@clisp.org>
63343
63344         * tests/test-wcwidth.c (main): Allow negative result for some control
63345         characters.
63346
63347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63348         Needed on OSF/1 5.1.
63349
63350 2007-10-21  Bruno Haible  <bruno@clisp.org>
63351
63352         * tests/test-floorf1.c: Include isnanf.h.
63353         (main): Use isnanf() instead of isnan().
63354         * tests/test-ceilf1.c: Include isnanf.h.
63355         (main): Use isnanf() instead of isnan().
63356         * tests/test-truncf1.c: Include isnanf.h.
63357         (main): Use isnanf() instead of isnan().
63358         * tests/test-roundf1.c: Include isnanf.h.
63359         (main): Use isnanf() instead of isnan().
63360
63361 2007-10-21  Eric Blake  <ebb9@byu.net>
63362
63363         * users.txt: Update URL for m4.
63364
63365 2007-10-21  Bruno Haible  <bruno@clisp.org>
63366
63367         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63368
63369 2007-10-21  Bruno Haible  <bruno@clisp.org>
63370
63371         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63372         Git's management files if the CVS files are not present.
63373
63374 2007-10-20  Bruno Haible  <bruno@clisp.org>
63375
63376         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63377         gcc-3.4.x.
63378
63379 2007-10-20  Ben Pfaff  <blp@gnu.org>
63380
63381         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63382         implementations.
63383         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63384         * lib/round.c: New file.
63385         * lib/roundf.c: New file.
63386         * lib/roundl.c: New file.
63387         * m4/round.m4: New file.
63388         * m4/roundf.m4: New file.
63389         * m4/roundl.m4: New file.
63390         * m4/check-libm-func-m4: New file.
63391         * modules/math: Replace round, roundf, roundl related @VARS@ in
63392         math.in.h.
63393         * modules/round: New file.
63394         * modules/round-tests: New file.
63395         * modules/roundf: New file.
63396         * modules/roundf-tests: New file.
63397         * modules/roundl: New file.
63398         * modules/roundl-tests: New file.
63399         * tests/test-round1.c: New file.
63400         * tests/test-round2.c: New file.
63401         * tests/test-roundf1.c: New file.
63402         * tests/test-roundf2.c: New file.
63403         * tests/test-roundl.c: New file.
63404         * doc/functions/round.texi: Mention round module.
63405         * doc/functions/roundf.texi: Mention roundf module.
63406         * doc/functions/roundl.texi: Mention roundl module.
63407         * MODULES.html.sh: Mention new modules.
63408         Thanks to Bruno Haible for suggestions.
63409
63410 2007-10-20  Jim Meyering  <meyering@redhat.com>
63411
63412         * lib/xprintf.c: Include <config.h> unconditionally.
63413
63414         Change xprintf's license to GPL.
63415         * modules/xprintf (License): s/LGPL/GPL/, since this module
63416         depends on modules (exit and exitfail) which are GPL.
63417         Suggestion from Bruno Haible.
63418
63419         xprintf fixes.
63420         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63421         Use a clearer diagnostic.
63422         Patch from Bruno Haible.
63423
63424 2007-10-20  Bruno Haible  <bruno@clisp.org>
63425
63426         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63427         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63428         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63429
63430 2007-10-20  Bruno Haible  <bruno@clisp.org>
63431
63432         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63433         precision in the comparison result > x - 1 or similar.
63434         * tests/test-ceilf2.c (correct_result_p): Likewise.
63435         * tests/test-truncf2.c (correct_result_p): Likewise.
63436         * tests/test-trunc2.c (correct_result_p): Likewise.
63437         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63438
63439 2007-10-20  Bruno Haible  <bruno@clisp.org>
63440
63441         * modules/ceil: New file.
63442         * m4/ceil.m4: New file.
63443         * doc/functions/ceil.texi: Mention the 'ceil' module.
63444
63445 2007-10-20  Bruno Haible  <bruno@clisp.org>
63446
63447         * modules/floor: New file.
63448         * m4/floor.m4: New file.
63449         * doc/functions/floor.texi: Mention the 'floor' module.
63450
63451 2007-10-20  Bruno Haible  <bruno@clisp.org>
63452
63453         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63454         of %a.
63455         * modules/floorf-tests (Depends-on): Likewise.
63456         * modules/truncf-tests (Depends-on): Likewise.
63457         * modules/trunc-tests (Depends-on): Likewise.
63458         Reported by Ben Pfaff.
63459
63460 2007-10-19  Jim Meyering  <meyering@redhat.com>
63461
63462         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63463         Don't bother testing specific errno values.  Just test ferror.
63464
63465         New module: xprintf
63466         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63467
63468 2007-10-19  Bruno Haible  <bruno@clisp.org>
63469
63470         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63471         syntax.
63472         * modules/javaexec (Makefile.am): Likewise.
63473         * modules/relocatable-prog (Makefile.am): Likewise.
63474         Suggested by Jim Meyering.
63475
63476 2007-10-18  Bruno Haible  <bruno@clisp.org>
63477
63478         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63479         Reported by Jim Meyering.
63480
63481 2007-10-18  Eric Blake  <ebb9@byu.net>
63482
63483         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63484
63485 2007-10-18  Bruno Haible  <bruno@clisp.org>
63486
63487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63488         the format string into writable memory. Needed in Fortify conditions.
63489
63490 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63491             Bruno Haible  <bruno@clisp.org>
63492
63493         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63494         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63495         * modules/trim (Depends-on): Add mbchar.
63496         (configure.ac): Add gl_FUNC_MBRTOWC.
63497         (Makefile.am): Augment lib_SOURCES.
63498
63499 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63500
63501         Modify glob.c to use fstatat and dirfd, to simplify it.
63502         Suggested by Eric Blake.
63503         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63504         Don't include <stdbool.h>; not used.
63505         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63506         (link_exists_p): Simplify implementation, since we can now assume
63507         dirfd and fstatat.
63508         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63509
63510 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63511
63512         * gnulib-tool (func_get_dependencies): Fix sed script to
63513         match only tests.
63514
63515 2007-10-17  Bruno Haible  <bruno@clisp.org>
63516
63517         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63518         allow locale names without encoding suffix.
63519         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63520         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63521
63522 2007-10-16  Bruno Haible  <bruno@clisp.org>
63523
63524         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63525         * lib/getgroups.c (getgroups): Likewise.
63526         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63527
63528 2007-10-16  Bruno Haible  <bruno@clisp.org>
63529
63530         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63531         * modules/malloc-posix (License): Likewise.
63532         * modules/realloc-posix (License): Likewise.
63533         * modules/calloc-posix (License): Likewise.
63534         * modules/intprops (License): Change from GPL to LGPL, with
63535         Paul Eggert's approval.
63536
63537 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63538
63539         Merge glibc changes into lib/glob.c.
63540
63541         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63542         2007-10-15 04:59:03 UTC.  Here are the changes:
63543
63544         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63545
63546         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63547
63548         * lib/glob.c: Add some branch prediction throughout.
63549
63550         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63551
63552         [BZ #5103]
63553         * lib/glob.c (glob): Recognize patterns starting \/.
63554
63555         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63556
63557         [BZ #3996]
63558         * lib/glob.c (attribute_hidden): Define if not defined.
63559         (glob): Unescape dirname, filename or username when needed and not
63560         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63561         is NULL.  Handle unescaped [ in pattern without closing ].
63562         Don't pass GLOB_CHECK down to recursive glob for directories.
63563         (__glob_pattern_type): New function.
63564         (__glob_pattern_p): Implement using __glob_pattern_type.
63565         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63566         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63567         Remove unreachable code.
63568
63569         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63570
63571         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63572         explain why there are no leaks.
63573
63574         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63575
63576         [BZ #3253]
63577         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63578         time, rather allocate increasingly bigger arrays of pointers, if
63579         possible with alloca, if too large with malloc.
63580
63581 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63582
63583         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63584         Problem reported by H.Merijn Brand in
63585         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63586         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63587         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63588
63589 2007-10-15  Bruno Haible  <bruno@clisp.org>
63590
63591         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63592         with explicit rpl_ prefix.
63593         * lib/fopen.c (fopen): Likewise.
63594         * lib/freopen.c (freopen): Likewise.
63595         * lib/iconv.c (iconv): Likewise.
63596         * lib/iconv_close.c (iconv_close): Likewise.
63597
63598 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63599
63600         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63601
63602 2007-10-15  Bruno Haible  <bruno@clisp.org>
63603
63604         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
63605         <stddef.h> instead of <stdlib.h> since we only need NULL.
63606         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63607
63608 2007-10-15  Bruno Haible  <bruno@clisp.org>
63609
63610         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
63611         Replace paragraph talking about LIBOBJS.
63612         Reported by Colin Watson <cjwatson@debian.org>.
63613
63614 2007-10-15  Bruno Haible  <bruno@clisp.org>
63615
63616         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
63617         <stdlib.h> before using NULL.
63618
63619 2007-10-15  Simon Josefsson  <simon@josefsson.org>
63620
63621         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
63622         Reported by Albert Chin <china@thewrittenword.com>.
63623
63624 2007-10-14  Bruno Haible  <bruno@clisp.org>
63625
63626         * modules/iconv_open-utf-tests: New file.
63627         * tests/test-iconv-utf.c: New file.
63628
63629         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
63630         * modules/iconv_open-utf: New file.
63631         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
63632         (iconv, iconv_close): New declarations.
63633         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
63634         be defined.
63635         (iconv_open): Add special handling of conversion between UTF-8 and
63636         UTF-{16,32}{BE,LE}.
63637         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
63638         * lib/iconv_close.c: New file.
63639         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
63640         gl_FUNC_ICONV_OPEN.
63641         (gl_FUNC_ICONV_OPEN): Use it.
63642         (gl_FUNC_ICONV_OPEN_UTF): New macro.
63643         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
63644         and REPLACE_ICONV_UTF.
63645         * modules/iconv_open (Depends-on): Add c-strcase.
63646         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
63647         ICONV_CONST.
63648         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
63649
63650 2007-10-13  Albert Chin  <china@thewrittenword.com>
63651             Bruno Haible  <bruno@clisp.org>
63652
63653         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
63654         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
63655
63656 2007-10-13  Bruno Haible  <bruno@clisp.org>
63657
63658         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
63659         defined, use the ISO C99 inline semantics.
63660         * lib/argp.h (ARGP_EI): Likewise.
63661
63662 2007-10-13  Bruno Haible  <bruno@clisp.org>
63663
63664         Handle 'inline' change in gcc 4.3.0.
63665         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
63666         argp_fmtstream_write, argp_fmtstream_set_lmargin,
63667         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
63668         argp_fmtstream_point): Disable 'extern' declaration if the function
63669         definition is going to be provided inline.
63670         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
63671         semantics, not the ISO C99 inline semantics.
63672         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
63673         'extern' declaration if the function definition is going to be provided
63674         inline.
63675         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
63676         the GNU C inline semantics, not the ISO C99 inline semantics. With
63677         GCC 4.2, avoid a warning.
63678
63679 2007-10-13  Bruno Haible  <bruno@clisp.org>
63680
63681         * lib/freading.h (freading): Enable the use of __freading for
63682         glibc >= 2.7.
63683         * lib/freading.c (freading): Likewise.
63684
63685 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63686
63687         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
63688         "warning: C99 inline functions are not supported; using GNU89".
63689
63690 2007-10-12  Bruno Haible  <bruno@clisp.org>
63691
63692         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
63693         of 2.
63694         * tests/test-ceilf2.c: New file.
63695         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
63696
63697         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
63698         * modules/ceilf-tests: Update.
63699
63700 2007-10-12  Bruno Haible  <bruno@clisp.org>
63701
63702         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
63703         of 2.
63704         * tests/test-floorf2.c: New file.
63705         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
63706
63707         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
63708         * modules/floorf-tests: Update.
63709
63710 2007-10-12  Bruno Haible  <bruno@clisp.org>
63711
63712         * tests/test-trunc2.c: New file.
63713         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
63714
63715         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
63716         * modules/trunc-tests: Update.
63717
63718 2007-10-12  Bruno Haible  <bruno@clisp.org>
63719
63720         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
63721         of 2.
63722         * tests/test-truncf2.c: New file.
63723         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
63724
63725         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
63726         * modules/truncf-tests: Update.
63727
63728 2007-10-11  Eric Blake  <ebb9@byu.net>
63729
63730         Don't claim strerror is broken on Interix.
63731         * doc/functions/strerror.texi (strerror): Known broken systems are
63732         now Solaris 8, and not Interix.
63733         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
63734         Interix on cross-compile.
63735         Reported by Martin Koeppe in
63736         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
63737
63738 2007-10-11  Bruno Haible  <bruno@clisp.org>
63739
63740         * modules/i-ring-tests: New file.
63741         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
63742         instead of assert.
63743
63744 2007-10-11  Bruno Haible  <bruno@clisp.org>
63745
63746         * modules/filenamecat-tests: New file.
63747         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
63748         * lib/filenamecat.c: Remove test code.
63749
63750 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63751
63752         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
63753
63754         * lib/strerror.c: Include <string.h> always, to test interface,
63755         and to remove the need for the dummy.
63756         Include intprops.h to compute width instead of doing it ourselves
63757         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
63758         (strerror): Define it to return NULL if there's no system strerror.
63759         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
63760         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
63761         ancient pre-strerror Unix systems well any more.  Saying "unknown
63762         system error" is enough.
63763         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
63764         simpler strerror.c implementation.
63765         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
63766         Simplify the tests to reflect the simpler strerror implementation.
63767         * modules/strerror (Depends-on): Add intprops.
63768
63769 2007-10-09  Eric Blake  <ebb9@byu.net>
63770
63771         Silence test-fpending.
63772         * modules/fpending-tests (Files): Add wrapper script.
63773         * tests/test-fpending.sh: New file.
63774
63775 2007-10-09  Bruno Haible  <bruno@clisp.org>
63776
63777         * MODULES.html.sh (func_module): Don't create a hyperlink for
63778         function names like 'printf_frexp'.
63779         (Misc): Add crc, memxor.
63780         (Characteristics of floating types): New section.
63781         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
63782         isnanf-nolibm, signbit, trunc, truncf, truncl.
63783         (Enhancements for ISO C 99 functions): New subsection Input/output.
63784         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
63785         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
63786         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
63787         (Compatibility checks for POSIX:2001 functions): Add clock-time.
63788         (Enhancements for POSIX:2001 functions): Add chdir-long.
63789         (File system functions): Add areadlink, chdir-safer, read-file.
63790         Remove cycle-check.
63791         (File system as inode set): New section.
63792         (Date and time): Add gethrxtime.
63793         (Multithreading): Add openmp.
63794         (Internationalization functions): Add localename.
63795         (Unicode string functions): Add unistr/u*-mbsnlen.
63796         (Support for maintaining and releasing projects): Add git-version-gen.
63797         (Lone files): Remove directories.
63798
63799 2007-10-08  Ben Pfaff  <blp@gnu.org>
63800
63801         * lib/xmalloca.h: Fix typo in comment.
63802
63803 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63804
63805         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
63806         when avoiding problems with integer overflow.  Use a portable test
63807         instead.
63808
63809 2007-10-08  Simon Josefsson  <simon@josefsson.org>
63810
63811         * modules/dummy (License): Change to LGPLv2+.
63812         * modules/float (License): Likewise
63813         * modules/realloc (License): Likewise
63814         * modules/stdlib (License): Likewise
63815
63816 2007-10-07  Bruno Haible  <bruno@clisp.org>
63817
63818         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
63819         * floor.c (TWO_MANT_DIG): Likewise.
63820         * ceil.c (TWO_MANT_DIG): Likewise.
63821         Reported by Ben Pfaff.
63822
63823 2007-10-07  Bruno Haible  <bruno@clisp.org>
63824
63825         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
63826         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
63827         * lib/frexp.c (FUNC): Likewise.
63828         * lib/printf-frexp.h (printf_frexp): Likewise.
63829         * lib/printf-frexpl.h (printf_frexpl): Likewise.
63830         * lib/printf-frexp.c (FUNC): Likewise.
63831         Suggested by Jim Meyering.
63832
63833 2007-10-07  Jim Meyering  <meyering@redhat.com>
63834
63835         Make xnanosleep's integer overflow test more robust.
63836         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
63837         so that gcc-4.3.0 doesn't optimize away this test for overflow.
63838
63839 2007-10-07  Bruno Haible  <bruno@clisp.org>
63840
63841         * NEWS: Mention the license change.
63842
63843         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
63844         abbreviations in the modules files.
63845
63846         Change copyright notice from GPLv2+ to GPLv3+.
63847         * README: Change copyright notice.
63848         * MODULES.html.sh: Likewise.
63849         * build-aux/bootstrap.conf: Likewise.
63850         * build-aux/config.libpath: Likewise.
63851         * build-aux/csharpcomp.sh.in: Likewise.
63852         * build-aux/csharpexec.sh.in: Likewise.
63853         * build-aux/install-reloc: Likewise.
63854         * build-aux/javacomp.sh.in: Likewise.
63855         * build-aux/javaexec.sh.in: Likewise.
63856         * build-aux/ldd.sh.in: Likewise.
63857         * build-aux/reloc-ldflags: Likewise.
63858         * build-aux/relocatable.sh.in: Likewise.
63859         * build-aux/x-to-1.in: Likewise.
63860         * check-module: Likewise.
63861         * config/srclistvars.sh: Likewise.
63862         * gnulib-tool: Likewise.
63863         * lib/acl-internal.h: Likewise.
63864         * lib/acl.c: Likewise.
63865         * lib/acl.h: Likewise.
63866         * lib/acl_entries.c: Likewise.
63867         * lib/areadlink-with-size.c: Likewise.
63868         * lib/areadlink.c: Likewise.
63869         * lib/areadlink.h: Likewise.
63870         * lib/argmatch.c: Likewise.
63871         * lib/argmatch.h: Likewise.
63872         * lib/argp-ba.c: Likewise.
63873         * lib/argp-eexst.c: Likewise.
63874         * lib/argp-fmtstream.c: Likewise.
63875         * lib/argp-fmtstream.h: Likewise.
63876         * lib/argp-fs-xinl.c: Likewise.
63877         * lib/argp-help.c: Likewise.
63878         * lib/argp-namefrob.h: Likewise.
63879         * lib/argp-parse.c: Likewise.
63880         * lib/argp-pin.c: Likewise.
63881         * lib/argp-pv.c: Likewise.
63882         * lib/argp-pvh.c: Likewise.
63883         * lib/argp-xinl.c: Likewise.
63884         * lib/argp.h: Likewise.
63885         * lib/at-func.c: Likewise.
63886         * lib/atanl.c: Likewise.
63887         * lib/backupfile.c: Likewise.
63888         * lib/backupfile.h: Likewise.
63889         * lib/basename.c: Likewise.
63890         * lib/binary-io.h: Likewise.
63891         * lib/byteswap.in.h: Likewise.
63892         * lib/c-stack.c: Likewise.
63893         * lib/c-stack.h: Likewise.
63894         * lib/c-strcasestr.c: Likewise.
63895         * lib/c-strcasestr.h: Likewise.
63896         * lib/c-strstr.c: Likewise.
63897         * lib/c-strstr.h: Likewise.
63898         * lib/c-strtod.c: Likewise.
63899         * lib/calloc.c: Likewise.
63900         * lib/canon-host.c: Likewise.
63901         * lib/canon-host.h: Likewise.
63902         * lib/canonicalize-lgpl.c: Likewise.
63903         * lib/canonicalize.c: Likewise.
63904         * lib/canonicalize.h: Likewise.
63905         * lib/ceil.c: Likewise.
63906         * lib/ceilf.c: Likewise.
63907         * lib/ceill.c: Likewise.
63908         * lib/chdir-long.c: Likewise.
63909         * lib/chdir-long.h: Likewise.
63910         * lib/chdir-safer.c: Likewise.
63911         * lib/chdir-safer.h: Likewise.
63912         * lib/chown.c: Likewise.
63913         * lib/classpath.c: Likewise.
63914         * lib/classpath.h: Likewise.
63915         * lib/clean-temp.c: Likewise.
63916         * lib/clean-temp.h: Likewise.
63917         * lib/cloexec.c: Likewise.
63918         * lib/close-stream.c: Likewise.
63919         * lib/closein.c: Likewise.
63920         * lib/closein.h: Likewise.
63921         * lib/closeout.c: Likewise.
63922         * lib/closeout.h: Likewise.
63923         * lib/concat-filename.c: Likewise.
63924         * lib/copy-file.c: Likewise.
63925         * lib/copy-file.h: Likewise.
63926         * lib/count-one-bits.h: Likewise.
63927         * lib/crc.c: Likewise.
63928         * lib/crc.h: Likewise.
63929         * lib/creat-safer.c: Likewise.
63930         * lib/csharpcomp.c: Likewise.
63931         * lib/csharpcomp.h: Likewise.
63932         * lib/csharpexec.c: Likewise.
63933         * lib/csharpexec.h: Likewise.
63934         * lib/cycle-check.c: Likewise.
63935         * lib/cycle-check.h: Likewise.
63936         * lib/diacrit.c: Likewise.
63937         * lib/diacrit.h: Likewise.
63938         * lib/diffseq.h: Likewise.
63939         * lib/dirchownmod.c: Likewise.
63940         * lib/dirent.in.h: Likewise.
63941         * lib/dirfd.c: Likewise.
63942         * lib/dirfd.h: Likewise.
63943         * lib/dirname.c: Likewise.
63944         * lib/dirname.h: Likewise.
63945         * lib/dummy.c: Likewise.
63946         * lib/dup-safer.c: Likewise.
63947         * lib/dup2.c: Likewise.
63948         * lib/eealloc.h: Likewise.
63949         * lib/error.c: Likewise.
63950         * lib/error.h: Likewise.
63951         * lib/euidaccess.c: Likewise.
63952         * lib/exclude.c: Likewise.
63953         * lib/exclude.h: Likewise.
63954         * lib/execute.c: Likewise.
63955         * lib/execute.h: Likewise.
63956         * lib/exitfail.c: Likewise.
63957         * lib/exitfail.h: Likewise.
63958         * lib/expl.c: Likewise.
63959         * lib/fatal-signal.c: Likewise.
63960         * lib/fatal-signal.h: Likewise.
63961         * lib/fbufmode.c: Likewise.
63962         * lib/fbufmode.h: Likewise.
63963         * lib/fchdir.c: Likewise.
63964         * lib/fchmodat.c: Likewise.
63965         * lib/fchownat.c: Likewise.
63966         * lib/fcntl--.h: Likewise.
63967         * lib/fcntl-safer.h: Likewise.
63968         * lib/fcntl.in.h: Likewise.
63969         * lib/fd-safer.c: Likewise.
63970         * lib/fflush.c: Likewise.
63971         * lib/file-has-acl.c: Likewise.
63972         * lib/file-set.c: Likewise.
63973         * lib/file-type.c: Likewise.
63974         * lib/file-type.h: Likewise.
63975         * lib/fileblocks.c: Likewise.
63976         * lib/filemode.c: Likewise.
63977         * lib/filemode.h: Likewise.
63978         * lib/filename.h: Likewise.
63979         * lib/filenamecat.c: Likewise.
63980         * lib/filenamecat.h: Likewise.
63981         * lib/findprog.c: Likewise.
63982         * lib/findprog.h: Likewise.
63983         * lib/float.in.h: Likewise.
63984         * lib/floor.c: Likewise.
63985         * lib/floorf.c: Likewise.
63986         * lib/floorl.c: Likewise.
63987         * lib/fopen-safer.c: Likewise.
63988         * lib/fopen.c: Likewise.
63989         * lib/fpending.c: Likewise.
63990         * lib/fpending.h: Likewise.
63991         * lib/fprintf.c: Likewise.
63992         * lib/fprintftime.h: Likewise.
63993         * lib/fpucw.h: Likewise.
63994         * lib/fpurge.c: Likewise.
63995         * lib/fpurge.h: Likewise.
63996         * lib/freadable.c: Likewise.
63997         * lib/freadable.h: Likewise.
63998         * lib/freadahead.c: Likewise.
63999         * lib/freadahead.h: Likewise.
64000         * lib/freading.c: Likewise.
64001         * lib/freading.h: Likewise.
64002         * lib/free.c: Likewise.
64003         * lib/freopen.c: Likewise.
64004         * lib/frexp.c: Likewise.
64005         * lib/frexpl.c: Likewise.
64006         * lib/fseek.c: Likewise.
64007         * lib/fseterr.c: Likewise.
64008         * lib/fseterr.h: Likewise.
64009         * lib/fstatat.c: Likewise.
64010         * lib/fstrcmp.c: Likewise.
64011         * lib/fstrcmp.h: Likewise.
64012         * lib/fsusage.c: Likewise.
64013         * lib/fsusage.h: Likewise.
64014         * lib/ftell.c: Likewise.
64015         * lib/ftello.c: Likewise.
64016         * lib/fts-cycle.c: Likewise.
64017         * lib/fts.c: Likewise.
64018         * lib/fts_.h: Likewise.
64019         * lib/full-read.c: Likewise.
64020         * lib/full-read.h: Likewise.
64021         * lib/full-write.c: Likewise.
64022         * lib/full-write.h: Likewise.
64023         * lib/fwritable.c: Likewise.
64024         * lib/fwritable.h: Likewise.
64025         * lib/fwriteerror.c: Likewise.
64026         * lib/fwriteerror.h: Likewise.
64027         * lib/fwriting.c: Likewise.
64028         * lib/fwriting.h: Likewise.
64029         * lib/gcd.c: Likewise.
64030         * lib/gcd.h: Likewise.
64031         * lib/getcwd.c: Likewise.
64032         * lib/getdate.h: Likewise.
64033         * lib/getdate.y: Likewise.
64034         * lib/getdomainname.c: Likewise.
64035         * lib/getdomainname.h: Likewise.
64036         * lib/getgroups.c: Likewise.
64037         * lib/gethostname.c: Likewise.
64038         * lib/gethrxtime.c: Likewise.
64039         * lib/gethrxtime.h: Likewise.
64040         * lib/getloadavg.c: Likewise.
64041         * lib/getndelim2.c: Likewise.
64042         * lib/getndelim2.h: Likewise.
64043         * lib/getnline.c: Likewise.
64044         * lib/getnline.h: Likewise.
64045         * lib/getopt.c: Likewise.
64046         * lib/getopt.in.h: Likewise.
64047         * lib/getopt1.c: Likewise.
64048         * lib/getopt_int.h: Likewise.
64049         * lib/getpagesize.h: Likewise.
64050         * lib/getsubopt.c: Likewise.
64051         * lib/gettime.c: Likewise.
64052         * lib/getugroups.c: Likewise.
64053         * lib/getugroups.h: Likewise.
64054         * lib/getusershell.c: Likewise.
64055         * lib/gl_anyavltree_list1.h: Likewise.
64056         * lib/gl_anyavltree_list2.h: Likewise.
64057         * lib/gl_anyhash_list1.h: Likewise.
64058         * lib/gl_anyhash_list2.h: Likewise.
64059         * lib/gl_anylinked_list1.h: Likewise.
64060         * lib/gl_anylinked_list2.h: Likewise.
64061         * lib/gl_anyrbtree_list1.h: Likewise.
64062         * lib/gl_anyrbtree_list2.h: Likewise.
64063         * lib/gl_anytree_list1.h: Likewise.
64064         * lib/gl_anytree_list2.h: Likewise.
64065         * lib/gl_anytree_oset.h: Likewise.
64066         * lib/gl_anytreehash_list1.h: Likewise.
64067         * lib/gl_anytreehash_list2.h: Likewise.
64068         * lib/gl_array_list.c: Likewise.
64069         * lib/gl_array_list.h: Likewise.
64070         * lib/gl_array_oset.c: Likewise.
64071         * lib/gl_array_oset.h: Likewise.
64072         * lib/gl_avltree_list.c: Likewise.
64073         * lib/gl_avltree_list.h: Likewise.
64074         * lib/gl_avltree_oset.c: Likewise.
64075         * lib/gl_avltree_oset.h: Likewise.
64076         * lib/gl_avltreehash_list.c: Likewise.
64077         * lib/gl_avltreehash_list.h: Likewise.
64078         * lib/gl_carray_list.c: Likewise.
64079         * lib/gl_carray_list.h: Likewise.
64080         * lib/gl_linked_list.c: Likewise.
64081         * lib/gl_linked_list.h: Likewise.
64082         * lib/gl_linkedhash_list.c: Likewise.
64083         * lib/gl_linkedhash_list.h: Likewise.
64084         * lib/gl_list.c: Likewise.
64085         * lib/gl_list.h: Likewise.
64086         * lib/gl_oset.c: Likewise.
64087         * lib/gl_oset.h: Likewise.
64088         * lib/gl_rbtree_list.c: Likewise.
64089         * lib/gl_rbtree_list.h: Likewise.
64090         * lib/gl_rbtree_oset.c: Likewise.
64091         * lib/gl_rbtree_oset.h: Likewise.
64092         * lib/gl_rbtreehash_list.c: Likewise.
64093         * lib/gl_rbtreehash_list.h: Likewise.
64094         * lib/gl_sublist.c: Likewise.
64095         * lib/gl_sublist.h: Likewise.
64096         * lib/group-member.c: Likewise.
64097         * lib/group-member.h: Likewise.
64098         * lib/hard-locale.c: Likewise.
64099         * lib/hard-locale.h: Likewise.
64100         * lib/hash-pjw.c: Likewise.
64101         * lib/hash-pjw.h: Likewise.
64102         * lib/hash-triple.c: Likewise.
64103         * lib/hash.c: Likewise.
64104         * lib/hash.h: Likewise.
64105         * lib/human.c: Likewise.
64106         * lib/human.h: Likewise.
64107         * lib/i-ring.c: Likewise.
64108         * lib/i-ring.h: Likewise.
64109         * lib/idcache.c: Likewise.
64110         * lib/imaxabs.c: Likewise.
64111         * lib/imaxdiv.c: Likewise.
64112         * lib/inet_pton.c: Likewise.
64113         * lib/inet_pton.h: Likewise.
64114         * lib/intprops.h: Likewise.
64115         * lib/inttostr.c: Likewise.
64116         * lib/inttostr.h: Likewise.
64117         * lib/inttypes.in.h: Likewise.
64118         * lib/isapipe.c: Likewise.
64119         * lib/isdir.c: Likewise.
64120         * lib/isnan.c: Likewise.
64121         * lib/isnan.h: Likewise.
64122         * lib/isnanf.c: Likewise.
64123         * lib/isnanf.h: Likewise.
64124         * lib/isnanl-nolibm.h: Likewise.
64125         * lib/isnanl.c: Likewise.
64126         * lib/isnanl.h: Likewise.
64127         * lib/javacomp.c: Likewise.
64128         * lib/javacomp.h: Likewise.
64129         * lib/javaexec.c: Likewise.
64130         * lib/javaexec.h: Likewise.
64131         * lib/javaversion.c: Likewise.
64132         * lib/javaversion.h: Likewise.
64133         * lib/javaversion.java: Likewise.
64134         * lib/lbrkprop.h: Likewise.
64135         * lib/lchmod.h: Likewise.
64136         * lib/lchown.c: Likewise.
64137         * lib/ldexpl.c: Likewise.
64138         * lib/linebreak.c: Likewise.
64139         * lib/linebreak.h: Likewise.
64140         * lib/linebuffer.c: Likewise.
64141         * lib/linebuffer.h: Likewise.
64142         * lib/locale.in.h: Likewise.
64143         * lib/logl.c: Likewise.
64144         * lib/long-options.c: Likewise.
64145         * lib/long-options.h: Likewise.
64146         * lib/lstat.c: Likewise.
64147         * lib/lstat.h: Likewise.
64148         * lib/math.in.h: Likewise.
64149         * lib/mbchar.c: Likewise.
64150         * lib/mbchar.h: Likewise.
64151         * lib/mbfile.h: Likewise.
64152         * lib/mbiter.h: Likewise.
64153         * lib/mbscasecmp.c: Likewise.
64154         * lib/mbscasestr.c: Likewise.
64155         * lib/mbschr.c: Likewise.
64156         * lib/mbscspn.c: Likewise.
64157         * lib/mbslen.c: Likewise.
64158         * lib/mbsncasecmp.c: Likewise.
64159         * lib/mbsnlen.c: Likewise.
64160         * lib/mbspbrk.c: Likewise.
64161         * lib/mbspcasecmp.c: Likewise.
64162         * lib/mbsrchr.c: Likewise.
64163         * lib/mbssep.c: Likewise.
64164         * lib/mbsspn.c: Likewise.
64165         * lib/mbsstr.c: Likewise.
64166         * lib/mbstok_r.c: Likewise.
64167         * lib/mbswidth.c: Likewise.
64168         * lib/mbswidth.h: Likewise.
64169         * lib/mbuiter.h: Likewise.
64170         * lib/memcasecmp.c: Likewise.
64171         * lib/memcasecmp.h: Likewise.
64172         * lib/memchr.c: Likewise.
64173         * lib/memcmp.c: Likewise.
64174         * lib/memcoll.c: Likewise.
64175         * lib/memcoll.h: Likewise.
64176         * lib/memcpy.c: Likewise.
64177         * lib/memrchr.c: Likewise.
64178         * lib/mkancesdirs.c: Likewise.
64179         * lib/mkdir-p.c: Likewise.
64180         * lib/mkdir-p.h: Likewise.
64181         * lib/mkdir.c: Likewise.
64182         * lib/mkdirat.c: Likewise.
64183         * lib/mkdtemp.c: Likewise.
64184         * lib/mkstemp-safer.c: Likewise.
64185         * lib/mkstemp.c: Likewise.
64186         * lib/modechange.c: Likewise.
64187         * lib/modechange.h: Likewise.
64188         * lib/mountlist.c: Likewise.
64189         * lib/mountlist.h: Likewise.
64190         * lib/mpsort.c: Likewise.
64191         * lib/nanosleep.c: Likewise.
64192         * lib/obstack.c: Likewise.
64193         * lib/obstack.h: Likewise.
64194         * lib/open-safer.c: Likewise.
64195         * lib/open.c: Likewise.
64196         * lib/openat-die.c: Likewise.
64197         * lib/openat-priv.h: Likewise.
64198         * lib/openat-proc.c: Likewise.
64199         * lib/openat.c: Likewise.
64200         * lib/openat.h: Likewise.
64201         * lib/pagealign_alloc.c: Likewise.
64202         * lib/pagealign_alloc.h: Likewise.
64203         * lib/physmem.c: Likewise.
64204         * lib/physmem.h: Likewise.
64205         * lib/pipe-safer.c: Likewise.
64206         * lib/pipe.c: Likewise.
64207         * lib/pipe.h: Likewise.
64208         * lib/posixtm.c: Likewise.
64209         * lib/posixtm.h: Likewise.
64210         * lib/posixver.c: Likewise.
64211         * lib/printf-frexp.c: Likewise.
64212         * lib/printf-frexp.h: Likewise.
64213         * lib/printf-frexpl.c: Likewise.
64214         * lib/printf-frexpl.h: Likewise.
64215         * lib/printf.c: Likewise.
64216         * lib/progname.c: Likewise.
64217         * lib/progname.h: Likewise.
64218         * lib/progreloc.c: Likewise.
64219         * lib/putenv.c: Likewise.
64220         * lib/quote.c: Likewise.
64221         * lib/quote.h: Likewise.
64222         * lib/quotearg.c: Likewise.
64223         * lib/quotearg.h: Likewise.
64224         * lib/raise.c: Likewise.
64225         * lib/readline.c: Likewise.
64226         * lib/readline.h: Likewise.
64227         * lib/readlink.c: Likewise.
64228         * lib/readtokens.c: Likewise.
64229         * lib/readtokens.h: Likewise.
64230         * lib/readtokens0.c: Likewise.
64231         * lib/readtokens0.h: Likewise.
64232         * lib/readutmp.c: Likewise.
64233         * lib/readutmp.h: Likewise.
64234         * lib/realloc.c: Likewise.
64235         * lib/relocwrapper.c: Likewise.
64236         * lib/rename-dest-slash.c: Likewise.
64237         * lib/rename.c: Likewise.
64238         * lib/rmdir.c: Likewise.
64239         * lib/rpmatch.c: Likewise.
64240         * lib/safe-read.c: Likewise.
64241         * lib/safe-read.h: Likewise.
64242         * lib/safe-write.c: Likewise.
64243         * lib/safe-write.h: Likewise.
64244         * lib/same-inode.h: Likewise.
64245         * lib/same.c: Likewise.
64246         * lib/same.h: Likewise.
64247         * lib/save-cwd.c: Likewise.
64248         * lib/save-cwd.h: Likewise.
64249         * lib/savedir.c: Likewise.
64250         * lib/savedir.h: Likewise.
64251         * lib/savewd.c: Likewise.
64252         * lib/savewd.h: Likewise.
64253         * lib/search.in.h: Likewise.
64254         * lib/setenv.c: Likewise.
64255         * lib/setenv.h: Likewise.
64256         * lib/settime.c: Likewise.
64257         * lib/sh-quote.c: Likewise.
64258         * lib/sh-quote.h: Likewise.
64259         * lib/sig2str.c: Likewise.
64260         * lib/sig2str.h: Likewise.
64261         * lib/signal.in.h: Likewise.
64262         * lib/signbitd.c: Likewise.
64263         * lib/signbitf.c: Likewise.
64264         * lib/signbitl.c: Likewise.
64265         * lib/sigprocmask.c: Likewise.
64266         * lib/sincosl.c: Likewise.
64267         * lib/sleep.c: Likewise.
64268         * lib/sprintf.c: Likewise.
64269         * lib/sqrtl.c: Likewise.
64270         * lib/stat-time.h: Likewise.
64271         * lib/stdio--.h: Likewise.
64272         * lib/stdio-safer.h: Likewise.
64273         * lib/stdlib--.h: Likewise.
64274         * lib/stdlib-safer.h: Likewise.
64275         * lib/stdlib.in.h: Likewise.
64276         * lib/stpcpy.c: Likewise.
64277         * lib/stpncpy.c: Likewise.
64278         * lib/strchrnul.c: Likewise.
64279         * lib/strcspn.c: Likewise.
64280         * lib/strerror.c: Likewise.
64281         * lib/strftime.c: Likewise.
64282         * lib/strftime.h: Likewise.
64283         * lib/striconveh.c: Likewise.
64284         * lib/striconveh.h: Likewise.
64285         * lib/striconveha.c: Likewise.
64286         * lib/striconveha.h: Likewise.
64287         * lib/stripslash.c: Likewise.
64288         * lib/strnlen1.c: Likewise.
64289         * lib/strnlen1.h: Likewise.
64290         * lib/strtod.c: Likewise.
64291         * lib/strtoimax.c: Likewise.
64292         * lib/strtok_r.c: Likewise.
64293         * lib/strtol.c: Likewise.
64294         * lib/strtoll.c: Likewise.
64295         * lib/strtoul.c: Likewise.
64296         * lib/strtoull.c: Likewise.
64297         * lib/sysexits.in.h: Likewise.
64298         * lib/tempname.c: Likewise.
64299         * lib/tempname.h: Likewise.
64300         * lib/timespec.h: Likewise.
64301         * lib/tls.c: Likewise.
64302         * lib/tls.h: Likewise.
64303         * lib/tmpdir.c: Likewise.
64304         * lib/tmpdir.h: Likewise.
64305         * lib/tmpfile-safer.c: Likewise.
64306         * lib/tmpfile.c: Likewise.
64307         * lib/trigl.c: Likewise.
64308         * lib/trigl.h: Likewise.
64309         * lib/trim.c: Likewise.
64310         * lib/trim.h: Likewise.
64311         * lib/trunc.c: Likewise.
64312         * lib/truncf.c: Likewise.
64313         * lib/truncl.c: Likewise.
64314         * lib/tsearch.c: Likewise.
64315         * lib/unicodeio.c: Likewise.
64316         * lib/unicodeio.h: Likewise.
64317         * lib/unistd--.h: Likewise.
64318         * lib/unistd-safer.h: Likewise.
64319         * lib/unistdio/ulc-fprintf.c: Likewise.
64320         * lib/unistdio/ulc-vfprintf.c: Likewise.
64321         * lib/unlinkdir.c: Likewise.
64322         * lib/unlinkdir.h: Likewise.
64323         * lib/unlocked-io.h: Likewise.
64324         * lib/unsetenv.c: Likewise.
64325         * lib/userspec.c: Likewise.
64326         * lib/utime.c: Likewise.
64327         * lib/utimecmp.c: Likewise.
64328         * lib/utimecmp.h: Likewise.
64329         * lib/utimens.c: Likewise.
64330         * lib/verify.h: Likewise.
64331         * lib/verror.c: Likewise.
64332         * lib/verror.h: Likewise.
64333         * lib/version-etc-fsf.c: Likewise.
64334         * lib/version-etc.c: Likewise.
64335         * lib/version-etc.h: Likewise.
64336         * lib/vfprintf.c: Likewise.
64337         * lib/vprintf.c: Likewise.
64338         * lib/vsprintf.c: Likewise.
64339         * lib/w32spawn.h: Likewise.
64340         * lib/wait-process.c: Likewise.
64341         * lib/wait-process.h: Likewise.
64342         * lib/wcwidth.c: Likewise.
64343         * lib/write-any-file.c: Likewise.
64344         * lib/xalloc-die.c: Likewise.
64345         * lib/xalloc.h: Likewise.
64346         * lib/xasprintf.c: Likewise.
64347         * lib/xgetcwd.c: Likewise.
64348         * lib/xgetcwd.h: Likewise.
64349         * lib/xgetdomainname.c: Likewise.
64350         * lib/xgetdomainname.h: Likewise.
64351         * lib/xgethostname.c: Likewise.
64352         * lib/xmalloc.c: Likewise.
64353         * lib/xmalloca.c: Likewise.
64354         * lib/xmalloca.h: Likewise.
64355         * lib/xmemcoll.c: Likewise.
64356         * lib/xnanosleep.c: Likewise.
64357         * lib/xreadlink.c: Likewise.
64358         * lib/xreadlink.h: Likewise.
64359         * lib/xsetenv.c: Likewise.
64360         * lib/xsetenv.h: Likewise.
64361         * lib/xstriconv.c: Likewise.
64362         * lib/xstriconv.h: Likewise.
64363         * lib/xstrndup.c: Likewise.
64364         * lib/xstrndup.h: Likewise.
64365         * lib/xstrtod.c: Likewise.
64366         * lib/xstrtod.h: Likewise.
64367         * lib/xstrtol-error.c: Likewise.
64368         * lib/xstrtol.c: Likewise.
64369         * lib/xstrtol.h: Likewise.
64370         * lib/xtime.h: Likewise.
64371         * lib/xvasprintf.c: Likewise.
64372         * lib/xvasprintf.h: Likewise.
64373         * lib/yesno.c: Likewise.
64374         * lib/yesno.h: Likewise.
64375         * posix-modules: Likewise.
64376         * tests/test-alloca-opt.c: Likewise.
64377         * tests/test-arcfour.c: Likewise.
64378         * tests/test-arctwo.c: Likewise.
64379         * tests/test-argmatch.c: Likewise.
64380         * tests/test-argp-2.sh: Likewise.
64381         * tests/test-argp.c: Likewise.
64382         * tests/test-arpa_inet.c: Likewise.
64383         * tests/test-array_list.c: Likewise.
64384         * tests/test-array_oset.c: Likewise.
64385         * tests/test-atexit.c: Likewise.
64386         * tests/test-avltree_list.c: Likewise.
64387         * tests/test-avltree_oset.c: Likewise.
64388         * tests/test-avltreehash_list.c: Likewise.
64389         * tests/test-base64.c: Likewise.
64390         * tests/test-binary-io.c: Likewise.
64391         * tests/test-byteswap.c: Likewise.
64392         * tests/test-c-ctype.c: Likewise.
64393         * tests/test-c-strcasecmp.c: Likewise.
64394         * tests/test-c-strcasestr.c: Likewise.
64395         * tests/test-c-strncasecmp.c: Likewise.
64396         * tests/test-c-strstr.c: Likewise.
64397         * tests/test-canonicalize-lgpl.c: Likewise.
64398         * tests/test-canonicalize.c: Likewise.
64399         * tests/test-carray_list.c: Likewise.
64400         * tests/test-ceilf.c: Likewise.
64401         * tests/test-ceill.c: Likewise.
64402         * tests/test-count-one-bits.c: Likewise.
64403         * tests/test-crc.c: Likewise.
64404         * tests/test-dirname.c: Likewise.
64405         * tests/test-fbufmode.c: Likewise.
64406         * tests/test-fcntl.c: Likewise.
64407         * tests/test-fflush.c: Likewise.
64408         * tests/test-floorf.c: Likewise.
64409         * tests/test-floorl.c: Likewise.
64410         * tests/test-fopen.c: Likewise.
64411         * tests/test-fprintf-posix.c: Likewise.
64412         * tests/test-fprintf-posix.h: Likewise.
64413         * tests/test-fpurge.c: Likewise.
64414         * tests/test-freadable.c: Likewise.
64415         * tests/test-freadahead.c: Likewise.
64416         * tests/test-freading.c: Likewise.
64417         * tests/test-freopen.c: Likewise.
64418         * tests/test-frexp.c: Likewise.
64419         * tests/test-frexpl.c: Likewise.
64420         * tests/test-fseek.c: Likewise.
64421         * tests/test-fseeko.c: Likewise.
64422         * tests/test-fseterr.c: Likewise.
64423         * tests/test-fstrcmp.c: Likewise.
64424         * tests/test-ftell.c: Likewise.
64425         * tests/test-ftello.c: Likewise.
64426         * tests/test-fwritable.c: Likewise.
64427         * tests/test-fwriting.c: Likewise.
64428         * tests/test-getaddrinfo.c: Likewise.
64429         * tests/test-getpass.c: Likewise.
64430         * tests/test-gettimeofday.c: Likewise.
64431         * tests/test-hmac-md5.c: Likewise.
64432         * tests/test-hmac-sha1.c: Likewise.
64433         * tests/test-iconv.c: Likewise.
64434         * tests/test-iconvme.c: Likewise.
64435         * tests/test-inttypes.c: Likewise.
64436         * tests/test-isnan.c: Likewise.
64437         * tests/test-isnanf.c: Likewise.
64438         * tests/test-isnanl-nolibm.c: Likewise.
64439         * tests/test-isnanl.c: Likewise.
64440         * tests/test-isnanl.h: Likewise.
64441         * tests/test-ldexpl.c: Likewise.
64442         * tests/test-linked_list.c: Likewise.
64443         * tests/test-linkedhash_list.c: Likewise.
64444         * tests/test-locale.c: Likewise.
64445         * tests/test-localename.c: Likewise.
64446         * tests/test-lock.c: Likewise.
64447         * tests/test-lseek.c: Likewise.
64448         * tests/test-malloca.c: Likewise.
64449         * tests/test-math.c: Likewise.
64450         * tests/test-mbscasecmp.c: Likewise.
64451         * tests/test-mbscasestr1.c: Likewise.
64452         * tests/test-mbscasestr2.c: Likewise.
64453         * tests/test-mbscasestr3.c: Likewise.
64454         * tests/test-mbscasestr4.c: Likewise.
64455         * tests/test-mbschr.c: Likewise.
64456         * tests/test-mbscspn.c: Likewise.
64457         * tests/test-mbsncasecmp.c: Likewise.
64458         * tests/test-mbspbrk.c: Likewise.
64459         * tests/test-mbspcasecmp.c: Likewise.
64460         * tests/test-mbsrchr.c: Likewise.
64461         * tests/test-mbsspn.c: Likewise.
64462         * tests/test-mbsstr1.c: Likewise.
64463         * tests/test-mbsstr2.c: Likewise.
64464         * tests/test-mbsstr3.c: Likewise.
64465         * tests/test-md5.c: Likewise.
64466         * tests/test-memmem.c: Likewise.
64467         * tests/test-netinet_in.c: Likewise.
64468         * tests/test-open.c: Likewise.
64469         * tests/test-printf-frexp.c: Likewise.
64470         * tests/test-printf-frexpl.c: Likewise.
64471         * tests/test-printf-posix.c: Likewise.
64472         * tests/test-printf-posix.h: Likewise.
64473         * tests/test-rbtree_list.c: Likewise.
64474         * tests/test-rbtree_oset.c: Likewise.
64475         * tests/test-rbtreehash_list.c: Likewise.
64476         * tests/test-read-file.c: Likewise.
64477         * tests/test-rijndael.c: Likewise.
64478         * tests/test-search.c: Likewise.
64479         * tests/test-signbit.c: Likewise.
64480         * tests/test-sleep.c: Likewise.
64481         * tests/test-snprintf-posix.c: Likewise.
64482         * tests/test-snprintf-posix.h: Likewise.
64483         * tests/test-snprintf.c: Likewise.
64484         * tests/test-sprintf-posix.c: Likewise.
64485         * tests/test-sprintf-posix.h: Likewise.
64486         * tests/test-stat-time.c: Likewise.
64487         * tests/test-stdbool.c: Likewise.
64488         * tests/test-stdint.c: Likewise.
64489         * tests/test-stdio.c: Likewise.
64490         * tests/test-stdlib.c: Likewise.
64491         * tests/test-stpncpy.c: Likewise.
64492         * tests/test-strcasestr.c: Likewise.
64493         * tests/test-striconv.c: Likewise.
64494         * tests/test-striconveh.c: Likewise.
64495         * tests/test-striconveha.c: Likewise.
64496         * tests/test-string.c: Likewise.
64497         * tests/test-sys_select.c: Likewise.
64498         * tests/test-sys_socket.c: Likewise.
64499         * tests/test-sys_stat.c: Likewise.
64500         * tests/test-sys_time.c: Likewise.
64501         * tests/test-sysexits.c: Likewise.
64502         * tests/test-time.c: Likewise.
64503         * tests/test-tls.c: Likewise.
64504         * tests/test-trunc.c: Likewise.
64505         * tests/test-truncf.c: Likewise.
64506         * tests/test-truncl.c: Likewise.
64507         * tests/test-unistd.c: Likewise.
64508         * tests/test-vasnprintf-posix.c: Likewise.
64509         * tests/test-vasnprintf-posix2.c: Likewise.
64510         * tests/test-vasnprintf.c: Likewise.
64511         * tests/test-vasprintf-posix.c: Likewise.
64512         * tests/test-vasprintf.c: Likewise.
64513         * tests/test-verify.c: Likewise.
64514         * tests/test-vfprintf-posix.c: Likewise.
64515         * tests/test-vprintf-posix.c: Likewise.
64516         * tests/test-vsnprintf-posix.c: Likewise.
64517         * tests/test-vsnprintf.c: Likewise.
64518         * tests/test-vsprintf-posix.c: Likewise.
64519         * tests/test-wchar.c: Likewise.
64520         * tests/test-wctype.c: Likewise.
64521         * tests/test-wcwidth.c: Likewise.
64522         * tests/test-xstrtol.c: Likewise.
64523         * tests/test-xvasprintf.c: Likewise.
64524         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64525         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64526         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64527         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64528         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64529         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64530         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64531         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64532         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64533         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64534         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64535         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64536         * tests/uniname/test-uninames.c: Likewise.
64537         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64538         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64539         * tests/unistdio/test-u16-printf1.h: Likewise.
64540         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64541         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64542         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64543         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64544         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64545         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64546         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64547         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64548         * tests/unistdio/test-u32-printf1.h: Likewise.
64549         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64550         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64551         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64552         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64553         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64554         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64555         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64556         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64557         * tests/unistdio/test-u8-printf1.h: Likewise.
64558         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64559         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64560         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64561         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64562         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64563         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64564         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64565         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64566         * tests/unistdio/test-ulc-printf1.h: Likewise.
64567         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64568         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64569         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64570         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64571         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64572         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64573         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64574         * tests/uniwidth/test-u16-width.c: Likewise.
64575         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64576         * tests/uniwidth/test-u32-width.c: Likewise.
64577         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64578         * tests/uniwidth/test-u8-width.c: Likewise.
64579         * tests/uniwidth/test-uc_width.c: Likewise.
64580         * config/srclist-update: Likewise.
64581         (fixlicense): Update to GPLv3+.
64582
64583         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64584         * tests/test-tsearch.c: Change copyright notice.
64585
64586         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64587         * lib/c-strcaseeq.h: Change copyright notice.
64588         * lib/streq.h: Likewise.
64589         * lib/uniconv.h: Likewise.
64590         * lib/uniconv/u-conv-from-enc.h: Likewise.
64591         * lib/uniconv/u-conv-to-enc.h: Likewise.
64592         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64593         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64594         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64595         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64596         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64597         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64598         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64599         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64600         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64601         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64602         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
64603         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
64604         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
64605         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
64606         * lib/uniconv/u8-conv-from-enc.c: Likewise.
64607         * lib/uniconv/u8-conv-to-enc.c: Likewise.
64608         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
64609         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
64610         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
64611         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
64612         * lib/uniname.h: Likewise.
64613         * lib/uniname/uniname.c: Likewise.
64614         * lib/unistdio.h: Likewise.
64615         * lib/unistdio/u-asnprintf.h: Likewise.
64616         * lib/unistdio/u-asprintf.h: Likewise.
64617         * lib/unistdio/u-printf-args.c: Likewise.
64618         * lib/unistdio/u-printf-args.h: Likewise.
64619         * lib/unistdio/u-printf-parse.h: Likewise.
64620         * lib/unistdio/u-snprintf.h: Likewise.
64621         * lib/unistdio/u-sprintf.h: Likewise.
64622         * lib/unistdio/u-vasprintf.h: Likewise.
64623         * lib/unistdio/u-vsnprintf.h: Likewise.
64624         * lib/unistdio/u-vsprintf.h: Likewise.
64625         * lib/unistdio/u16-asnprintf.c: Likewise.
64626         * lib/unistdio/u16-asprintf.c: Likewise.
64627         * lib/unistdio/u16-printf-parse.c: Likewise.
64628         * lib/unistdio/u16-snprintf.c: Likewise.
64629         * lib/unistdio/u16-sprintf.c: Likewise.
64630         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
64631         * lib/unistdio/u16-u16-asprintf.c: Likewise.
64632         * lib/unistdio/u16-u16-snprintf.c: Likewise.
64633         * lib/unistdio/u16-u16-sprintf.c: Likewise.
64634         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
64635         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
64636         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
64637         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
64638         * lib/unistdio/u16-vasnprintf.c: Likewise.
64639         * lib/unistdio/u16-vasprintf.c: Likewise.
64640         * lib/unistdio/u16-vsnprintf.c: Likewise.
64641         * lib/unistdio/u16-vsprintf.c: Likewise.
64642         * lib/unistdio/u32-asnprintf.c: Likewise.
64643         * lib/unistdio/u32-asprintf.c: Likewise.
64644         * lib/unistdio/u32-printf-parse.c: Likewise.
64645         * lib/unistdio/u32-snprintf.c: Likewise.
64646         * lib/unistdio/u32-sprintf.c: Likewise.
64647         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
64648         * lib/unistdio/u32-u32-asprintf.c: Likewise.
64649         * lib/unistdio/u32-u32-snprintf.c: Likewise.
64650         * lib/unistdio/u32-u32-sprintf.c: Likewise.
64651         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
64652         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
64653         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
64654         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
64655         * lib/unistdio/u32-vasnprintf.c: Likewise.
64656         * lib/unistdio/u32-vasprintf.c: Likewise.
64657         * lib/unistdio/u32-vsnprintf.c: Likewise.
64658         * lib/unistdio/u32-vsprintf.c: Likewise.
64659         * lib/unistdio/u8-asnprintf.c: Likewise.
64660         * lib/unistdio/u8-asprintf.c: Likewise.
64661         * lib/unistdio/u8-printf-parse.c: Likewise.
64662         * lib/unistdio/u8-snprintf.c: Likewise.
64663         * lib/unistdio/u8-sprintf.c: Likewise.
64664         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
64665         * lib/unistdio/u8-u8-asprintf.c: Likewise.
64666         * lib/unistdio/u8-u8-snprintf.c: Likewise.
64667         * lib/unistdio/u8-u8-sprintf.c: Likewise.
64668         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
64669         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
64670         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
64671         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
64672         * lib/unistdio/u8-vasnprintf.c: Likewise.
64673         * lib/unistdio/u8-vasprintf.c: Likewise.
64674         * lib/unistdio/u8-vsnprintf.c: Likewise.
64675         * lib/unistdio/u8-vsprintf.c: Likewise.
64676         * lib/unistdio/ulc-asnprintf.c: Likewise.
64677         * lib/unistdio/ulc-asprintf.c: Likewise.
64678         * lib/unistdio/ulc-printf-parse.c: Likewise.
64679         * lib/unistdio/ulc-snprintf.c: Likewise.
64680         * lib/unistdio/ulc-sprintf.c: Likewise.
64681         * lib/unistdio/ulc-vasnprintf.c: Likewise.
64682         * lib/unistdio/ulc-vasprintf.c: Likewise.
64683         * lib/unistdio/ulc-vsnprintf.c: Likewise.
64684         * lib/unistdio/ulc-vsprintf.c: Likewise.
64685         * lib/unistr.h: Likewise.
64686         * lib/unistr/u-cpy-alloc.h: Likewise.
64687         * lib/unistr/u-cpy.h: Likewise.
64688         * lib/unistr/u-endswith.h: Likewise.
64689         * lib/unistr/u-move.h: Likewise.
64690         * lib/unistr/u-set.h: Likewise.
64691         * lib/unistr/u-startswith.h: Likewise.
64692         * lib/unistr/u-stpcpy.h: Likewise.
64693         * lib/unistr/u-stpncpy.h: Likewise.
64694         * lib/unistr/u-strcat.h: Likewise.
64695         * lib/unistr/u-strcpy.h: Likewise.
64696         * lib/unistr/u-strcspn.h: Likewise.
64697         * lib/unistr/u-strdup.h: Likewise.
64698         * lib/unistr/u-strlen.h: Likewise.
64699         * lib/unistr/u-strncat.h: Likewise.
64700         * lib/unistr/u-strncpy.h: Likewise.
64701         * lib/unistr/u-strnlen.h: Likewise.
64702         * lib/unistr/u-strpbrk.h: Likewise.
64703         * lib/unistr/u-strspn.h: Likewise.
64704         * lib/unistr/u-strstr.h: Likewise.
64705         * lib/unistr/u-strtok.h: Likewise.
64706         * lib/unistr/u16-check.c: Likewise.
64707         * lib/unistr/u16-chr.c: Likewise.
64708         * lib/unistr/u16-cmp.c: Likewise.
64709         * lib/unistr/u16-cpy-alloc.c: Likewise.
64710         * lib/unistr/u16-cpy.c: Likewise.
64711         * lib/unistr/u16-endswith.c: Likewise.
64712         * lib/unistr/u16-mblen.c: Likewise.
64713         * lib/unistr/u16-mbsnlen.c: Likewise.
64714         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64715         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64716         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64717         * lib/unistr/u16-mbtouc.c: Likewise.
64718         * lib/unistr/u16-mbtoucr.c: Likewise.
64719         * lib/unistr/u16-move.c: Likewise.
64720         * lib/unistr/u16-next.c: Likewise.
64721         * lib/unistr/u16-prev.c: Likewise.
64722         * lib/unistr/u16-set.c: Likewise.
64723         * lib/unistr/u16-startswith.c: Likewise.
64724         * lib/unistr/u16-stpcpy.c: Likewise.
64725         * lib/unistr/u16-stpncpy.c: Likewise.
64726         * lib/unistr/u16-strcat.c: Likewise.
64727         * lib/unistr/u16-strchr.c: Likewise.
64728         * lib/unistr/u16-strcmp.c: Likewise.
64729         * lib/unistr/u16-strcpy.c: Likewise.
64730         * lib/unistr/u16-strcspn.c: Likewise.
64731         * lib/unistr/u16-strdup.c: Likewise.
64732         * lib/unistr/u16-strlen.c: Likewise.
64733         * lib/unistr/u16-strmblen.c: Likewise.
64734         * lib/unistr/u16-strmbtouc.c: Likewise.
64735         * lib/unistr/u16-strncat.c: Likewise.
64736         * lib/unistr/u16-strncmp.c: Likewise.
64737         * lib/unistr/u16-strncpy.c: Likewise.
64738         * lib/unistr/u16-strnlen.c: Likewise.
64739         * lib/unistr/u16-strpbrk.c: Likewise.
64740         * lib/unistr/u16-strrchr.c: Likewise.
64741         * lib/unistr/u16-strspn.c: Likewise.
64742         * lib/unistr/u16-strstr.c: Likewise.
64743         * lib/unistr/u16-strtok.c: Likewise.
64744         * lib/unistr/u16-to-u32.c: Likewise.
64745         * lib/unistr/u16-to-u8.c: Likewise.
64746         * lib/unistr/u16-uctomb-aux.c: Likewise.
64747         * lib/unistr/u16-uctomb.c: Likewise.
64748         * lib/unistr/u32-check.c: Likewise.
64749         * lib/unistr/u32-chr.c: Likewise.
64750         * lib/unistr/u32-cmp.c: Likewise.
64751         * lib/unistr/u32-cpy-alloc.c: Likewise.
64752         * lib/unistr/u32-cpy.c: Likewise.
64753         * lib/unistr/u32-endswith.c: Likewise.
64754         * lib/unistr/u32-mblen.c: Likewise.
64755         * lib/unistr/u32-mbsnlen.c: Likewise.
64756         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64757         * lib/unistr/u32-mbtouc.c: Likewise.
64758         * lib/unistr/u32-mbtoucr.c: Likewise.
64759         * lib/unistr/u32-move.c: Likewise.
64760         * lib/unistr/u32-next.c: Likewise.
64761         * lib/unistr/u32-prev.c: Likewise.
64762         * lib/unistr/u32-set.c: Likewise.
64763         * lib/unistr/u32-startswith.c: Likewise.
64764         * lib/unistr/u32-stpcpy.c: Likewise.
64765         * lib/unistr/u32-stpncpy.c: Likewise.
64766         * lib/unistr/u32-strcat.c: Likewise.
64767         * lib/unistr/u32-strchr.c: Likewise.
64768         * lib/unistr/u32-strcmp.c: Likewise.
64769         * lib/unistr/u32-strcpy.c: Likewise.
64770         * lib/unistr/u32-strcspn.c: Likewise.
64771         * lib/unistr/u32-strdup.c: Likewise.
64772         * lib/unistr/u32-strlen.c: Likewise.
64773         * lib/unistr/u32-strmblen.c: Likewise.
64774         * lib/unistr/u32-strmbtouc.c: Likewise.
64775         * lib/unistr/u32-strncat.c: Likewise.
64776         * lib/unistr/u32-strncmp.c: Likewise.
64777         * lib/unistr/u32-strncpy.c: Likewise.
64778         * lib/unistr/u32-strnlen.c: Likewise.
64779         * lib/unistr/u32-strpbrk.c: Likewise.
64780         * lib/unistr/u32-strrchr.c: Likewise.
64781         * lib/unistr/u32-strspn.c: Likewise.
64782         * lib/unistr/u32-strstr.c: Likewise.
64783         * lib/unistr/u32-strtok.c: Likewise.
64784         * lib/unistr/u32-to-u16.c: Likewise.
64785         * lib/unistr/u32-to-u8.c: Likewise.
64786         * lib/unistr/u32-uctomb.c: Likewise.
64787         * lib/unistr/u8-check.c: Likewise.
64788         * lib/unistr/u8-chr.c: Likewise.
64789         * lib/unistr/u8-cmp.c: Likewise.
64790         * lib/unistr/u8-cpy-alloc.c: Likewise.
64791         * lib/unistr/u8-cpy.c: Likewise.
64792         * lib/unistr/u8-endswith.c: Likewise.
64793         * lib/unistr/u8-mblen.c: Likewise.
64794         * lib/unistr/u8-mbsnlen.c: Likewise.
64795         * lib/unistr/u8-mbtouc-aux.c: Likewise.
64796         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64797         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64798         * lib/unistr/u8-mbtouc.c: Likewise.
64799         * lib/unistr/u8-mbtoucr.c: Likewise.
64800         * lib/unistr/u8-move.c: Likewise.
64801         * lib/unistr/u8-next.c: Likewise.
64802         * lib/unistr/u8-prev.c: Likewise.
64803         * lib/unistr/u8-set.c: Likewise.
64804         * lib/unistr/u8-startswith.c: Likewise.
64805         * lib/unistr/u8-stpcpy.c: Likewise.
64806         * lib/unistr/u8-stpncpy.c: Likewise.
64807         * lib/unistr/u8-strcat.c: Likewise.
64808         * lib/unistr/u8-strchr.c: Likewise.
64809         * lib/unistr/u8-strcmp.c: Likewise.
64810         * lib/unistr/u8-strcpy.c: Likewise.
64811         * lib/unistr/u8-strcspn.c: Likewise.
64812         * lib/unistr/u8-strdup.c: Likewise.
64813         * lib/unistr/u8-strlen.c: Likewise.
64814         * lib/unistr/u8-strmblen.c: Likewise.
64815         * lib/unistr/u8-strmbtouc.c: Likewise.
64816         * lib/unistr/u8-strncat.c: Likewise.
64817         * lib/unistr/u8-strncmp.c: Likewise.
64818         * lib/unistr/u8-strncpy.c: Likewise.
64819         * lib/unistr/u8-strnlen.c: Likewise.
64820         * lib/unistr/u8-strpbrk.c: Likewise.
64821         * lib/unistr/u8-strrchr.c: Likewise.
64822         * lib/unistr/u8-strspn.c: Likewise.
64823         * lib/unistr/u8-strstr.c: Likewise.
64824         * lib/unistr/u8-strtok.c: Likewise.
64825         * lib/unistr/u8-to-u16.c: Likewise.
64826         * lib/unistr/u8-to-u32.c: Likewise.
64827         * lib/unistr/u8-uctomb-aux.c: Likewise.
64828         * lib/unistr/u8-uctomb.c: Likewise.
64829         * lib/unitypes.h: Likewise.
64830         * lib/uniwidth.h: Likewise.
64831         * lib/uniwidth/cjk.h: Likewise.
64832         * lib/uniwidth/u16-strwidth.c: Likewise.
64833         * lib/uniwidth/u16-width.c: Likewise.
64834         * lib/uniwidth/u32-strwidth.c: Likewise.
64835         * lib/uniwidth/u32-width.c: Likewise.
64836         * lib/uniwidth/u8-strwidth.c: Likewise.
64837         * lib/uniwidth/u8-width.c: Likewise.
64838         * lib/uniwidth/width.c: Likewise.
64839
64840 2007-10-07  Bruno Haible  <bruno@clisp.org>
64841
64842         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
64843         The file is still under LGPL (see modules/inttypes).
64844
64845 2007-10-06  Bruno Haible  <bruno@clisp.org>
64846
64847         * modules/trunc (Dependencies): Add 'extensions'.
64848         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
64849         Reported by Ben Pfaff <blp@gnu.org>.
64850
64851 2007-10-06  Bruno Haible  <bruno@clisp.org>
64852
64853         * modules/freopen-tests: New file.
64854         * tests/test-freopen.c: New file.
64855
64856         * modules/fopen-tests: New file.
64857         * tests/test-fopen.c: New file.
64858
64859         * modules/fopen: New file.
64860         * lib/fopen.c: New file.
64861         * m4/fopen.m4: New file.
64862         * modules/freopen: New file.
64863         * lib/freopen.c: New file.
64864         * m4/freopen.m4: New file.
64865         * lib/stdio.in.h (fopen, freopen): New declarations.
64866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
64867         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64868         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
64869         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64870         * doc/functions/fopen.texi: Mention the 'fopen' module.
64871         * doc/functions/freopen.texi: Mention the 'freopen' module.
64872
64873 2007-10-06  Bruno Haible  <bruno@clisp.org>
64874
64875         * modules/open-tests: New file.
64876         * tests/test-open.c: New file.
64877
64878         * modules/open: New file.
64879         * lib/open.c: New file.
64880         * m4/open.m4: New file.
64881         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
64882         lib/open.c does.
64883         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
64884         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
64885         macros.
64886         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
64887         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
64888         REPLACE_OPEN.
64889         * doc/functions/open.texi: Mention the 'open' module.
64890
64891 2007-10-04  Bruno Haible  <bruno@clisp.org>
64892
64893         * modules/ceill-tests: New file.
64894         * tests/test-ceill.c: New file.
64895
64896         * modules/ceill: New file.
64897         * lib/ceill.c: Replace entire file.
64898         * m4/ceill.m4: New file.
64899         * lib/math.in.h (ceill): Replace declaration.
64900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
64901         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
64902         * doc/functions/ceill.texi: Mention the 'ceill' module.
64903         * modules/mathl (Files): Remove lib/ceill.c.
64904         (Depends-on): Add ceill.
64905
64906 2007-10-04  Bruno Haible  <bruno@clisp.org>
64907
64908         * modules/ceilf-tests: New file.
64909         * tests/test-ceilf.c: New file.
64910
64911         * modules/ceilf: New file.
64912         * lib/ceil.c: New file.
64913         * lib/ceilf.c: New file.
64914         * m4/ceilf.m4: New file.
64915         * lib/math.in.h (ceilf): New declaration.
64916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
64917         HAVE_DECL_CEILF.
64918         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
64919         HAVE_DECL_CEILF.
64920         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
64921
64922 2007-10-04  Bruno Haible  <bruno@clisp.org>
64923
64924         * modules/floorl-tests: New file.
64925         * tests/test-floorl.c: New file.
64926
64927         * modules/floorl: New file.
64928         * lib/floorl.c: Replace entire file.
64929         * m4/floorl.m4: New file.
64930         * lib/math.in.h (floorl): Replace declaration.
64931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
64932         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
64933         * doc/functions/floorl.texi: Mention the 'floorl' module.
64934         * modules/mathl (Files): Remove lib/floorl.c.
64935         (Depends-on): Add floorl.
64936
64937 2007-10-04  Bruno Haible  <bruno@clisp.org>
64938
64939         * modules/floorf-tests: New file.
64940         * tests/test-floorf.c: New file.
64941
64942         * modules/floorf: New file.
64943         * lib/floor.c: New file.
64944         * lib/floorf.c: New file.
64945         * m4/floorf.m4: New file.
64946         * lib/math.in.h (floorf): New declaration.
64947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
64948         HAVE_DECL_FLOORF.
64949         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
64950         HAVE_DECL_FLOORF.
64951         * doc/functions/floorf.texi: Mention the 'floorf' module.
64952
64953 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
64954             Bruno Haible  <bruno@clisp.org>
64955
64956         Advertise for the Git server instead of the CVS server.
64957         * doc/gnulib-intro.texi (Steady Development): Mention the Git
64958         repository instead of the CVS one.
64959         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
64960         about all VCS systems generically.
64961         * doc/gnulib.texi (Introduction): Capitalize `Git'.
64962
64963 2007-10-04  Bruno Haible  <bruno@clisp.org>
64964
64965         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
64966         means.
64967         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
64968
64969 2007-10-04  Bruno Haible  <bruno@clisp.org>
64970
64971         * modules/truncl-tests: New file.
64972         * tests/test-truncl.c: New file.
64973
64974         * modules/truncl: New file.
64975         * lib/truncl.c: New file.
64976         * m4/truncl.m4: New file.
64977         * lib/math.in.h (truncl): New declaration.
64978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
64979         HAVE_DECL_TRUNCL.
64980         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
64981         HAVE_DECL_TRUNCL.
64982         * doc/functions/truncl.texi: Mention the 'truncl' module.
64983
64984 2007-10-04  Bruno Haible  <bruno@clisp.org>
64985
64986         * modules/truncf-tests: New file.
64987         * tests/test-truncf.c: New file.
64988
64989         * modules/truncf: New file.
64990         * lib/trunc.c: Make paramerizable through USE_* macros.
64991         * lib/truncf.c: New file.
64992         * m4/truncf.m4: New file.
64993         * lib/math.in.h (truncf): New declaration.
64994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
64995         HAVE_DECL_TRUNCF.
64996         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
64997         HAVE_DECL_TRUNCF.
64998         * doc/functions/truncf.texi: Mention the 'truncf' module.
64999
65000 2007-10-03  Bruno Haible  <bruno@clisp.org>
65001
65002         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65003         augmentation also for tests modules.
65004         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65005         * modules/atexit-tests (Makefile.am): Likewise.
65006         * modules/binary-io-tests (Makefile.am): Likewise.
65007         * modules/c-strcase-tests (Makefile.am): Likewise.
65008         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65009         * modules/canonicalize-tests (Makefile.am): Likewise.
65010         * modules/closein-tests (Makefile.am): Likewise.
65011         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65012         * modules/freadahead-tests (Makefile.am): Likewise.
65013         * modules/fseek-tests (Makefile.am): Likewise.
65014         * modules/fseeko-tests (Makefile.am): Likewise.
65015         * modules/ftell-tests (Makefile.am): Likewise.
65016         * modules/ftello-tests (Makefile.am): Likewise.
65017         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65018         * modules/isnanl-tests (Makefile.am): Likewise.
65019         * modules/lseek-tests (Makefile.am): Likewise.
65020         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65021         * modules/mbscasestr-tests (Makefile.am): Likewise.
65022         * modules/mbschr-tests (Makefile.am): Likewise.
65023         * modules/mbscspn-tests (Makefile.am): Likewise.
65024         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65025         * modules/mbspbrk-tests (Makefile.am): Likewise.
65026         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65027         * modules/mbsrchr-tests (Makefile.am): Likewise.
65028         * modules/mbsspn-tests (Makefile.am): Likewise.
65029         * modules/mbsstr-tests (Makefile.am): Likewise.
65030         * modules/printf-posix-tests (Makefile.am): Likewise.
65031         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65032         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65033         * modules/tsearch-tests (Makefile.am): Likewise.
65034         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65035         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65036         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65037         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65038         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65039         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65040         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65041         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65042         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65043         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65044         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65045         * modules/xstrtol-tests (Makefile.am): Likewise.
65046         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65047         * modules/yesno-tests (Makefile.am): Likewise.
65048
65049 2007-10-03  Bruno Haible  <bruno@clisp.org>
65050
65051         * modules/trunc-tests: New file.
65052         * tests/test-trunc.c: New file.
65053
65054         * modules/trunc: New file.
65055         * lib/trunc.c: New file.
65056         * m4/trunc.m4: New file.
65057         * lib/math.in.h (trunc): New declaration.
65058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65059         HAVE_DECL_TRUNC.
65060         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65061         HAVE_DECL_TRUNC.
65062         * doc/functions/trunc.texi: Mention the 'trunc' module.
65063
65064 2007-10-03  Bruno Haible  <bruno@clisp.org>
65065
65066         * tests/test-fpending.c: New file, mostly copied
65067         from coreutils/lib/t-fpending.c.
65068         * modules/fpending-tests: New file.
65069
65070 2007-10-03  Bruno Haible  <bruno@clisp.org>
65071
65072         Port the stdio extensions to QNX (untested).
65073         * lib/fseterr.c (fseterr): Add support for QNX.
65074         * lib/fbufmode.c (fbufmode): Likewise.
65075         * lib/freadable.c (freadable): Likewise.
65076         * lib/fwritable.c (fwritable): Likewise.
65077         * lib/freading.c (freading): Likewise.
65078         * lib/fwriting.c (fwriting): Likewise.
65079         * lib/freadahead.c (freadahed): Likewise.
65080         * lib/fpurge.c (fpurge): Likewise.
65081         * lib/fseeko.c (rpl_fseeko): Likewise.
65082
65083 2007-10-03  Bruno Haible  <bruno@clisp.org>
65084             Jim Meyering  <jim@meyering.net>
65085             Eric Blake  <ebb9@byu.net>
65086
65087         * doc/relocatable.texi: Use @command instead of @program.
65088
65089 2007-10-02  Jim Meyering  <jim@meyering.net>
65090
65091         Perform one more "_.h" -> ".in.h" substitution.
65092         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65093         instead of unistd_.h here, too.
65094
65095 2007-10-01  Bruno Haible  <bruno@clisp.org>
65096
65097         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65098         Needed for the alloca-opt module.
65099
65100 2007-09-30  Bruno Haible  <bruno@clisp.org>
65101
65102         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65103         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65104         alloca_.h.
65105         * lib/argz.in.h: Renamed from lib/argz_.h.
65106         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65107         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65108         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65109         byteswap_.h.
65110         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65111         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65112         dirent_.h.
65113         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65114         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65115         fcntl_.h.
65116         * lib/float.in.h: Renamed from lib/float_.h.
65117         * modules/float (Files, Makefile.am): Use float.in.h instead of
65118         float_.h.
65119         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65120         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65121         fnmatch_.h.
65122         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65123         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65124         getopt_.h.
65125         * lib/glob.in.h: Renamed from lib/glob_.h.
65126         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65127         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65128         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65129         iconv_.h.
65130         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65131         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65132         inttypes_.h.
65133         * lib/locale.in.h: Renamed from lib/locale_.h.
65134         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65135         locale_.h.
65136         * lib/math.in.h: Renamed from lib/math_.h.
65137         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65138         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65139         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65140         of netinet_in_.h. Add dependency.
65141         * lib/poll.in.h: Renamed from lib/poll_.h.
65142         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65143         * lib/search.in.h: Renamed from lib/search_.h.
65144         * modules/search (Files, Makefile.am): Use search.in.h instead of
65145         search_.h.
65146         * lib/signal.in.h: Renamed from lib/signal_.h.
65147         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65148         _signal.h.
65149         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65150         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65151         stdbool_.h.
65152         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65153         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65154         stdint_.h.
65155         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65156         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65157         stdio_.h.
65158         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65159         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65160         stdlib_.h.
65161         * lib/string.in.h: Renamed from lib/string_.h.
65162         * modules/string (Files, Makefile.am): Use string.in.h instead of
65163         string_.h.
65164         * doc/gnulib-tool.texi (Initial import): Update.
65165         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65166         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65167         of sys_select_.h. Add dependency.
65168         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65169         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65170         of sys_socket_.h.
65171         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65172         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65173         sys_stat_.h.
65174         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65175         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65176         sys_time_.h.
65177         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65178         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65179         sysexits_.h.
65180         * lib/time.in.h: Renamed from lib/time_.h.
65181         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65182         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65183         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65184         unistd_.h.
65185         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65186         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65187         wchar_.h.
65188         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65189         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65190         wctype_.h.
65191         * build-aux/bootstrap (slurp): Update.
65192         * lib/.cppi-disable: Update.
65193
65194 2007-09-30  Bruno Haible  <bruno@clisp.org>
65195
65196         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65197         Needed on BeOS.
65198
65199 2007-09-30  Bruno Haible  <bruno@clisp.org>
65200
65201         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65202
65203 2007-09-29  Bruno Haible  <bruno@clisp.org>
65204
65205         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65206
65207 2007-09-29  Bruno Haible  <bruno@clisp.org>
65208
65209         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65210         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65211         * build-aux/install-reloc: Compile also areadlink.c.
65212         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65213
65214 2007-09-29  Bruno Haible  <bruno@clisp.org>
65215
65216         * gnulib-tool (func_emit_initmacro_done): Indentation.
65217
65218 2007-09-29  Bruno Haible  <bruno@clisp.org>
65219
65220         * README: Add CVS checkout update instructions.
65221         Info from Bob Proulx <bob@proulx.com>.
65222
65223 2007-09-28  Eric Blake  <ebb9@byu.net>
65224
65225         Provide move-if-change.
65226         * build-aux/move-if-change: New file, based on best practice
65227         rather than any canonical upstream location.
65228
65229 2007-09-28  Jim Meyering  <jim@meyering.net>
65230
65231         Fix canonicalize loop-detection corner case.
65232         Do not attempt to stat the symlink values stored via seen_triple.
65233         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65234         on linux-2.6.18, (but not 2.6.22).
65235         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65236         triple_compare.  The former compares dev,ino,filename, while the latter
65237         would actually stat dirname(filename) when dev and ino were equal.
65238         * lib/hash-triple.c: Install <string.h>.
65239         (STREQ): Define.
65240         (triple_compare_ino_str): New function.
65241         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65242
65243 2007-09-28  Eric Blake  <ebb9@byu.net>
65244
65245         Enforce that AC_REPLACE_FUNCS files exist.
65246         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65247         override check for typos.
65248
65249         Fix test-closein on Solaris 10.
65250         * tests/test-closein.c (main): Don't assume stdin can be inherited
65251         closed on all systems.
65252         * tests/test-closein.sh: Likewise.
65253         Reported by Piotr Tarnowski.
65254
65255 2007-09-28  Jim Meyering  <jim@meyering.net>
65256
65257         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65258
65259 2007-09-27  Jim Meyering  <jim@meyering.net>
65260
65261         canonicalize: Avoid a false-positive cycle failure.
65262         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65263         Sort.  Remove cycle-check.
65264         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65265         not cycle-check.h.
65266         (seen_triple): New function.
65267         (canonicalize_filename_mode): Use it instead of cycle-check.
65268         * tests/test-canonicalize.c: Add a test for this bug.
65269         * tests/test-canonicalize.sh: Set up and run the test.
65270
65271         New module, file-set, from coreutils.
65272         * modules/file-set: Define it.
65273         * lib/file-set.c, lib/file-set.h: Implement.
65274
65275         New module, hash-triple, from coreutils.
65276         * modules/hash-triple: Define it.
65277         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65278
65279 2007-09-25  Eric Blake  <ebb9@byu.net>
65280
65281         Fix strerror on Interix.
65282         * lib/string_.h (strerror): Declare replacement.
65283         * doc/functions/strerror.texi (strerror): Document the Interix
65284         shortcoming.
65285         * modules/string (Makefile.am): Support new hooks.
65286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65287         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65288         gl_FUNC_STRERROR_SEPARATE.
65289         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65290         * lib/strerror.c (rpl_strerror): Provide replacement.
65291         * modules/strerror (Depends-on): Add string.
65292         (configure.ac): Detect use of module.
65293         * tests/test-strerror.c: New file.
65294         * modules/strerror-tests: New test module.
65295         * modules/argp (Depends-on): Add strerror.
65296         * modules/error (Depends-on): Likewise.
65297         Reported by Martin Koeppe.
65298
65299 2007-09-24  Bruno Haible  <bruno@clisp.org>
65300
65301         * README: Update git instructions.
65302
65303 2007-09-24  Eric Blake  <ebb9@byu.net>
65304
65305         Revert fpending breakage from 2007-09-08.
65306         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65307         __fpending.c.
65308
65309 2007-09-24  Jim Meyering  <jim@meyering.net>
65310
65311         filenamecat.c: Add a test.
65312         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65313         showing how the function works when DIR is the empty string.
65314
65315 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65316
65317         * tests/test-canonicalize.sh: Turn on executable bit.
65318
65319 2007-09-19  Eric Blake  <ebb9@byu.net>
65320
65321         * README: Update CVS instructions.
65322
65323 2007-09-18  Bruno Haible  <bruno@clisp.org>
65324
65325         * modules/areadlink: New file.
65326         * lib/areadlink.h (areadlink): New declaration.
65327         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65328
65329 2007-09-17  Jim Meyering  <jim@meyering.net>
65330
65331         * lib/savewd.c (ESTALE) [!defined]: Define.
65332         Reported to be required on Interix by Martin Koeppe.
65333
65334 2007-09-17  Bruno Haible  <bruno@clisp.org>
65335
65336         * gnulib-tool (func_version): Use $version.
65337
65338 2007-09-16  Bruno Haible  <bruno@clisp.org>
65339
65340         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65341         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65342         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65343         Reported by Greg Schafer <gschafer@zip.com.au>.
65344
65345 2007-09-15  Bruno Haible  <bruno@clisp.org>
65346
65347         * gnulib-tool (sed): Try a little harder to make bash understand the
65348         alias.
65349         Reported by Bruce Korb <bruce.korb@gmail.com>.
65350
65351 2007-09-13  Eric Blake  <ebb9@byu.net>
65352
65353         * ChangeLog: Remove conflict markers.
65354
65355 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65356
65357         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65358         Reported by Bruno Haible <bruno@clisp.org>.
65359
65360 2007-09-12  Bruno Haible  <bruno@clisp.org>
65361
65362         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65363         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65364         is not defined.
65365
65366 2007-09-12  Eric Blake  <ebb9@byu.net>
65367
65368         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65369         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65370         Autoconf definition.
65371         * modules/euidaccess (Depends-on): Add extensions, for
65372         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65373         * modules/fnmatch (Depends-on): Likewise.
65374         * modules/getaddrinfo (Depends-on): Likewise.
65375         * modules/getdelim (Depends-on): Likewise.
65376         * modules/getline (Depends-on): Likewise.
65377         * modules/getsubopt (Depends-on): Likewise.
65378         * modules/gettext (Depends-on): Likewise.
65379         * modules/group-member (Depends-on): Likewise.
65380         * modules/mbchar (Depends-on): Likewise.
65381         * modules/memmem (Depends-on): Likewise.
65382         * modules/mempcpy (Depends-on): Likewise.
65383         * modules/memrchr (Depends-on): Likewise.
65384         * modules/pagealign_alloc (Depends-on): Likewise.
65385         * modules/readutmp (Depends-on): Likewise.
65386         * modules/stpcpy (Depends-on): Likewise.
65387         * modules/stpncpy (Depends-on): Likewise.
65388         * modules/strchrnul (Depends-on): Likewise.
65389         * modules/strndup (Depends-on): Likewise.
65390         * modules/strsep (Depends-on): Likewise.
65391         * modules/strverscmp (Depends-on): Likewise.
65392         * modules/vasprintf (Depends-on): Likewise.
65393         * modules/wcwidth (Depends-on): Likewise.
65394         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65395         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65396         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65397         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65398         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65399         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65400         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65401         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65402         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65403         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65404         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65405         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65406         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65407         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65408         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65409         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65410         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65411         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65412         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65413         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65414         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65415         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65416         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65417         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65418         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65419         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65420         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65421         so that lock.m4 can be used in gettext without extensions module.
65422
65423 2007-09-11  Bruno Haible  <bruno@clisp.org>
65424
65425         * m4/isc-posix.m4: Remove file.
65426         Suggested by Eric Blake.
65427
65428 2007-09-11  Eric Blake  <ebb9@byu.net>
65429
65430         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65431
65432 2007-09-10  Bruno Haible  <bruno@clisp.org>
65433
65434         * posix-modules: Fix typo in error message.
65435         Reported by Matt <mkraai@beckman.com>.
65436
65437 2007-09-09  Bruno Haible  <bruno@clisp.org>
65438
65439         * doc/functions/getdelim.texi: Update list of platforms lacking the
65440         function.
65441         * doc/functions/getline.texi: Likewise.
65442
65443 2007-09-09  Jim Meyering  <jim@meyering.net>
65444
65445         * lib/hash.c (hash_initialize): Detect calloc failure.
65446         Reported by Bruno Haible.
65447
65448 2007-09-09  Bruno Haible  <bruno@clisp.org>
65449
65450         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65451         malloc or realloc fails.
65452
65453 2007-09-09  Bruno Haible  <bruno@clisp.org>
65454
65455         * modules/getcwd (Depends-on): Add malloc-posix.
65456         * modules/glob (Depends-on): Likewise.
65457         * modules/putenv (Depends-on): Likewise.
65458         * modules/strdup (Depends-on): Likewise.
65459         * modules/getdelim (Depends-on): Add realloc-posix.
65460         * modules/read-file (Depends-on): Likewise.
65461
65462 2007-09-09  Bruno Haible  <bruno@clisp.org>
65463
65464         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65465         (gl_FUNC_MALLOC_POSIX): Require it.
65466         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65467         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65468         * modules/realloc (Files): Add m4/malloc.m4.
65469         * modules/calloc (Files): Likewise.
65470
65471 2007-09-09  Bruno Haible  <bruno@clisp.org>
65472
65473         * modules/malloc-posix: New file.
65474         * modules/malloc (Depends-on): Add malloc-posix.
65475         * lib/malloc.c: Include errno.h.
65476         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65477         and a POSIX-compatible malloc into a single function. Set ENOMEM
65478         when returning NULL.
65479         * m4/malloc.m4: New file.
65480         * doc/functions/malloc.texi: Mention the malloc-posix module.
65481         * lib/stdlib_.h (malloc): New declaration.
65482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65483         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65484         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65485         and HAVE_MALLOC_POSIX.
65486
65487 2007-09-09  Bruno Haible  <bruno@clisp.org>
65488
65489         * modules/realloc-posix: New file.
65490         * modules/realloc (Depends-on): Add realloc-posix.
65491         * lib/realloc.c: Include errno.h.
65492         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65493         and a POSIX-compatible realloc into a single function. Set ENOMEM
65494         when returning NULL.
65495         * m4/realloc.m4: New file.
65496         * doc/functions/realloc.texi: Mention the realloc-posix module.
65497         * lib/stdlib_.h (realloc): New declaration.
65498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65499         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65500         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65501         and HAVE_REALLOC_POSIX.
65502
65503 2007-09-09  Bruno Haible  <bruno@clisp.org>
65504
65505         * modules/calloc-posix: New file.
65506         * modules/calloc (Depends-on): Add calloc-posix.
65507         * lib/calloc.c: Include errno.h.
65508         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65509         and a POSIX-compatible calloc into a single function. Set ENOMEM
65510         when returning NULL.
65511         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65512         * doc/functions/calloc.texi: Mention the calloc-posix module.
65513         * lib/stdlib_.h (calloc): New declaration.
65514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65515         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65516         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65517         and HAVE_CALLOC_POSIX.
65518
65519 2007-09-09  Bruno Haible  <bruno@clisp.org>
65520
65521         Allow for modules to show an arbitrary notice.
65522         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65523         * gnulib-tool: New option --extract-notice.
65524         (func_usage): Document it.
65525         (sed_extract_prog): Update.
65526         (func_get_notice): New function.
65527         (func_modules_notice): New function.
65528         (func_import, func_create_testdir): Invoke it.
65529         Suggested by Jim Meyering.
65530
65531 2007-09-09  Bruno Haible  <bruno@clisp.org>
65532
65533         * gnulib-tool: New options --verbose, --quiet.
65534         (func_usage): Document them.
65535         (verbose): New variable.
65536         (func_execute_command): New function.
65537         (func_import): Don't show the module list and the file list if
65538         $verbose < 0.
65539         (func_create_testdir): Likewise. Use func_execute_command.
65540         (func_create_megatestdir): Use func_execute_command.
65541
65542 2007-09-08  Bruno Haible  <bruno@clisp.org>
65543
65544         * gnulib-tool (func_import): Prefer rsync over wget when available,
65545         for fetching the PO files.
65546
65547 2007-09-08  Bruno Haible  <bruno@clisp.org>
65548
65549         * posix-modules: New file. Portions copied from gnulib-tool.
65550         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65551
65552 2007-09-08  Jim Meyering  <jim@meyering.net>
65553
65554         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65555         * lib/fpending.h: Rename from __fpending.h.
65556         * lib/fpending.c: Rename from __fpending.c.
65557         Include "fpending.h", not "__fpending.h".
65558         * lib/__fpending.h, lib/__fpending.c: Remove files.
65559         * modules/fpending (Files): Reflect new file names.
65560         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65561
65562 2007-09-08  Bruno Haible  <bruno@clisp.org>
65563
65564         * m4/inttypes-h.m4: Remove stub file.
65565
65566 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65567
65568         * doc/headers/stdint.texi: Discuss #include_next issue.
65569
65570 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65571
65572         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65573
65574 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65575
65576         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65577         in variable name.
65578
65579 2007-09-03  Jim Meyering  <jim@meyering.net>
65580
65581         New module: git-version-gen.
65582         * modules/git-version-gen: New file.
65583
65584         Import changes from coreutils for bootstrap script.
65585
65586         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65587
65588         bootstrap: uses rsync to download the .po files
65589         * build-aux/bootstrap (po_download_command_format): New global.
65590         (download_po_files): Use rsync.
65591         (update_po_files): Don't remove .po files after download,
65592         so future rsync runs can take advantage of the copies.
65593
65594         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65595
65596         Solve the unnecessary-.po-file-regeneration problem once and for all.
65597         * build-aux/bootstrap (download_po_files): New function, renamed from
65598         get_translations.  Now, downloads, but doesn't update LINGUAS.
65599         (update_po_files): New function.
65600
65601         bootstrap: Ignore more.
65602         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
65603         uniwidth to e.g., lib/.gitignore.
65604         (slurp): Handle the sys_stat_.h -> sys mapping, too.
65605
65606         * build-aux/bootstrap: New setting: vc_ignore.
65607         (insert_sorted_if_absent): Create $file if absent.
65608         Adapt to new, possibly empty, list: $vc_ignore.
65609
65610         bootstrap: generate more ignorable names
65611         * build-aux/bootstrap (slurp): When generating ignorable names,
65612         also map .sin to .sed, .gperf to .c, and .y to .c.
65613
65614 2007-09-03  Jim Meyering  <jim@meyering.net>
65615
65616         * build-aux/git-version-gen: New file, from coreutils.  For details, see
65617         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
65618
65619 2007-09-02  Bruno Haible  <bruno@clisp.org>
65620
65621         Fix mis-recognition of 'mcs' on QNX 6.
65622         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
65623         output contains the string "Mono".
65624         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
65625         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
65626
65627 2007-09-01  Bruno Haible  <bruno@clisp.org>
65628
65629         Fix collision between uniwidth/* and linebreak modules.
65630         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
65631         u32_width): Remove declarations.
65632         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
65633         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
65634         streq3, streq2, streq1, streq0): Remove functions.
65635         (STREQ): Remove macro.
65636         (is_cjk_encoding): Remove function.
65637         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
65638         (uc_width, u8_width, u16_width, u32_width): Remove functions.
65639         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
65640         * NEWS: Document the change.
65641
65642 2007-09-01  Bruno Haible  <bruno@clisp.org>
65643
65644         * lib/streq.h: Add double-inclusion guard.
65645
65646 2007-09-01  Karl Berry  <karl@gnu.org>
65647
65648         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
65649
65650 2007-08-28  Jim Meyering  <jim@meyering.net>
65651
65652         Rename mreadlink_with_size to areadlink_with_size.
65653         * NEWS: Document the change.
65654         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
65655         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
65656         * lib/mreadlink.h: Rename this to...
65657         * lib/areadlink.h: ...this.
65658         * modules/mreadlink-with-size: Rename this to...
65659         * modules/areadlink-with-size: ...this.
65660         * lib/canonicalize.c: Reflect the renaming.
65661         * modules/canonicalize: Likewise.
65662
65663 2007-08-26  Bruno Haible  <bruno@clisp.org>
65664
65665         * gnulib-tool (func_import): When deciding which files to remove,
65666         consider also dangling symbolic links.
65667         Reported by Eric Blake.
65668
65669 2007-08-26  Bruno Haible  <bruno@clisp.org>
65670
65671         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
65672
65673 2007-08-23  Simon Josefsson  <simon@josefsson.org>
65674
65675         * lib/readline.c: Don't include getline.h, the prototype is now
65676         found in stdio.h.
65677
65678 2007-08-23  Jim Meyering  <jim@meyering.net>
65679
65680         Getdelim touchup.
65681         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
65682         around the funlockfile call, since funlockfile never sets errno.
65683         Don't set errno upon failed realloc.
65684
65685 2007-08-22  Eric Blake  <ebb9@byu.net>
65686
65687         Getline touchups.
65688         * lib/getdelim.c (getdelim): Revert regression that required *n to
65689         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
65690         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
65691         getdelim, rather than whether implementation is missing.
65692         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
65693         * lib/stdio_.h (getline): Also declare if replacement is
65694         required.
65695         * doc/functions/getdelim.texi: New file.
65696         * doc/functions/getline.texi: Likewise.
65697         * doc/gnulib.texi (Function Substitutes): Add new files.
65698         Reported by Bruno Haible.
65699
65700 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
65701
65702         * users.txt: Add Guile.
65703
65704 2007-08-22  Eric Blake  <ebb9@byu.net>
65705
65706         * tests/test-getdelim.c (main): Use remove, not unlink.
65707         * tests/test-getline.c (main): Likewise.
65708
65709         Move getline and getdelim into stdio.h, per POSIX 200x.
65710         * modules/getline (Files): Remove getline.h.
65711         (Depends-on): Add stdio.
65712         (configure.ac): Add module indicator.
65713         * modules/getdelim (Files): Remove getdelim.h.
65714         (Depends-on): Add stdio.
65715         (configure.ac): Add module indicator.
65716         * modules/stdio (Makefile.am): Work with new indicators.
65717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
65718         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
65719         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65720         * lib/getdelim.h: Delete.
65721         * lib/getline.h: Delete.
65722         * lib/stdio_.h (getdelim, getline): Declare.
65723         * modules/getdelim-tests: New module.
65724         * modules/getline-tests: Likewise.
65725         * tests/test-getdelim.c: New file.
65726         * tests/test-getline.c: Likewise.
65727         * NEWS: Document the change.
65728         * lib/getline.c: Update choice of header.
65729         * lib/csharpcomp.c: Likewise.
65730         * lib/getpass.c: Likewise.
65731         * lib/javacomp.c: Likewise.
65732         * lib/javaversion.c: Likewise.
65733         * lib/yesno.c: Likewise.
65734         * lib/getdelim.c: Likewise.
65735         (getdelim): Set errno on failure, and avoid memory leak.
65736
65737 2007-08-19  Bruno Haible  <bruno@clisp.org>
65738
65739         * modules/closein (Depends-on): Add freadahead.
65740         * lib/closein.c: Include freadahead.h.
65741         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
65742         is zero.
65743
65744 2007-08-19  Bruno Haible  <bruno@clisp.org>
65745
65746         * modules/freadahead-tests: New file.
65747         * tests/test-freadahead.sh: New file.
65748         * tests/test-freadahead.c: New file.
65749
65750         * modules/freadahead: New file.
65751         * lib/freadahead.h: New file.
65752         * lib/freadahead.c: New file.
65753         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
65754         fbufmode, fpurge, freadable, fwritable.
65755
65756 2007-08-19  Eric Blake  <ebb9@byu.net>
65757
65758         Test yesno in combination with closein.
65759         * lib/yesno.c (yesno): Document use of stdin.
65760         * modules/yesno-tests (Files): New module.
65761         * tests/test-yesno.c (main): New file.
65762         * tests/test-yesno.sh: Likewise.
65763
65764 2007-08-19  Bruno Haible  <bruno@clisp.org>
65765
65766         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
65767         * lib/fseeko.c (rpl_fseeko): Likewise.
65768         * lib/fseterr.c (fseterr): Likewise.
65769
65770 2007-08-19  Bruno Haible  <bruno@clisp.org>
65771
65772         * tests/test-lseek.c (main): Disable a test for BeOS.
65773         * doc/functions/lseek.texi: Document the BeOS bug.
65774
65775 2007-08-19  Bruno Haible  <bruno@clisp.org>
65776             Eric Blake  <ebb9@byu.net>
65777
65778         * lib/lseek.c: Include <sys/stat.h>.
65779         (rpl_lseek): Add workaround code also for Unix platforms.
65780         Needed for BeOS.
65781         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
65782         * doc/functions/lseek.texi: Document BeOS definiency.
65783
65784 2007-08-18  Bruno Haible  <bruno@clisp.org>
65785
65786         * modules/fstrcmp-tests: New file.
65787         * tests/test-fstrcmp.c: New file.
65788
65789 2007-08-18  Bruno Haible  <bruno@clisp.org>
65790
65791         * modules/fstrcmp: New file, from GNU gettext with modifications.
65792         * lib/fstrcmp.h: New file, from GNU gettext.
65793         * lib/fstrcmp.c: New file, from GNU gettext.
65794         * MODULES.html.sh (String handling): Add fstrcmp.
65795
65796 2007-08-18  Bruno Haible  <bruno@clisp.org>
65797
65798         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
65799         'bool'.
65800         (diag, compareseq): Remove const from the ctxt argument.
65801         (USE_HEURISTIC): Undefine at the end.
65802
65803 2007-08-18  Jim Meyering  <jim@meyering.net>
65804
65805         New file: lib/idcache.h
65806         * NEWS: Mention the addition.
65807         * modules/idcache (Files): Add lib/idcache.h
65808         * lib/idcache.c: Include "idcache.h".
65809         Don't include <sys/types.h>.
65810         Add a FIXME comment.
65811         Move file-scoped "static" declarations to the top.
65812         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
65813
65814 2007-08-17  Bruno Haible  <bruno@clisp.org>
65815         and Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         * MODULES.html.sh: Add diffseq.
65818         * modules/diffseq: New file.
65819         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
65820         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
65821
65822 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65823
65824         Import changes from coreutils for bootstrap script.
65825
65826         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
65827
65828         * build-aux/bootstrap (slurp): Work even in environments where
65829         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
65830         current code does not slurp files whose names start with ".", and
65831         this looks like it might be a troublesome area.
65832
65833         2007-07-11  Jim Meyering  <jim@meyering.net>
65834
65835         If there's a GPL vN copyright comment, require that N == 3.
65836
65837         2007-07-08  Jim Meyering  <jim@meyering.net>
65838
65839         Run the coreutils-specific code only if tests/Makefile.am.in exists.
65840         * build-aux/bootstrap (mam_template): Move definition out of loop.
65841
65842         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
65843
65844         * build-aux/bootstrap (symlink_to_dir): Rename function from
65845         symlink_to_gnulib.  Add a directory parameter.  Update all
65846         callers.
65847         (cp_mark_as_generated): Also check for -- and link to -- files in
65848         gl/.
65849
65850         2007-07-08  Jim Meyering  <jim@meyering.net>
65851
65852         Adapt to deeper hierarchy in gnulib.
65853         * build-aux/bootstrap (symlink_to_dir): If the destination
65854         directory doesn't exist, create it. This is required at least for
65855         "lib/uniwidth/cjk.h".
65856
65857         2007-05-15  Jim Meyering  <jim@meyering.net>
65858
65859         * build-aux/bootstrap: Now that generated Makefile.am files
65860         are no longer under version control, they must be created at
65861         bootstrap time.
65862
65863 2007-08-14  Ben Pfaff  <blp@gnu.org>
65864
65865         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
65866
65867 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65868
65869         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
65870         given the changes below.
65871         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
65872         even on hosts that have padding bits beyond the supported 64.
65873
65874 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65875
65876         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
65877         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
65878         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
65879         depends on it.
65880         (xstrtol_error): Remove.
65881         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
65882         but with a different signature.
65883         (ATTRIBUTE_NORETURN, __attribute__): New macros.
65884         * lib/xstrtol-error.c: Include exitfail.h.
65885         (xstrtol_fatal): New function, with a different signature from the
65886         old xstrtol_error, so that the caller need not worry about passing
65887         in an exit status, or about storage management of the option argument.
65888         (xstrtol_error): Now a static function.  Redo signature to
65889         implement xstrtol_fatal.  Output the correct number of hyphens in
65890         front of the option so that the caller need not worry about
65891         storage management.
65892         (N_): New macro.
65893         (_): Remove; not used now.
65894         * modules/xstrtol: Depend on getopt.
65895         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
65896         of old STRTOL_FATAL_ERROR macro.
65897         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
65898         of test program.
65899         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
65900         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
65901
65902 2007-08-08  Eric Blake  <ebb9@byu.net>
65903
65904         * lib/xstrtol-error.c: Add missing include.
65905
65906         Move xstrtol messages into gnulib domain, when --pobase is used.
65907         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
65908         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
65909         * modules/xstrtol (Files): Distribute new file.
65910         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
65911         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
65912         * tests/test-xstrtol.c: ...into new file.
65913         * tests/test-xstrtoul.c: Also test xstrtoul.
65914         * tests/test-xstrtoimax.c: Also test xstrtoimax.
65915         * tests/test-xstrtoumax.c: Also test xstrtoumax.
65916         * tests/test-xstrtol.sh: Drive the tests.
65917         * tests/test-xstrtoimax.sh: Likewise.
65918         * tests/test-xstrtoumax.sh: Likewise.
65919         * modules/xstrtol-tests: New module.
65920         * modules/xstrtoimax-tests: Likewise.
65921         * modules/xstrtoumax-tests: Likewise.
65922
65923 2007-08-08  Jim Meyering  <jim@meyering.net>
65924
65925         New function: mfile_name_concat.
65926         * lib/filenamecat.c (mfile_name_concat): New function, just like
65927         file_name_concat, but return NULL upon failure rather than exiting
65928         with a diagnostic.
65929         * lib/filenamecat.h: Declare it.
65930
65931 2007-08-07  Bruno Haible  <bruno@clisp.org>
65932
65933         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
65934         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
65935         warning from gcc.
65936         Reported by Eric Blake.
65937
65938 2007-08-07  Simon Josefsson  <simon@josefsson.org>
65939
65940         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
65941         * modules/crypto/arcfour (License): Likewise.
65942         * modules/crypto/des-tests (License): Likewise.
65943         * modules/crypto/gc-arctwo-tests (License): Likewise.
65944         * modules/crypto/gc-des-tests (License): Likewise.
65945         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
65946         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
65947         * modules/crypto/gc-md2-tests (License): Likewise.
65948         * modules/crypto/gc-md4-tests (License): Likewise.
65949         * modules/crypto/gc-md5-tests (License): Likewise.
65950         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
65951         * modules/crypto/gc-rijndael-tests (License): Likewise.
65952         * modules/crypto/gc-sha1-tests (License): Likewise.
65953         * modules/crypto/gc-tests (License): Likewise.
65954         * modules/crypto/hmac-md5 (License): Likewise.
65955         * modules/crypto/hmac-sha1 (License): Likewise.
65956         * modules/crypto/md2-tests (License): Likewise.
65957         * modules/crypto/md4-tests (License): Likewise.
65958         * modules/crypto/md5 (License): Likewise.
65959         * modules/crypto/rijndael (License): Likewise.
65960         * modules/crypto/sha1 (License): Likewise.
65961         * modules/memxor (License): Likewise.
65962
65963 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65964         and Bruno Haible  <bruno@clisp.org>
65965
65966         * NEWS: Describe interface changes to human, xstrtol.
65967         * lib/human.h: Include <xstrtol.h>.
65968         (human_options): Return enum strtol_error, not int.  Remove
65969         bool arg; take int * instead.
65970         * lib/human.c: Don't include "gettext.h".
65971         (_): Remove; no longer used.
65972         Don't include <xstrtol.h>, since human.h does it.
65973         (human_options): Adjust to abovementioned interface changes.
65974         Do not report error to stderr; that's now the caller's
65975         responsibility.
65976         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
65977         interface change.
65978         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
65979         Str, Argument_type_string.  All uses changed.  Put " argument"
65980         in diagnostics to make them clearer.  Change wording of suffix
65981         message for clarity.
65982         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
65983         Argument_type_string.
65984         (STRTOL_FATAL_WARN): Remove; no longer used.
65985         * modules/human (Depends-on): Remove gettext-h.
65986
65987 2007-08-06  Simon Josefsson  <simon@josefsson.org>
65988
65989         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
65990
65991 2007-07-31  Bruno Haible  <bruno@clisp.org>
65992
65993         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
65994         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
65995         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
65996
65997 2007-07-31  Bruno Haible  <bruno@clisp.org>
65998
65999         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66000         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66001
66002 2007-07-30  Bruno Haible  <bruno@clisp.org>
66003
66004         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66005         * modules/c-ctype (License): Likewise.
66006         * modules/c-strcase (License): Likewise.
66007         * modules/check-version (License): Likewise.
66008         * modules/iconv (License): Likewise.
66009         * modules/iconv_open (License): Likewise.
66010         * modules/read-file (License): Likewise.
66011         * modules/striconv (License): Likewise.
66012         * modules/strverscmp (License): Likewise.
66013         * modules/vasprintf (License): Likewise.
66014         * modules/crypto/des (License): Likewise.
66015         * modules/crypto/gc (License): Likewise.
66016         * modules/crypto/gc-arcfour (License): Likewise.
66017         * modules/crypto/gc-arctwo (License): Likewise.
66018         * modules/crypto/gc-des (License): Likewise.
66019         * modules/crypto/gc-hmac-md5 (License): Likewise.
66020         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66021         * modules/crypto/gc-md2 (License): Likewise.
66022         * modules/crypto/gc-md4 (License): Likewise.
66023         * modules/crypto/gc-md5 (License): Likewise.
66024         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66025         * modules/crypto/gc-random (License): Likewise.
66026         * modules/crypto/gc-rijndael (License): Likewise.
66027         * modules/crypto/gc-sha1 (License): Likewise.
66028         * modules/crypto/md2 (License): Likewise.
66029         * modules/crypto/md4 (License): Likewise.
66030
66031 2007-07-30  Jim Meyering  <jim@meyering.net>
66032
66033         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66034         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66035         it has valid stat data.  This bug would cause du not to count the
66036         sizes of inaccessible directories.
66037         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66038         in <http://bugzilla.redhat.com/250077>.
66039
66040 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66041             Bruno Haible  <bruno@clisp.org>
66042
66043         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66044         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66045         #include_next, gives a diagnostic about it, but reports no error in
66046         the exit code.
66047         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66048
66049 2007-07-24  Ben Pfaff  <blp@gnu.org>
66050
66051         Improve name: "count-one-bits" is better than "popcount".
66052         * MODULES.html.sh: Update name.
66053         * lib/popcount.h: Renamed lib/count-one-bits.h.
66054         (popcount): Renamed count_one_bits.
66055         (popcountl): Renamed count_one_bits_l.
66056         (popcountll): Renamed count_one_bits_ll.
66057         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66058         * modules/popcount: Renamed module/count-one-bits.
66059         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66060         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66061
66062 2007-07-23  Ben Pfaff  <blp@gnu.org>
66063
66064         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66065         better code generation, and add U to large constants to avoid
66066         warnings, in non-GCC case.
66067         Suggested by Bruno Haible.
66068
66069 2007-07-23  Ben Pfaff  <blp@gnu.org>
66070
66071         * lib/popcount.h: Use verify_true instead of if...abort.
66072         * modules/popcount: Depend on verify module.
66073         Suggested by Jim Meyering.
66074
66075 2007-07-23  Bruno Haible  <bruno@clisp.org>
66076
66077         * gnulib-tool (func_import): Create a .cvsignore file also when the
66078         directory is not yet in CVS but the toplevel directory is. When
66079         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66080         Reported by Karl Berry.
66081
66082 2007-07-22  Ben Pfaff  <blp@gnu.org>
66083
66084         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66085         case.
66086         Suggested by Eric Blake.
66087
66088 2007-07-22  Ben Pfaff  <blp@gnu.org>
66089
66090         New module: popcount.
66091         * MODULES.html.sh: Add popcount.
66092         * modules/popcount: New file.
66093         * modules/popcount-tests: New file.
66094         * tests/test-popcount.c: New file.
66095         * lib/popcount.h: New file.
66096         * m4/popcount.m4: New file.
66097
66098 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66099
66100         * build-aux/announce-gen: Update to GPLv3.
66101
66102         * build-aux/config.guess: Update from config.
66103
66104 2007-07-21  Bruno Haible  <bruno@clisp.org>
66105
66106         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66107         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66108
66109 2007-07-20  Jim Meyering  <jim@meyering.net>
66110
66111         * check-module: Diagnose a self-dependency.
66112
66113 2007-07-19  Bruno Haible  <bruno@clisp.org>
66114
66115         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66116         empty.
66117         Reported by Eric Blake.
66118
66119 2007-07-18  Bruno Haible  <bruno@clisp.org>
66120
66121         * gnulib-tool: New options --po-base, --po-domain.
66122         (func_usage): Document them.
66123         (pobase, po_domain): New variables.
66124         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66125         DEFAULT_TEXT_DOMAIN.
66126         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66127         (func_import): Consider pobase and po_domain. Create a po/ directory.
66128         (func_create_testdir): Set pobase and po_domain to empty.
66129         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66130         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66131
66132 2007-07-18  Bruno Haible  <bruno@clisp.org>
66133
66134         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66135         EXTRA_DIST augmentation for files in build-aux/.
66136
66137 2007-07-16  Bruno Haible  <bruno@clisp.org>
66138
66139         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66140         * modules/getdelim (License): Likewise.
66141
66142 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66143
66144         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66145         * modules/d-type (License): Likewise.
66146         * modules/extensions (License): Likewise.
66147         * modules/fnmatch (License): Likewise.
66148         * modules/fseeko (License): Likewise.
66149         * modules/getaddrinfo (License): Likewise.
66150         * modules/getline (License): Likewise.
66151         * modules/getlogin_r (License): Likewise.
66152         * modules/getpass (License): Likewise.
66153         * modules/gettimeofday (License): Likewise.
66154         * modules/glob (License): Likewise.
66155         * modules/inet_ntop (License): Likewise.
66156         * modules/malloc (License): Likewise.
66157         * modules/malloca (License): Likewise.
66158         * modules/memmem (License): Likewise.
66159         * modules/mempcpy (License): Likewise.
66160         * modules/memset (License): Likewise.
66161         * modules/minmax (License): Likewise.
66162         * modules/mktime (License): Likewise.
66163         * modules/netinet_in (License): Likewise.
66164         * modules/pathmax (License): Likewise.
66165         * modules/poll (License): Likewise.
66166         * modules/regex (License): Likewise.
66167         * modules/snprintf (License): Likewise.
66168         * modules/stdbool (License): Likewise.
66169         * modules/stdint (License): Likewise.
66170         * modules/stdio (License): Likewise.
66171         * modules/strcase (License): Likewise.
66172         * modules/strcasestr (License): Likewise.
66173         * modules/strdup (License): Likewise.
66174         * modules/string (License): Likewise.
66175         * modules/strndup (License): Likewise.
66176         * modules/strnlen (License): Likewise.
66177         * modules/strpbrk (License): Likewise.
66178         * modules/strptime (License): Likewise.
66179         * modules/strsep (License): Likewise.
66180         * modules/sys_select (License): Likewise.
66181         * modules/sys_socket (License): Likewise.
66182         * modules/sys_stat (License): Likewise.
66183         * modules/sys_time (License): Likewise.
66184         * modules/time (License): Likewise.
66185         * modules/time_r (License): Likewise.
66186         * modules/timegm (License): Likewise.
66187         * modules/unistd (License): Likewise.
66188         * modules/vsnprintf (License): Likewise.
66189         * modules/wctype (License): Likewise.
66190
66191 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66192
66193         * modules/argz (License): LGPLv2+.
66194
66195 2007-07-15  Karl Berry  <karl@gnu.org>
66196
66197         * doc/gnulib.texi: revise node structure per new fdl.texi.
66198
66199 2007-07-14  Bruno Haible  <bruno@clisp.org>
66200
66201         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66202         the output file.
66203         * lib/uniname/uninames.h: Regenerated.
66204
66205 2007-07-14  Karl Berry  <karl@gnu.org>
66206
66207         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66208         omitting sectioning and index commands.
66209
66210 2007-07-13  Bruno Haible  <bruno@clisp.org>
66211
66212         New gnulib-tool option --more-symlinks.
66213         * gnulib-tool (func_usage): Document --more-symlinks.
66214         (do_copyrights): New variable.
66215         Recognize option --more-symlinks.
66216         (func_import): Don't add a copyright notice transform to
66217         sed_transform_lib_file if do_copyrights is empty.
66218
66219 2007-07-13  Bruno Haible  <bruno@clisp.org>
66220
66221         * lib/vasnprintf.c (decimal_point_char): Define also if
66222         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66223         && !NEED_PRINTF_DIRECTIVE_A.
66224         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66225         Gary V. Vaughan <gary@gnu.org>.
66226
66227 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66228
66229         * lib/inttypes_.h: Undo previous change, since it was fixed
66230         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66231
66232 2007-07-13  Bruno Haible  <bruno@clisp.org>
66233
66234         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66235         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66236
66237 2007-07-13  Jim Meyering  <jim@meyering.net>
66238
66239         df: Don't fail for Tru64's "file-on-file mount".
66240         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66241         so we fall through and use statfs instead.  Details here:
66242         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66243         Reported by Albert Chin.
66244
66245 2007-07-13  Bruno Haible  <bruno@clisp.org>
66246
66247         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66248         * modules/configmake (License): Likewise.
66249         * modules/gettext (License): Likewise.
66250         * modules/gettext-h (License): Likewise.
66251         * modules/include_next (License): Likewise.
66252         * modules/link-warning (License): Likewise.
66253         * modules/localcharset (License): Likewise.
66254         * modules/localename (License): Likewise.
66255         * modules/lock (License): Likewise.
66256         * modules/relocatable-lib-lgpl (License): Likewise.
66257         * modules/size_max (License): Likewise.
66258         * modules/vasnprintf (License): Likewise.
66259         * modules/wchar (License): Likewise.
66260         * modules/xsize (License): Likewise.
66261
66262 2007-07-13  Bruno Haible  <bruno@clisp.org>
66263
66264         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66265         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66266
66267 2007-07-12  Bruno Haible  <bruno@clisp.org>
66268
66269         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66270         in the modules files.
66271
66272 2007-07-11  Karl Berry  <karl@gnu.org>
66273
66274         * MODULES.html.sh (func_module): use
66275          sed -e '\|^'"${includefile}"'$|d'
66276          instead of /.../d, to avoid errors on $includefile's containing /.
66277
66278 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66279
66280         * gnulib-tool (func_import): Avoid duplication of --avoid
66281         statements
66282         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66283         names to `_' in variable names.
66284
66285 2007-07-10  Eric Blake  <ebb9@byu.net>
66286
66287         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66288         * NEWS: Document this change.
66289
66290 2007-07-08  Bruno Haible  <bruno@clisp.org>
66291
66292         Update to Unicode 5.0.
66293         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66294         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66295         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66296         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66297         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66298         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66299         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66300         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66301         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66302         U+10A3F, U+1D242..U+1D244.
66303         (nonspacing_table_ind): Update.
66304         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66305         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66306
66307 2007-07-08  Bruno Haible  <bruno@clisp.org>
66308
66309         Update to Unicode 5.0.
66310         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66311         code transform. Extend the name index field of unicode_name_to_code and
66312         unicode_code_to_name from 16 to 24 bits.
66313         * lib/uniname/uniname.c (unicode_character_name,
66314         unicode_name_character): Add the range 0x12xxx to the code transform.
66315         * lib/uniname/uninames.h: Regenerated.
66316         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66317
66318 2007-07-07  Bruno Haible  <bruno@clisp.org>
66319
66320         * modules/wcwidth-tests: New file.
66321         * tests/test-wcwidth.c: New file.
66322
66323         Work around MacOS X wcwidth() bug.
66324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66325         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66326         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66327         original wcwidth in non-UTF-8 locales.
66328         * modules/wcwidth (Depends-on): Add localcharset, streq,
66329         uniwidth/width.
66330         * doc/functions/wcwidth.texi: Update.
66331
66332 2007-07-07  Bruno Haible  <bruno@clisp.org>
66333
66334         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66335         (wcwidth): New declaration.
66336         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66337         macros.
66338         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66339         here. Prepare for creating <wchar.h> unconditionally.
66340         * modules/wchar (Depends-on): Add link-warning.
66341         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66342         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66343         * lib/wcwidth.h: Remove file.
66344         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66345         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66346         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66347         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66348         (Include): Replace wcwidth.h with <wchar.h>.
66349         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66350         * lib/mbchar.h: Don't include wcwidth.h.
66351         * lib/mbswidth.c: Likewise.
66352         * NEWS: Mention the change.
66353
66354 2007-07-07  Bruno Haible  <bruno@clisp.org>
66355
66356         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66357         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66358         definition with an external declaration.
66359         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66360         defined as a function. Remove AC_C_INLINE requirement.
66361         * modules/wcwidth (Files): Add lib/wcwidth.c.
66362         (Makefile.am): Remove redundant statement.
66363
66364 2007-07-07  Bruno Haible  <bruno@clisp.org>
66365
66366         * MODULES.html.sh (Unicode string functions): Add the new modules.
66367
66368         * tests/uniwidth/test-u32-strwidth.c: New file.
66369         * modules/uniwidth/u32-strwidth-tests: New file.
66370
66371         * lib/uniwidth/u32-strwidth.c: New file.
66372         * modules/uniwidth/u32-strwidth: New file.
66373
66374         * tests/uniwidth/test-u16-strwidth.c: New file.
66375         * modules/uniwidth/u16-strwidth-tests: New file.
66376
66377         * lib/uniwidth/u16-strwidth.c: New file.
66378         * modules/uniwidth/u16-strwidth: New file.
66379
66380         * tests/uniwidth/test-u8-strwidth.c: New file.
66381         * modules/uniwidth/u8-strwidth-tests: New file.
66382
66383         * lib/uniwidth/u8-strwidth.c: New file.
66384         * modules/uniwidth/u8-strwidth: New file.
66385
66386         * tests/uniwidth/test-u32-width.c: New file.
66387         * modules/uniwidth/u32-width-tests: New file.
66388
66389         * lib/uniwidth/u32-width.c: New file.
66390         * modules/uniwidth/u32-width: New file.
66391
66392         * tests/uniwidth/test-u16-width.c: New file.
66393         * modules/uniwidth/u16-width-tests: New file.
66394
66395         * lib/uniwidth/u16-width.c: New file.
66396         * modules/uniwidth/u16-width: New file.
66397
66398         * tests/uniwidth/test-u8-width.c: New file.
66399         * modules/uniwidth/u8-width-tests: New file.
66400
66401         * lib/uniwidth/u8-width.c: New file.
66402         * modules/uniwidth/u8-width: New file.
66403
66404         * tests/uniwidth/test-uc_width.c: New file.
66405         * modules/uniwidth/width-tests: New file.
66406
66407         * lib/uniwidth/width.c: New file, from GNU libiconv.
66408         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66409         * modules/uniwidth/width: New file.
66410
66411         * lib/uniwidth.h: New file, from GNU libiconv.
66412         * modules/uniwidth/base: New file.
66413
66414 2007-07-07  Bruno Haible  <bruno@clisp.org>
66415
66416         * lib/uniname.h: New file, from GNU gettext.
66417         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66418         * lib/uniname/uninames.h: New file, from GNU gettext.
66419         * lib/uniname/uniname.c: New file, from GNU gettext.
66420         * tests/uniname/test-uninames.sh: New file.
66421         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66422         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66423         * modules/uniname/base: New file.
66424         * modules/uniname/uniname: New file.
66425         * modules/uniname/uniname-tests: New file.
66426         * MODULES.html.sh (Unicode string functions): Add the new modules.
66427
66428 2007-07-06  Bruno Haible  <bruno@clisp.org>
66429
66430         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66431
66432 2007-07-06  Bruno Haible  <bruno@clisp.org>
66433
66434         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66435         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66436         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66437         include <sys/time.h>.
66438         Reported by Eric Blake.
66439
66440 2007-07-06  Eric Blake  <ebb9@byu.net>
66441
66442         Fix testing canonicalize on cygwin.
66443         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66444         Revert patch from 2007-06-19.
66445         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66446         canonicalize module is also in use.
66447         * tests/test-canonicalize.c: New file.
66448         * tests/test-canonicalize.sh: Likewise.
66449         * modules/canonicalize-tests: Likewise.
66450
66451 2007-07-06  Jim Meyering  <jim@meyering.net>
66452
66453         * lib/getugroups.c (getugroups): Detect getgrent failure.
66454         Adjust comment to reflect reality: this function may return -1.
66455
66456 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66457
66458         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66459         the new TP address.
66460         (usage): Fix typo
66461         (gnulib_mk): New variable.
66462
66463 2007-07-05  Jim Meyering  <jim@meyering.net>
66464
66465         Don't let endgrent clobber errno, no matter how improbable.
66466         * lib/getugroups.c (getugroups): Save and restore errno around
66467         endgrent call.
66468
66469         Close the group DB even when failing with 2^31 or more members.
66470         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66471
66472 2007-07-04  Jim Meyering  <jim@meyering.net>
66473
66474         * lib/getugroups.h: New file.
66475         * lib/getugroups.c: Include "getugroups.h".
66476         Remove uses of "register" keyword.
66477         Move local variable, "cp", down into scope where used.
66478         Give "username" parameter the "const" attribute.
66479         * modules/getugroups (Files): Add lib/getugroups.h
66480
66481 2007-07-04  Karl Berry  <karl@gnu.org>
66482
66483         * MODULES.html.sh (func_all_modules): Complete rename of
66484         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66485
66486 2007-07-02  Bruno Haible  <bruno@clisp.org>
66487
66488         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66489         mode, when inttypes.h comes from gnulib.
66490         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66491
66492 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66493
66494         * NEWS: Mention lgpl module name change.
66495
66496         * modules/lgpl-2.1: Renamed from lgpl.
66497
66498         * NEWS: Mention gpl module name change.
66499
66500         * modules/gpl-3.0: New file, based on gpl-2.0.
66501
66502         * modules/gpl-2.0: Renamed from gpl.
66503
66504         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66505         doc/gpl-2.0.texi.
66506
66507 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66508
66509         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66510         #define __STDC_LIMIT_MACROS temporarily while including
66511         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66512         Problem reported by Joel E. Denny in
66513         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66514
66515 2007-07-01  Bruno Haible  <bruno@clisp.org>
66516
66517         * lib/unistdio.h: New file.
66518         * lib/unistdio/u-asnprintf.h: New file.
66519         * lib/unistdio/u-asprintf.h: New file.
66520         * lib/unistdio/u-printf-args.c: New file.
66521         * lib/unistdio/u-printf-args.h: New file.
66522         * lib/unistdio/u-printf-parse.h: New file.
66523         * lib/unistdio/u-snprintf.h: New file.
66524         * lib/unistdio/u-sprintf.h: New file.
66525         * lib/unistdio/u-vasprintf.h: New file.
66526         * lib/unistdio/u-vsnprintf.h: New file.
66527         * lib/unistdio/u-vsprintf.h: New file.
66528         * lib/unistdio/ulc-asnprintf.c: New file.
66529         * lib/unistdio/ulc-asprintf.c: New file.
66530         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66531         * lib/unistdio/ulc-printf-parse.c: New file.
66532         * lib/unistdio/ulc-snprintf.c: New file.
66533         * lib/unistdio/ulc-sprintf.c: New file.
66534         * lib/unistdio/ulc-vasnprintf.c: New file.
66535         * lib/unistdio/ulc-vasprintf.c: New file.
66536         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66537         * lib/unistdio/ulc-vsnprintf.c: New file.
66538         * lib/unistdio/ulc-vsprintf.c: New file.
66539         * lib/unistdio/u8-asnprintf.c: New file.
66540         * lib/unistdio/u8-asprintf.c: New file.
66541         * lib/unistdio/u8-printf-parse.c: New file.
66542         * lib/unistdio/u8-snprintf.c: New file.
66543         * lib/unistdio/u8-sprintf.c: New file.
66544         * lib/unistdio/u8-vasnprintf.c: New file.
66545         * lib/unistdio/u8-vasprintf.c: New file.
66546         * lib/unistdio/u8-vsnprintf.c: New file.
66547         * lib/unistdio/u8-vsprintf.c: New file.
66548         * lib/unistdio/u8-u8-asnprintf.c: New file.
66549         * lib/unistdio/u8-u8-asprintf.c: New file.
66550         * lib/unistdio/u8-u8-snprintf.c: New file.
66551         * lib/unistdio/u8-u8-sprintf.c: New file.
66552         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66553         * lib/unistdio/u8-u8-vasprintf.c: New file.
66554         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66555         * lib/unistdio/u8-u8-vsprintf.c: New file.
66556         * lib/unistdio/u16-asnprintf.c: New file.
66557         * lib/unistdio/u16-asprintf.c: New file.
66558         * lib/unistdio/u16-printf-parse.c: New file.
66559         * lib/unistdio/u16-snprintf.c: New file.
66560         * lib/unistdio/u16-sprintf.c: New file.
66561         * lib/unistdio/u16-vasnprintf.c: New file.
66562         * lib/unistdio/u16-vasprintf.c: New file.
66563         * lib/unistdio/u16-vsnprintf.c: New file.
66564         * lib/unistdio/u16-vsprintf.c: New file.
66565         * lib/unistdio/u16-u16-asnprintf.c: New file.
66566         * lib/unistdio/u16-u16-asprintf.c: New file.
66567         * lib/unistdio/u16-u16-snprintf.c: New file.
66568         * lib/unistdio/u16-u16-sprintf.c: New file.
66569         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66570         * lib/unistdio/u16-u16-vasprintf.c: New file.
66571         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66572         * lib/unistdio/u16-u16-vsprintf.c: New file.
66573         * lib/unistdio/u32-asnprintf.c: New file.
66574         * lib/unistdio/u32-asprintf.c: New file.
66575         * lib/unistdio/u32-printf-parse.c: New file.
66576         * lib/unistdio/u32-snprintf.c: New file.
66577         * lib/unistdio/u32-sprintf.c: New file.
66578         * lib/unistdio/u32-vasnprintf.c: New file.
66579         * lib/unistdio/u32-vasprintf.c: New file.
66580         * lib/unistdio/u32-vsnprintf.c: New file.
66581         * lib/unistdio/u32-vsprintf.c: New file.
66582         * lib/unistdio/u32-u32-asnprintf.c: New file.
66583         * lib/unistdio/u32-u32-asprintf.c: New file.
66584         * lib/unistdio/u32-u32-snprintf.c: New file.
66585         * lib/unistdio/u32-u32-sprintf.c: New file.
66586         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66587         * lib/unistdio/u32-u32-vasprintf.c: New file.
66588         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66589         * lib/unistdio/u32-u32-vsprintf.c: New file.
66590         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66591         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66592         * tests/unistdio/test-ulc-printf1.h: New file.
66593         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66594         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66595         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66596         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66597         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66598         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66599         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66600         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66601         * tests/unistdio/test-u8-asnprintf1.c: New file.
66602         * tests/unistdio/test-u8-asnprintf1.h: New file.
66603         * tests/unistdio/test-u8-printf1.h: New file.
66604         * tests/unistdio/test-u8-vasnprintf1.c: New file.
66605         * tests/unistdio/test-u8-vasnprintf2.c: New file.
66606         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
66607         * tests/unistdio/test-u8-vasnprintf3.c: New file.
66608         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
66609         * tests/unistdio/test-u8-vasprintf1.c: New file.
66610         * tests/unistdio/test-u8-vsnprintf1.c: New file.
66611         * tests/unistdio/test-u8-vsprintf1.c: New file.
66612         * tests/unistdio/test-u16-asnprintf1.c: New file.
66613         * tests/unistdio/test-u16-asnprintf1.h: New file.
66614         * tests/unistdio/test-u16-printf1.h: New file.
66615         * tests/unistdio/test-u16-vasnprintf1.c: New file.
66616         * tests/unistdio/test-u16-vasnprintf2.c: New file.
66617         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
66618         * tests/unistdio/test-u16-vasnprintf3.c: New file.
66619         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
66620         * tests/unistdio/test-u16-vasprintf1.c: New file.
66621         * tests/unistdio/test-u16-vsnprintf1.c: New file.
66622         * tests/unistdio/test-u16-vsprintf1.c: New file.
66623         * tests/unistdio/test-u32-asnprintf1.c: New file.
66624         * tests/unistdio/test-u32-asnprintf1.h: New file.
66625         * tests/unistdio/test-u32-printf1.h: New file.
66626         * tests/unistdio/test-u32-vasnprintf1.c: New file.
66627         * tests/unistdio/test-u32-vasnprintf2.c: New file.
66628         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
66629         * tests/unistdio/test-u32-vasnprintf3.c: New file.
66630         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
66631         * tests/unistdio/test-u32-vasprintf1.c: New file.
66632         * tests/unistdio/test-u32-vsnprintf1.c: New file.
66633         * tests/unistdio/test-u32-vsprintf1.c: New file.
66634         * modules/unistdio/base: New file.
66635         * modules/unistdio/u-printf-args: New file.
66636         * modules/unistdio/ulc-asnprintf: New file.
66637         * modules/unistdio/ulc-asprintf: New file.
66638         * modules/unistdio/ulc-fprintf: New file.
66639         * modules/unistdio/ulc-printf-parse: New file.
66640         * modules/unistdio/ulc-snprintf: New file.
66641         * modules/unistdio/ulc-sprintf: New file.
66642         * modules/unistdio/ulc-vasnprintf: New file.
66643         * modules/unistdio/ulc-vasprintf: New file.
66644         * modules/unistdio/ulc-vfprintf: New file.
66645         * modules/unistdio/ulc-vsnprintf: New file.
66646         * modules/unistdio/ulc-vsprintf: New file.
66647         * modules/unistdio/u8-asnprintf: New file.
66648         * modules/unistdio/u8-asprintf: New file.
66649         * modules/unistdio/u8-printf-parse: New file.
66650         * modules/unistdio/u8-snprintf: New file.
66651         * modules/unistdio/u8-sprintf: New file.
66652         * modules/unistdio/u8-vasnprintf: New file.
66653         * modules/unistdio/u8-vasprintf: New file.
66654         * modules/unistdio/u8-vsnprintf: New file.
66655         * modules/unistdio/u8-vsprintf: New file.
66656         * modules/unistdio/u8-u8-asnprintf: New file.
66657         * modules/unistdio/u8-u8-asprintf: New file.
66658         * modules/unistdio/u8-u8-snprintf: New file.
66659         * modules/unistdio/u8-u8-sprintf: New file.
66660         * modules/unistdio/u8-u8-vasnprintf: New file.
66661         * modules/unistdio/u8-u8-vasprintf: New file.
66662         * modules/unistdio/u8-u8-vsnprintf: New file.
66663         * modules/unistdio/u8-u8-vsprintf: New file.
66664         * modules/unistdio/u16-asnprintf: New file.
66665         * modules/unistdio/u16-asprintf: New file.
66666         * modules/unistdio/u16-printf-parse: New file.
66667         * modules/unistdio/u16-snprintf: New file.
66668         * modules/unistdio/u16-sprintf: New file.
66669         * modules/unistdio/u16-vasnprintf: New file.
66670         * modules/unistdio/u16-vasprintf: New file.
66671         * modules/unistdio/u16-vsnprintf: New file.
66672         * modules/unistdio/u16-vsprintf: New file.
66673         * modules/unistdio/u16-u16-asnprintf: New file.
66674         * modules/unistdio/u16-u16-asprintf: New file.
66675         * modules/unistdio/u16-u16-snprintf: New file.
66676         * modules/unistdio/u16-u16-sprintf: New file.
66677         * modules/unistdio/u16-u16-vasnprintf: New file.
66678         * modules/unistdio/u16-u16-vasprintf: New file.
66679         * modules/unistdio/u16-u16-vsnprintf: New file.
66680         * modules/unistdio/u16-u16-vsprintf: New file.
66681         * modules/unistdio/u32-asnprintf: New file.
66682         * modules/unistdio/u32-asprintf: New file.
66683         * modules/unistdio/u32-printf-parse: New file.
66684         * modules/unistdio/u32-snprintf: New file.
66685         * modules/unistdio/u32-sprintf: New file.
66686         * modules/unistdio/u32-vasnprintf: New file.
66687         * modules/unistdio/u32-vasprintf: New file.
66688         * modules/unistdio/u32-vsnprintf: New file.
66689         * modules/unistdio/u32-vsprintf: New file.
66690         * modules/unistdio/u32-u32-asnprintf: New file.
66691         * modules/unistdio/u32-u32-asprintf: New file.
66692         * modules/unistdio/u32-u32-snprintf: New file.
66693         * modules/unistdio/u32-u32-sprintf: New file.
66694         * modules/unistdio/u32-u32-vasnprintf: New file.
66695         * modules/unistdio/u32-u32-vasprintf: New file.
66696         * modules/unistdio/u32-u32-vsnprintf: New file.
66697         * modules/unistdio/u32-u32-vsprintf: New file.
66698         * modules/unistdio/ulc-asnprintf-tests: New file.
66699         * modules/unistdio/ulc-vasnprintf-tests: New file.
66700         * modules/unistdio/ulc-vasprintf-tests: New file.
66701         * modules/unistdio/ulc-vsnprintf-tests: New file.
66702         * modules/unistdio/ulc-vsprintf-tests: New file.
66703         * modules/unistdio/u8-asnprintf-tests: New file.
66704         * modules/unistdio/u8-vasnprintf-tests: New file.
66705         * modules/unistdio/u8-vasprintf-tests: New file.
66706         * modules/unistdio/u8-vsnprintf-tests: New file.
66707         * modules/unistdio/u8-vsprintf-tests: New file.
66708         * modules/unistdio/u16-asnprintf-tests: New file.
66709         * modules/unistdio/u16-vasnprintf-tests: New file.
66710         * modules/unistdio/u16-vasprintf-tests: New file.
66711         * modules/unistdio/u16-vsnprintf-tests: New file.
66712         * modules/unistdio/u16-vsprintf-tests: New file.
66713         * modules/unistdio/u32-asnprintf-tests: New file.
66714         * modules/unistdio/u32-vasnprintf-tests: New file.
66715         * modules/unistdio/u32-vasprintf-tests: New file.
66716         * modules/unistdio/u32-vsnprintf-tests: New file.
66717         * modules/unistdio/u32-vsprintf-tests: New file.
66718         * MODULES.html.sh (Unicode string functions): Add the new modules.
66719
66720 2007-07-01  Bruno Haible  <bruno@clisp.org>
66721
66722         * lib/sprintf.c (sprintf): Limit the available length estimation,
66723         to avoid address wraparound.
66724         * lib/vsprintf.c (vsprintf): Likewise.
66725         * modules/sprintf-posix (Dependencies): Add stdint.
66726         * modules/vsprintf-posix (Dependencies): Likewise.
66727
66728 2007-07-01  Bruno Haible  <bruno@clisp.org>
66729
66730         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
66731         Windows PATH as well. Conservative double-quoting. Comments.
66732
66733 2007-07-01  Bruno Haible  <bruno@clisp.org>
66734             Eric Blake  <ebb9@byu.net>
66735             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66736
66737         * gnulib-tool (self_abspathname): Fix algorithm to cope with
66738         empty components in $PATH, denoting '.'.
66739
66740 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66741
66742         * gnulib-tool: Fix indentation.
66743         (func_create_megatestdir): Likewise.
66744         Report by Bruno Haible.
66745
66746 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66747
66748         Sync from Automake.
66749         * build-aux/gnupload: Fix shell portability issues with for loops.
66750         Report by Karl Berry.
66751
66752 2007-06-29  Simon Josefsson  <simon@josefsson.org>
66753
66754         * build-aux/maint.mk (POURL): Use translationproject.org.
66755
66756 2007-06-27  Simon Josefsson  <simon@josefsson.org>
66757             Bruno Haible  <bruno@clisp.org>
66758
66759         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
66760         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
66761         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
66762         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
66763         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
66764
66765 2007-06-27  Bruno Haible  <bruno@clisp.org>
66766
66767         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
66768         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
66769
66770 2007-06-26  Karl Berry  <karl@gnu.org>
66771
66772         * MODULES.html.sh: remove xreadlink-with-size.
66773
66774 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66775
66776         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
66777         method that I hope also handles the double-include problem noted
66778         by Bruno Haible in
66779         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
66780
66781 2007-06-23  Bruno Haible  <bruno@clisp.org>
66782
66783         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66784         Don't let the 'mostlyclean' target fail if the last subdirectory could
66785         not be removed.
66786         Reported by Karl Berry.
66787
66788 2007-06-23  Bruno Haible  <bruno@clisp.org>
66789
66790         * gnulib-tool (echo): Add a speedier workaround for ksh.
66791         * tests/test-echo.sh: Likewise.
66792
66793 2007-06-23  Bruno Haible  <bruno@clisp.org>
66794
66795         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
66796         * tests/test-echo.sh: Likewise.
66797
66798 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66799
66800         * gnulib-tool (IFS): Initialize early, so we don't set it to
66801         empty later.
66802         (self_abspathname): Rewrite algorithm to set it, reindent.
66803         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
66804         (func_create_megatestdir): Merge some sed scripts.
66805
66806 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66807
66808         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
66809         exposed by Sun Studio 11 cc on Solaris 8.
66810
66811 2007-06-22  Bruno Haible  <bruno@clisp.org>
66812
66813         * gnulib-tool (echo): Ensure the echo primitive does not interpret
66814         backslashes.
66815         * tests/test-echo.sh: New file.
66816
66817 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66818
66819         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
66820         simplify `sed_replace_build_aux' scripts, they are portable but
66821         echoing them with `echo' is not.
66822         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
66823
66824 2007-06-21  Karl Berry  <karl@gnu.org>
66825
66826         * config/srclist.txt: guess we can't handle the licenses via
66827         srclist at the moment.
66828
66829 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66830
66831         * MODULES.html.sh: Add include_next.
66832         * modules/include_next: New file.
66833
66834 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66835
66836         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
66837         INCLUDE_NEXT.
66838         (gl_CHECK_NEXT_HEADERS): New macro.
66839         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
66840         the obsolescent gl_ABSOLUTE_HEADER.
66841         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
66842         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
66843         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66844         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66845         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66846         * m4/math_h.m4 (gl_MATH_H): Likewise.
66847         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
66848         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
66849         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
66850         * m4/stdint.m4 (gl_STDINT_H): Likewise.
66851         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
66852         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
66853         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
66854         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66855         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
66856         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
66857         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
66858         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
66859         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
66860         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
66861         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66862         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66863         * m4/inttypes.m4 (gl_INTTYPES_H): Define
66864         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
66865         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
66866         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
66867         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
66868         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
66869         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
66870         * lib/float_.h: Likewise.
66871         * lib/inttypes_.h: Likewise.
66872         * lib/math_.h: Likewise.
66873         * lib/search_.h: Likewise.
66874         * lib/signal_.h: Likewise.
66875         * lib/stdint_.h: Likewise.
66876         * lib/stdio_.h: Likewise.
66877         * lib/stdlib_.h: Likewise.
66878         * lib/string_.h: Likewise.
66879         * lib/sys_stat_.h: Likewise.
66880         * lib/sys_time_.h: Likewise.
66881         * lib/time_.h: Likewise.
66882         * lib/unistd_.h: Likewise.
66883         * lib/wchar_.h: Likewise.
66884         * lib/wctype_.h: Likewise.
66885         * lib/dirent_.h: Likewise.
66886         * lib/iconv_.h: Likewise.
66887         * lib/locale_.h: Likewise.
66888         * lib/netinet_in_.h: Likewise.
66889         * lib/sys_select_.h: Likewise.
66890         * lib/sys_socket_.h: Likewise.
66891         * lib/sysexits_.h: Likewise.
66892         * modules/fcntl (Depends-on): Depend on include_next, not
66893         absolute_header.
66894         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
66895         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
66896         * modules/fchdir: Likewise.
66897         * modules/float: Likewise.
66898         * modules/iconv_open: Likewise.
66899         * modules/inttypes: Likewise.
66900         * modules/locale: Likewise.
66901         * modules/math: Likewise.
66902         * modules/netinet_in: Likewise.
66903         * modules/search: Likewise.
66904         * modules/signal: Likewise.
66905         * modules/stdint: Likewise.
66906         * modules/stdio: Likewise.
66907         * modules/stdlib: Likewise.
66908         * modules/string: Likewise.
66909         * modules/sys_select: Likewise.
66910         * modules/sys_socket: Likewise.
66911         * modules/sys_stat: Likewise.
66912         * modules/sys_time: Likewise.
66913         * modules/sysexits: Likewise.
66914         * modules/time: Likewise.
66915         * modules/unistd: Likewise.
66916         * modules/wchar: Likewise.
66917         * modules/wctype: Likewise.
66918         * modules/sys_stat: Change maintainer to "all".
66919         * modules/unistd: Likewise.
66920
66921 2007-06-20  Karl Berry  <karl@gnu.org>
66922
66923         * config/srclist.txt: track www changes in license files.
66924
66925 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
66926
66927         * build-aux/bootstrap: Remove stray dot.
66928         Make sure build_aux settings are honored when linking
66929         gnulib_extra_files.
66930
66931 2007-06-19  Eric Blake  <ebb9@byu.net>
66932
66933         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66934         Allow compilation on cygwin.
66935
66936 2007-06-19  Jim Meyering  <jim@meyering.net>
66937
66938         xreadlink-with-size: Remove module.  No longer used.
66939         Ex-callers now use xreadlink or mreadlink-with-size.
66940         * modules/xreadlink-with-size: Remove module.
66941         * lib/xreadlink-with-size.c: Remove file.
66942         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
66943         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
66944         just before the function definition *is* accurate.
66945
66946         Eliminate one way canonicalize_filename_mode could exit.
66947         * lib/canonicalize.c (canonicalize_filename_mode):
66948         Use mreadlink_with_size, not xreadlink_with_size.
66949
66950 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
66951
66952         Detect porting problems to FreeBSD/arm, which has time_t wider than
66953         long int.  Original problem reported for GNU diff by Xin Li in
66954         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
66955         * modules/getdate (Depends-on): Add intprops, verify.
66956         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
66957         is an integer type no wider than long int.
66958
66959 2007-06-18  Jim Meyering  <jim@meyering.net>
66960
66961         New module: mreadlink-with-size.
66962         * MODULES.html.sh: Add mreadlink-with-size.
66963         * modules/mreadlink-with-size: New module
66964         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
66965         not xreadlink-with-size.
66966         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
66967
66968 2007-06-16  Bruno Haible  <bruno@clisp.org>
66969
66970         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
66971         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
66972         Reported by Gary V. Vaughan <gary@gnu.org>.
66973
66974 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
66975
66976         Revamp lchown so that it lives in unistd.h where it belongs.
66977         * lib/lchown.h: Remove.
66978         * lib/dirchownmod.c: Don't include lib/lchown.h.
66979         * lib/fchownat.c: Likewise.
66980         * lib/openat.c: Likewise.
66981         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
66982         does not follow symlinks.
66983         (EOPNOTSUPP): Define if not defined.
66984         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
66985         is defined to 0.
66986         (lchown): New decl.
66987         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
66988         Do not check for lchown decl.
66989         Set REPLACE_LCHOWN.
66990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
66991         REPLACE_LCHOWN.
66992         * modules/chown: Make it clear it follows symlinks.
66993         * modules/lchown: Make it clear it doesn't follow symlinks.
66994         (Files): Remove lib/lchown.h
66995         (Depends-on): Add unistd.
66996         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
66997         (Include): Include <unistd.h>, not "lchown.h".
66998         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
66999         REPLACE_LCHOWN.
67000
67001 2007-06-15  Jim Meyering  <jim@meyering.net>
67002
67003         Change license (GPL to LGPL) of fsusage and dependents.
67004         * modules/fsusage (License): Change to LGPL.
67005         * modules/full-read (License): Likewise.
67006         * modules/full-write (License): Likewise.
67007         * modules/safe-read (License): Likewise.
67008         * modules/safe-write (License): Likewise.
67009
67010 2007-06-14  Ben Pfaff  <blp@gnu.org>
67011
67012         Missing part of allocsa -> malloca transition.
67013         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67014         gl_MALLOCA.
67015
67016 2007-06-12  Bruno Haible  <bruno@clisp.org>
67017
67018         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67019         to ia64, x86_64, i386.
67020         Reported by Eric Blake.
67021
67022 2007-06-12  Bruno Haible  <bruno@clisp.org>
67023
67024         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67025         cross-compiling to x86_64.
67026
67027 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67028
67029         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67030         glitch reported by Ralf Wildenhues in
67031         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67032
67033         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67034         Vin Shelton.
67035
67036 2007-06-11  Bruno Haible  <bruno@clisp.org>
67037
67038         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67039         replacement string.
67040         Reported by Eric Blake.
67041
67042 2007-06-10  Bruno Haible  <bruno@clisp.org>
67043
67044         Prepare vasnprintf code for use with Unicode strings.
67045         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67046         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67047         TYPE_U32_STRING.
67048         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67049         a_u32_string variants.
67050         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67051         * lib/printf-args.c: Don't include config.h and the specification
67052         header if PRINTF_FETCHARGS is already defined.
67053         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67054         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67055         TYPE_U16_STRING, TYPE_U32_STRING.
67056         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67057         u16_directive, u16_directives, u32_directive, u32_directives): New
67058         types.
67059         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67060         New declarations.
67061         * lib/printf-parse.c: Don't include config.h and the specification
67062         header if PRINTF_PARSE is already defined. Eliminate the set of
67063         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67064         them now. Include c-ctype.h.
67065         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67066         directive and CHAR_T_ONLY_ASCII.
67067         * lib/vasnprintf.c: Don't include config.h and the specification header
67068         if VASNPRINTF is already defined.
67069         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67070         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67071         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67072         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67073         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67074         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67075         code accordingly.
67076         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67077         pad_ourselves also in this case, with the 'c' and 's' directives, and
67078         with a different notion of "width".
67079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67080
67081 2007-06-10  Bruno Haible  <bruno@clisp.org>
67082
67083         * modules/unistr/u32-mbsnlen: New file.
67084         * lib/unistr/u32-mbsnlen.c: New file.
67085
67086         * modules/unistr/u16-mbsnlen: New file.
67087         * lib/unistr/u16-mbsnlen.c: New file.
67088
67089         * modules/unistr/u8-mbsnlen: New file.
67090         * lib/unistr/u8-mbsnlen.c: New file.
67091
67092         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67093         declarations.
67094
67095 2007-06-10  Bruno Haible  <bruno@clisp.org>
67096
67097         * lib/string_.h (mbsnlen): New declaration.
67098         * lib/mbsnlen.c: New file.
67099         * m4/mbsnlen.m4: New file.
67100         * modules/mbsnlen: New file.
67101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67102         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67103         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67104
67105 2007-06-10  Bruno Haible  <bruno@clisp.org>
67106
67107         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67108
67109 2007-06-10  Bruno Haible  <bruno@clisp.org>
67110
67111         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67112         * lib/mbuiter.h: Likewise.
67113
67114 2007-06-10  Bruno Haible  <bruno@clisp.org>
67115
67116         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67117         declaration.
67118
67119 2007-06-10  Karl Berry  <karl@gnu.org>
67120
67121         * config/srclist.txt: remove gettext entries, Bruno prefers
67122         to update individually.
67123
67124 2007-06-10  Bruno Haible  <bruno@clisp.org>
67125
67126         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67127         'maxlen'. Ensure only length + width bytes are allocated, not
67128         length + 1 + width.
67129
67130 2007-06-09  Bruno Haible  <bruno@clisp.org>
67131
67132         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67133         (CHAR_T): Remove macro.
67134         (VASNPRINTF): Update.
67135
67136 2007-06-09  Bruno Haible  <bruno@clisp.org>
67137
67138         * MODULES.html.sh (Unicode string functions): Add the new modules.
67139
67140         * modules/uniconv/u32-conv-to-enc: New file.
67141         * lib/uniconv/u32-conv-to-enc.c: New file.
67142         * modules/uniconv/u32-conv-to-enc-tests: New file.
67143         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67144
67145         * modules/uniconv/u16-conv-to-enc: New file.
67146         * lib/uniconv/u16-conv-to-enc.c: New file.
67147         * lib/uniconv/u-conv-to-enc.h: New file.
67148         * modules/uniconv/u16-conv-to-enc-tests: New file.
67149         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67150
67151         * modules/uniconv/u8-conv-to-enc: New file.
67152         * lib/uniconv/u8-conv-to-enc.c: New file.
67153         * modules/uniconv/u8-conv-to-enc-tests: New file.
67154         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67155
67156         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67157         u32_conv_to_encoding): New declarations.
67158
67159 2007-06-09  Bruno Haible  <bruno@clisp.org>
67160
67161         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67162
67163 2007-06-09  Bruno Haible  <bruno@clisp.org>
67164
67165         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67166         * modules/malloca: Renamed from modules/allocsa, updated.
67167         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67168         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67169         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67170         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67171         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67172         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67173         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67174         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67175         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67176         * modules/c-strcasestr (Depends-on): Update.
67177         * lib/c-strcasestr.c: Update.
67178         * modules/c-strstr (Depends-on): Update.
67179         * lib/c-strstr.c: Update.
67180         * modules/canonicalize-lgpl (Depends-on): Update.
67181         * lib/canonicalize-lgpl.c: Update.
67182         * modules/clean-temp (Depends-on): Update.
67183         * lib/clean-temp.c: Update.
67184         * modules/csharpcomp (Depends-on): Update.
67185         * lib/csharpcomp.c: Update.
67186         * modules/csharpexec (Depends-on): Update.
67187         * lib/csharpexec.c: Update.
67188         * modules/javacomp (Depends-on): Update.
67189         * lib/javacomp.c: Update.
67190         * modules/javaexec (Depends-on): Update.
67191         * lib/javaexec.c: Update.
67192         * modules/mbscasestr (Depends-on): Update.
67193         * lib/mbscasestr.c: Update.
67194         * modules/mbsstr (Depends-on): Update.
67195         * lib/mbsstr.c: Update.
67196         * modules/setenv (Depends-on): Update.
67197         * lib/setenv.c: Update.
67198         * modules/strcasestr (Depends-on): Update.
67199         * lib/strcasestr.c: Update.
67200         * modules/striconveha (Depends-on): Update.
67201         * lib/striconveha.c: Update.
67202         * modules/relocatable-prog-wrapper (Files): Update.
67203         * lib/relocwrapper.c: Update.
67204         * build-aux/install-reloc: Update.
67205         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67206
67207 2007-06-08  Bruno Haible  <bruno@clisp.org>
67208
67209         Port to uClibc.
67210         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67211         * lib/fpurge.c (fpurge): Likewise.
67212         * lib/freading.c (freading): Likewise.
67213         * lib/fseeko.c (rpl_fseeko): Likewise.
67214         * lib/fseterr.c (fseterr): Likewise.
67215         * lib/fwriting.c (fwriting): Likewise.
67216         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67217
67218 2007-06-08  Bruno Haible  <bruno@clisp.org>
67219
67220         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67221         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67222         * modules/gettext (Files): Add m4/intlmacosx.m4.
67223
67224 2007-06-07  Bruno Haible  <bruno@clisp.org>
67225
67226         * modules/localename-tests: New file.
67227         * tests/test-localename.c: New file.
67228
67229         New module 'localename'.
67230         * lib/localename.h: New file.
67231         * lib/localename.c: New file, from GNU gettext.
67232         * m4/localename.m4: New file.
67233         * modules/localename: New file.
67234
67235 2007-06-07  Bruno Haible  <bruno@clisp.org>
67236
67237         Work around the lack of <wchar.h> on some builds of uClibc.
67238         * doc/headers/wchar.texi: Update.
67239         * lib/wchar_.h: Include <wchar.h> only if it exists.
67240         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67241         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67242         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67243         doesn't exist.
67244         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67245         * modules/mbfile (Depends-on): Add wchar.
67246         * modules/mbiter (Depends-on): Likewise.
67247         * modules/mbuiter (Depends-on): Likewise.
67248         Reported by Simon Josefsson.
67249
67250 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         Work around problem reported by Steven M. Schweda in
67253         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67254         Tru64 5.1B with the Compaq compiler environment installed declares
67255         an 'isblank' function but does not define it in the C library.
67256         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67257         * lib/regex_internal.h (isblank): Likewise.
67258         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67259         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67260
67261 2007-06-05  Bruno Haible  <bruno@clisp.org>
67262
67263         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67264         ia64.
67265         * modules/printf-safe: New file.
67266         * modules/fprintf-posix (Depends-on): Add printf-safe.
67267         * modules/printf-posix (Depends-on): Likewise.
67268         * modules/snprintf-posix (Depends-on): Likewise.
67269         * modules/sprintf-posix (Depends-on): Likewise.
67270         * modules/vasnprintf-posix (Depends-on): Likewise.
67271         * modules/vasprintf-posix (Depends-on): Likewise.
67272         * modules/vfprintf-posix (Depends-on): Likewise.
67273         * modules/vprintf-posix (Depends-on): Likewise.
67274         * modules/vsnprintf-posix (Depends-on): Likewise.
67275         * modules/vsprintf-posix (Depends-on): Likewise.
67276         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67277         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67278         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67279         "no" on i386, x86_64, ia64.
67280         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67281         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67282         on i386, x86_64, ia64.
67283         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67284         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67285         on i386, x86_64, ia64.
67286         * tests/test-vasnprintf-posix.c: Include float.h.
67287         (LDBL80_WORDS): New macro.
67288         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67289         on i386, x86_64, ia64.
67290         * tests/test-vasprintf-posix.c: Include float.h.
67291         (LDBL80_WORDS): New macro.
67292         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67293         on i386, x86_64, ia64.
67294         * tests/test-snprintf-posix.c: Include float.h.
67295         * tests/test-sprintf-posix.c: Likewise.
67296         * tests/test-vsnprintf-posix.c: Likewise.
67297         * tests/test-vsprintf-posix.c: Likewise.
67298
67299 2007-06-05  Bruno Haible  <bruno@clisp.org>
67300
67301         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67302         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67303         non-IEEE numbers on i386, x86_64, ia64.
67304         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67305         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67306         * tests/test-isnanl.h: Include float.h.
67307         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67308
67309 2007-06-05  Bruno Haible  <bruno@clisp.org>
67310
67311         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67312         also the %a / %A. Handle the %a / %A code before this extra handling.
67313
67314 2007-06-05  Bruno Haible  <bruno@clisp.org>
67315
67316         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67317         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67318
67319 2007-06-05  Bruno Haible  <bruno@clisp.org>
67320
67321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67322         typo in variable name.
67323
67324 2007-06-05  Eric Blake  <ebb9@byu.net>
67325
67326         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67327         Reported by Simon Josefsson.
67328
67329 2007-06-04  Bruno Haible  <bruno@clisp.org>
67330
67331         Avoid test failures on some PowerPC platforms.
67332         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67333         Define differently for PowerPC.
67334         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67335         Reported by Gary V. Vaughan <gary@gnu.org>.
67336
67337 2007-06-02  Bruno Haible  <bruno@clisp.org>
67338
67339         Fix test-stdint failure on FreeBSD/ia64.
67340         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67341         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67342         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67343         * doc/headers/stdint.texi: Update.
67344
67345 2007-06-01  Bruno Haible  <bruno@clisp.org>
67346
67347         * tests/test-binary-io.c (main): Pass a third argument to open().
67348         Reported by Gary V. Vaughan <gary@gnu.org>.
67349
67350 2007-06-01  Bruno Haible  <bruno@clisp.org>
67351
67352         * doc/functions/frexpl.texi: Update for mingw.
67353
67354 2007-06-01  Bruno Haible  <bruno@clisp.org>
67355
67356         * tests/test-lseek.c (main): Disable test of errno for invalid third
67357         argument.
67358         * doc/functions/lseek.texi: Update.
67359         Reported by Gary V. Vaughan <gary@gnu.org>.
67360
67361 2007-05-28  Bruno Haible  <bruno@clisp.org>
67362
67363         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67364
67365 2007-05-31  Eric Blake  <ebb9@byu.net>
67366
67367         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67368         cross compiling.
67369
67370 2007-05-30  Eric Blake  <ebb9@byu.net>
67371         and Bruno Haible  <bruno@clisp.org>
67372
67373         Work around mingw test failures exposed by m4-1.4.9b.
67374         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67375         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67376         moment.
67377
67378 2007-05-30  Bruno Haible  <bruno@clisp.org>
67379
67380         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67381         assuming that they are closed. Needed on HP-UX 11.
67382
67383 2007-05-29  Bruno Haible  <bruno@clisp.org>
67384
67385         Fix a problem with #include_next.
67386         * lib/dirent_.h: Split the double-inclusion guard.
67387         * lib/fcntl_.h: Likewise.
67388         * lib/float_.h: Likewise.
67389         * lib/iconv_.h: Likewise.
67390         * lib/inttypes_.h: Likewise.
67391         * lib/locale_.h: Likewise.
67392         * lib/math_.h: Likewise.
67393         * lib/netinet_in_.h: Likewise.
67394         * lib/search_.h: Likewise.
67395         * lib/signal_.h: Likewise.
67396         * lib/stdint_.h: Likewise.
67397         * lib/stdio_.h: Likewise.
67398         * lib/stdlib_.h: Likewise.
67399         * lib/string_.h: Likewise.
67400         * lib/sys_select_.h: Likewise.
67401         * lib/sys_socket_.h: Likewise.
67402         * lib/sys_stat_.h: Likewise.
67403         * lib/sys_time_.h: Likewise.
67404         * lib/sysexits_.h: Likewise.
67405         * lib/time_.h: Likewise.
67406         * lib/unistd_.h: Likewise.
67407         * lib/wchar_.h: Likewise.
67408         * lib/wctype_.h: Likewise.
67409
67410 2007-05-29  Bruno Haible  <bruno@clisp.org>
67411
67412         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67413         for the moment.
67414
67415 2007-05-29  Bruno Haible  <bruno@clisp.org>
67416
67417         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67418         invocation.
67419         Reported by Eric Blake.
67420
67421 2007-05-29  Bruno Haible  <bruno@clisp.org>
67422
67423         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67424         compiling case.
67425
67426 2007-05-29  Eric Blake  <ebb9@byu.net>
67427             Bruno Haible  <bruno@clisp.org>
67428
67429         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67430         cross compiles.
67431
67432 2007-05-28  Eric Blake  <ebb9@byu.net>
67433
67434         * modules/closein-tests (test_closein_LDADD): Support test on
67435         cygwin with libtool.
67436
67437 2007-05-28  Bruno Haible  <bruno@clisp.org>
67438
67439         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67440         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67441         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67442         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67443         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67444         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67445         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67446         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67447         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67448
67449 2007-05-28  Eric Blake  <ebb9@byu.net>
67450
67451         Unconditionally include <config.h> in unit tests.
67452         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67453         * tests/test-allocsa.c, tests/test-arcfour.c,
67454         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67455         tests/test-array_list.c, tests/test-array_oset.c,
67456         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67457         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67458         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67459         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67460         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67461         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67462         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67463         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67464         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67465         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67466         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67467         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67468         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67469         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67470         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67471         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67472         test-md5.c, test-memmem.c, test-printf-posix.c,
67473         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67474         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67475         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67476         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67477         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67478         test-vasnprintf-posix2.c, test-vasnprintf.c,
67479         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67480         test-vfprintf-posix.c, test-vprintf-posix.c,
67481         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67482         test-xvasprintf.c: Likewise.
67483
67484 2007-05-28  Bruno Haible  <bruno@clisp.org>
67485
67486         * gnulib-tool (func_import): Remember the --with-tests command-line
67487         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67488         Reported by Eric Blake.
67489
67490 2007-05-28  Bruno Haible  <bruno@clisp.org>
67491
67492         * modules/ftell-tests: New file.
67493         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67494         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67495
67496         * lib/ftell.c: New file.
67497         * modules/ftell: New file.
67498         * m4/ftell.m4: New file.
67499         * doc/functions/ftell.texi: Update.
67500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67501         REPLACE_FTELL.
67502         * lib/stdio_.h (rpl_ftell): New declaration.
67503         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67504         REPLACE_FTELL.
67505
67506 2007-05-28  Eric Blake  <ebb9@byu.net>
67507
67508         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67509
67510 2007-05-28  Bruno Haible  <bruno@clisp.org>
67511
67512         * modules/fseek-tests: New file.
67513         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67514         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67515
67516         * lib/fseek.c: New file.
67517         * modules/fseek: New file.
67518         * m4/fseek.m4: New file.
67519         * doc/functions/fseek.texi: Update.
67520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67521         REPLACE_FSEEK.
67522         * lib/stdio_.h (rpl_fseek): New declaration.
67523         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67524         REPLACE_FSEEK.
67525
67526 2007-05-28  Bruno Haible  <bruno@clisp.org>
67527
67528         * lib/stdio_.h (fflush): More comments.
67529
67530 2007-05-28  Bruno Haible  <bruno@clisp.org>
67531
67532         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67533         runtime test.
67534
67535 2007-05-28  Eric Blake  <ebb9@byu.net>
67536
67537         Improve lseek module.
67538         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67539         * lib/unistd_.h (lseek): Scale back link warning message.
67540         * tests/test-lseek.c: Beef up test.
67541         * tests/test-lseek.sh: Exercise more facets of lseek.
67542         Reported by Bruno Haible.
67543
67544 2007-05-28  Bruno Haible  <bruno@clisp.org>
67545
67546         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67547         to define.
67548
67549 2007-05-27  Bruno Haible  <bruno@clisp.org>
67550
67551         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67552
67553 2007-05-27  Bruno Haible  <bruno@clisp.org>
67554
67555         * modules/openmp: New file.
67556         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67557         Noah Misch.
67558
67559 2007-05-26  Bruno Haible  <bruno@clisp.org>
67560
67561         * modules/chdir-long (Depends-on): Add fchdir.
67562         * modules/chdir-safer (Depends-on): Likewise.
67563         * modules/fts (Depends-on): Likewise.
67564         * modules/fts-lgpl (Depends-on): Likewise.
67565         * modules/openat (Depends-on): Likewise.
67566         * modules/savewd (Depends-on): Likewise.
67567
67568 2007-05-24  Eric Blake  <ebb9@byu.net>
67569
67570         Fix lseek on mingw.
67571         * modules/lseek: New module.
67572         * m4/lseek.m4: New file.
67573         * lib/lseek.c: New file.
67574         * modules/lseek-tests: New file.
67575         * tests/test-lseek.c: New file.
67576         * tests/test-lseek.sh: New file.
67577         * MODULES.html.sh: Document lseek module.
67578         * modules/fflush (Depends-on): Add lseek, fseeko.
67579         * modules/fseeko (Depends-on): Likewise.
67580         * modules/ftello (Depends-on): Likewise.
67581         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67582         broken.
67583         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67584         broken.
67585         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67586         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67587         * lib/ftello.c (rpl_ftello): Likewise.
67588         * tests/test-fseeko.c (main): Test this.
67589         * tests/test-fseeko.sh: Likewise.
67590         * tests/test-ftello.c (main): Likewise.
67591         * tests/test-ftello.sh: Likewise.
67592         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67593         implies replacing fseek.
67594         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67595         HAVE_FTELLO.
67596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67597         * modules/unistd (Makefile.am): Likewise.
67598         * lib/unistd_.h (lseek): Declare a replacement.
67599         * doc/functions/lseek.texi (lseek): Document this fix.
67600         * doc/functions/fseek.texi (fseek): Likewise.
67601         * doc/functions/ftell.texi (ftell): Likewise.
67602
67603 2007-05-24  Bruno Haible  <bruno@clisp.org>
67604
67605         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
67606         in the printed representation of a NaN.
67607         * tests/test-vasprintf-posix.c (test_function): Likewise.
67608         * tests/test-snprintf-posix.h (test_function): Likewise.
67609         * tests/test-sprintf-posix.h (test_function): Likewise.
67610         Reported by Eric Blake.
67611
67612 2007-05-23  Eric Blake  <ebb9@byu.net>
67613
67614         Fix fseeko/ftello on cygwin 1.5.24.
67615         * doc/functions/fseeko.texi (fseeko): Document the fix.
67616         * doc/functions/ftello.texi (ftello): Document the fix.
67617         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
67618         * doc/functions/stdout.text (stdout): New file.
67619         * doc/functions/stderr.text (stderr): New file.
67620         * doc/gnulib.texi (Function Substitutes): Use new files.
67621         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
67622         prior to 1.7.0.
67623         * tests/test-ftello.c (main): Likewise for ftello.
67624         * tests/test-fseeko.sh: New file.
67625         * tests/test-ftello.sh: New file.
67626         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
67627         with seekable stdin.
67628         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
67629         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
67630         (gl_REPLACE_FSEEKO): New macro.
67631         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
67632         * modules/fseeko (Files): Distribute fseeko.c.
67633         * modules/ftello (Files): Distribute ftello.c.
67634         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
67635         mode.
67636         * lib/ftello.c (rpl_ftello): New file.
67637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
67638         fseeko, ftello.
67639         (gl_STDIN_LARGE_OFFSET): New macro.
67640         * modules/stdio (Makefile.am): Perform the replacement.
67641         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
67642
67643 2007-05-23  Bruno Haible  <bruno@clisp.org>
67644
67645         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
67646         GNULIB_POSIXCHECK is defined.
67647
67648 2007-05-21  Bruno Haible  <bruno@clisp.org>
67649
67650         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
67651         Check also the output for NaN arguments. When cross-compiling, guess
67652         no on IRIX.
67653         * lib/vasnprintf.c: Update comments.
67654         * tests/test-vasnprintf-posix.c (strisnan): New function.
67655         (test_function): Use it.
67656         * tests/test-vasprintf-posix.c (strisnan): New function.
67657         (test_function): Use it.
67658         * tests/test-snprintf-posix.h (strisnan): New function.
67659         (test_function): Use it.
67660         * tests/test-sprintf-posix.h (strisnan): New function.
67661         (test_function): Use it.
67662         Reported by Eric Blake.
67663
67664 2007-05-20  Bruno Haible  <bruno@clisp.org>
67665
67666         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
67667         numbers that fails on BeOS.
67668         * doc/functions/frexpl.texi: Update.
67669
67670 2007-05-20  Jim Meyering  <jim@meyering.net>
67671
67672         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
67673         forced upon us by glibc-2.6.
67674
67675 2007-05-20  Bruno Haible  <bruno@clisp.org>
67676
67677         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
67678         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
67679         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
67680         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
67681         NEED_PRINTF_INFINITE.
67682         (is_infinitel): New function.
67683         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
67684         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
67685         gl_PREREQ_VASNPRINTF_INFINITE.
67686         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
67687         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67688         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
67689         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
67690         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
67691         gl_PREREQ_VASNPRINTF_INFINITE.
67692         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67693         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67694         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67695         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67696         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67697         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67699         * doc/functions/fprintf.texi: Update.
67700         * doc/functions/printf.texi: Update.
67701         * doc/functions/snprintf.texi: Update.
67702         * doc/functions/sprintf.texi: Update.
67703         * doc/functions/vfprintf.texi: Update.
67704         * doc/functions/vprintf.texi: Update.
67705         * doc/functions/vsnprintf.texi: Update.
67706         * doc/functions/vsprintf.texi: Update.
67707
67708 2007-05-20  Bruno Haible  <bruno@clisp.org>
67709
67710         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
67711         was not found in libc.
67712         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67713
67714 2007-05-20  Bruno Haible  <bruno@clisp.org>
67715
67716         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67717         printed as "-nan" instead of "nan".
67718         * tests/test-vasprintf-posix.c (test_function): Likewise.
67719         * tests/test-snprintf-posix.h (test_function): Likewise.
67720         * tests/test-sprintf-posix.h (test_function): Likewise.
67721         Needed for HP-UX 11.
67722
67723 2007-05-20  Jim Meyering  <jim@meyering.net>
67724
67725         Fix buggy test for the fchownat-deref bug.
67726         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
67727         symlink required for the run-test.  Without it, this test would
67728         always declare that fchownat doesn't work, and client code would
67729         unnecessarily use the replacement function with fixed libc.
67730         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
67731         Reported by Greg Schafer.
67732
67733 2007-05-19  Bruno Haible  <bruno@clisp.org>
67734
67735         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
67736         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
67737         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
67738         Needed for IRIX 6.5 and Solaris 2.5.1.
67739
67740 2007-05-19  Bruno Haible  <bruno@clisp.org>
67741
67742         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
67743         (test_function): Skip tests involving -0.0 on platforms where
67744         -0.0 = 0.0.
67745         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
67746         (test_function): Skip tests involving -0.0 on platforms where
67747         -0.0 = 0.0.
67748         * tests/test-snprintf-posix.h (have_minus_zero): New function.
67749         (test_function): Skip tests involving -0.0 on platforms where
67750         -0.0 = 0.0.
67751         * tests/test-sprintf-posix.h (have_minus_zero): New function.
67752         (test_function): Skip tests involving -0.0 on platforms where
67753         -0.0 = 0.0.
67754         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
67755         tests.
67756         * tests/test-printf-posix.h (test_function): Likewise.
67757         * tests/test-printf-posix.output: Remove all -0.0 related results.
67758         Needed for IRIX 6.5.
67759
67760 2007-05-19  Bruno Haible  <bruno@clisp.org>
67761
67762         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67763         printed as "nan0x7fffffff" instead of "nan".
67764         * tests/test-vasprintf-posix.c (test_function): Likewise.
67765         * tests/test-snprintf-posix.h (test_function): Likewise.
67766         * tests/test-sprintf-posix.h (test_function): Likewise.
67767         * tests/test-fprintf-posix.h (NaN): Remove macro.
67768         (test_function): Remove all NaN related tests.
67769         * tests/test-printf-posix.h (NaN): Remove macro.
67770         (test_function): Remove all NaN related tests.
67771         * tests/test-printf-posix.output: Remove all NaN related results.
67772         Needed for IRIX 6.5.
67773
67774 2007-05-19  Bruno Haible  <bruno@clisp.org>
67775
67776         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
67777         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
67778
67779 2007-05-19  Bruno Haible  <bruno@clisp.org>
67780
67781         * lib/float_.h: New file.
67782         * m4/float_h.m4: New file.
67783         * modules/float: New file.
67784         * modules/isnanl (Dependencies): Add float.
67785         * modules/isnanl-nolibm (Dependencies): Likewise.
67786         * modules/mathl (Dependencies): Likewise.
67787         * modules/printf-frexpl (Dependencies): Likewise.
67788         * modules/signbit (Dependencies): Likewise.
67789         * modules/vasnprintf (Dependencies): Likewise.
67790         * doc/headers/float.texi: Update.
67791
67792 2007-05-19  Jim Meyering  <jim@meyering.net>
67793
67794         * lib/utimens.c (gl_futimens): Rename from futimens,
67795         now that glibc-2.6 declares futimens.
67796         * lib/utimens.h: Likewise.
67797
67798 2007-05-19  Bruno Haible  <bruno@clisp.org>
67799
67800         Avoid test failures on mingw.
67801         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
67802         * tests/test-printf-posix.sh: Likewise.
67803         * tests/test-vfprintf-posix.sh: Likewise.
67804         * tests/test-vprintf-posix.sh: Likewise.
67805
67806 2007-05-19  Bruno Haible  <bruno@clisp.org>
67807
67808         Fix *printf result for NaN, Inf, -0.0 on mingw.
67809         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
67810         * lib/vasnprintf.c: Include math.h and isnan.h.
67811         (is_infinite_or_zero): New function.
67812         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
67813         values in the %f, %F, %e, %E, %g, %G directives.
67814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
67815         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67816         gl_PRINTF_INFINITE and test its result. Invoke
67817         gl_PREREQ_VASNPRINTF_INFINITE.
67818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67822         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67823         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67824         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67825         * doc/functions/fprintf.texi: Update.
67826         * doc/functions/printf.texi: Update.
67827         * doc/functions/snprintf.texi: Update.
67828         * doc/functions/sprintf.texi: Update.
67829         * doc/functions/vfprintf.texi: Update.
67830         * doc/functions/vprintf.texi: Update.
67831         * doc/functions/vsnprintf.texi: Update.
67832         * doc/functions/vsprintf.texi: Update.
67833
67834 2007-05-19  Bruno Haible  <bruno@clisp.org>
67835
67836         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
67837         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
67838         Instead of multiplying with 10^k, set extra_zeroes to k.
67839         (scale10_round_long_double): Remove function.
67840
67841 2007-05-18  Bruno Haible  <bruno@clisp.org>
67842
67843         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
67844         introduced on 2007-05-06.
67845
67846 2007-05-18  Bruno Haible  <bruno@clisp.org>
67847
67848         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
67849         %g directives.
67850         * tests/test-vasprintf-posix.c (test_function): Likewise.
67851         * tests/test-snprintf-posix.h (test_function): Likewise.
67852         * tests/test-sprintf-posix.h (test_function): Likewise.
67853
67854 2007-05-18  Bruno Haible  <bruno@clisp.org>
67855
67856         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
67857         (strmatch): New function.
67858         (test_function): Test the %f directive on numbers of various exponents.
67859         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
67860         (strmatch): New function.
67861         (test_function): Test the %f directive on numbers of various exponents.
67862         * tests/test-snprintf-posix.h (strmatch): New function.
67863         (test_function): Test the %f directive on numbers of various exponents.
67864         * tests/test-sprintf-posix.h (strmatch): New function.
67865         (test_function): Test the %f directive on numbers of various exponents.
67866         * tests/test-snprintf-posix.c (SIZEOF): New macro.
67867         * tests/test-sprintf-posix.c (SIZEOF): New macro.
67868         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
67869         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
67870
67871 2007-05-18  Bruno Haible  <bruno@clisp.org>
67872
67873         Add support for 'long double' number output.
67874         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
67875         * lib/vasnprintf.c: Include math.h and float+.h.
67876         (mp_limb_t): New type.
67877         (GMP_LIMB_BITS): New macro.
67878         (mp_twolimb_t): New type.
67879         (GMP_TWOLIMB_BITS): New macro.
67880         (mpn_t): New type.
67881         (multiply, divide, convert_to_decimal, decode_long_double,
67882         scale10_round_long_double, scale10_round_decimal_long_double,
67883         floorlog10l): New functions.
67884         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
67885         for the %f, %F, %e, %E, %g, %G directives.
67886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
67887         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67888         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
67889         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
67890         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67891         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67892         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67893         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67894         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67895         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67896         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67897         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
67898         * modules/snprintf-posix (Depends-on): Likewise.
67899         * modules/sprintf-posix (Depends-on): Likewise.
67900         * modules/vasnprintf-posix (Depends-on): Likewise.
67901         * modules/vasprintf-posix (Depends-on): Likewise.
67902         * modules/vfprintf-posix (Depends-on): Likewise.
67903         * modules/vsnprintf-posix (Depends-on): Likewise.
67904         * modules/vsprintf-posix (Depends-on): Likewise.
67905         * modules/vasnprintf (Files): Add lib/float+.h.
67906         * doc/functions/fprintf.texi: Update.
67907         * doc/functions/printf.texi: Update.
67908         * doc/functions/snprintf.texi: Update.
67909         * doc/functions/sprintf.texi: Update.
67910         * doc/functions/vfprintf.texi: Update.
67911         * doc/functions/vprintf.texi: Update.
67912         * doc/functions/vsnprintf.texi: Update.
67913         * doc/functions/vsprintf.texi: Update.
67914
67915 2007-05-18  Bruno Haible  <bruno@clisp.org>
67916
67917         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
67918
67919 2007-05-18  Bruno Haible  <bruno@clisp.org>
67920
67921         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
67922         for printing 64-bit integers. Needed for mingw.
67923
67924 2007-05-18  Bruno Haible  <bruno@clisp.org>
67925
67926         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67927         gl_FUNC_FREXPL_WORKS.
67928         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
67929
67930 2007-05-18  Bruno Haible  <bruno@clisp.org>
67931
67932         * modules/frexpl-nolibm-tests: New file.
67933
67934         * modules/frexpl-nolibm: New file.
67935         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
67936
67937 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67938
67939         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
67940         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67941         GCC 4.2, which otherwise issues a lot of warnings.
67942         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
67943         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
67944         Likewise.
67945         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
67946         * modules/iconv_open (iconv.h): Likewise.
67947         * modules/locale (locale.h): Likewise.
67948         * modules/netinet_in (netinet/in.h): Likewise.
67949         * modules/sys_select (sys_select.h): Likewise.
67950         * modules/sys_socket (sys/socket.h): Likewise.
67951         * modules/sys_stat (sys/stat.h): Likewise.
67952         * modules/sysexits (sysexits.h): Likewise.
67953         * modules/unistd (unistd.h): Likewise.
67954
67955 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67956
67957         * modules/closein-tests (Makefile.am): Distribute
67958         `test-closein.sh'.
67959
67960 2007-05-17  Bruno Haible  <bruno@clisp.org>
67961
67962         * tests/test-printf-posix.output: Renamed from
67963         tests/test-fprintf-posix.out.
67964         * modules/fprintf-posix-tests: Update.
67965         * modules/printf-posix-tests: Update.
67966         * modules/vfprintf-posix-tests: Update.
67967         * modules/vprintf-posix-tests: Update.
67968         * tests/test-fprintf-posix.sh: Update.
67969         * tests/test-printf-posix.sh: Update.
67970         * tests/test-vfprintf-posix.sh: Update.
67971         * tests/test-vprintf-posix.sh: Update.
67972         Reported by Ralf Wildenhues.
67973
67974 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67975
67976         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
67977         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67978         GCC 4.2, which otherwise issues a lot of warnings.
67979         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
67980         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
67981         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
67982         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
67983         it should no longer be needed.
67984         * lib/string_.h: Likewise.
67985         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
67986         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
67987         * modules/inttypes (inttypes.h): Likewise.
67988         * modules/math (math.h): Likewise.
67989         * modules/search (search.h): Likewise.
67990         * modules/signal (signal.h): Likewise.
67991         * modules/stdint (stdint.h): Likewise.
67992         * modules/stdio (stdio.h): Likewise.
67993         * modules/stdlib (stdlib.h): Likewise.
67994         * modules/string (string.h): Likewise.
67995         * modules/sys_time (sys/time.h): Likewise.
67996         * modules/time (time.h): Likewise.
67997         * modules/wchar (wchar.h): Likewise.
67998         * modules/wctype (wtype.h): Likewise.
67999
68000 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68001
68002         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68003
68004 2007-05-13  Bruno Haible  <bruno@clisp.org>
68005
68006         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68007         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68008         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68009         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68010         (gl_PREREQ_STRTOK_R): Don't require it here.
68011
68012 2007-05-13  Bruno Haible  <bruno@clisp.org>
68013
68014         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68015         when used in C++ mode.
68016
68017 2007-05-12  Bruno Haible  <bruno@clisp.org>
68018
68019         * lib/linebuffer.h: Tweak doc.
68020         * lib/linebuffer.c: Likewise.
68021
68022 2007-05-12  James Youngman  <jay@gnu.org>
68023
68024         * lib/linebuffer.c (readlinebuffer_delim): New function,
68025         like readlinebuffer, but use a caller-specified delimiter.
68026         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68027         as the delimiter.
68028         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68029
68030 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68031
68032         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68033         * modules/openat (Files): Remove openat-die.c.
68034         (Depends-on): Add openat-die.
68035         * modules/openat-die: New module.
68036
68037 2007-05-06  Bruno Haible  <bruno@clisp.org>
68038
68039         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68040         Update with info about Cygwin.
68041         * doc/functions/fprintf.texi: Update.
68042         * doc/functions/printf.texi: Update.
68043         * doc/functions/snprintf.texi: Update.
68044         * doc/functions/sprintf.texi: Update.
68045         * doc/functions/vfprintf.texi: Update.
68046         * doc/functions/vprintf.texi: Update.
68047         * doc/functions/vsnprintf.texi: Update.
68048         * doc/functions/vsprintf.texi: Update.
68049         Reported by Eric Blake.
68050
68051 2007-05-06  Bruno Haible  <bruno@clisp.org>
68052
68053         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68054         padding ourselves for the floating-point directives.
68055         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68058         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68059         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68060         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68061         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68062         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68063         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68064         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68065         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68066         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68067         * tests/test-snprintf-posix.h (test_function): Also check the width
68068         and some flags in the %f directive.
68069         * tests/test-sprintf-posix.h (test_function): Likewise.
68070         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68071         * tests/test-vasprintf-posix.c (test_function): Likewise.
68072         * doc/functions/fprintf.texi: Update.
68073         * doc/functions/printf.texi: Update.
68074         * doc/functions/snprintf.texi: Update.
68075         * doc/functions/sprintf.texi: Update.
68076         * doc/functions/vfprintf.texi: Update.
68077         * doc/functions/vprintf.texi: Update.
68078         * doc/functions/vsnprintf.texi: Update.
68079         * doc/functions/vsprintf.texi: Update.
68080
68081 2007-05-06  Bruno Haible  <bruno@clisp.org>
68082
68083         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68084         pass the ' flag character to sprintf or snprintf.
68085         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68087         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68088         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68089         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68090         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68091         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68092         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68093         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68094         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68095         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68096         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68097         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68098         flag.
68099         * tests/test-sprintf-posix.h (test_function): Likewise.
68100         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68101         * tests/test-vasprintf-posix.c (test_function): Likewise.
68102         * doc/functions/fprintf.texi: Update.
68103         * doc/functions/printf.texi: Update.
68104         * doc/functions/snprintf.texi: Update.
68105         * doc/functions/sprintf.texi: Update.
68106         * doc/functions/vfprintf.texi: Update.
68107         * doc/functions/vprintf.texi: Update.
68108         * doc/functions/vsnprintf.texi: Update.
68109         * doc/functions/vsprintf.texi: Update.
68110
68111 2007-05-01  Bruno Haible  <bruno@clisp.org>
68112
68113         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68114
68115 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68116
68117         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68118         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68119
68120 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68121
68122         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68123         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68124         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68125
68126 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68127
68128         * lib/argp-help.c (struct hol_entry): New member `ord'.
68129         (HOL_ENTRY_PTRCMP): Use ord for comparison
68130         (hol_sort): Initialize ord.
68131
68132 2007-05-01  Bruno Haible  <bruno@clisp.org>
68133
68134         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68135         Reported by Eric Blake.
68136         * doc/gnulib.texi (Function Substitutes): Update.
68137
68138 2007-05-01  Bruno Haible  <bruno@clisp.org>
68139
68140         * doc/functions.texi: Remove file, now redundant through
68141         doc/functions/*.texi.
68142
68143 2007-05-01  Bruno Haible  <bruno@clisp.org>
68144
68145         * modules/argp (Depends-on): Add sleep.
68146
68147 2007-05-01  Bruno Haible  <bruno@clisp.org>
68148
68149         * modules/sleep-tests: New file.
68150         * tests/test-sleep.c: New file.
68151
68152         * modules/sleep: New file.
68153         * lib/sleep.c: New file.
68154         * m4/sleep.m4: New file.
68155         * lib/unistd_.h (sleep): New declaration.
68156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68157         HAVE_SLEEP.
68158         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68159         * doc/functions/sleep.texi: Document the sleep module.
68160
68161 2007-05-01  Bruno Haible  <bruno@clisp.org>
68162
68163         * lib/sigprocmask.h: Remove file.
68164         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68165         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68166         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68167         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68168         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68169         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68170         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68171         HAVE_SIGSET_T as a shell variable.
68172         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68173         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68174         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68175         (Depends-on): Add signal. Remove verify.
68176         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68177         (Include): Mention <signal.h> instead of sigprocmask.h.
68178         * NEWS: Mention the change.
68179         * lib/fatal-signal.c: Don't include sigprocmask.h.
68180
68181 2007-05-01  Bruno Haible  <bruno@clisp.org>
68182
68183         * modules/signal: New file.
68184         * lib/signal_.h: New file.
68185         * m4/signal_h.m4: New file.
68186
68187 2007-05-01  Bruno Haible  <bruno@clisp.org>
68188
68189         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68190         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68191         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68192         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68193
68194 2007-05-01  Bruno Haible  <bruno@clisp.org>
68195
68196         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68197         configure time.
68198         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68199         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68200         * modules/sys_stat (Makefile.am): Substitute their values into
68201         sys/stat.h.
68202
68203 2007-05-01  Bruno Haible  <bruno@clisp.org>
68204
68205         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68206         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68207         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68208
68209 2007-05-01  Bruno Haible  <bruno@clisp.org>
68210
68211         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68212         'assert' module here.
68213
68214 2007-05-01  Bruno Haible  <bruno@clisp.org>
68215
68216         * doc/functions/*.texi: New files.
68217         * doc/functions/google-ranking.txt: New file.
68218         * doc/gnulib.texi (Function Substitutes): New chapter.
68219         (ctime, inet_ntoa): Remove sections.
68220         * doc/ctime.texi: Remove file.
68221         * doc/inet_ntoa.texi: Remove file.
68222         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68223         dependencies.
68224         (%.info): New rule, specifying a --reference-limit.
68225
68226 2007-05-01  Bruno Haible  <bruno@clisp.org>
68227
68228         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68229
68230 2007-05-01  Bruno Haible  <bruno@clisp.org>
68231
68232         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68233         the portability of 'mkdir' to mingw systems.
68234
68235 2007-05-01  Bruno Haible  <bruno@clisp.org>
68236
68237         * doc/headers/google-ranking.txt: New file.
68238
68239 2007-04-30  Eric Blake  <ebb9@byu.net>
68240
68241         Prefer fseeko to fseek.
68242         * modules/getpass (Depends-on): Add fseeko.
68243         * lib/getpass.c (getpass): Use fseeko, not fseek.
68244
68245 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68246
68247         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68248         assumes the sorting is stable, while most qsort implementations
68249         are not.  Use argument addresses to ensure they never compare as
68250         equal.
68251
68252         * tests/test-argp-2.sh (usage-indent test): Fix output
68253         (func_compare): Restore diff options
68254         * tests/test-argp.c: Restore #include "progname.h"
68255
68256 2007-04-29  Bruno Haible  <bruno@clisp.org>
68257
68258         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68259         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68260         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68262         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68263         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68264         (TESTS, check_PROGRAMS): Add test-snprintf.
68265         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68266         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68267         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68268         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68269         assertions that fail on HP-UX, OSF/1, or IRIX.
68270         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68271
68272 2007-04-29  Bruno Haible  <bruno@clisp.org>
68273
68274         * MODULES.html.sh (posix_functions): Remove 'contents'.
68275
68276 2007-04-29  Karl Berry  <karl@gnu.org>
68277
68278         * config/srclist.txt (gendocs_template_min): new entry.
68279
68280 2007-04-29  Bruno Haible  <bruno@clisp.org>
68281
68282         Work around fpurge bug on BSD systems.
68283         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68284         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68285         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68286         fpurge to rpl_fpurge if the system already has this function.
68287         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68288         the case where the system already has this function. Correct invariants
68289         on BSD systems.
68290         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68291         BSD systems.
68292
68293 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68294
68295         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68296         proposed by Sven Verdoolaege.
68297
68298         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68299         options.
68300         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68301         (usage and help tests): Update
68302
68303 2007-04-29  Bruno Haible  <bruno@clisp.org>
68304
68305         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68306         Print more information in case of failure. Disable a test on BeOS.
68307
68308 2007-04-29  Bruno Haible  <bruno@clisp.org>
68309
68310         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68311         This helps debugging on systems on which no gdb is available.
68312
68313 2007-04-29  Bruno Haible  <bruno@clisp.org>
68314
68315         * lib/freading.h: Improve comments.
68316         * lib/fwriting.h: Likewise.
68317         * tests/test-freading.c (main): Don't check freading immediately after
68318         repositioning. Needed for glibc.
68319
68320 2007-04-29  Bruno Haible  <bruno@clisp.org>
68321
68322         * lib/freading.c (freading): Trivial simplification.
68323
68324 2007-04-28  Bruno Haible  <bruno@clisp.org>
68325
68326         * tests/test-fwriting.c (main): Also test the interaction between
68327         fflush and fwriting.
68328         * modules/fwriting-tests (Depends-on): Add fflush.
68329
68330         * tests/test-freading.c (main): Also test the interaction between
68331         fflush and freading.
68332         * modules/freading-tests (Depends-on): Add fflush.
68333
68334 2007-04-28  Bruno Haible  <bruno@clisp.org>
68335
68336         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68337         fseeko and ftello.
68338         Suggested by Eric Blake.
68339
68340 2007-04-28  Jim Meyering  <jim@meyering.net>
68341
68342         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68343         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68344         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68345
68346 2007-04-27  Eric Blake  <ebb9@byu.net>
68347
68348         * doc/headers/assert.texi (assert.h): Document assert module use.
68349
68350 2007-04-27  Bruno Haible  <bruno@clisp.org>
68351
68352         * doc/headers/*.texi: New files.
68353         * doc/gnulib.texi (Header File Substitutes): New chapter.
68354         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68355         dependencies.
68356         (standards.info ,standards.html, standards.dvi): Update dependencies.
68357         (mostlyclean, clean): New targets.
68358
68359 2007-04-27  Bruno Haible  <bruno@clisp.org>
68360
68361         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68362         * modules/sysexits (Files, Makefile.am): Update.
68363
68364         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68365         * modules/sys_socket (Files, Makefile.am): Update.
68366
68367         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68368         * modules/sys_stat (Files, Makefile.am): Update.
68369
68370 2007-04-27  Eric Blake  <ebb9@byu.net>
68371
68372         * lib/freading.h: Improve comments.
68373         * lib/fwriting.h: Likewise.
68374         * lib/fflush.c: Likewise.
68375
68376         Fix closein for mingw.
68377         * modules/closein-tests: Add tests for closein.
68378         * tests/test-closein.c: New file.
68379         * tests/test-closein.sh: Likewise.
68380         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68381         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68382
68383 2007-04-27  Bruno Haible  <bruno@clisp.org>
68384
68385         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68386         version is < 6.
68387         * lib/math_.h [__DECC]: Likewise.
68388         * lib/stdio_.h [__DECC]: Likewise.
68389         * lib/stdlib_.h [__DECC]: Likewise.
68390         * lib/string_.h [__DECC]: Likewise.
68391         * lib/time_.h [__DECC]: Likewise.
68392         * lib/wchar_.h [__DECC]: Likewise.
68393         * lib/wctype_.h [__DECC]: Likewise.
68394
68395 2007-04-27  Bruno Haible  <bruno@clisp.org>
68396
68397         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68398
68399 2007-04-27  Bruno Haible  <bruno@clisp.org>
68400
68401         * lib/fflush.c: Add comments.
68402         * modules/fpurge-tests (Depends-on): Add fflush.
68403         * modules/freadable-tests (Depends-on): Likewise.
68404         * modules/fwritable-tests (Depends-on): Likewise.
68405
68406 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68407
68408         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68409         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68410         Report by Bruno Haible <bruno@clisp.org>.
68411
68412 2007-04-26  Eric Blake  <ebb9@byu.net>
68413
68414         Fix fflush on mingw.
68415         * modules/fflush (Depends-on): Add freading.
68416         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68417         but unread data.
68418
68419 2007-04-26  Eric Blake  <ebb9@byu.net>
68420         and Bruno Haible  <bruno@clisp.org>
68421
68422         Implement freading and fwriting.
68423         * lib/freading.c: New file.
68424         * lib/freading.h: Likewise.
68425         * m4/freading.m4: Likewise.
68426         * modules/freading: Likewise.
68427         * modules/freading-tests: Likewise.
68428         * tests/test-freading.c: Likewise.
68429         * lib/fwriting.c: New file.
68430         * lib/fwriting.h: Likewise.
68431         * m4/fwriting.m4: Likewise.
68432         * modules/fwriting: Likewise.
68433         * modules/fwriting-tests: Likewise.
68434         * tests/test-fwriting.c: Likewise.
68435         * MODULES.html.sh (File stream based Input/Output): Mention them.
68436
68437 2007-04-26  Bruno Haible  <bruno@clisp.org>
68438
68439         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68440         'long' when we assume it.
68441         Suggested by Eric Blake.
68442
68443 2007-04-26  Bruno Haible  <bruno@clisp.org>
68444
68445         Ensure fseeko, ftello are declared on glibc systems.
68446         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68447         * modules/fseeko (configure.ac-early): Likewise.
68448         * modules/ftello (configure.ac-early): Likewise.
68449         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68450         AC_FUNC_FSEEKO for this.
68451         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68452         (gl_CHECK_FSEEKO): Remove macro.
68453
68454 2007-04-26  Bruno Haible  <bruno@clisp.org>
68455
68456         * tests/test-fflush.c (main): Also check the ftell result after
68457         fflush and fseek/fseeko.
68458         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68459         file descriptor position cache in the stream.
68460         * lib/fseeko.c (rpl_fseeko): Likewise.
68461
68462 2007-04-26  Bruno Haible  <bruno@clisp.org>
68463
68464         * modules/fflush-tests (Depends-on): Add fseeko.
68465
68466 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68467             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68468
68469         * lib/argz_.h: ensure error_t definition is obtained in same
68470         mechanism system argz.h would have.
68471         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68472         argz facilities are known bad.  Err on the side of caution if
68473         cross-compiling.
68474
68475 2007-04-25  Eric Blake  <ebb9@byu.net>
68476
68477         * lib/fpurge.c (includes): Use stdlib.h for free.
68478         * tests/test-fflush.c (main): Also test fflush-fseeko.
68479
68480 2007-04-25  Bruno Haible  <bruno@clisp.org>
68481
68482         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68483         * lib/fseeko.c: New file.
68484         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68485         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68486         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68487         gl_FUNC_FSEEKO.
68488         (gl_FUNC_FSEEKO): Invoke it.
68489         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68490         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68491         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68492
68493 2007-04-25  Bruno Haible  <bruno@clisp.org>
68494
68495         * modules/fflush (Depends-on): Add ftello.
68496
68497 2007-04-25  Bruno Haible  <bruno@clisp.org>
68498
68499         * modules/ftello-tests: New file.
68500         * tests/test-ftello.c: New file.
68501
68502         * modules/ftello: New file.
68503         * m4/ftello.m4: New file.
68504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68505         HAVE_FTELLO.
68506         * lib/stdio_.h (ftello): New declaration.
68507         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68508         HAVE_FTELLO.
68509
68510 2007-04-25  Bruno Haible  <bruno@clisp.org>
68511
68512         * modules/fseeko-tests: New file.
68513         * tests/test-fseeko.c: New file.
68514
68515         * modules/fseeko: New file.
68516         * m4/fseeko.m4: New file.
68517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68518         HAVE_FSEEKO.
68519         * lib/stdio_.h (fseeko): New declaration.
68520         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68521         HAVE_FSEEKO.
68522
68523 2007-04-25  Bruno Haible  <bruno@clisp.org>
68524
68525         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68526
68527 2007-04-25  Bruno Haible  <bruno@clisp.org>
68528
68529         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68530         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68531         * tests/test-unistd.c: Likewise.
68532         * tests/test-fcntl.c: Likewise.
68533
68534 2007-04-23  Eric Blake  <ebb9@byu.net>
68535
68536         * lib/fflush.c: Fix missing include.
68537         Reported by Bruno Haible.
68538
68539 2007-04-23  Bruno Haible  <bruno@clisp.org>
68540
68541         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68542         Reported by Eric Blake.
68543
68544 2007-04-23  Bruno Haible  <bruno@clisp.org>
68545
68546         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68547
68548 2007-04-23  Bruno Haible  <bruno@clisp.org>
68549
68550         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68551
68552 2007-04-23  Bruno Haible  <bruno@clisp.org>
68553
68554         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68555         Needed on HP-UX 11.
68556
68557 2007-04-16  Eric Blake  <ebb9@byu.net>
68558
68559         Make fflush rely on fpurge.
68560         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68561         open coding all variants.
68562         * modules/fflush (Depends-on): Add fpurge and unistd.
68563         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68564         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68565
68566         Fix --with-tests compilation on cygwin.
68567         * modules/argmatch-tests (Makefile.am): List gnulib library first
68568         in LDADD.
68569         * modules/argp-tests (Makefile.am): Likewise.
68570         * modules/array-list-tests (Makefile.am): Likewise.
68571         * modules/array-oset-tests (Makefile.am): Likewise.
68572         * modules/avltree-list-tests (Makefile.am): Likewise.
68573         * modules/avltree-oset-tests (Makefile.am): Likewise.
68574         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68575         * modules/carray-list-tests (Makefile.am): Likewise.
68576         * modules/dirname-tests (Makefile.am): Likewise.
68577         * modules/frexp-tests (Makefile.am): Likewise.
68578         * modules/isnanl-tests (Makefile.am): Likewise.
68579         * modules/linked-list-tests (Makefile.am): Likewise.
68580         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68581         * modules/lock-tests (Makefile.am): Likewise.
68582         * modules/rbtree-list-tests (Makefile.am): Likewise.
68583         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68584         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68585         * modules/tls-tests (Makefile.am): Likewise.
68586         * modules/tsearch-tests (Makefile.am): Likewise.
68587         * modules/xvasprintf-tests (Makefile.am): Likewise.
68588
68589         Fix fpurge for cygwin.
68590         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68591         value.
68592         * modules/fpurge-tests (Depends-on): Clean up trash.
68593
68594 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68595
68596         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68597
68598         * m4/autobuild.m4: Re-indent.
68599
68600 2007-04-13  Bruno Haible  <bruno@clisp.org>
68601
68602         * modules/fpurge-tests: New file.
68603         * tests/test-fpurge.c: New file.
68604
68605         * modules/fpurge: New file.
68606         * lib/fpurge.h: New file.
68607         * lib/fpurge.c: New file.
68608         * m4/fpurge.m4: New file.
68609
68610 2007-04-13  Bruno Haible  <bruno@clisp.org>
68611
68612         * modules/fbufmode-tests: New file.
68613         * tests/test-fbufmode.c: New file.
68614
68615         * modules/fbufmode: New file.
68616         * lib/fbufmode.h: New file.
68617         * lib/fbufmode.c: New file.
68618         * m4/fbufmode.m4: New file.
68619
68620 2007-04-13  Bruno Haible  <bruno@clisp.org>
68621
68622         * modules/fwritable-tests: New file.
68623         * tests/test-fwritable.c: New file.
68624
68625         * modules/fwritable: New file.
68626         * lib/fwritable.h: New file.
68627         * lib/fwritable.c: New file.
68628         * m4/fwritable.m4: New file.
68629
68630 2007-04-13  Bruno Haible  <bruno@clisp.org>
68631
68632         * modules/freadable-tests: New file.
68633         * tests/test-freadable.c: New file.
68634
68635         * modules/freadable: New file.
68636         * lib/freadable.h: New file.
68637         * lib/freadable.c: New file.
68638         * m4/freadable.m4: New file.
68639
68640 2007-04-13  Bruno Haible  <bruno@clisp.org>
68641
68642         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
68643         MOSTLYCLEANFILES.
68644
68645 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68646
68647         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
68648         gzip bootstrap.conf to avoid dragging in i18n machinery.
68649         (gnulib_tool_option): Use it.
68650
68651 2007-04-13  Bruno Haible  <bruno@clisp.org>
68652
68653         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
68654         %F directives.
68655         * tests/test-vasprintf-posix.c (test_function): Likewise.
68656         * tests/test-snprintf-posix.h (test_function): Likewise.
68657         * tests/test-sprintf-posix.h (test_function): Likewise.
68658         * tests/test-fprintf-posix.h (test_function): Likewise.
68659         * tests/test-printf-posix.h (test_function): Likewise.
68660         * tests/test-fprintf-posix.out: Likewise.
68661
68662 2007-04-13  Bruno Haible  <bruno@clisp.org>
68663
68664         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
68665         * modules/tls-tests (configure.ac): Likewise.
68666         Reported by Arto C. Nirkko <anirkko@insel.ch>.
68667
68668 2007-04-13  Bruno Haible  <bruno@clisp.org>
68669
68670         * lib/tls.c (glthread_tls_get): Fix return type.
68671         Patch by Arto C. Nirkko <anirkko@insel.ch>.
68672
68673 2007-04-12  Eric Blake  <ebb9@byu.net>
68674
68675         * modules/gettime (Depends-on): Remove gettime.
68676         Reported by Dmitry V. Levin.
68677
68678 2007-04-12  Bruno Haible  <bruno@clisp.org>
68679
68680         * modules/fflush (Include): Mention <stdio.h>.
68681         * modules/strtoimax (Include): Mention <inttypes.h>.
68682         * modules/strtoumax (Include): Likewise.
68683
68684 2007-04-12  Eric Blake  <ebb9@byu.net>
68685
68686         * .cvsignore: New file.
68687         * .gitignore: Likewise.
68688
68689 2007-04-12  Bruno Haible  <bruno@clisp.org>
68690
68691         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
68692         not before, since $(LDADD) often contains libgnu.a.
68693         * modules/striconv-tests (test_striconv_LDADD): Likewise.
68694         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
68695         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
68696         Needed on Cygwin.
68697
68698 2007-04-12  Eric Blake  <ebb9@byu.net>
68699
68700         Work around glibc's failure to flush stdin on fclose.
68701         * lib/closein.c (close_stdin): Flush stdin before closing.
68702
68703         Work around glibc's failure to reset seekable stdin on exit.
68704         * modules/closein: New module.
68705         * lib/closein.c: New file.
68706         * lib/closein.h: Likewise.
68707         * m4/closein.m4: Likewise.
68708         * MODULES.html.sh (File stream based Input/Output): Document it.
68709
68710 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68711
68712         * gnulib-tool: Rename generated 'autobuild' script to
68713         'do-autobuild' in --create-megatestdir output.
68714
68715         * doc/gnulib.texi (Build robot for gnulib): Fix.
68716
68717 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68718
68719         * modules/sysexits (Depends-on): Add absolute-header.
68720
68721 2007-04-12  Eric Blake  <ebb9@byu.net>
68722
68723         No need to preserve errno on success.
68724         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
68725         Reported by Bruno Haible.
68726
68727 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68728
68729         * MODULES.html.sh (Support for maintaining and releasing
68730         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
68731
68732 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68733
68734         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
68735
68736 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68737
68738         * modules/autobuild: New module.
68739
68740         * m4/autobuild.m4: New file.
68741
68742 2007-04-11  Bruno Haible  <bruno@clisp.org>
68743
68744         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
68745         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
68746         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
68747         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
68748         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68749         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68750         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68751         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68752         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68753         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68754         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
68755         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68756         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68757         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
68758         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68759         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68760         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
68761         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68762         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68763         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
68764         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68765         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68766         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
68767         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68768         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68769         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
68770         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68771         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68772         Reported by Eric Blake.
68773
68774 2007-04-11  Bruno Haible  <bruno@clisp.org>
68775
68776         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
68777
68778 2007-04-10  Bruno Haible  <bruno@clisp.org>
68779
68780         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
68781         for NaN and Infinity. Needed on FreeBSD 6.1.
68782         * tests/test-vasnprintf-posix.c (test_function): Undo last change
68783         regarding results for "%010a" of Infinity and NaN.
68784         * tests/test-vasprintf-posix.c (test_function): Likewise.
68785         * tests/test-snprintf-posix.h (test_function): Likewise.
68786         * tests/test-sprintf-posix.h (test_function): Likewise.
68787         * tests/test-fprintf-posix.h (test_function): Likewise.
68788         * tests/test-printf-posix.h (test_function): Likewise.
68789         * tests/test-fprintf-posix.out: Likewise.
68790
68791 2007-04-10  Bruno Haible  <bruno@clisp.org>
68792
68793         * modules/locale-tests: New file.
68794         * tests/test-locale.c: New file.
68795
68796         * modules/locale: New file.
68797         * lib/locale_.h: New file.
68798         * m4/locale_h.m4: New file.
68799
68800 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
68801             Bruno Haible  <bruno@clisp.org>
68802
68803         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
68804         be determined, test for availability of the copysignf, copysign,
68805         copysignl functions.
68806         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
68807         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
68808         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
68809
68810 2007-04-09  Eric Blake  <ebb9@byu.net>
68811
68812         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
68813         * modules/stdio (Makefile.am): Support fflush.
68814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68815         * modules/fflush: New file.
68816         * lib/fflush.c: Likewise.
68817         * m4/fflush.m4: Likewise.
68818         * modules/fflush-tests: New test.
68819         * tests/test-fflush.c: Likewise.
68820         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
68821
68822 2007-04-06  Bruno Haible  <bruno@clisp.org>
68823
68824         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
68825         (VASNPRINTF): Use signbit for faster determination whether to print a
68826         minus sign.
68827         * modules/vasnprintf (Files): Remove lib/float+.h.
68828         * modules/fprintf-posix (Depends-on): Add signbit.
68829         * modules/snprintf-posix (Depends-on): Likewise.
68830         * modules/sprintf-posix (Depends-on): Likewise.
68831         * modules/vasnprintf-posix (Depends-on): Likewise.
68832         * modules/vasprintf-posix (Depends-on): Likewise.
68833         * modules/vfprintf-posix (Depends-on): Likewise.
68834         * modules/vsnprintf-posix (Depends-on): Likewise.
68835         * modules/vsprintf-posix (Depends-on): Likewise.
68836
68837 2007-04-06  Bruno Haible  <bruno@clisp.org>
68838
68839         * tests/test-frexp.c (main): Test also the sign bit of zero results.
68840         * tests/test-frexpl.c (main): Likewise.
68841         * tests/test-ldexpl.c (main): Likewise.
68842         * modules/frexp-tests (Depends-on): Add signbit.
68843         * modules/frexpl-tests (Depdends-on): Likewise.
68844         * modules/ldexpl-tests (Depdends-on): Likewise.
68845
68846 2007-04-06  Bruno Haible  <bruno@clisp.org>
68847
68848         * modules/signbit-tests: New file.
68849         * tests/test-signbit.c: New file.
68850
68851         * modules/signbit: New file.
68852         * lib/signbitf.c: New file.
68853         * lib/signbitd.c: New file.
68854         * lib/signbitl.c: New file.
68855         * m4/signbit.m4: New file.
68856         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
68857         (signbit): New macro.
68858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
68859         REPLACE_SIGNBIT.
68860         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
68861         REPLACE_FREXPL into math.h.
68862
68863 2007-04-06  Bruno Haible  <bruno@clisp.org>
68864
68865         * modules/isnanf-nolibm-tests: New file.
68866         * tests/test-isnanf.c: New file.
68867
68868         * modules/isnanf-nolibm: New file.
68869         * lib/isnanf.h: New file.
68870         * lib/isnanf.c: New file.
68871         * lib/isnan.c: Consider the USE_FLOAT macro.
68872         * m4/isnanf.m4: New file.
68873
68874 2007-04-06  Bruno Haible  <bruno@clisp.org>
68875
68876         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
68877         (Link): New section.
68878
68879         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
68880
68881 2007-04-06  Bruno Haible  <bruno@clisp.org>
68882
68883         Assume the 'long double' type.
68884         * m4/longdouble.m4: Remove file.
68885         * config/srclist.txt: Don't mention longdouble.m4.
68886         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
68887         * lib/float+.h: Likewise.
68888         * lib/frexp.c: Likewise.
68889         * lib/printf-args.h: Likewise.
68890         * lib/printf-args.c: Likewise.
68891         * lib/printf-frexp.c: Likewise.
68892         * lib/printf-parse.c: Likewise.
68893         * lib/vasnprintf.c: Likewise.
68894         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
68895         * m4/intl.m4: Likewise.
68896         * m4/isnanl.m4: Likewise.
68897         * m4/printf.m4: Likewise.
68898         * m4/printf-frexpl.m4: Likewise.
68899         * m4/vasnprintf.m4: Likewise.
68900         * modules/allocsa (Files): Remove m4/longdouble.m4.
68901         * modules/gettext (Files): Likewise.
68902         * modules/relocatable-prog-wrapper (Files): Likewise.
68903         * modules/vasnprintf (Files): Likewise.
68904         * modules/isnanl (Files): Likewise.
68905         (Include): Simplify.
68906         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
68907         (Include): Simplify.
68908         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
68909         (Include): Simplify.
68910         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
68911         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68912         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
68913         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68914         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68915         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68916         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
68917         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68918         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68919         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68920         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
68921         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68922         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
68923         * tests/test-isnanl.c: Likewise.
68924         * tests/test-snprintf-posix.h: Likewise.
68925         * tests/test-sprintf-posix.h: Likewise.
68926         * tests/test-vasnprintf-posix.c: Likewise.
68927         * tests/test-vasnprintf-posix2.c: Likewise.
68928         * tests/test-vasprintf-posix.c: Likewise.
68929
68930 2007-04-06  Bruno Haible  <bruno@clisp.org>
68931
68932         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
68933         * lib/math_.h [__DECC]: Include the overridden include file through
68934         #include_next, outside the double-inclusion guard.
68935         * lib/stdio_.h [__DECC]: Likewise.
68936         * lib/stdlib_.h [__DECC]: Likewise.
68937         * lib/string_.h [__DECC]: Likewise.
68938         * lib/time_.h [__DECC]: Likewise.
68939         * lib/wchar_.h [__DECC]: Likewise.
68940         * lib/wctype_.h [__DECC]: Likewise.
68941         * lib/inttypes_.h [__DECC]: Likewise.
68942         Reported by Albert Chin <china@thewrittenword.com> in
68943         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
68944
68945 2007-04-04  Eric Blake  <ebb9@byu.net>
68946
68947         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
68948         1.5.x.
68949
68950 2007-04-04  Bruno Haible  <bruno@clisp.org>
68951
68952         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
68953         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
68954
68955 2007-04-04  Bruno Haible  <bruno@clisp.org>
68956
68957         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
68958         results for "%010a" of Infinity and NaN.
68959         * tests/test-vasprintf-posix.c (test_function): Likewise.
68960         * tests/test-snprintf-posix.h (test_function): Likewise.
68961         * tests/test-sprintf-posix.h (test_function): Likewise.
68962         * tests/test-fprintf-posix.h (test_function): Remove these tests.
68963         * tests/test-printf-posix.h (test_function): Likewise.
68964         * tests/test-fprintf-posix.out: Update.
68965         Needed for FreeBSD 6.1.
68966
68967 2007-04-04  Bruno Haible  <bruno@clisp.org>
68968
68969         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
68970         directly used by the gnulib modules nor by gnulib-tool.
68971
68972 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         * DEPENDENCIES: Give overall description of version dependency
68975         desirability.  Use more-typical names for apps.
68976         Add shell, coreutils, diffutils, grep, tar, gzip.
68977
68978 2007-04-04  Simon Josefsson  <simon@josefsson.org>
68979
68980         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
68981
68982 2007-04-04  Karl Berry  <karl@gnu.org>
68983
68984         * MODULES.html.sh (func_module): missing '.
68985
68986 2007-04-03  Bruno Haible  <bruno@clisp.org>
68987
68988         * modules/argmatch-tests (Makefile.am): New variable
68989         test_argmatch_LDADD.
68990         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
68991         * modules/array-list-tests (Makefile.am): New variable
68992         test_array_list_LDADD.
68993         * modules/array-oset-tests (Makefile.am): New variable
68994         test_array_oset_LDADD.
68995         * modules/avltree-list-tests (Makefile.am): New variable
68996         test_avltree_list_LDADD.
68997         * modules/avltree-oset-tests (Makefile.am): New variable
68998         test_avltree_oset_LDADD.
68999         * modules/avltreehash-list-tests (Makefile.am): New variable
69000         test_avltreehash_list_LDADD.
69001         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69002         test_canonicalize_lgpl_LDADD.
69003         * modules/carray-list-tests (Makefile.am): New variable
69004         test_carray_list_LDADD.
69005         * modules/dirname-tests (Makefile.am): New variable
69006         test_dirname_LDADD.
69007         * modules/linked-list-tests (Makefile.am): New variable
69008         test_linked_list_LDADD.
69009         * modules/linkedhash-list-tests (Makefile.am): New variable
69010         test_linkedhash_list_LDADD.
69011         * modules/rbtree-list-tests (Makefile.am): New variable
69012         test_rbtree_list_LDADD.
69013         * modules/rbtree-oset-tests (Makefile.am): New variable
69014         test_rbtree_oset_LDADD.
69015         * modules/rbtreehash-list-tests (Makefile.am): New variable
69016         test_rbtreehash_list_LDADD.
69017         * modules/xvasprintf-tests (Makefile.am): New variable
69018         test_xvasprintf_LDADD.
69019         Reported by Eric Blake.
69020
69021 2007-04-03  Eric Blake  <ebb9@byu.net>
69022
69023         * DEPENDENCIES: Weaken m4 requirements.
69024
69025 2007-04-03  Bruno Haible  <bruno@clisp.org>
69026
69027         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69028         * modules/isnanl-tests (configure.ac): Likewise.
69029
69030 2007-04-03  Ben Pfaff  <blp@gnu.org>
69031
69032         * modules/iconv_open: Add $(srcdir)/ to source directory
69033         references in Makefile fragments that call gperf, to fix VPATH
69034         builds.
69035
69036 2007-04-03  Bruno Haible  <bruno@clisp.org>
69037
69038         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69039         * lib/ldexpl.c: Undo last change.
69040
69041 2007-04-03  Bruno Haible  <bruno@clisp.org>
69042
69043         * modules/printf-frexpl (Depends-on): Undo last change.
69044         (Files): Add m4/ldexpl.m4.
69045
69046 2007-04-03  Bruno Haible  <bruno@clisp.org>
69047
69048         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69049         * modules/isnanl (Link): New section.
69050
69051         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69052         * modules/frexp (Link): New section.
69053
69054         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69055         * modules/frexpl (Link): New section.
69056
69057         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69058         * modules/ldexpl (Link): New section.
69059
69060 2007-04-03  Bruno Haible  <bruno@clisp.org>
69061
69062         * modules/TEMPLATE-EXTENDED: New file.
69063         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69064
69065 2007-04-03  Bruno Haible  <bruno@clisp.org>
69066
69067         * DEPENDENCIES: New file.
69068         Suggested by Simon Josefsson.
69069
69070 2007-04-03  Bruno Haible  <bruno@clisp.org>
69071
69072         * doc/gnulib.texi: Escape @.
69073
69074 2007-04-03  James Youngman  <jay@gnu.org>
69075         and Paul Eggert  <eggert@cs.ucla.edu>
69076
69077         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69078         birthtime on all systems that have birthtime, not just those which
69079         use st_birthtimensec rather than st_birthtim.  Putting zero in
69080         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69081         that the birth time is not available for files on an NFS mount.
69082
69083 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69084
69085         * modules/memxor: Move back from crypto/, suggested by Bruno.
69086         * modules/crypto/hmac-sha1: Fix memxor dependency.
69087
69088         * modules/crypto/gc: Moved from ../.
69089
69090 2007-04-02  Eric Blake  <ebb9@byu.net>
69091
69092         * lib/ldexpl.c (includes): Avoid libm.
69093
69094         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69095
69096 2007-04-02  Bruno Haible  <bruno@clisp.org>
69097
69098         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69099         on IRIX.
69100
69101 2007-04-02  Bruno Haible  <bruno@clisp.org>
69102
69103         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69104         x86 or x86_64 platforms running MacOS X.
69105         Reported by Ryan Schmidt <@ryandesign.com>.
69106
69107 2007-04-02  Bruno Haible  <bruno@clisp.org>
69108
69109         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69110         i386.
69111
69112 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69113
69114         * modules/crypto/arcfour: Moved from ../.
69115         * modules/crypto/arcfour-tests: Moved from ../.
69116         * modules/crypto/arctwo: Moved from ../.
69117         * modules/crypto/arctwo-tests: Moved from ../.
69118         * modules/crypto/des: Moved from ../.
69119         * modules/crypto/des-tests: Moved from ../.
69120         * modules/crypto/gc-arcfour: Moved from ../.
69121         * modules/crypto/gc-arcfour-tests: Moved from ../.
69122         * modules/crypto/gc-arctwo: Moved from ../.
69123         * modules/crypto/gc-arctwo-tests: Moved from ../.
69124         * modules/crypto/gc-des: Moved from ../.
69125         * modules/crypto/gc-des-tests: Moved from ../.
69126         * modules/crypto/gc-hmac-md5: Moved from ../.
69127         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69128         * modules/crypto/gc-hmac-sha1: Moved from ../.
69129         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69130         * modules/crypto/gc-md2: Moved from ../.
69131         * modules/crypto/gc-md2-tests: Moved from ../.
69132         * modules/crypto/gc-md4: Moved from ../.
69133         * modules/crypto/gc-md4-tests: Moved from ../.
69134         * modules/crypto/gc-md5: Moved from ../.
69135         * modules/crypto/gc-md5-tests: Moved from ../.
69136         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69137         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69138         * modules/crypto/gc-random: Moved from ../.
69139         * modules/crypto/gc-rijndael: Moved from ../.
69140         * modules/crypto/gc-rijndael-tests: Moved from ../.
69141         * modules/crypto/gc-sha1: Moved from ../.
69142         * modules/crypto/gc-sha1-tests: Moved from ../.
69143         * modules/crypto/gc-tests: Moved from ../.
69144         * modules/crypto/hmac-md5: Moved from ../.
69145         * modules/crypto/hmac-md5-tests: Moved from ../.
69146         * modules/crypto/hmac-sha1: Moved from ../.
69147         * modules/crypto/hmac-sha1-tests: Moved from ../.
69148         * modules/crypto/md2: Moved from ../.
69149         * modules/crypto/md2-tests: Moved from ../.
69150         * modules/crypto/md4: Moved from ../.
69151         * modules/crypto/md4-tests: Moved from ../.
69152         * modules/crypto/md5: Moved from ../.
69153         * modules/crypto/md5-tests: Moved from ../.
69154         * modules/crypto/memxor: Moved from ../.
69155         * modules/crypto/rijndael: Moved from ../.
69156         * modules/crypto/rijndael-tests: Moved from ../.
69157         * modules/crypto/sha1: Moved from ../.
69158
69159 2007-03-30  James Youngman  <jay@gnu.org>
69160
69161         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69162         rename() to change the ctime of a file (because ctime is unaffected
69163         by rename on jfs2 on AIX 5.1).
69164         (main): Start by doing cleanup, in case a previous run failed leaving
69165         test files behind.
69166
69167 2007-03-31  Bruno Haible  <bruno@clisp.org>
69168
69169         Support old proprietary implementations of iconv.
69170         * modules/iconv_open: New file.
69171         * lib/iconv_.h: New file.
69172         * m4/iconv_h.m4: New file.
69173         * lib/iconv_open.c: New file.
69174         * lib/iconv_open-aix.gperf: New file.
69175         * lib/iconv_open-hpux.gperf: New file.
69176         * lib/iconv_open-irix.gperf: New file.
69177         * lib/iconv_open-osf.gperf: New file.
69178         * m4/iconv_open.m4: New file.
69179         * modules/linebreak (Depends-on): Add iconv_open.
69180         * modules/striconv (Depends-on): Likewise.
69181         * modules/striconveh (Depends-on): Likewise.
69182         * modules/unicodeio (Depends-on): Likewise.
69183         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69184         (iconv_t)(-1).
69185         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69186         conversion if cd is (iconv_t)(-1).
69187         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69188         is not possible.
69189
69190 2007-03-31  Bruno Haible  <bruno@clisp.org>
69191
69192         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69193         work on Solaris either. Protect also second use of "autodetect_jp".
69194
69195 2007-03-31  Bruno Haible  <bruno@clisp.org>
69196
69197         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69198         the function is not present.
69199
69200 2007-03-31  Bruno Haible  <bruno@clisp.org>
69201
69202         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69203         the function is not present.
69204
69205 2007-03-31  Bruno Haible  <bruno@clisp.org>
69206
69207         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69208         a bug in HP-UX iconv_open().
69209
69210 2007-03-31  Bruno Haible  <bruno@clisp.org>
69211
69212         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69213         (Mathematics <math.h>): New section, add fpieee.
69214         (Input/output <stdio.h>): Add fseterr.
69215         (Mathematics <math.h>): New section, add printf-frexp.
69216         (Container data structures): Add sublist.
69217         (Core language properties): Add fpucw, inline.
69218         (Functions for greatest-width integer types <inttypes.h>): Add
69219         imaxabs, imaxdiv, inttypes.
69220         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69221         isnanl-nolibm, ldexp.
69222         (Mathematics <math.h>): New section, add printf-frexpl.
69223         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69224         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69225         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69226         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69227         (Unicode string functions): Add unistr/u*-mbtoucr.
69228         (Java): Add javacomp-script, javaexec-script.
69229         (C#): Add csharpcomp-script, csharpexec-script.
69230         (Support for building libraries and executables): Add havelib,
69231         relocatable-*.
69232         (Support for maintaining and releasing projects): Renamed from
69233         'Support for maintaining and release projects'. Add announce-gen.
69234
69235 2007-03-31  Bruno Haible  <bruno@clisp.org>
69236
69237         * README: Talk primarily about git.
69238         (git and CVS): Renamed from CVS.
69239         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69240         gnulib is available through git.
69241         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69242
69243 2007-03-30  Bruno Haible  <bruno@clisp.org>
69244
69245         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69246         * lib/poll_.h: Likewise.
69247         * lib/stat_.h: Likewise.
69248         * lib/sys_time_.h: Likewise.
69249         * lib/sysexit_.h: Likewise.
69250         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69251         * lib/stdbool_.h: Likewise.
69252         * lib/byteswap_.h: Add double-inclusion guard.
69253
69254 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69255
69256         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69257
69258 2007-03-30  Karl Berry  <karl@gnu.org>
69259
69260         * config/srclist-update: double space after USA in the license
69261         substitution, since that's how it's usually (?) written.
69262
69263 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69264
69265         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69266         reported by Bruno Haible.
69267
69268 2007-03-29  Bruno Haible  <bruno@clisp.org>
69269
69270         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69271         a bug in AIX iconv().
69272
69273 2007-03-29  Bruno Haible  <bruno@clisp.org>
69274
69275         * modules/ldexpl-tests: New file.
69276         * tests/test-ldexpl.c: New file.
69277
69278 2007-03-29  Bruno Haible  <bruno@clisp.org>
69279
69280         * lib/ldexpl.c: Include fpucw.h.
69281         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69282         multiplication.
69283         * modules/ldexpl (Depends-on): Add fpucw.
69284
69285 2007-03-29  Bruno Haible  <bruno@clisp.org>
69286
69287         * modules/ldexpl: New file.
69288         * m4/ldexpl.m4: New file.
69289         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69290         set.
69291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69292         REPLACE_LDEXPL.
69293         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69294         REPLACE_LDEXPL.
69295         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69296         gl_FUNC_LDEXPL_WORKS.
69297         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69298         * modules/mathl (Files): Remove lib/ldexpl.c.
69299         (Depends-on): Add ldexpl.
69300
69301 2007-03-29  Bruno Haible  <bruno@clisp.org>
69302
69303         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69304
69305 2007-03-29  Bruno Haible  <bruno@clisp.org>
69306
69307         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69308         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69309         and possibly also HP-UX.
69310         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69311         work on AIX, IRIX, HP-UX, OSF/1.
69312         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69313         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69314         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69315         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69316         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69317         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69318
69319 2007-03-29  Bruno Haible  <bruno@clisp.org>
69320
69321         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69322
69323 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69324
69325         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69326         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69327
69328 2007-03-29  Eric Blake  <ebb9@byu.net>
69329
69330         * lib/acl-internal.h: Remove redundant include.
69331         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69332         Cygwin when a file is locked.
69333
69334 2007-03-29  Bruno Haible  <bruno@clisp.org>
69335
69336         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69337         file.
69338         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69339
69340 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69341
69342         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69343         try to remove a parent directory if the child couldn't be removed
69344         (except for the first rmdir, which could fail because the child
69345         doesn't exist).  Problem reported by Jeff Blaine in
69346         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69347
69348 2007-03-28  Bruno Haible  <bruno@clisp.org>
69349
69350         * lib/striconveh.c (utf8conv_carefully): New function.
69351         (mem_cd_iconveh_internal): Invoke it.
69352
69353 2007-03-28  Bruno Haible  <bruno@clisp.org>
69354
69355         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69356         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69357         input.
69358         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69359         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69360         unistr/u8-uctomb.
69361
69362 2007-03-28  Bruno Haible  <bruno@clisp.org>
69363
69364         * modules/unistr/u8-mbtoucr: New file.
69365         * lib/unistr/u8-mbtoucr.c: New file.
69366         * modules/unistr/u16-mbtoucr: New file.
69367         * lib/unistr/u16-mbtoucr.c: New file.
69368         * modules/unistr/u16-mbtoucr: New file.
69369         * lib/unistr/u16-mbtoucr.c: New file.
69370         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69371
69372 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69373             Bruno Haible  <bruno@clisp.org>
69374
69375         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69376         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69377         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69378
69379         * m4/stdio_h.m4: Add stubs for vasprintf too.
69380
69381         * modules/stdio: Support vasprintf in sed command.
69382
69383         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69384         vasprintf.h.  Add stdio module indicator.
69385
69386         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69387         vasprintf.h.
69388
69389         * lib/vasprintf.h: File removed.
69390
69391         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69392         * lib/vasprintf.c: Ditto.
69393         * lib/xvasprintf.c: Ditto.
69394         * tests/test-vasprintf-posix.c: Ditto.
69395         * tests/test-vasprintf.c: Ditto.
69396
69397 2007-03-27  Bruno Haible  <bruno@clisp.org>
69398
69399         Make vasnprintf multithread-safe.
69400         * lib/vasnprintf.c (decimal_point_char): New function.
69401         (VASNPRINTF): Use it.
69402         Suggested by Simon Josefsson.
69403
69404 2007-03-27  Eric Blake  <ebb9@byu.net>
69405
69406         Support sub-second birthtime on cygwin.
69407         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69408         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69409         (get_stat_birthtime): Also work with st_birthtim.
69410
69411 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69412
69413         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69414         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69415         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69416         (get_stat_birthtime_ns): Simplify compile-time tests.
69417         (get_stat_birthtime): Change the API to look like
69418         get_stat_mtime etc., except return a negative tv_nsec on error.
69419         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69420         Don't check for "spare" fields.
69421         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69422         or for struct stat.st_birthtime, as these tests aren't used.
69423         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69424
69425 2007-03-27  Bruno Haible  <bruno@clisp.org>
69426
69427         * lib/stat-time.h: Include <sys/stat.h>.
69428
69429 2007-03-27  James Youngman  <jay@gnu.org>
69430
69431         * lib/stat-time.h (get_stat_birthtime): New function for
69432           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69433         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69434           and its variants.
69435         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69436         * modules/stat-time-test: New file.
69437         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69438
69439 2007-03-26  Bruno Haible  <bruno@clisp.org>
69440
69441         Better support of signalling NaNs.
69442         * lib/atanl.c: Include isnanl.h.
69443         (atanl): Perform test for NaN at the beginning of the function and
69444         through a call to isnanl.
69445         * lib/cosl.c: Include isnanl.h.
69446         (cosl): Perform test for NaN at the beginning of the function and
69447         through a call to isnanl.
69448         * lib/ldexpl.c: Include isnanl.h.
69449         (ldexpl): Perform test for NaN through a call to isnanl.
69450         * lib/logl.c: Include isnanl.h.
69451         (logl): Perform test for NaN at the beginning of the function and
69452         through a call to isnanl.
69453         * lib/sinl.c: Include isnanl.h.
69454         (sinl): Perform test for NaN at the beginning of the function and
69455         through a call to isnanl.
69456         * lib/sqrtl.c: Include isnanl.h.
69457         (sqrtl): Perform test for NaN at the beginning of the function and
69458         through a call to isnanl.
69459         * lib/tanl.c: Include isnanl.h.
69460         (tanl): Perform test for NaN at the beginning of the function and
69461         through a call to isnanl.
69462         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69463         * modules/mathl (Depends-on): Add isnanl.
69464
69465 2007-03-26  Eric Blake  <ebb9@byu.net>
69466
69467         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69468         regression in logic sense of previous patch.
69469
69470 2007-03-26  Bruno Haible  <bruno@clisp.org>
69471
69472         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69473         unportable shell command "if ! ...".
69474         Reported by Ralf Wildenhues.
69475
69476 2007-03-25  Bruno Haible  <bruno@clisp.org>
69477
69478         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69479         <sysexits.h> file, and only add EX_CONFIG.
69480         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69481         absolute file name and whether it is sufficient. Substitute also
69482         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69483         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69484         ABSOLUTE_SYSEXITS_H into sysexits.h.
69485
69486 2007-03-25  Bruno Haible  <bruno@clisp.org>
69487
69488         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69489         hints is NULL.
69490
69491 2007-03-25  Bruno Haible  <bruno@clisp.org>
69492
69493         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69494         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69495
69496 2007-03-25  Bruno Haible  <bruno@clisp.org>
69497
69498         * lib/vasnprintf.c: Include langinfo.h.
69499         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69500         multithread-safe.
69501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69502         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69503         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69504         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69505         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69506         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69507         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69509         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69510         Reported by Simon Josefsson.
69511
69512 2007-03-25  Bruno Haible  <bruno@clisp.org>
69513
69514         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69515         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69516         * modules/vasnprintf (Depends-on): Add stdint.
69517
69518 2007-03-25  Bruno Haible  <bruno@clisp.org>
69519
69520         * modules/fpieee: New file.
69521         * m4/fpieee.m4: New file.
69522         * modules/isnan-nolibm (Depends-on): Add fpieee.
69523         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69524         * modules/isnanl (Depends-on): Add fpieee.
69525
69526 2007-03-25  Bruno Haible  <bruno@clisp.org>
69527
69528         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69529
69530 2007-03-25  Bruno Haible  <bruno@clisp.org>
69531
69532         Avoid test failures on IRIX 6.5.
69533         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69534         (main): Use it.
69535         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69536         macros.
69537         (main): Use them.
69538
69539 2007-03-25  Bruno Haible  <bruno@clisp.org>
69540
69541         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69542         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69543         exists but doesn't work.
69544         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69545         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69547         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69548         math.h.
69549
69550 2007-03-25  Bruno Haible  <bruno@clisp.org>
69551
69552         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69553         returns inf. Needed on IRIX 6.5.
69554
69555 2007-03-25  Bruno Haible  <bruno@clisp.org>
69556
69557         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69558         (main): Use isnanl instead of x != x idiom.
69559         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69560
69561         * tests/test-frexp.c: Include isnan.h.
69562         (main): Use isnan instead of x != x idiom.
69563         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69564
69565 2007-03-25  Bruno Haible  <bruno@clisp.org>
69566
69567         * tests/test-frexp.c (NaN): New function/macro.
69568         (main): Use it instead of 0.0 / 0.0.
69569         * tests/test-isnan.c (NaN): New function/macro.
69570         (main): Use it instead of 0.0 / 0.0.
69571         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69572         (test_function): Use it instead of 0.0 / 0.0.
69573         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69574         (test_function): Use it instead of 0.0 / 0.0.
69575         * tests/test-snprintf-posix.h (NaN): New function/macro.
69576         (test_function): Use it instead of 0.0 / 0.0.
69577         * tests/test-sprintf-posix.h (NaN): New function/macro.
69578         (test_function): Use it instead of 0.0 / 0.0.
69579         * tests/test-fprintf-posix.h (NaN): New function/macro.
69580         (test_function): Use it instead of 0.0 / 0.0.
69581         * tests/test-printf-posix.h (NaN): New function/macro.
69582         (test_function): Use it instead of 0.0 / 0.0.
69583
69584         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69585
69586 2007-03-25  Bruno Haible  <bruno@clisp.org>
69587
69588         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69589
69590 2007-03-25  Bruno Haible  <bruno@clisp.org>
69591
69592         * lib/regexec.c (merge_state_with_log): Make static.
69593
69594 2007-03-25  Bruno Haible  <bruno@clisp.org>
69595
69596         * lib/trigl.c (kernel_rem_pio2): Make static.
69597
69598 2007-03-25  Bruno Haible  <bruno@clisp.org>
69599
69600         * lib/sincosl.c (sincosl_table): Make static.
69601
69602 2007-03-25  Bruno Haible  <bruno@clisp.org>
69603
69604         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
69605         if the compiler does not support C99.
69606
69607 2007-03-25  Bruno Haible  <bruno@clisp.org>
69608
69609         * modules/time (Makefile.am): Ensure all rule action lines start with a
69610         tab.
69611
69612 2007-03-24  Bruno Haible  <bruno@clisp.org>
69613
69614         * modules/tsearch-tests: New file.
69615         * tests/test-tsearch.sh: New file.
69616         * tests/test-tsearch.c: New file, mostly copied from glibc.
69617
69618         * modules/search-tests: New file.
69619         * tests/test-search.c: New file.
69620
69621         * modules/search: New file.
69622         * lib/search_.h: New file, incorporating lib/tsearch.h.
69623         * m4/search_h.m4: New file.
69624         * lib/tsearch.h: Remove file.
69625         * lib/tsearch.c: Include search.h instead of tsearch.h.
69626         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
69627         HAVE_TSEARCH.
69628         * modules/tsearch (Files): Remove lib/tsearch.h.
69629         (Depends-on): Add search.
69630         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
69631         (Include): Change tsearch.h into search.h.
69632
69633 2007-03-24  Bruno Haible  <bruno@clisp.org>
69634
69635         * modules/fpucw: New file.
69636         * lib/fpucw.h: New file.
69637         * lib/frexp.c: Include fpucw.h.
69638         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69639         (FUNC): Use them.
69640         * lib/printf-frexp.c: Include fpucw.h.
69641         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69642         (FUNC): Use them.
69643         * lib/vasnprintf.c: Include fpucw.h.
69644         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
69645         'long double' calculations.
69646         * tests/test-frexpl.c: Include fpucw.h.
69647         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69648         * tests/test-printf-frexpl.c: Include fpucw.h.
69649         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69650         * modules/frexpl (Depends-on): Add fpucw.
69651         * modules/printf-frexpl (Depends-on): Likewise.
69652         * modules/fprintf-posix (Depends-on): Likewise.
69653         * modules/snprintf-posix (Depends-on): Likewise.
69654         * modules/sprintf-posix (Depends-on): Likewise.
69655         * modules/vasnprintf-posix (Depends-on): Likewise.
69656         * modules/vasprintf-posix (Depends-on): Likewise.
69657         * modules/vfprintf-posix (Depends-on): Likewise.
69658         * modules/vsnprintf-posix (Depends-on): Likewise.
69659         * modules/vsprintf-posix (Depends-on): Likewise.
69660         * modules/frexpl-tests (Depends-on): Likewise.
69661         * modules/printf-frexpl-tests (Depends-on): Likewise.
69662
69663 2007-03-24  Bruno Haible  <bruno@clisp.org>
69664
69665         * lib/float+.h: New file.
69666         * lib/isnan.c: Include float+.h.
69667         (SIZE): New macro.
69668         (FUNC): Compare only SIZE bytes of the value.
69669         * lib/vasnprintf.c: Include float+.h.
69670         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
69671         SIZEOF_LDBL or SIZEOF_DBL bytes.
69672         * modules/isnan-nolibm (Files): Add lib/float+.h.
69673         * modules/isnanl-nolibm (Files): Add lib/float+.h.
69674         * modules/isnanl (Files): Add lib/float+.h.
69675         * modules/vasnprintf (Files): Add lib/float+.h.
69676
69677 2007-03-24  Bruno Haible  <bruno@clisp.org>
69678
69679         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
69680         include isnanl-nolibm.h.
69681
69682 2007-03-24  Bruno Haible  <bruno@clisp.org>
69683
69684         * tests/test-read-file.c (main): Don't produce spurious output for
69685         expected situations. Make the test fail if it encountered unexpected
69686         results.
69687
69688 2007-03-24  Bruno Haible  <bruno@clisp.org>
69689
69690         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
69691         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
69692
69693 2007-03-24  Bruno Haible  <bruno@clisp.org>
69694
69695         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
69696
69697 2007-03-24  Bruno Haible  <bruno@clisp.org>
69698
69699         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
69700         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
69701
69702         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
69703         * modules/utf8-ucs4: Turn into a symbolic link to module
69704         unistr/u8-mbtouc.
69705
69706         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
69707         utf8-ucs4-unsafe.
69708         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
69709         unistr/u8-mbtouc-unsafe.
69710
69711         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
69712         * modules/utf16-ucs4: Turn into a symbolic link to module
69713         unistr/u16-mbtouc.
69714
69715         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
69716         utf16-ucs4-unsafe.
69717         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
69718         unistr/u16-mbtouc-unsafe.
69719
69720         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
69721         * modules/ucs4-utf8: Turn into a symbolic link to module
69722         unistr/u8-ubtomb.
69723
69724         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
69725         * modules/ucs4-utf16: Turn into a symbolic link to module
69726         unistr/u16-ubtomb.
69727
69728 2007-03-24  Bruno Haible  <bruno@clisp.org>
69729
69730         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
69731         Enable the function only if HAVE_INLINE.
69732         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
69733         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69734         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
69735         Enable the function only if HAVE_INLINE.
69736         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
69737         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69738         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
69739         Enable the function only if HAVE_INLINE.
69740         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
69741         Enable the function only if HAVE_INLINE.
69742         * modules/utf8-ucs4: Update.
69743         * modules/utf8-ucs4-unsafe: Update.
69744         * modules/utf16-ucs4: Update.
69745         * modules/utf16-ucs4-unsafe: Update.
69746         * modules/ucs4-utf8: Update.
69747         * modules/ucs4-utf16: Update.
69748
69749 2007-03-24  Bruno Haible  <bruno@clisp.org>
69750
69751         * lib/utf8-ucs4.h: Remove file.
69752         * lib/utf8-ucs4-unsafe.h: Remove file.
69753         * lib/utf16-ucs4.h: Remove file.
69754         * lib/utf16-ucs4-unsafe.h: Remove file.
69755         * lib/ucs4-utf8.h: Remove file.
69756         * lib/ucs4-utf16.h: Remove file.
69757         * lib/unistr.h: Include their previous contents.
69758         * m4/utf-ucs4.m4: Remove file.
69759         * m4/ucs4-utf.m4: Remove file.
69760         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
69761         (Depends-on): Add unistr/base.
69762         (configure.ac): Remove gl_UTF_UCS4.
69763         (Makefile.am): Update.
69764         (Include): Change to unistr.h.
69765         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
69766         (Depends-on): Add unistr/base.
69767         (configure.ac): Remove gl_UTF_UCS4.
69768         (Makefile.am): Update.
69769         (Include): Change to unistr.h.
69770         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
69771         (Depends-on): Add unistr/base.
69772         (configure.ac): Remove gl_UTF_UCS4.
69773         (Makefile.am): Update.
69774         (Include): Change to unistr.h.
69775         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
69776         (Depends-on): Add unistr/base.
69777         (configure.ac): Remove gl_UTF_UCS4.
69778         (Makefile.am): Update.
69779         (Include): Change to unistr.h.
69780         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
69781         (Depends-on): Add unistr/base.
69782         (configure.ac): Remove gl_UCS4_UTF.
69783         (Makefile.am): Update.
69784         (Include): Change to unistr.h.
69785         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
69786         (Depends-on): Add unistr/base.
69787         (configure.ac): Remove gl_UCS4_UTF.
69788         (Makefile.am): Update.
69789         (Include): Change to unistr.h.
69790         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
69791         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
69792         utf8-ucs4-unsafe.h.
69793         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
69794         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
69795         utf16-ucs4-unsafe.h.
69796         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
69797         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
69798         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
69799         * lib/unistr/u8-strchr.c: Likewise.
69800         * lib/unistr/u8-strrchr.c: Likewise.
69801         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
69802         * lib/unistr/u16-strchr.c: Likewise.
69803         * lib/unistr/u16-strrchr.c: Likewise.
69804         * lib/striconveh.c: Update.
69805         * lib/linebreak.c: Update.
69806
69807 2007-03-24  Bruno Haible  <bruno@clisp.org>
69808
69809         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
69810         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
69811
69812 2007-03-22  Bruno Haible  <bruno@clisp.org>
69813
69814         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
69815
69816 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69817
69818         * MODULES.html.sh (File system functions): New module write-any-file.
69819         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
69820         * m4/write-any-file.m4: New files.
69821
69822 2007-03-23  Eric Blake  <ebb9@byu.net>
69823
69824         * gnulib-tool: Rearrange space-tab sequences, since some editors
69825         like to eat them.
69826
69827 2007-03-23  Eric Blake  <ebb9@byu.net>
69828
69829         * lib/version-etc.c (version_etc_va): Update license wording to
69830         be more concise.  Recommended by Richard Stallman.
69831
69832 2007-03-22  Bruno Haible  <bruno@clisp.org>
69833
69834         * lib/poll.c (MSG_PEEK): New fallback definition.
69835
69836 2007-03-22  Bruno Haible  <bruno@clisp.org>
69837
69838         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
69839         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
69840         (main): Update.
69841         Fixes a compilation error on BeOS.
69842
69843 2007-03-22  Bruno Haible  <bruno@clisp.org>
69844
69845         * modules/frexpl-tests: New file.
69846         * tests/test-frexpl.c: New file.
69847
69848         * modules/frexpl: New file.
69849         * m4/frexpl.m4: New file.
69850         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
69851         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
69852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
69853         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
69854         (Depends-on): Add frexpl. Remove isnanl-nolibm.
69855         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
69856
69857 2007-03-22  Bruno Haible  <bruno@clisp.org>
69858
69859         * lib/frexpl.c: Share code with lib/frexp.c.
69860         * modules/mathl (Files): Add lib/frexp.c.
69861         (Depends-on): Add isnanl-nolibm.
69862
69863 2007-03-22  Bruno Haible  <bruno@clisp.org>
69864
69865         * modules/printf-frexp (Files): Add m4/frexp.m4.
69866         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
69867         only if the found frexp function actually works.
69868
69869 2007-03-22  Bruno Haible  <bruno@clisp.org>
69870
69871         * lib/frexp.c: Remove older implementation that uses divisions.
69872
69873 2007-03-21  Bruno Haible  <bruno@clisp.org>
69874
69875         * modules/frexp-tests: New file.
69876         * tests/test-frexp.c: New file.
69877
69878         * modules/frexp: New file.
69879         * lib/frexp.c: New file.
69880         * m4/frexp.m4: New file.
69881         * lib/math_.h (frexp): New declaration.
69882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
69883         REPLACE_FREXP.
69884         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
69885
69886 2007-03-21  Bruno Haible  <bruno@clisp.org>
69887
69888         * modules/isnanl-tests: New file.
69889         * tests/test-isnanl.c: New file.
69890
69891         * modules/isnanl: New file.
69892         * lib/isnanl.h: New file.
69893         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
69894         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
69895         gl_FUNC_ISNANL_WORKS.
69896         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
69897         New macros.
69898
69899 2007-03-21  Bruno Haible  <bruno@clisp.org>
69900
69901         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
69902         lib/isnanl.h.
69903         (Include): Update.
69904         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
69905         * lib/vasnprintf.c: Update.
69906         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
69907         tests/test-isnanl.h, remove tests/test-isnanl.c.
69908         (Makefile.am): Update.
69909         * tests/test-isnanl-nolibm.c: New file.
69910         * tests/test-isnanl.h: New file.
69911         * tests/test-isnanl.c: Remove file.
69912
69913 2007-03-21  Jim Meyering  <jim@meyering.net>
69914
69915         When trying to open ".", treat ESTALE like EACCES.
69916         * lib/savewd.c (savewd_save): Resort to forking not just upon
69917         failure with EACCES, but also when errno is ESTALE.
69918
69919 2007-03-20  Bruno Haible  <bruno@clisp.org>
69920
69921         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
69922         Needed on AIX 5.1. Reported by Matthew Woehlke.
69923
69924 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69925
69926         Suggestions by Bruno Haible:
69927         * lib/acl-internal.h: Include "gettext.h" rather than rolling
69928         our own.
69929         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
69930         * modules/acl (Depends-on): Add gettext.
69931
69932 2007-03-19  Bruno Haible  <bruno@clisp.org>
69933
69934         * modules/iconvme: Remove file.
69935         * lib/iconvme.h: Remove file.
69936         * lib/iconvme.c: Remove file.
69937         * m4/iconvme.m4: Remove file.
69938
69939 2007-03-19  Bruno Haible  <bruno@clisp.org>
69940
69941         * doc/relocatable-maint.texi: Break long shell script line.
69942         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69943
69944 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69945
69946         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
69947         handle file_has_acl.
69948         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
69949         * lib/acl.c: Move header inclusions and related macro defns into
69950         lib/acl-internal.h.
69951         (S_ISLNK): Remove defn, since that's now done for us.
69952         (file_has_acl): Move to lib/file-has-acl.c.
69953         Call acl_trivial if available.  This is the crucial part of the fix.
69954         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
69955         shared within the library.  Rewrite a bit, partly to make it compatible
69956         with the GNU coding style.
69957         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
69958         Remove unnecessary double-quotes.
69959         Don't test for acl_to_text; the build will catch that.
69960         Replace acl_entries if it doesn't exist and it is needed.
69961         Check for -lsec and acl_trivial (as used on Solaris 10).
69962         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
69963         lib/file-has-acl.c.
69964         (Depends-on): Add sys_stat, for S_ISLNK.
69965
69966 2007-03-19  Ben Pfaff  <blp@gnu.org>
69967
69968         * doc/gnulib.texi: Fix typos.
69969         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69970
69971 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69972
69973         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
69974         If size is zero here, buf must be zero.
69975
69976 2007-03-19  Simon Josefsson  <simon@josefsson.org>
69977
69978         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
69979         <bruno@clisp.org>.
69980
69981 2007-03-18  Bruno Haible  <bruno@clisp.org>
69982
69983         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
69984         Suggested by Eric Blake.
69985
69986 2007-03-18  Ben Pfaff  <blp@gnu.org>
69987
69988         * doc/relocatable.texi: Recommend using as prefix a directory
69989         that does not exist and will never be created.  Based on
69990         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
69991         and others.
69992
69993 2007-03-17  Bruno Haible  <bruno@clisp.org>
69994
69995         * lib/fchownat.c: Include lchown.h.
69996
69997 2007-03-17  Bruno Haible  <bruno@clisp.org>
69998
69999         Fix endless loop when the given allocated size was > INT_MAX.
70000         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70001         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70002         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70003         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70004         * lib/sprintf.c (sprintf): Likewise.
70005
70006 2007-03-17  Bruno Haible  <bruno@clisp.org>
70007
70008         * tests/test-argp-2.sh (func_compare): Output a context diff.
70009
70010 2007-03-17  Bruno Haible  <bruno@clisp.org>
70011
70012         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70013         locale's decimal-point character.
70014
70015 2007-03-17  Bruno Haible  <bruno@clisp.org>
70016
70017         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70018         before comparing it. Needed because on some platforms (e.g. x86) a
70019         'long double' occupies less bytes than sizeof (long double).
70020
70021 2007-03-17  Bruno Haible  <bruno@clisp.org>
70022
70023         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70024         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70025         * tests/test-getaddrinfo.c (simple): Likewise.
70026         * tests/test-read-file.c (main): Likewise.
70027
70028 2007-03-17  Bruno Haible  <bruno@clisp.org>
70029
70030         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70031
70032 2007-03-17  Bruno Haible  <bruno@clisp.org>
70033
70034         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70035         unused variable.
70036
70037 2007-03-17  Bruno Haible  <bruno@clisp.org>
70038
70039         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70040         * tests/test-c-strncasecmp.c: Likewise.
70041
70042 2007-03-17  Bruno Haible  <bruno@clisp.org>
70043
70044         * modules/stdlib (Depends-on): Add unistd.
70045         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70046         Needed for MacOS X 10.3.
70047
70048 2007-03-17  Bruno Haible  <bruno@clisp.org>
70049
70050         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70051
70052 2007-03-17  Bruno Haible  <bruno@clisp.org>
70053
70054         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70055
70056 2007-03-17  Bruno Haible  <bruno@clisp.org>
70057
70058         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70059         to reflect files copied from gnulib (with or without modifications).
70060         Suggested by Jim Meyering.
70061
70062 2007-03-17  Eric Blake  <ebb9@byu.net>
70063
70064         * NEWS: Document stdlib change from 2007-02-18.
70065
70066 2007-03-17  Jim Meyering  <jim@meyering.net>
70067
70068         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70069         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70070         someone uses a name containing shell meta-characters.
70071         Reported by Alfred M. Szmidt.
70072
70073         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70074
70075 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70076
70077         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70078         and copy gettext configuration files only if configure.ac contains
70079         a use of AM_GNU_GETTEXT_VERSION.
70080
70081 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70082
70083         * build-aux/bootstrap (gnulib_name): New variable.
70084         (gnulib_tool_options): Use it.
70085
70086 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70087
70088         * tests/test-des.c: Use new namespace.
70089
70090 2007-03-15  Bruno Haible  <bruno@clisp.org>
70091
70092         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70093         Reported by James Youngman <jay@gnu.org>.
70094
70095 2007-03-15  Bruno Haible  <bruno@clisp.org>
70096
70097         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70098         declared prototype. Needed with cc on OSF/1 5.1.
70099
70100 2007-03-15  Bruno Haible  <bruno@clisp.org>
70101
70102         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70103         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70104         (struct gl_list_implementation): Add dispose_fn argument to the
70105         'create_empty', 'create' methods.
70106         (struct gl_list_impl_base): Add field 'dispose_fn'.
70107         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70108         argument.
70109         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70110         dispose_fn argument.
70111         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70112         dispose_fn on the dropped values.
70113         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70114         dispose_fn argument.
70115         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70116         dropped values.
70117         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70118         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70119         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70120         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70121         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70122         argument.
70123         (gl_tree_list_free): Call dispose_fn on the dropped values.
70124         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70125         the dropped values.
70126         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70127         Add dispose_fn argument.
70128         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70129         Call dispose_fn on the dropped values.
70130         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70131         Add dispose_fn argument.
70132         (gl_sublist_create): Initialize the 'dispose_fn' field.
70133         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70134         * tests/test-array_list.c (main): Update.
70135         * tests/test-carray_list.c (main): Update.
70136         * tests/test-avltree_list.c (main): Update.
70137         * tests/test-rbtree_list.c (main): Update.
70138         * tests/test-avltreehash_list.c (main): Update.
70139         * tests/test-rbtreehash_list.c (main): Update.
70140         * tests/test-linked_list.c (main): Update.
70141         * tests/test-linkedhash_list.c (main): Update.
70142         * tests/test-array_oset.c (main): Update.
70143
70144 2007-03-15  Bruno Haible  <bruno@clisp.org>
70145
70146         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70147         (gl_oset_create_empty): Add dispose_fn argument.
70148         (struct gl_oset_implementation): Add dispose_fn argument to
70149         'create_empty' method.
70150         (struct gl_oset_impl_base): Add dispose_fn field.
70151         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70152         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70153         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70154         values.
70155         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70156         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70157         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70158         dropped value.
70159         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70160         dropped value.
70161         * tests/test-array_oset.c (main): Update.
70162         * tests/test-avltree_oset.c (main): Update.
70163         * tests/test-rbtree_oset.c (main): Update.
70164         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70165
70166 2007-03-13  Bruno Haible  <bruno@clisp.org>
70167
70168         * tests/test-stdbool.c (i): Update after last patch.
70169
70170 2007-03-12  Bruno Haible  <bruno@clisp.org>
70171
70172         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70173         the iswprint macro. Needed on Solaris 2.5.1.
70174
70175 2007-03-12  Bruno Haible  <bruno@clisp.org>
70176
70177         * tests/test-printf-frexp.c (main): Declare x as volatile.
70178
70179 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70180
70181         * doc/gnulib.texi (Build robot for gnulib): New section.
70182
70183 2007-03-12  Jim Meyering  <jim@meyering.net>
70184
70185         * build-aux/bootstrap: New file.
70186         * build-aux/bootstrap.conf: New file, from coreutils.
70187
70188 2007-03-11  Bruno Haible  <bruno@clisp.org>
70189
70190         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70191
70192 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70193
70194         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70195         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70196         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70197
70198 2007-03-11  Bruno Haible  <bruno@clisp.org>
70199
70200         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70201         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70202
70203 2007-03-11  Bruno Haible  <bruno@clisp.org>
70204
70205         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70206         formula. Needed for SunPRO C 5.0.
70207
70208 2007-03-11  Bruno Haible  <bruno@clisp.org>
70209
70210         * modules/long-options (Depends-on): Add getopt.
70211
70212 2007-03-11  Bruno Haible  <bruno@clisp.org>
70213
70214         * modules/modechange (Depends-on): Add stdbool.
70215
70216 2007-03-11  Bruno Haible  <bruno@clisp.org>
70217
70218         * modules/i-ring (Depends-on): Add stdbool.
70219
70220 2007-03-11  Bruno Haible  <bruno@clisp.org>
70221
70222         * modules/gc-des (Depends-on): Add stdbool.
70223
70224 2007-03-11  Bruno Haible  <bruno@clisp.org>
70225
70226         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70227
70228 2007-03-11  Bruno Haible  <bruno@clisp.org>
70229
70230         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70231
70232 2007-03-11  Bruno Haible  <bruno@clisp.org>
70233
70234         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70235
70236 2007-03-11  Bruno Haible  <bruno@clisp.org>
70237
70238         * lib/vasnprintf.c (sprintf): Undefine.
70239
70240 2007-03-11  Bruno Haible  <bruno@clisp.org>
70241
70242         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70243         initializers in SunPRO C and Compaq C compilers.
70244
70245 2007-03-11  Bruno Haible  <bruno@clisp.org>
70246
70247         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70248         decrementing code ANSI C compliant.
70249
70250 2007-03-11  Bruno Haible  <bruno@clisp.org>
70251
70252         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70253         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70254
70255 2007-03-11  Bruno Haible  <bruno@clisp.org>
70256
70257         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70258         <stdbool.h> substitute doesn't pass.
70259
70260 2007-03-11  Bruno Haible  <bruno@clisp.org>
70261
70262         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70263
70264 2007-03-11  Bruno Haible  <bruno@clisp.org>
70265
70266         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70267         script, for submission to autobuild.josefsson.org.
70268
70269 2007-03-10  Bruno Haible  <bruno@clisp.org>
70270
70271         * modules/canonicalize-lgpl-tests: New file.
70272         * tests/test-canonicalize-lgpl.sh: New file.
70273         * tests/test-canonicalize-lgpl.c: New file.
70274
70275         * modules/c-strcase-tests: New file.
70276         * tests/test-c-strcase.sh: New file.
70277         * tests/test-c-strcasecmp.c: New file.
70278         * tests/test-c-strncasecmp.c: New file.
70279
70280         * modules/atexit-tests: New file.
70281         * tests/test-atexit.sh: New file.
70282         * tests/test-atexit.c: New file.
70283
70284 2007-03-10  Bruno Haible  <bruno@clisp.org>
70285
70286         * tests/test-binary-io.sh: Use temporary filenames that are not so
70287         likely to clash with those of other tests (in a parallel make).
70288         * tests/test-binary-io.c: Likewise.
70289
70290 2007-03-10  Bruno Haible  <bruno@clisp.org>
70291
70292         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70293         fallback; use #error instead.
70294         Suggested by Simon Josefsson.
70295
70296 2007-03-10  Bruno Haible  <bruno@clisp.org>
70297
70298         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70299         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70300         first and the last.
70301
70302 2007-03-10  Bruno Haible  <bruno@clisp.org>
70303
70304         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70305
70306 2007-03-10  Bruno Haible  <bruno@clisp.org>
70307
70308         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70309         "make distcheck".
70310         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70311         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70312         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70313
70314 2007-03-10  Bruno Haible  <bruno@clisp.org>
70315
70316         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70317         variable.
70318         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70319         variable.
70320
70321 2007-03-09  Eric Blake  <ebb9@byu.net>
70322         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70323
70324         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70325         types are not being provided by gnulib.
70326         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70327         types are supported.
70328
70329 2007-03-10  Bruno Haible  <bruno@clisp.org>
70330
70331         * lib/stdio_.h (__attribute__): New macro.
70332         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70333         vsprintf): Specify __attribute__ __format__ for GCC.
70334         Suggested by Eric Blake.
70335
70336 2007-03-09  Bruno Haible  <bruno@clisp.org>
70337
70338         * modules/printf-posix-tests: New file.
70339         * tests/test-printf-posix.sh: New file.
70340         * tests/test-printf-posix.c: New file.
70341
70342         * modules/printf-posix: New file.
70343         * lib/printf.c: New file.
70344         * m4/printf-posix-rpl.m4: New file.
70345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70346         REPLACE_PRINTF.
70347         * lib/stdio_.h (printf): New declaration.
70348         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70349         ____strfmon____): New macros.
70350         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70351         REPLACE_PRINTF.
70352
70353 2007-03-09  Bruno Haible  <bruno@clisp.org>
70354
70355         * tests/test-vasnprintf-posix2.sh: New file.
70356         * tests/test-vasnprintf-posix2.c: New file.
70357         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70358         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70359         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70360
70361         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70362         a locale dependent decimal point, rather than always '.'.
70363
70364 2007-03-09  Eric Blake  <ebb9@byu.net>
70365
70366         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70367         spite of platforms like Tandem/NSK that define it to -1.
70368
70369 2007-03-08  Bruno Haible  <bruno@clisp.org>
70370
70371         * modules/vprintf-posix-tests: New file.
70372         * tests/test-vprintf-posix.sh: New file.
70373         * tests/test-vprintf-posix.c: New file.
70374         * tests/test-printf-posix.h: New file.
70375
70376         * modules/vprintf-posix: New file.
70377         * lib/vprintf.c: New file.
70378         * m4/vprintf-posix.m4: New file.
70379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70380         REPLACE_VPRINTF.
70381         * lib/stdio_.h (vprintf): New declaration.
70382         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70383         REPLACE_VPRINTF.
70384
70385 2007-03-08  Bruno Haible  <bruno@clisp.org>
70386
70387         * modules/fprintf-posix-tests: New file.
70388         * tests/test-fprintf-posix.sh: New file.
70389         * tests/test-fprintf-posix.c: New file.
70390
70391         * modules/fprintf-posix: New file.
70392         * lib/fprintf.c: New file.
70393         * m4/fprintf-posix.m4: New file.
70394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70395         REPLACE_FPRINTF.
70396         * lib/stdio_.h (fprintf): New declaration.
70397         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70398         REPLACE_FPRINTF.
70399
70400 2007-03-08  Bruno Haible  <bruno@clisp.org>
70401
70402         * modules/vfprintf-posix-tests: New file.
70403         * tests/test-vfprintf-posix.sh: New file.
70404         * tests/test-vfprintf-posix.c: New file.
70405         * tests/test-fprintf-posix.h: New file.
70406         * tests/test-fprintf-posix.out: New file.
70407
70408         * modules/vfprintf-posix: New file.
70409         * lib/vfprintf.c: New file.
70410         * m4/vfprintf-posix.m4: New file.
70411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70412         REPLACE_VFPRINTF.
70413         * lib/stdio_.h (vfprintf): New declaration.
70414         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70415         REPLACE_VFPRINTF.
70416
70417 2007-03-08  Bruno Haible  <bruno@clisp.org>
70418
70419         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70420
70421 2007-03-08  Bruno Haible  <bruno@clisp.org>
70422
70423         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70424         instead of 'expr' invocations.
70425         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70426         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70427         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70429         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70430         Suggested by Paul Eggert.
70431
70432 2007-03-08  Bruno Haible  <bruno@clisp.org>
70433
70434         * modules/fseterr-tests: New file.
70435         * tests/test-fseterr.c: New file.
70436
70437         * modules/fseterr: New file.
70438         * lib/fseterr.h: New file.
70439         * lib/fseterr.c: New file.
70440
70441 2007-03-08  Bruno Haible  <bruno@clisp.org>
70442
70443         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70444         * lib/getopt_.h: Likewise.
70445         * lib/mbswidth.h: Likewise.
70446         * lib/setenv.h: Likewise.
70447         * lib/vasnprintf.h: Likewise.
70448         * lib/vasprintf.h: Likewise.
70449         * lib/verror.h: Likewise.
70450         * lib/xsetenv.h: Likewise.
70451         * lib/xvasprintf.h: Likewise.
70452
70453 2007-03-08  Jim Meyering  <jim@meyering.net>
70454
70455         * users.txt: Add parted.
70456
70457         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70458
70459 2007-03-07  Bruno Haible  <bruno@clisp.org>
70460
70461         * m4/printf.m4: Make the shell script snippets copy&pastable.
70462
70463 2007-03-02  Bruno Haible  <bruno@clisp.org>
70464
70465         * lib/netinet_in_.h: New file.
70466         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70467         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70468         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70469         (Depends-on): Add absolute-header.
70470         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70471         into netinet/in.h.
70472
70473 2007-03-03  Bruno Haible  <bruno@clisp.org>
70474
70475         * lib/sys_select_.h: New file.
70476         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70477         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70478         * modules/sys_select (Files): Add lib/sys_select_.h.
70479         (Depends-on): Add absolute-header.
70480         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70481         into sys/select.h.
70482
70483 2007-03-02  Bruno Haible  <bruno@clisp.org>
70484
70485         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70486         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70487         values.
70488         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70489         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70490         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70491         * modules/sys_socket (Depends-on): Add absolute-header.
70492         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70493         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70494         (Include): Remove requirement of inclusion of <sys/types.h>.
70495
70496 2007-03-02  Bruno Haible  <bruno@clisp.org>
70497
70498         * lib/byteswap_.h (bswap_32): Fix formula.
70499
70500 2007-03-06  Bruno Haible  <bruno@clisp.org>
70501
70502         * modules/sprintf-posix-tests: New file.
70503         * tests/test-sprintf-posix.c: New file.
70504
70505         * modules/sprintf-posix: New file.
70506         * lib/sprintf.c: New file.
70507         * m4/sprintf-posix.m4: New file.
70508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70509         REPLACE_SPRINTF.
70510         * lib/stdio_.h (sprintf): New declaration.
70511         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70512         REPLACE_SPRINTF.
70513
70514 2007-03-06  Bruno Haible  <bruno@clisp.org>
70515
70516         * modules/vsprintf-posix-tests: New file.
70517         * tests/test-vsprintf-posix.c: New file.
70518         * tests/test-sprintf-posix.h: New file.
70519
70520         * modules/vsprintf-posix: New file.
70521         * lib/vsprintf.c: New file.
70522         * m4/vsprintf-posix.m4: New file.
70523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70524         REPLACE_VSPRINTF.
70525         * lib/stdio_.h (vsprintf): New declaration.
70526         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70527         REPLACE_VSPRINTF.
70528
70529 2007-03-06  Bruno Haible  <bruno@clisp.org>
70530
70531         * modules/vsnprintf (Depend-on): Remove minmax.
70532
70533 2007-03-06  Bruno Haible  <bruno@clisp.org>
70534
70535         * modules/snprintf-posix-tests: New file.
70536         * tests/test-snprintf-posix.c: New file.
70537
70538         * modules/snprintf-posix: New file.
70539         * m4/snprintf-posix.m4: New file.
70540         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70541         gl_FUNC_SNPRINTF.
70542         (gl_FUNC_SNPRINTF): Invoke it.
70543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70544         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70545         is set.
70546         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70547
70548 2007-03-06  Bruno Haible  <bruno@clisp.org>
70549
70550         * modules/vsnprintf-posix-tests: New file.
70551         * tests/test-vsnprintf-posix.c: New file.
70552         * tests/test-snprintf-posix.h: New file.
70553
70554         * modules/vsnprintf-posix: New file.
70555         * m4/vsnprintf-posix.m4: New file.
70556         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70557         gl_FUNC_VSNPRINTF.
70558         (gl_FUNC_VSNPRINTF): Invoke it.
70559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70560         * lib/stdio_.h (vsnprintf): Define as a replacement if
70561         REPLACE_VSNPRINTF is set.
70562         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70563
70564 2007-03-06  Bruno Haible  <bruno@clisp.org>
70565
70566         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70568
70569 2007-03-06  Bruno Haible  <bruno@clisp.org>
70570
70571         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70572         (asinl): Declare also if HAVE_DECL_ASINL is set.
70573         (atanl): Declare also if HAVE_DECL_ATANL is set.
70574         (ceill): Declare also if HAVE_DECL_CEILL is set.
70575         (cosl): Declare also if HAVE_DECL_COSL is set.
70576         (expl): Declare also if HAVE_DECL_EXPL is set.
70577         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70578         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70579         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70580         (logl): Declare also if HAVE_DECL_LOGL is set.
70581         (sinl): Declare also if HAVE_DECL_SINL is set.
70582         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70583         (tanl): Declare also if HAVE_DECL_TANL is set.
70584         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70586         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70587         declaration of frexpl, ldexpl.
70588         * modules/printf-frexpl (Depends-on): Add math.
70589         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70590
70591 2007-03-05  Bruno Haible  <bruno@clisp.org>
70592
70593         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70594         frexpl and ldexpl are declared.
70595         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70596
70597 2007-03-05  Bruno Haible  <bruno@clisp.org>
70598
70599         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70600         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70601
70602 2007-03-05  Bruno Haible  <bruno@clisp.org>
70603
70604         * lib/stdio_.h: Include <stddef.h>.
70605
70606 2007-03-05  Bruno Haible  <bruno@clisp.org>
70607
70608         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
70609
70610 2007-03-05  Bruno Haible  <bruno@clisp.org>
70611
70612         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
70613         NetBSD 4, from Ralf Wildenhues.
70614
70615 2007-03-04  Bruno Haible  <bruno@clisp.org>
70616
70617         * lib/vasprintf.h: Update #if logic for the case when the functions
70618         exist but are overridden.
70619
70620 2007-03-04  Bruno Haible  <bruno@clisp.org>
70621
70622         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
70623         implementations: glibc-2.4 and MacOS X 10.3.
70624         * tests/test-vasnprintf-posix.c (test_function): Test also the case
70625         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
70626         * tests/test-vasprintf-posix.c (test_function): Likewise.
70627
70628 2007-03-04  Bruno Haible  <bruno@clisp.org>
70629
70630         * modules/vasprintf-posix-tests: New file.
70631         * tests/test-vasprintf-posix.c: New file.
70632
70633         * modules/vasprintf-posix: New file.
70634         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
70635         defined.
70636         * m4/vasprintf-posix.m4: New file.
70637         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
70638         gl_FUNC_VASPRINTF.
70639         (gl_FUNC_VASPRINTF): Invoke it.
70640         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
70641         here.
70642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
70643
70644 2007-03-04  Bruno Haible  <bruno@clisp.org>
70645
70646         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
70647         REPLACE_GETTIMEOFDAY.
70648         * modules/sys_time (Makefile.am): Likewise.
70649         * m4/sys_time_h.m4: Likewise.
70650         * m4/gettimeofday.m4: Likewise.
70651
70652 2007-03-04  Bruno Haible  <bruno@clisp.org>
70653
70654         * modules/vasnprintf-posix-tests: New file.
70655         * tests/test-vasnprintf-posix.c: New file.
70656
70657         * modules/vasnprintf-posix: New file.
70658         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
70659         printf-frexpl.h.
70660         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
70661         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
70662         REPLACE_VASNPRINTF is defined.
70663         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
70664         gl_FUNC_VASNPRINTF.
70665         (gl_FUNC_VASNPRINTF): Invoke it.
70666         * m4/vasnprintf-posix.m4: New file.
70667         * m4/printf.m4: New file.
70668
70669 2007-03-04  Bruno Haible  <bruno@clisp.org>
70670
70671         Compile progreloc.c only if --enable-relocatable is specified.
70672         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
70673         if --enable-relocatable was specified.
70674         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
70675         lib_SOURCES.
70676
70677 2007-03-04  Jim Meyering  <jim@meyering.net>
70678
70679         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
70680         Use it consistently, rather than enumerating errno constants.
70681
70682 2007-03-04  Bruno Haible  <bruno@clisp.org>
70683
70684         * modules/xvasprintf-tests: New file.
70685         * tests/test-xvasprintf.c: New file.
70686
70687         * modules/vasprintf-tests: New file.
70688         * tests/test-vasprintf.c: New file.
70689
70690         * modules/vasnprintf-tests: New file.
70691         * tests/test-vasnprintf.c: New file.
70692
70693         * modules/vsnprintf-tests: New file.
70694         * tests/test-vsnprintf.c: New file.
70695
70696         * modules/snprintf-tests: New file.
70697         * tests/test-snprintf.c: New file.
70698
70699 2007-03-04  Bruno Haible  <bruno@clisp.org>
70700
70701         Compile relocatable.c only if --enable-relocatable is specified.
70702         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
70703         gl_RELOCATABLE_LIBRARY.
70704         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
70705         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
70706         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
70707         gl_RELOCATABLE_LIBRARY.
70708         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
70709         (Makefile.am): Remove lib_SOURCES.
70710         * modules/relocatable-lib-lgpl (configure.ac): Invoke
70711         gl_RELOCATABLE_LIBRARY.
70712         (Makefile.am): Remove lib_SOURCES.
70713         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
70714         always.
70715         * modules/relocatable-prog-wrapper (configure.ac): Invoke
70716         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
70717
70718 2007-03-04  Bruno Haible  <bruno@clisp.org>
70719
70720         * modules/argmatch-tests: New file.
70721         * tests/test-argmatch.c: New file.
70722
70723         * tests/test-allocsa.c (main): Halve the number of loop runs.
70724
70725         * modules/alloca-opt-tests: New file.
70726         * tests/test-alloca-opt.c: New file.
70727
70728 2007-03-04  Jim Meyering  <jim@meyering.net>
70729
70730         Work around difference between Linux ACLs and Solaris 10 ZFS.
70731         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
70732         for EINVAL.
70733
70734 2007-03-03  Bruno Haible  <bruno@clisp.org>
70735
70736         * modules/relocatable-prog (Depends-on): Add back progreloc's
70737         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
70738
70739 2007-03-03  Bruno Haible  <bruno@clisp.org>
70740
70741         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
70742         * modules/relocatable-lib: New file.
70743
70744 2007-03-03  Bruno Haible  <bruno@clisp.org>
70745
70746         * modules/relocatable-prog: Renamed from modules/relocatable.
70747         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
70748
70749 2007-03-03  Bruno Haible  <bruno@clisp.org>
70750
70751         * modules/relocatable-script (Files): Add doc/relocatable.texi,
70752         m4/relocatable-lib.m4.
70753         (Depends-on): Remove 'relocatable'.
70754         (configure.ac): Add gl_RELOCATABLE_NOP.
70755
70756 2007-03-03  Bruno Haible  <bruno@clisp.org>
70757
70758         * modules/relocatable-prog-wrapper: New file.
70759         * modules/relocatable (Depends-on): Add it. Remove all other
70760         dependencies except progname.
70761         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
70762
70763         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
70764         (gl_FUNC_STRERROR): Nop.
70765         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
70766
70767         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
70768         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
70769
70770         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
70771         (gl_FUNC_READLINK): Update.
70772
70773         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
70774
70775 2007-03-03  Bruno Haible  <bruno@clisp.org>
70776
70777         * lib/xreadlink.c: Include <unistd.h> unconditionally.
70778         * modules/xreadlink (Depends-on): Add unistd.
70779         * modules/xreadlink-with-size (Depends-on): Likewise.
70780
70781 2007-03-03  Bruno Haible  <bruno@clisp.org>
70782
70783         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
70784         extracted from gt_FUNC_SETENV.
70785         (gt_FUNC_SETENV): Remove macro.
70786         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
70787         remove gt_FUNC_SETENV.
70788
70789 2007-03-03  Bruno Haible  <bruno@clisp.org>
70790
70791         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
70792         ENABLE_RELOCATABLE here.
70793         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
70794
70795 2007-03-03  Bruno Haible  <bruno@clisp.org>
70796
70797         * modules/rbtreehash-list-tests (Depends-on): Add progname.
70798         * tests/test-rbtreehash_list.c: Include progname.h.
70799         (main): Call set_program_name.
70800
70801         * modules/rbtree-oset-tests (Depends-on): Add progname.
70802         * tests/test-rbtree_oset.c: Include progname.h.
70803         (main): Call set_program_name.
70804
70805         * modules/rbtree-list-tests (Depends-on): Add progname.
70806         * tests/test-rbtree_list.c: Include progname.h.
70807         (main): Call set_program_name.
70808
70809         * modules/linked-list-tests (Depends-on): Add progname.
70810         * tests/test-linked_list.c: Include progname.h.
70811         (main): Call set_program_name.
70812
70813 2007-03-03  Bruno Haible  <bruno@clisp.org>
70814
70815         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
70816         All uses of __restrict changed to _Restrict_.
70817         * lib/glob_.h (__restrict): Remove macro.
70818
70819 2007-03-02  Bruno Haible  <bruno@clisp.org>
70820
70821         * modules/gettext (configure.ac): Require gettext infrastructure
70822         from version 0.16.1.
70823
70824 2007-03-02  Bruno Haible  <bruno@clisp.org>
70825
70826         * modules/linkedhash-list-tests (Depends-on): Add progname.
70827         * tests/test-linkedhash_list.c: Include progname.h.
70828         (main): Call set_program_name.
70829
70830         * modules/carray-list-tests (Depends-on): Add progname.
70831         * tests/test-carray_list.c: Include progname.h.
70832         (main): Call set_program_name.
70833
70834         * modules/avltreehash-list-tests (Depends-on): Add progname.
70835         * tests/test-avltreehash_list.c: Include progname.h.
70836         (main): Call set_program_name.
70837
70838         * modules/avltree-oset-tests (Depends-on): Add progname.
70839         * tests/test-avltree_oset.c: Include progname.h.
70840         (main): Call set_program_name.
70841
70842         * modules/avltree-list-tests (Depends-on): Add progname.
70843         * tests/test-avltree_list.c: Include progname.h.
70844         (main): Call set_program_name.
70845
70846         * modules/array-oset-tests (Depends-on): Add progname.
70847         * tests/test-array_oset.c: Include progname.h.
70848         (main): Call set_program_name.
70849
70850         * modules/array-list-tests (Depends-on): Add progname.
70851         * tests/test-array_list.c: Include progname.h.
70852         (main): Call set_program_name.
70853
70854         * modules/argp-tests (Depends-on): Add progname.
70855         * tests/test-argp.c: Include argp.h first. Include progname.h.
70856         (main): Call set_program_name.
70857
70858 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
70859
70860         * doc/gnulib-tool.texi (Initial import): Reword description of
70861         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
70862         limited effect even if defined after the first system include.
70863
70864 2007-03-01  Bruno Haible  <bruno@clisp.org>
70865
70866         * build-aux/config.libpath: Update to libtool-1.5.22.
70867         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70868
70869 2007-03-01  Bruno Haible  <bruno@clisp.org>
70870
70871         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
70872         foo_CFLAGS.
70873         Reported by Ralf Wildenhues.
70874
70875 2007-03-01  Bruno Haible  <bruno@clisp.org>
70876
70877         * build-aux/install-reloc: Remove object files left over by some
70878         compilers.
70879         Reported by Ralf Wildenhues.
70880
70881 2007-03-01  Bruno Haible  <bruno@clisp.org>
70882
70883         * build-aux/install-reloc: Break long lines.
70884
70885 2007-03-01  Bruno Haible  <bruno@clisp.org>
70886
70887         * doc/relocatable.texi: Document that it may not work on OpenBSD.
70888         Reported by Ralf Wildenhues.
70889
70890 2007-03-01  Bruno Haible  <bruno@clisp.org>
70891
70892         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
70893         include ordering constraints.
70894
70895 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
70898         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
70899         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
70900         as another example.
70901         * lib/time_.h: Fix misspelling.
70902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70903         Require gl_HEADER_TIME_H_DEFAULTS.
70904         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
70905         * m4/time_r.m4 (gl_TIME_R): Likewise.
70906         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
70907
70908 2007-03-01  Bruno Haible  <bruno@clisp.org>
70909
70910         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
70911         * m4/utimens.m4 (gl_UTIMENS): Likewise.
70912
70913 2007-03-01  Jim Meyering  <jim@meyering.net>
70914
70915         * modules/xreadlink (Maintainer): Add my name.
70916         * modules/xreadlink-with-size (Depends-on): Alphabetize.
70917
70918 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
70919             Bruno Haible  <bruno@clisp.org>
70920
70921         * build-aux/install-reloc: Compile also c-ctype.c.
70922         * build-aux/relocatable.sh.in: New file.
70923         * doc/relocatable.texi: New file.
70924         * doc/relocatable-maint.texi: New file.
70925         * doc/gnulib.texi: Include relocatable-maint.texi.
70926         * lib/progreloc.c: Include unistd.h unconditionally.
70927         * lib/relocwrapper.c: Include unistd.h unconditionally.
70928         Include c-ctype.h.
70929         (add_dotbin): Use c_tolower.
70930         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
70931         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
70932         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
70933         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
70934         to m4/relocatable-lib.m4.
70935         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
70936         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
70937         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
70938         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
70939         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
70940         * modules/relocatable: New file.
70941         * modules/relocatable-lib: New file.
70942         * modules/relocatable-script: New file.
70943
70944 2007-02-28  Bruno Haible  <bruno@clisp.org>
70945
70946         Import --enable-relocatable infrastructure.
70947         * build-aux/config.libpath: New file, from GNU gettext.
70948         * build-aux/install-reloc: New file, from GNU gettext.
70949         * build-aux/reloc-ldflags: New file, from GNU gettext.
70950         * lib/relocatable.h: New file, from GNU gettext.
70951         * lib/relocatable.c: New file, from GNU gettext.
70952         * lib/relocwrapper.c: New file, from GNU gettext.
70953         * m4/relocatable.m4: New file, from GNU gettext.
70954
70955 2007-02-28  Bruno Haible  <bruno@clisp.org>
70956
70957         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
70958
70959         * modules/xreadlink: New file, from GNU gettext with modifications.
70960         * lib/xreadlink.c: New file, from GNU gettext.
70961         * lib/xreadlink.h: Add comments.
70962         (xreadlink): New declaration.
70963
70964         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
70965         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
70966         lib/xreadlink-with-size.c.
70967         (configure.ac): Remove gl_XREADLINK invocation.
70968         (Makefile.am): Augment lib_SOURCES.
70969         * m4/xreadlink.m4: Remove file.
70970         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
70971         (xreadlink_with_size): Renamed from xreadink.
70972         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
70973         * modules/canonicalize (Depends-on): Replace xreadlink with
70974         xreadlink-with-size.
70975         * lib/canonicalize.c (canonicalize_filename_mode): Update.
70976
70977 2007-02-25  Jim Meyering  <jim@meyering.net>
70978
70979         * build-aux/announce-gen: When complaining about excess arguments,
70980         list them.
70981
70982 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70983
70984         * README: Document signed integer overflow situation more
70985         accurately.
70986
70987 2007-02-25  Bruno Haible  <bruno@clisp.org>
70988
70989         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
70990         'a' or 'A' conversion.
70991
70992 2007-02-25  Bruno Haible  <bruno@clisp.org>
70993
70994         * modules/filename: Renamed from modules/pathname.
70995         (Files): Replace lib/pathname.h with lib/filename.h. Replace
70996         lib/concatpath.c with lib/concat-filename.c.
70997         (Makefile.am): Update.
70998         (Include): Replace pathname.h with filename.h.
70999         * lib/filename.h: Renamed from lib/pathname.h.
71000         (concatenated_filename): Renamed from concatenated_pathname.
71001         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71002         (concatenated_filename): Renamed from concatenated_pathname.
71003         * lib/findprog.c: Include filename.h instead of pathname.h.
71004         (find_in_path): Update.
71005         * lib/javacomp.c: Include filename.h instead of pathname.h.
71006         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71007         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71008         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71009         is_oldgcj_14_13_usable, is_javac_usable): Update.
71010         * lib/javaexec.c: Include filename.h instead of pathname.h.
71011         (execute_java_class): Update.
71012         * modules/findprog: Update.
71013         * modules/javacomp: Update.
71014         * modules/javaexec: Update.
71015         * MODULES.html.sh (File system functions): Add 'filename', remove
71016         'pathname'.
71017
71018 2007-02-25  Bruno Haible  <bruno@clisp.org>
71019
71020         * modules/printf-frexpl-tests: New file.
71021         * tests/test-printf-frexpl.c: New file.
71022
71023         * modules/printf-frexpl: New file.
71024         * lib/printf-frexpl.h: New file.
71025         * lib/printf-frexpl.c: New file.
71026         * m4/printf-frexpl.m4: New file.
71027
71028 2007-02-25  Bruno Haible  <bruno@clisp.org>
71029
71030         * modules/printf-frexp-tests: New file.
71031         * tests/test-printf-frexp.c: New file.
71032
71033         * modules/printf-frexp: New file.
71034         * lib/printf-frexp.h: New file.
71035         * lib/printf-frexp.c: New file.
71036         * m4/printf-frexp.m4: New file.
71037
71038 2007-02-25  Bruno Haible  <bruno@clisp.org>
71039
71040         Assume automake >= 1.10 for the tests.
71041         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71042         * modules/arctwo-tests: Likewise.
71043         * modules/argp-tests: Likewise.
71044         * modules/avltree-list-tests: Likewise.
71045         * modules/avltree-oset-tests: Likewise.
71046         * modules/avltreehash-list-tests: Likewise.
71047         * modules/carray-list-tests: Likewise.
71048         * modules/crc-tests: Likewise.
71049         * modules/des-tests: Likewise.
71050         * modules/gc-arcfour-tests: Likewise.
71051         * modules/gc-arctwo-tests: Likewise.
71052         * modules/gc-des-tests: Likewise.
71053         * modules/gc-hmac-md5-tests: Likewise.
71054         * modules/gc-hmac-sha1-tests: Likewise.
71055         * modules/gc-md2-tests: Likewise.
71056         * modules/gc-md4-tests: Likewise.
71057         * modules/gc-md5-tests: Likewise.
71058         * modules/gc-pbkdf2-sha1-tests: Likewise.
71059         * modules/gc-rijndael-tests: Likewise.
71060         * modules/gc-sha1-tests: Likewise.
71061         * modules/gc-tests: Likewise.
71062         * modules/getaddrinfo-tests: Likewise.
71063         * modules/hmac-md5-tests: Likewise.
71064         * modules/hmac-sha1-tests: Likewise.
71065         * modules/linked-list-tests: Likewise.
71066         * modules/linkedhash-list-tests: Likewise.
71067         * modules/lock-tests: Likewise.
71068         * modules/md2-tests: Likewise.
71069         * modules/md4-tests: Likewise.
71070         * modules/md5-tests: Likewise.
71071         * modules/rbtree-list-tests: Likewise.
71072         * modules/rbtree-oset-tests: Likewise.
71073         * modules/rbtreehash-list-tests: Likewise.
71074         * modules/read-file-tests: Likewise.
71075         * modules/rijndael-tests: Likewise.
71076         * modules/stdint-tests: Likewise.
71077         * modules/tls-tests: Likewise.
71078
71079 2007-02-24  Bruno Haible  <bruno@clisp.org>
71080
71081         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71082         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71083         function; instead check whether isnan with a double argument links.
71084         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71085         function; instead check whether isnan with a 'long double' argument
71086         links.
71087         Reported by Eric Blake <ebb9@byu.net>.
71088
71089 2007-02-24  Bruno Haible  <bruno@clisp.org>
71090
71091         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71092         defined.
71093         * lib/isnanl.c: Remove all code. Just include isnan.c.
71094         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71095
71096 2007-02-25  Jim Meyering  <jim@meyering.net>
71097
71098         Avoid conflicting types for 'unsetenv' on FreeBSD.
71099         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71100         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71101         in stdlib.h.
71102
71103 2007-02-24  Bruno Haible  <bruno@clisp.org>
71104
71105         * modules/isnanl-nolibm-tests: New file.
71106         * tests/test-isnanl.c: New file.
71107
71108         * modules/isnanl-nolibm: New file.
71109         * lib/isnanl.h: New file.
71110         * lib/isnanl.c: New file.
71111         * m4/isnanl.m4: New file.
71112
71113 2007-02-24  Bruno Haible  <bruno@clisp.org>
71114
71115         * modules/isnan-nolibm-tests: New file.
71116         * tests/test-isnan.c: New file.
71117
71118         * modules/isnan-nolibm: New file.
71119         * lib/isnan.h: New file.
71120         * lib/isnan.c: New file.
71121         * m4/isnan.m4: New file.
71122
71123 2007-02-24  Bruno Haible  <bruno@clisp.org>
71124
71125         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71126         assume that an exponent fits in 20 bits.
71127
71128 2007-02-24  Jim Meyering  <jim@meyering.net>
71129
71130         * m4/regex.m4: Update the description of the configure-time option,
71131         --without-included-regex, to state accurately what the defaults are,
71132         and perhaps to give people an idea why using this option is risky.
71133
71134 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71135
71136         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71137         loops on small arguments.  This attempts to avoid the problem
71138         Bruno Haible reported for AIX 4.3.2 in
71139         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71140
71141 2007-02-23  Bruno Haible  <bruno@clisp.org>
71142
71143         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71144         Needed for help2man.
71145
71146 2007-02-23  Karl Berry  <karl@gnu.org>
71147
71148         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71149         exists, foo.h should be cvs-ignored, not committed.
71150
71151 2007-02-23  Eric Blake  <ebb9@byu.net>
71152
71153         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71154         * lib/stat-time.h (includes): Likewise.
71155         * lib/utimecmp.c (includes): Likewise.
71156         * lib/utimens.h (includes): Likewise.
71157         * lib/getdate.y (includes): Also include "timespec.h" for use
71158         internal to the module.
71159         * modules/utimens (Depends-on): Revert yesterday's patch.
71160         * modules/nanosleep (Depends-on): Add missing dependency.
71161
71162 2007-02-22  Bruno Haible  <bruno@clisp.org>
71163
71164         * lib/glob.c: Don't include getlogin_r.h.
71165
71166 2007-02-22  Jim Meyering  <jim@meyering.net>
71167
71168         * modules/utimens (Depends-on): Add timespec, required for
71169         utimens.h's inclusion of timespec.h.
71170
71171 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71172
71173         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71174         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71175         Schwab in
71176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71177         I'll try to think of a better way to fix the Solaris problem.
71178
71179         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71180         like glibc; on Solaris 10, it fails with errno == EINVAL.
71181         POSIX says the behavior is unspecified if the first argument is NULL,
71182         so play it safe and never pass NULL to the system getcwd.
71183
71184 2007-02-21  Jim Meyering  <jim@meyering.net>
71185
71186         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71187         of gettimeofday.  It would conflict with the one now always
71188         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71189         an IRIX 6.5 build failure.
71190
71191 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71192
71193         Minor fixups to port to Solaris 10 with Sun C 5.8.
71194         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71195         * modules/getcwd (Depends-on): Add dirfd.
71196         * lib/putenv.c (putenv): #undef it.
71197         (rpl_putenv): New decl.
71198         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71199
71200 2007-02-20  Bruno Haible  <bruno@clisp.org>
71201
71202         * modules/stdio-tests: New file.
71203         * tests/test-stdio.c: New file.
71204
71205         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71206         (Depends-on): Add stdio.
71207         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71208         (Include): Use <stdio.h> instead of vsnprintf.h.
71209         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71210         HAVE_DECL_VSNPRINTF.
71211         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71212
71213         * modules/snprintf (Files): Remove lib/snprintf.h.
71214         (Depends-on): Add stdio.
71215         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71216         (Include): Use <stdio.h> instead of snprintf.h.
71217         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71218         HAVE_DECL_SNPRINTF.
71219         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71220         * lib/getaddrinfo.c: Likewise.
71221
71222         * modules/stdio: New file.
71223         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71224         * lib/snprintf.h: Remove file.
71225         * lib/vsnprintf.h: Remove file.
71226         * lib/.cppi-disable: Remove snprintf.h.
71227         * m4/stdio_h.m4: New file.
71228         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71229
71230 2007-02-20  Jim Meyering  <jim@meyering.net>
71231
71232         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71233         used by e.g., mingw.  From Bruno Haible.
71234
71235 2007-02-19  Bruno Haible  <bruno@clisp.org>
71236
71237         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71238         warnings.
71239         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71240
71241 2007-02-19  Bruno Haible  <bruno@clisp.org>
71242
71243         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71244         from mingw users.
71245
71246 2007-02-19  Bruno Haible  <bruno@clisp.org>
71247
71248         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71249         warnings.
71250         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71251
71252 2007-02-19  Jim Meyering  <jim@meyering.net>
71253
71254         Don't use FD after a successful "fdopendir (fd)".
71255         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71256         Reset it by calling dirfd on the just-obtained DIR*.
71257
71258         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71259         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71260
71261 2007-02-18  Bruno Haible  <bruno@clisp.org>
71262
71263         * lib/readlink.c: Include <unistd.h>.
71264         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71265         HAVE_READLINK.
71266         * modules/readlink (Depends-on): Add unistd.
71267         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71268         (Include): Add <unistd.h>.
71269
71270         * lib/getlogin_r.h: Remove file.
71271         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71272         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71273         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71274         HAVE_DECL_GETLOGIN_R.
71275         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71276         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71277         (Include): Use <unistd.h> instead of getlogin_r.h.
71278
71279         * lib/getcwd.h: Remove file.
71280         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71281         * lib/xgetcwd.c: Likewise.
71282         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71283         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71284         * modules/getcwd (Files): Remove lib/getcwd.h.
71285         (Depends-on): Add unistd.
71286         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71287         (Include): Use <unistd.h> instad of getcwd.h.
71288
71289         * lib/ftruncate.c: Include <unistd.h> first.
71290         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71291         Set HAVE_FTRUNCATE.
71292         * modules/ftruncate (Depends-on): Add unistd.
71293         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71294
71295         * lib/fchdir.c: Include <unistd.h> first.
71296         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71298         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71299         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71300         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71301
71302         * lib/dup2.c: Include <unistd.h> first.
71303         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71304         HAVE_DUP2.
71305         * modules/dup2 (Depends-on): Add unistd.
71306         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71307
71308         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71309         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71310         REPLACE_CHOWN. Don't define chown as a macro here.
71311         * modules/chown (Depends-on): Add unistd.
71312         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71313
71314         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71315         Add definition for GL_LINK_WARNING.
71316         (chown, dup2): New declarations.
71317         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71318         link warning.
71319         (ftruncate): New declaration.
71320         (getcwd): New declaration, taken from old getcwd.h.
71321         (getlogin_r): New declaration, taken from old getlogin_r.h.
71322         (readlink): New declaration.
71323         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71324         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71325         (gl_PREREQ_UNISTD): Remove macro.
71326         (gl_UNISTD_MODULE_INDICATOR): New macro.
71327         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71328         many new variables. Don't set UNISTD_H.
71329         * modules/unistd (Description): Change.
71330         (Depends-on): Add link-warning.
71331         (configure.ac): Update.
71332         (Makefile.am): Create unistd.h always. Substitute many new variables
71333         into it.
71334
71335 2007-02-18  Bruno Haible  <bruno@clisp.org>
71336
71337         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71338         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71339         HAVE_GETSUBOPT.
71340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71341         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71342         * lib/getsubopt.h: Remove file.
71343         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71344         (Depends-on): Add stdlib.
71345         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71346         (Includes): Use <stdlib.h> instead of getsubopt.h.
71347         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71348         Set HAVE_GETSUBOPT.
71349         * lib/getsubopt.c: Don't include getsubopt.h.
71350
71351 2007-02-18  Bruno Haible  <bruno@clisp.org>
71352
71353         * modules/fchdir (Depends-on): Add dup2.
71354
71355 2007-02-18  Bruno Haible  <bruno@clisp.org>
71356
71357         * lib/stdlib_.h: Handle glibc's special invocation convention
71358         specially.
71359
71360 2007-02-18  Bruno Haible  <bruno@clisp.org>
71361
71362         * modules/stdlib-tests: New file.
71363         * tests/test-stdlib.c: New file.
71364
71365         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71366         (Depends-on): Add stdlib.
71367         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71368         (Includes): Use <stdlib.h> instead of mkstemp.h.
71369         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71370         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71371         * lib/mkstemp.c: Don't include mkstemp.h.
71372         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71373         * lib/stdlib--.h: Don't include mkstemp.h.
71374
71375         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71376         (Depends-on): Add stdlib.
71377         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71378         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71379         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71380         HAVE_MKDTEMP.
71381         * lib/mkdtemp.c: Don't include mkdtemp.h.
71382         * lib/clean-temp.c: Don't include mkdtemp.h.
71383
71384         * modules/exit (Files): Remove lib/exit.h.
71385         (Depends-on): Add stdlib.
71386         (Makefile.am): Remove lib_SOURCES.
71387         (Include): Use <stdlib.h> instead of exit.h.
71388         * lib/argmatch.c: Don't include exit.h.
71389         * lib/execute.c: Likewise.
71390         * lib/pagealign_alloc.c: Likewise.
71391         * lib/pipe.c: Likewise.
71392         * lib/wait-process.c: Likewise.
71393         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71394         * lib/exitfail.c: Likewise.
71395         * lib/savewd.c: Likewise.
71396         * lib/xsetenv.c: Likewise.
71397
71398         * modules/stdlib: New file.
71399         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71400         and extra comments about mkstemp().
71401         * lib/exit.h: Remove file.
71402         * lib/mkdtemp.h: Remove file.
71403         * lib/mkstemp.h: Remove file.
71404         * m4/stdlib_h.m4: New file.
71405         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71406
71407 2007-02-18  Bruno Haible  <bruno@clisp.org>
71408
71409         * modules/math-tests: New file.
71410         * tests/test-math.c: New file.
71411
71412         * modules/math: New file.
71413         * modules/mathl (Files): Remove lib/mathl.h.
71414         (Depends-on): Add math.
71415         (Makefile.am): Don't mention mathl.h.
71416         (Include): Use <math.h> instead of mathl.h.
71417         * lib/math_.h: New file.
71418         * lib/mathl.h: Remove file.
71419         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71420         mathl.h.
71421         * lib/asinl.c: Likewise.
71422         * lib/atanl.c: Likewise.
71423         * lib/ceill.c: Likewise.
71424         * lib/cosl.c: Likewise.
71425         * lib/expl.c: Likewise.
71426         * lib/floorl.c: Likewise.
71427         * lib/frexpl.c: Likewise.
71428         * lib/ldexpl.c: Likewise.
71429         * lib/logl.c: Likewise.
71430         * lib/sincosl.c: Likewise.
71431         * lib/sinl.c: Likewise.
71432         * lib/sqrtl.c: Likewise.
71433         * lib/tanl.c: Likewise.
71434         * lib/trigl.c: Likewise.
71435         * m4/math_h.m4: New file.
71436         * MODULES.html.sh (Mathematics): Add math.
71437
71438 2007-02-17  Bruno Haible  <bruno@clisp.org>
71439
71440         * modules/wctype-tests: New file.
71441         * tests/test-wctype.c: New file.
71442
71443         * modules/wchar-tests: New file.
71444         * tests/test-wchar.c: New file.
71445
71446         * modules/unistd-tests: New file.
71447         * tests/test-unistd.c: New file.
71448
71449         * modules/time-tests: New file.
71450         * tests/test-time.c: New file.
71451
71452         * modules/sysexits-tests: New file.
71453         * tests/test-sysexits.c: New file.
71454
71455         * modules/sys_time-tests: New file.
71456         * tests/test-sys_time.c: New file.
71457
71458         * modules/sys_stat-tests: New file.
71459         * tests/test-sys_stat.c: New file.
71460
71461         * modules/sys_socket-tests: New file.
71462         * tests/test-sys_socket.c: New file.
71463
71464         * modules/sys_select-tests: New file.
71465         * tests/test-sys_select.c: New file.
71466
71467         * modules/string-tests: New file.
71468         * tests/test-string.c: New file.
71469
71470         * modules/stdbool-tests: New file.
71471         * tests/test-stdbool.c: New file.
71472
71473         * modules/netinet_in-tests: New file.
71474         * tests/test-netinet_in.c: New file.
71475
71476         * modules/inttypes-tests: New file.
71477         * tests/test-inttypes.c: New file.
71478
71479         * modules/fcntl-tests: New file.
71480         * tests/test-fcntl.c: New file.
71481
71482         * modules/byteswap-tests: New file.
71483         * tests/test-byteswap.c: New file.
71484
71485         * modules/arpa_inet-tests: New file.
71486         * tests/test-arpa_inet.c: New file.
71487
71488 2007-02-17  Bruno Haible  <bruno@clisp.org>
71489
71490         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71491         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71492         if the corresponding module is not enabled. Emit link warnings if
71493         the function is used nevertheless.
71494         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71495         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71496         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71497         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71498         * modules/inttypes (Depends-on): Add link-warning.
71499         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71500         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71501         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71502         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71503         * modules/imaxdiv (configure.ac): Likewise.
71504         * modules/strtoimax (configure.ac): Likewise.
71505         * modules/strtoumax (configure.ac): Likewise.
71506
71507 2007-02-17  Bruno Haible  <bruno@clisp.org>
71508
71509         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71510         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71511         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71512         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71513
71514 2007-02-17  Bruno Haible  <bruno@clisp.org>
71515
71516         * modules/link-warning: New file.
71517         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71518         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71519         * modules/string (Depends-on): Add link-warning.
71520         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71521         string.h.
71522         * MODULES.html.sh (Support for building libraries and executables): Add
71523         link-warning.
71524
71525 2007-02-17  Bruno Haible  <bruno@clisp.org>
71526
71527         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71528         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71529         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71530         long lines.
71531
71532 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71533             Bruno Haible  <bruno@clisp.org>
71534
71535         * modules/tmpfile: New file.
71536         * lib/tmpfile.c: New file.
71537         * m4/tmpfile.m4: New file.
71538         * MODULES.html.sh (func_all_modules): New section "Input/output".
71539
71540 2007-02-15  Bruno Haible  <bruno@clisp.org>
71541
71542         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71543         (supports_delete_on_close): New function.
71544         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71545
71546 2007-02-14  Bruno Haible  <bruno@clisp.org>
71547
71548         * modules/mbspcasecmp-tests: New file.
71549         * tests/test-mbspcasecmp.sh: New file.
71550         * tests/test-mbspcasecmp.c: New file.
71551
71552         New module mbspcasecmp.
71553         * modules/mbspcasecmp: New file.
71554         * lib/mbspcasecmp.c: New file.
71555         * lib/string_.h (strncasecmp): Change warning message.
71556         (mbspcasecmp): New declaration.
71557         * m4/mbspcasecmp.m4: New file.
71558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71559         GNULIB_MBSPCASECMP.
71560         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71561         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71562
71563 2007-02-14  Bruno Haible  <bruno@clisp.org>
71564
71565         * modules/mbsncasecmp-tests: New file.
71566         * tests/test-mbsncasecmp.sh: New file.
71567         * tests/test-mbsncasecmp.c: New file.
71568
71569         New module mbsncasecmp.
71570         * modules/mbsncasecmp: New file.
71571         * lib/mbsncasecmp.c: New file.
71572         * lib/string_.h (mbsncasecmp): New declaration.
71573         * m4/mbsncasecmp.m4: New file.
71574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71575         GNULIB_MBSNCASECMP.
71576         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71577         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71578
71579 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71580
71581         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71582         Verify that it doesn't overlap with our flags.
71583         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71584         do not have the desired effect in multibyte locales; instead, use
71585         mbscasecmp.
71586         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71587         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71588         we don't require GNU fnmatch ourselves (if our users require it, they
71589         should do so explicitly).
71590
71591         Fix regex code so it doesn't rely on strcasecmp.
71592         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71593         Otherwise, include gnulib's langinfo.h.
71594         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71595         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71596         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71597         * modules/regex (FILES): Remove m4/codeset.m4.
71598         (Depends-on): Add localcharset.  Remove strcase.
71599
71600 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71601
71602         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
71603         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
71604
71605 2007-02-13  Bruno Haible  <bruno@clisp.org>
71606
71607         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
71608         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71609
71610 2007-02-12  Bruno Haible  <bruno@clisp.org>
71611
71612         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71613         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
71614         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
71615         time warning rather than a link error.
71616
71617 2007-02-12  Bruno Haible  <bruno@clisp.org>
71618
71619         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
71620         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
71621         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71622
71623 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71624
71625         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
71626         args, not 2.
71627
71628 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71629
71630         New module 'time', so that apps can include <time.h> as per
71631         POSIX and GNU instead of separate include files like time_r.h
71632         and timegm.h.  This implementation tries out a simpler approach
71633         for replacing decls in standard include files (as compared to
71634         the string module), somewhat as an experiment.
71635
71636         * config/srclist.txt: Comment out mktime.c for now.
71637         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
71638         since it doesn't apply any more.  Use generic wording instead.
71639         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
71640         'time'.
71641         * lib/time_.h, m4/time_h.m4, modules/time: New files.
71642         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
71643         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
71644         Don't include <sys/types.h>; no longer needed since we assume C89.
71645         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
71646         * lib/strftime.c: Likewise.
71647         * lib/time_r.c: Likewise.
71648         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
71649         * lib/nanosleep.c: Include <time.h> first, to check interface.
71650         * lib/strptime.c: Likewise.
71651         * lib/time_r.c: Likewise.
71652         * lib/timegm.c: Likewise.
71653         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
71654         needed.
71655         * lib/timegm.c: Don't include timegm.h; no longer needed.
71656         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
71657         time.h now handles any problems in that area.
71658         (struct timespec, nanosleep): Remove; time.h now arranges for these.
71659         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
71660         that time.h defines struct timespec.
71661         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
71662         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
71663         handles that.
71664         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
71665         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
71666         needed.  Set REPLACE_LOCALTIME.
71667         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
71668         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
71669         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
71670         nanosleep; time_h.m4 now does that.  Don't require
71671         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
71672         module handles this now.
71673         * modules/getdate (Depends-on): Remove timespec.  Add time.
71674         * modules/nanosleep (Depends-on): Likewise.
71675         * modules/stat-time (Depends-on): Likewise.
71676         * modules/nanosleep (Include): Include time.h, not timespec.h.
71677         * modules/strptime (Files): Remove lib/strptime.h.
71678         (Depends-on): Add extensions, time.
71679         (Include): Include time.h, not strptime.h.
71680         * modules/time_r (Files): Remove lib/time_r.h.
71681         (Depends-on): Add time.
71682         (Include): Include time.h, not time_r.h.
71683         * modules/timegm: Likewise.
71684         * modules/timespec (Description): Now does timespec-related decls
71685         of our own, instead of struct timespec itself.
71686         (Depends-on): Add time; remove extensions.
71687         (Maintainer): Add self.
71688         * modules/utimecmp (Depends-on): Add time; remove timespec.
71689         * modules/utimens (Depends-on): Likewise.
71690         * modules/xnanosleep (Depends-on): Likewise.
71691
71692 2007-02-11  Bruno Haible  <bruno@clisp.org>
71693
71694         * lib/c-strstr.c: Include allocsa.h.
71695         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71696         * lib/c-strcasestr.c: Include allocsa.h.
71697         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71698         * lib/strcasestr.c: Include allocsa.h.
71699         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71700         * lib/mbsstr.c: Include allocsa.h.
71701         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71702         allocsa/freesa instead of malloc/free.
71703         * lib/mbscasestr.c: Include allocsa.h.
71704         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71705         allocsa/freesa instead of malloc/free.
71706         * modules/c-strstr (Depends-on): Add allocsa.
71707         * modules/c-strcasestr (Depends-on): Likewise.
71708         * modules/strcasestr (Depends-on): Likewise.
71709         * modules/mbsstr (Depends-on): Likewise.
71710         * modules/mbscasestr (Depends-on): Likewise.
71711
71712 2007-02-11  Bruno Haible  <bruno@clisp.org>
71713
71714         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
71715
71716         * modules/mbsspn-tests: New file.
71717         * tests/test-mbsspn.sh: New file.
71718         * tests/test-mbsspn.c: New file.
71719
71720 2007-02-11  Bruno Haible  <bruno@clisp.org>
71721
71722         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
71723
71724         * modules/mbspbrk-tests: New file.
71725         * tests/test-mbspbrk.sh: New file.
71726         * tests/test-mbspbrk.c: New file.
71727
71728 2007-02-11  Bruno Haible  <bruno@clisp.org>
71729
71730         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
71731         unneeded cast.
71732
71733         * modules/mbscspn-tests: New file.
71734         * tests/test-mbscspn.sh: New file.
71735         * tests/test-mbscspn.c: New file.
71736
71737 2007-02-11  Bruno Haible  <bruno@clisp.org>
71738
71739         * modules/mbscasecmp-tests: New file.
71740         * tests/test-mbscasecmp.sh: New file.
71741         * tests/test-mbscasecmp.c: New file.
71742
71743 2007-02-11  Bruno Haible  <bruno@clisp.org>
71744
71745         Ensure O(n) worst-case complexity of mbscasestr.
71746         * lib/mbscasestr.c: Include stdbool.h.
71747         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71748         functions.
71749         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
71750         the bookkeeping indicates that it's worth it.
71751         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
71752
71753         * modules/mbscasestr-tests: New file.
71754         * tests/test-mbscasestr1.c: New file.
71755         * tests/test-mbscasestr2.sh: New file.
71756         * tests/test-mbscasestr2.c: New file.
71757         * tests/test-mbscasestr3.sh: New file.
71758         * tests/test-mbscasestr3.c: New file.
71759         * tests/test-mbscasestr4.sh: New file.
71760         * tests/test-mbscasestr4.c: New file.
71761         * m4/locale-tr.m4: New file.
71762
71763 2007-02-11  Bruno Haible  <bruno@clisp.org>
71764
71765         Ensure O(n) worst-case complexity of mbsstr.
71766         * lib/mbsstr.c: Include stdbool.h.
71767         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71768         functions.
71769         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
71770         bookkeeping indicates that it's worth it.
71771         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
71772
71773         * modules/mbsstr-tests: New file.
71774         * tests/test-mbsstr1.c: New file.
71775         * tests/test-mbsstr2.sh: New file.
71776         * tests/test-mbsstr2.c: New file.
71777         * tests/test-mbsstr3.sh: New file.
71778         * tests/test-mbsstr3.c: New file.
71779         * m4/locale-fr.m4: New file.
71780
71781 2007-02-11  Bruno Haible  <bruno@clisp.org>
71782
71783         * lib/mbsrchr.c (mbsrchr): Fix bug.
71784
71785         * modules/mbsrchr-tests: New file.
71786         * tests/test-mbsrchr.sh: New file.
71787         * tests/test-mbsrchr.c: New file.
71788
71789 2007-02-11  Bruno Haible  <bruno@clisp.org>
71790
71791         * lib/mbschr.c (mbschr): Fix bug.
71792
71793         * modules/mbschr-tests: New file.
71794         * tests/test-mbschr.sh: New file.
71795         * tests/test-mbschr.c: New file.
71796         * m4/locale-zh.m4: New file.
71797
71798 2007-02-11  Bruno Haible  <bruno@clisp.org>
71799
71800         Support for copying multibyte string iterators.
71801         * lib/mbiter.h: Include <string.h>.
71802         (mbiter_multi_copy): New function.
71803         (mbi_copy): New macro.
71804         * lib/mbuiter.h: Include <string.h>.
71805         (mbuiter_multi_copy): New function.
71806         (mbui_copy): New macro.
71807
71808 2007-02-11  Bruno Haible  <bruno@clisp.org>
71809
71810         New module mbslen.
71811         * modules/mbslen: New file.
71812         * lib/mbslen.c: New file.
71813         * lib/string_.h (mbslen): New declaration.
71814         * m4/mbslen.m4: New file.
71815         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71816         GNULIB_MBSLEN.
71817         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
71818         * MODULES.html.sh (Internationalization functions): Add mbslen.
71819
71820 2007-02-11  Bruno Haible  <bruno@clisp.org>
71821
71822         Ensure O(n) worst-case complexity of strcasestr substitute.
71823         * lib/strcasestr.c: Include stdbool.h.
71824         (knuth_morris_pratt): New function.
71825         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71826         bookkeeping indicates that it's worth it.
71827         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
71828
71829         * modules/strcasestr-tests: New file.
71830         * tests/test-strcasestr.c: New file.
71831
71832 2007-02-11  Bruno Haible  <bruno@clisp.org>
71833
71834         Ensure O(n) worst-case complexity of c_strcasestr.
71835         * lib/c-strcasestr.c: Include stdbool.h, string.h.
71836         (knuth_morris_pratt): New function.
71837         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
71838         the bookkeeping indicates that it's worth it.
71839         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
71840
71841         * modules/c-strcasestr-tests: New file.
71842         * tests/test-c-strcasestr.c: New file.
71843
71844 2007-02-11  Bruno Haible  <bruno@clisp.org>
71845
71846         Ensure O(n) worst-case complexity of c_strstr.
71847         * lib/c-strstr.c: Include stdbool.h, string.h.
71848         (knuth_morris_pratt): New function.
71849         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71850         bookkeeping indicates that it's worth it.
71851         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
71852
71853         * lib/c-strstr.c: Complete rewrite for maintainability.
71854
71855         * modules/c-strstr-tests: New file.
71856         * tests/test-c-strstr.c: New file.
71857
71858 2007-02-11  Bruno Haible  <bruno@clisp.org>
71859
71860         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
71861         5.2.1 and earlier, whereby \055 was treated just like the range
71862         delimiter '-'.
71863         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71864
71865 2007-02-08  Bruno Haible  <bruno@clisp.org>
71866
71867         * modules/regex (Depends-on): Add stdbool.
71868         Reported by Dalibor Topic <robilad@kaffe.org>.
71869
71870 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71871
71872         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
71873         Prefer returning from main to exiting from it.
71874         Remove unnecessary parens after sizeof.
71875
71876 2007-02-05  Bruno Haible  <bruno@clisp.org>
71877
71878         New module mbssep.
71879         * modules/mbssep: New file.
71880         * lib/mbssep.c: New file.
71881         * lib/string_.h (strsep): Add a conditional link warning.
71882         (mbssep): New declaration.
71883         * m4/mbssep.m4: New file.
71884         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71885         GNULIB_MBSSEP.
71886         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
71887         * MODULES.html.sh (Internationalization functions): Add mbssep.
71888
71889 2007-02-05  Bruno Haible  <bruno@clisp.org>
71890
71891         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
71892         Optimize search in case of 1 delimiter.
71893
71894 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71895
71896         * lib/acl.h: Include sys/types.h before sys/acl.h.
71897
71898 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71899
71900         Merge upstream fix for glibc bugzilla #3957:
71901
71902         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
71903
71904         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
71905         bit for RE_HAT_LISTS_NOT_NEWLINE.
71906         (build_charclass_op): Remove bogus comment.
71907
71908 2007-02-05  Simon Josefsson  <simon@josefsson.org>
71909
71910         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
71911
71912 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71913
71914         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
71915         * lib/memmem.c [!defined _LIBC]: Include config.h.
71916
71917 2007-02-04  Bruno Haible  <bruno@clisp.org>
71918
71919         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
71920         warning message.
71921
71922 2007-02-04  Bruno Haible  <bruno@clisp.org>
71923
71924         New module mbstok_r.
71925         * modules/mbstok_r: New file.
71926         * lib/mbstok_r.c: New file.
71927         * lib/string_.h (strtok_r): Change argument names to match the
71928         comments. Add a conditional link warning.
71929         (mbstok_r): New declaration.
71930         * m4/mbstok_r.m4: New file.
71931         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71932         GNULIB_MBSTOK_R.
71933         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
71934         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
71935
71936 2007-02-04  Bruno Haible  <bruno@clisp.org>
71937
71938         New module mbsspn.
71939         * modules/mbsspn: New file.
71940         * lib/mbsspn.c: New file.
71941         * lib/string_.h (strspn): Add a conditional link warning.
71942         (mbsspn): New declaration.
71943         * m4/mbsspn.m4: New file.
71944         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71945         GNULIB_MBSSPN.
71946         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
71947         * MODULES.html.sh (Internationalization functions): Add mbsspn.
71948
71949 2007-02-04  Bruno Haible  <bruno@clisp.org>
71950
71951         New module mbspbrk.
71952         * modules/mbspbrk: New file.
71953         * lib/mbspbrk.c: New file.
71954         * lib/string_.h (strpbrk): Add a conditional link warning.
71955         (mbspbrk): New declaration.
71956         * m4/mbspbrk.m4: New file.
71957         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71958         GNULIB_MBSPBRK.
71959         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
71960         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
71961
71962 2007-02-04  Bruno Haible  <bruno@clisp.org>
71963
71964         New module mbscspn.
71965         * modules/mbscspn: New file.
71966         * lib/mbscspn.c: New file.
71967         * lib/string_.h (strcspn): Add a conditional link warning.
71968         (mbscspn): New declaration.
71969         * m4/mbscspn.m4: New file.
71970         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71971         GNULIB_MBSCSPN.
71972         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
71973         * MODULES.html.sh (Internationalization functions): Add mbscspn.
71974
71975 2007-02-04  Bruno Haible  <bruno@clisp.org>
71976
71977         New module mbscasestr, reduced goal of strcasestr.
71978         * modules/mbscasestr: New file.
71979         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
71980         (mbscasestr): Renamed from strcasestr.
71981         * lib/strcasestr.c: Don't include mbuiter.h.
71982         (strcasestr): Remove support for multibyte locales.
71983         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
71984         Change the conditional link warning.
71985         (mbscasestr): New declaration.
71986         * m4/mbscasestr.m4: New file.
71987         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
71988         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
71989         REPLACE_STRCASESTR.
71990         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
71991         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71992         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71993         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
71994         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
71995         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71996         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
71997         (Depends-on): Remove mbuiter.
71998         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
71999
72000 2007-02-04  Bruno Haible  <bruno@clisp.org>
72001
72002         Simplify handling of strncasecmp.
72003         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72004         the conditional link warning.
72005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72006         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72007         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72008         * modules/strcase (configure.ac): Don't invoke
72009         gl_STRING_MODULE_INDICATOR.
72010         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72011
72012 2007-02-04  Bruno Haible  <bruno@clisp.org>
72013
72014         New module mbscasecmp, reduced goal of strcasecmp.
72015         * modules/mbscasecmp: New file.
72016         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72017         (mbscasecmp): Renamed from strcasecmp.
72018         * lib/strcasecmp.c: Don't include mbuiter.h.
72019         (strcasecmp): Remove support for multibyte locales.
72020         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72021         Change the conditional link warning.
72022         (mbscasecmp): New declaration.
72023         * m4/mbscasecmp.m4: New file.
72024         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72025         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72026         REPLACE_STRCASECMP.
72027         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72028         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72029         GNULIB_MBSCASECMP.
72030         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72031         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72032         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72033         (Depends-on): Remove mbuiter.
72034         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72035
72036 2007-02-04  Bruno Haible  <bruno@clisp.org>
72037
72038         New module mbsstr. Remove module strstr.
72039         * modules/mbsstr: New file.
72040         * modules/strstr: Remove file.
72041         * lib/mbsstr.c: Renamed from lib/strstr.c.
72042         (mbsstr): Renamed from strstr.
72043         * lib/string_.h (strstr): Remove declaration. Change the conditional
72044         link warning.
72045         (mbsstr): New declaration.
72046         * m4/mbsstr.m4: New file.
72047         * m4/strstr.m4: Remove file.
72048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72049         REPLACE_STRSTR.
72050         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72051         Don't initialize GNULIB_STRSTR.
72052         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72053         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72054         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72055         (Support for systems lacking ANSI C 89): Remove strstr.
72056
72057 2007-02-04  Bruno Haible  <bruno@clisp.org>
72058
72059         New module mbsrchr.
72060         * modules/mbsrchr: New file.
72061         * lib/mbsrchr.c: New file.
72062         * lib/string_.h (strrchr): Add a conditional link warning.
72063         (mbsrchr): New declaration.
72064         * m4/mbsrchr.m4: New file.
72065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72066         GNULIB_MBSRCHR.
72067         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72068         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72069
72070 2007-02-04  Bruno Haible  <bruno@clisp.org>
72071
72072         New module mbschr.
72073         * modules/mbschr: New file.
72074         * lib/mbschr.c: New file.
72075         * lib/string_.h (strchr): Add a conditional link warning.
72076         (mbschr): New declaration.
72077         * m4/mbschr.m4: New file.
72078         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72079         GNULIB_MBSCHR.
72080         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72081         * MODULES.html.sh (Internationalization functions): Add mbschr.
72082
72083 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72084
72085         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72086
72087         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72088
72089 2007-02-04  Bruno Haible  <bruno@clisp.org>
72090
72091         New module description section 'configure.ac-early'.
72092         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72093         (func_get_autoconf_early_snippet): New function.
72094         (func_import, func_create_testdir): Use it. Remove special cases for
72095         modules 'extensions' and 'lock'.
72096         * modules/extensions (configure.ac-early): Require
72097         gl_USE_SYSTEM_EXTENSIONS.
72098         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72099
72100 2007-02-04  Bruno Haible  <bruno@clisp.org>
72101
72102         Make use of gcj-4.3's -fsource and -ftarget option.
72103         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72104         and if so try the options -fsource and -ftarget.
72105         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72106         source_version, ftarget_option, target_version arguments.
72107         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72108         (is_envjavac_oldgcj_14_14_usable): Renamed from
72109         is_envjavac_gcj_14_14_usable.
72110         (is_envjavac_oldgcj_14_13_usable): Renamed from
72111         is_envjavac_gcj_14_13_usable.
72112         (is_gcj_present): Update.
72113         (is_gcj_43, is_gcj43_usable): New functions.
72114         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72115         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72116         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72117         try the options -fsource and -ftarget.
72118
72119 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72120
72121         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72122         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72123         larger value.
72124
72125 2007-02-03  Jim Meyering  <jim@meyering.net>
72126
72127         Give tools a better chance to allocate space for very large buffers.
72128         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72129
72130         Make pwd and readlink work also when run with an unreadable parent dir
72131         on systems with openat support.
72132         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72133         provided getcwd function, even when we have openat support.
72134         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72135
72136 2007-02-02  Bruno Haible  <bruno@clisp.org>
72137
72138         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72139         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72140         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72141         portability problems if one of these functions is only used on specific
72142         platforms.
72143         Reported by Paul Eggert.
72144
72145 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72146
72147         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72148         is causing more trouble than it's curing.
72149         * lib/regex_internal.h (__mempcpy): Remove.
72150         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72151         (and make the code a tad smaller to boot).
72152         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72153
72154 2007-02-02  Jim Meyering  <jim@meyering.net>
72155
72156         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72157         section, not in the Makefile.am: one.
72158
72159 2007-02-02  Eric Blake  <ebb9@byu.net>
72160
72161         * lib/strchrnul.c: Always include config.h first.
72162
72163         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72164         gnulib strstr is not necessary here.
72165
72166 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72167
72168         * m4/socklen.m4: Fix typo.
72169
72170 2007-02-02  Eric Blake  <ebb9@byu.net>
72171
72172         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72173         * modules/netinet_in (Makefile.am): Likewise.
72174
72175 2007-02-01  Bruno Haible  <bruno@clisp.org>
72176
72177         * lib/string_.h (GL_LINK_WARNING): New macro.
72178         (strcasecmp, strstr, strcasestr): If provided by the system,
72179         conditionally define as a macro that leads to a warning instead of to
72180         an error.
72181         (strncasecmp): Conditionally define as a macro that leads to a warning.
72182
72183 2007-02-01  Karl Berry  <karl@gnu.org>
72184
72185         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72186
72187 2007-02-01  Bruno Haible  <bruno@clisp.org>
72188
72189         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72190         renamings.
72191
72192 2007-02-01  Eric Blake  <ebb9@byu.net>
72193
72194         * modules/regex (Depends-on): Revert dependence on mempcpy.
72195         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72196         module's definition of mempcpy.
72197         Reported by Paul Eggert.
72198
72199 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72200
72201         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72202         the symbol XYZ before redefining it.  This fixes a problem with
72203         programs that don't use XYZ, when compiled on systems that define
72204         XYZ to something else.
72205
72206 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72207
72208         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72209         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72210         writeable to group or other and (2) is intended to have a special
72211         mode bit that is set or cleared.  In such a case, the directory
72212         should be neither group- nor other-writeable until the special
72213         mode bits are right.
72214
72215 2007-01-31  Eric Blake  <ebb9@byu.net>
72216
72217         * modules/mountlist (Depends-on): Add strstr.
72218
72219         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72220         bug.
72221         * modules/string (Makefile.am): Remove redundant replacement.
72222         * modules/regex (Depends-on): Add mempcpy.
72223
72224 2007-01-31  Bruno Haible  <bruno@clisp.org>
72225
72226         New module description field 'Link'.
72227         * gnulib-tool (func_usage): Document --extract-link-directive.
72228         (sed_extract_prog): Recognize 'Link' directive.
72229         (func_get_link_directive): New function.
72230         (func_import): Show summary of link directives.
72231         Handle --extract-link-directive option.
72232         * modules/acl (Link): New section.
72233         * modules/clock-time (Link): New section.
72234         * modules/euidaccess (Link): New section.
72235         * modules/gettext (Link): New section.
72236         * modules/iconv (Link): New section.
72237         * modules/lock (Link): New section.
72238         * modules/nanosleep (Link): New section.
72239         * modules/readline (Link): New section.
72240
72241 2007-01-27  Bruno Haible  <bruno@clisp.org>
72242
72243         Enforce the use of gnulib modules for unportable <string.h> functions.
72244         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72245         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72246         (gl_HEADER_STRING_H_BODY): Require it.
72247         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72248         the symbol XYZ to one that gives a link error.
72249         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72250         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72251         * modules/mempcpy (configure.ac): Likewise.
72252         * modules/memrchr (configure.ac): Likewise.
72253         * modules/stpcpy (configure.ac): Likewise.
72254         * modules/stpncpy (configure.ac): Likewise.
72255         * modules/strcase (configure.ac): Likewise.
72256         * modules/strcasestr (configure.ac): Likewise.
72257         * modules/strchrnul (configure.ac): Likewise.
72258         * modules/strdup (configure.ac): Likewise.
72259         * modules/strndup (configure.ac): Likewise.
72260         * modules/strnlen (configure.ac): Likewise.
72261         * modules/strpbrk (configure.ac): Likewise.
72262         * modules/strsep (configure.ac): Likewise.
72263         * modules/strstr (configure.ac): Likewise.
72264         * modules/strtok_r (configure.ac): Likewise.
72265
72266 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72267
72268         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72269
72270 2007-01-30  Jim Meyering  <jim@meyering.net>
72271
72272         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72273
72274 2007-01-29  Bruno Haible  <bruno@clisp.org>
72275
72276         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72277         * lib/execute.c: Likewise.
72278         * lib/pipe.c: Likewise.
72279         * lib/printf-args.h: Likewise.
72280         * lib/printf-args.c: Likewise.
72281         * lib/printf-parse.c: Likewise.
72282         * lib/vasnprintf.c: Likewise.
72283
72284 2007-01-29  Eric Blake  <ebb9@byu.net>
72285
72286         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72287         declaration.
72288
72289 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72290
72291         * lib/strptime.h (strptime): Use 'restrict' for args where
72292         POSIX requires this.
72293         * lib/strptime.c (strptime): Likewise.
72294         Change license notice from LGPL to GPL, since gnulib-tool will
72295         change this as needed.
72296         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72297         defined.
72298         Include "strptime.h" first, to check interface.
72299         Do not #undef _LIBC and _NL_CURRENT.
72300         Do not include <stdlib.h>; no longer needed.
72301         Include "time_r.h" and declare ptime_locale_status
72302         only if _LIBC is not defined.
72303         (__P): Remove unused macro.
72304         (match_string): Bring back glibc version, but use it only if _LIBC
72305         is defined.
72306         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72307         Remove unnecessary assertion and abort() call.
72308         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72309         * m4/strptime.m4: Fix serial number comment.
72310         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72311         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72312         (Depends-on): Add time_r.
72313
72314 2007-01-29  Bruno Haible  <bruno@clisp.org>
72315
72316         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72317         strptime.
72318         * modules/strptime (Depends-on): Add stdbool.
72319         * lib/strptime.h: Include <time.h> always. Add comments.
72320
72321 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72322
72323         * modules/strptime: New file.
72324         * lib/strptime.h: New file.
72325         * lib/strptime.c: New file.
72326         * m4/strptime.m4: New file.
72327
72328 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72329
72330         * MODULES.html.sh: New module mpsort.
72331         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72332
72333         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72334         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72335         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72336         All uses changed.
72337         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72338         All uses changed.
72339         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72340         to _Restrict_.
72341         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72342         the parameter matches the prototype.
72343
72344 2007-01-28  Jim Meyering  <jim@meyering.net>
72345
72346         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72347         sys/time.h here, reverting that part of the previous patch:
72348         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72349
72350 2007-01-28  Bruno Haible  <bruno@clisp.org>
72351
72352         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72353         value of $(SYS_TIME_H).
72354         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72355         remove it conditionally, too. [added by Jim Meyering]
72356         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72357         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72358         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72359         GETTIMEOFDAY_REPLACEMENT to 1.
72360
72361 2007-01-28  Bruno Haible  <bruno@clisp.org>
72362
72363         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72364         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72365         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72366         Set UNISTD_H instead of UNISTD_H2.
72367         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72368
72369 2007-01-28  Bruno Haible  <bruno@clisp.org>
72370
72371         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72372         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72373
72374 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72375
72376         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72377         (func_create_testdir): Ensure C locale for `grep' and `tr'
72378         character ranges.
72379         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72380         ACLOCAL_AMFLAGS parsing state machine.
72381
72382 2007-01-27  Bruno Haible  <bruno@clisp.org>
72383
72384         * modules/unistr/base: Update.
72385
72386 2007-01-27  Bruno Haible  <bruno@clisp.org>
72387
72388         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72389         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72390         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72391         modules/unistr/u32-mbtouc.
72392         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72393         * lib/unistr.h: Update.
72394         * lib/linebreak.c: Update.
72395         * modules/unistr/u32-mbtouc: Renamed from
72396         modules/unistr/u32-mbtouc-safe.
72397         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72398         * lib/unistr.h: Update.
72399         * lib/unistr/u32-to-u8.c: Update.
72400         * lib/unistr/u32-to-u16.c: Update.
72401
72402 2007-01-27  Bruno Haible  <bruno@clisp.org>
72403
72404         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72405         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72406         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72407         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72408         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72409         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72410         modules/unistr/u16-mbtouc.
72411         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72412         * lib/unistr.h: Update.
72413         * lib/linebreak.c: Update.
72414         * modules/linebreak: Update.
72415         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72416         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72417         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72418         * modules/unistr/u16-mbtouc: Renamed from
72419         modules/unistr/u16-mbtouc-safe.
72420         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72421         * lib/unistr.h: Update.
72422         * lib/unistr/u16-to-u8.c: Update.
72423         * modules/unistr/u16-to-u8: Update.
72424         * lib/unistr/u16-to-u32.c: Update.
72425         * modules/unistr/u16-to-u32: Update.
72426
72427 2007-01-27  Bruno Haible  <bruno@clisp.org>
72428
72429         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72430         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72431         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72432         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72433         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72434         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72435         modules/unistr/u8-mbtouc.
72436         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72437         * lib/unistr.h: Update.
72438         * lib/striconveh.c: Update.
72439         * modules/striconveh: Update.
72440         * lib/linebreak.c: Update.
72441         * modules/linebreak: Update.
72442         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72443         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72444         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72445         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72446         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72447         * lib/unistr.h: Update.
72448         * lib/striconveh.c: Update.
72449         * modules/striconveh: Update.
72450         * lib/unistr/u8-to-u16.c: Update.
72451         * modules/unistr/u8-to-u16: Update.
72452         * lib/unistr/u8-to-u32.c: Update.
72453         * modules/unistr/u8-to-u32: Update.
72454
72455 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72456
72457         Sync from Libtool.
72458         * lib/argz.c: Do not include strings.h nor memory.h, include
72459         string.h unconditionally.  Patch by Simon Josefsson.
72460
72461 2007-01-27  Bruno Haible  <bruno@clisp.org>
72462
72463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72464         from gl_HEADER_STRING_H_BODY.
72465         (gl_HEADER_STRING_H_BODY): Require it.
72466         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72467         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72468         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72469         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72470         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72471         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72472         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72473         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72474         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72475         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72476         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72477         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72478         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72479         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72480         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72481
72482 2007-01-27  Bruno Haible  <bruno@clisp.org>
72483
72484         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72485         check_PROGRAMS into noinst_PROGRAMS.
72486         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72487         check_PROGRAMS in this case.
72488         (func_import): Set for_test to false.
72489         (func_create_testdir): Set for_test to true.
72490
72491 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72492             Bruno Haible  <bruno@clisp.org>
72493
72494         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72495         (Depends-on): Add string.
72496         (Includes): Use <string.h> instead of strcasestr.h.
72497         * modules/string (Makefile.am): Also substitute the value of
72498         REPLACE_STRCASESTR.
72499         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72500         assume strcasestr is declared in <string.h> not <strings.h>. Also
72501         set REPLACE_STRCASESTR.
72502         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72503         REPLACE_STRCASESTR.
72504         * lib/strcasestr.h: Remove file.
72505         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72506         * lib/string_.h (strcasestr): New declaration.
72507
72508 2007-01-27  Bruno Haible  <bruno@clisp.org>
72509
72510         * lib/string_.h: Use 'extern'.
72511
72512 2007-01-27  Jim Meyering  <jim@meyering.net>
72513
72514         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72515         of set-but-not-used local, "q".
72516
72517         * lib/mempcpy.c: Include <config.h> before <string.h>.
72518         This fixes a compilation error on HP-UX, due to the system's
72519         "restrict"-using mempcpy prototype.
72520
72521 2007-01-26  Bruno Haible  <bruno@clisp.org>
72522
72523         Small optimization.
72524         * lib/javacomp.c: Include c-strstr.h.
72525          (is_envjavac_gcj): Use c_strstr instead of strstr.
72526         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72527
72528 2007-01-26  Bruno Haible  <bruno@clisp.org>
72529
72530         * MODULES.html.sh (Unicode string functions): Add the new modules.
72531
72532         * modules/uniconv/u32-strconv-to-locale: New file.
72533         * lib/uniconv/u32-strconv-to-locale.c: New file.
72534
72535         * modules/uniconv/u16-strconv-to-locale: New file.
72536         * lib/uniconv/u16-strconv-to-locale.c: New file.
72537
72538         * modules/uniconv/u8-strconv-to-locale: New file.
72539         * lib/uniconv/u8-strconv-to-locale.c: New file.
72540
72541         * modules/uniconv/u32-strconv-from-locale: New file.
72542         * lib/uniconv/u32-strconv-from-locale.c: New file.
72543
72544         * modules/uniconv/u16-strconv-from-locale: New file.
72545         * lib/uniconv/u16-strconv-from-locale.c: New file.
72546
72547         * modules/uniconv/u8-strconv-from-locale: New file.
72548         * lib/uniconv/u8-strconv-from-locale.c: New file.
72549
72550         * modules/uniconv/u32-strconv-to-enc: New file.
72551         * lib/uniconv/u32-strconv-to-enc.c: New file.
72552         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72553         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72554
72555         * modules/uniconv/u16-strconv-to-enc: New file.
72556         * lib/uniconv/u16-strconv-to-enc.c: New file.
72557         * lib/uniconv/u-strconv-to-enc.h: New file.
72558         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72559         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72560
72561         * modules/uniconv/u8-strconv-to-enc: New file.
72562         * lib/uniconv/u8-strconv-to-enc.c: New file.
72563         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72564         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72565
72566         * modules/uniconv/u32-strconv-from-enc: New file.
72567         * lib/uniconv/u32-strconv-from-enc.c: New file.
72568         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72569         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72570
72571         * modules/uniconv/u16-strconv-from-enc: New file.
72572         * lib/uniconv/u16-strconv-from-enc.c: New file.
72573         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72574         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72575
72576         * modules/uniconv/u8-strconv-from-enc: New file.
72577         * lib/uniconv/u8-strconv-from-enc.c: New file.
72578         * lib/uniconv/u-strconv-from-enc.h: New file.
72579         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72580         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72581
72582         * modules/uniconv/u32-conv-from-enc: New file.
72583         * lib/uniconv/u32-conv-from-enc.c: New file.
72584         * modules/uniconv/u32-conv-from-enc-tests: New file.
72585         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72586
72587         * modules/uniconv/u16-conv-from-enc: New file.
72588         * lib/uniconv/u16-conv-from-enc.c: New file.
72589         * lib/uniconv/u-conv-from-enc.h: New file.
72590         * modules/uniconv/u16-conv-from-enc-tests: New file.
72591         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72592
72593         * modules/uniconv/u8-conv-from-enc: New file.
72594         * lib/uniconv/u8-conv-from-enc.c: New file.
72595         * modules/uniconv/u8-conv-from-enc-tests: New file.
72596         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72597
72598         * modules/uniconv/base: New file.
72599         * lib/uniconv.h: New file.
72600
72601 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72602
72603         * doc/gnulib-tool.texi (Initial import): Update to match current
72604         behavior with strdup module.
72605         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
72606         * lib/memmem.h: Remove; all uses removed.  This is now done
72607         by <string.h>.
72608         * lib/mempcpy.h: Likewise.
72609         * lib/memrchr.h: Likewise.
72610         * lib/stpcpy.h: Likewise.
72611         * lib/stpncpy.h: Likewise.
72612         * lib/strcase.h: Likewise.
72613         * lib/strchrnul.h: Likewise.
72614         * lib/strdup.h: Likewise.
72615         * lib/strndup.h: Likewise.
72616         * lib/strnlen.h: Likewise.
72617         * lib/strpbrk.h: Likewise.
72618         * lib/strsep.h: Likewise.
72619         * lib/strstr.h: Likewise.
72620         * lib/strtok_r.h: Likewise.
72621         * lib/string_.h: New file.
72622         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
72623         Rely on <string.h> instead.
72624         * lib/canon-host.c: Likewise.
72625         * lib/chdir-long.c: Likewise.
72626         * lib/concatpath.c: Likewise.
72627         * lib/exclude.c: Likewise.
72628         * lib/fchdir.c: Likewise.
72629         * lib/getaddrinfo.c: Likewise.
72630         * lib/getcwd.c: Likewise.
72631         * lib/getsubopt.c: Likewise.
72632         * lib/glob.c: Likewise.
72633         * lib/hard-locale.c: Likewise.
72634         * lib/iconvme.c: Likewise.
72635         * lib/javacomp.c: Likewise.
72636         * lib/mempcpy.c: Likewise.
72637         * lib/memrchr.c: Likewise.
72638         * lib/regex_internal.h: Likewise.
72639         * lib/stpncpy.c: Likewise.
72640         * lib/strcasecmp.c: Likewise.
72641         * lib/strchrnul.c: Likewise.
72642         * lib/strdup.c: Likewise.
72643         * lib/striconv.c: Likewise.
72644         * lib/striconveh.c: Likewise.
72645         * lib/striconveha.c: Likewise.
72646         * lib/strncasecmp.c: Likewise.
72647         * lib/strndup.c: Likewise.
72648         * lib/strnlen.c: Likewise.
72649         * lib/strsep.c: Likewise.
72650         * lib/strstr.c: Likewise.
72651         * lib/strtok_r.c: Likewise.
72652         * lib/userspec.c: Likewise.
72653         * lib/w32spawn.h: Likewise.
72654         * lib/xstrndup.c: Likewise.
72655         * lib/mountlist.c (strstr): Remove decl.
72656         * m4/string_h.m4: New file.
72657         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
72658         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
72659         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
72660         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
72661         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
72662         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
72663         Set REPLACE_STRCASECMP if necessary.
72664         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
72665         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
72666         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
72667         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
72668         HAVE_DECL_STRDUP if necessary.
72669         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
72670         since gl_FUNC_STRNDUP does that now.
72671         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
72672         Check for decl here...
72673         (gl_PREREQ_STRNLEN): ... not here.
72674         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
72675         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
72676         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
72677         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
72678         necessary.
72679         * modules/string: New file.
72680         * modules/memmem (Files): Remove special-purpose include file.
72681         (Depends-on): Add string.
72682         (Include): Include <string.h>, not the removed file.
72683         * modules/mempcpy: Likewise.
72684         * modules/memrchr: Likewise.
72685         * modules/stpcpy: Likewise.
72686         * modules/stpncpy: Likewise.
72687         * modules/strcase: Likewise.
72688         * modules/strchrnul: Likewise.
72689         * modules/strdup: Likewise.
72690         * modules/strndup: Likewise.
72691         * modules/strnlen: Likewise.
72692         * modules/strpbrk: Likewise.
72693         * modules/strsep: Likewise.
72694         * modules/strstr: Likewise.
72695         * modules/strtok_r: Likewise.
72696         * tests/test-dirname.c: Don't include "strdup.h", since
72697         <string.h> now suffices.
72698         * tests/test-memmem.c: Don't include "memmem.h", since
72699         <string.h> now suffices.
72700
72701 2007-01-25  Bruno Haible  <bruno@clisp.org>
72702
72703         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
72704         *resultp is 0.
72705
72706         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
72707         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
72708         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
72709         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
72710
72711         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
72712         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
72713         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
72714         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
72715         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
72716         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
72717
72718 2007-01-24  Bruno Haible  <bruno@clisp.org>
72719
72720         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
72721         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
72722         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
72723         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
72724         gl_FUNC_FTS_CORE.
72725         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
72726         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
72727         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72728         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
72729         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
72730         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
72731         gl_FUNC_FCHOWNAT.
72732         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
72733         gl_FUNC_STRFTIME.
72734         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
72735         Reported by Ralf Wildenhues.
72736
72737 2007-01-24  Bruno Haible  <bruno@clisp.org>
72738
72739         Drop AC_REQUIRE calls that are redundant with the module dependencies.
72740         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
72741         gl_GETADDRINFO.
72742         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
72743         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
72744         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
72745
72746 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
72747
72748         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
72749         Don't use 'exit'; just return from 'main'.
72750         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
72751
72752         * lib/fnmatch_.h: Readjust white space and comments to match
72753         glibc, to avoid spurious diffs.
72754
72755 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72756
72757         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
72758         2004-12-01 change by Jakub Jelinek, since this code won't compile
72759         if !LIBC.  Problem reported by Bob Proulx.
72760
72761 2007-01-23  Bruno Haible  <bruno@clisp.org>
72762
72763         * lib/striconveh.c: Include c-strcaseeq.h.
72764         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
72765         * modules/striconveh (Depends-on): Add c-strcaseeq.
72766
72767 2007-01-23  Bruno Haible  <bruno@clisp.org>
72768
72769         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
72770
72771         * modules/c-strcaseeq: New file.
72772         * lib/c-strcaseeq.h: New file.
72773
72774         * modules/streq: New file.
72775         * lib/streq.h: New file.
72776
72777 2007-01-23  Bruno Haible  <bruno@clisp.org>
72778
72779         * modules/striconveha-tests: New file.
72780         * tests/test-striconveha.c: New file.
72781
72782         * lib/striconveha.h: Include <stdbool.h>.
72783         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
72784         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
72785         (mem_iconveha_notranslit): Renamed from mem_iconveha.
72786         (mem_iconveha): New function.
72787         (str_iconveha_notranslit): Renamed from str_iconveha.
72788         (str_iconveha): New function.
72789         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
72790         c-strcase.
72791
72792 2007-01-23  Bruno Haible  <bruno@clisp.org>
72793
72794         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
72795         encodings without forgiving before trying any encoding with handler.
72796         (str_iconveha): Try all encodings without forgiving before trying any
72797         encoding with handler.
72798
72799 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72800
72801         Import the following changes from libc.
72802
72803         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72804
72805         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
72806
72807         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72808
72809         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
72810         normal_bracket label.
72811
72812         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
72813
72814         [BZ #361]
72815         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
72816         to normal_bracket after fetching the next character.
72817
72818 2007-01-22  Bruno Haible  <bruno@clisp.org>
72819
72820         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
72821         argument.
72822         * lib/striconveh.c (iconv_carefully_1): New function.
72823         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
72824         argument.
72825         (str_cd_iconveh): Update.
72826         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
72827         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
72828         * tests/test-striconveh.c (MAGIC): New macro.
72829         (new_offsets): New function.
72830         (main): Test call with and without offsets.
72831
72832 2007-01-22  Bruno Haible  <bruno@clisp.org>
72833
72834         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
72835         * modules/sys_select (Makefile.am): Likewise.
72836         * modules/sys_socket (Makefile.am): Likewise.
72837         * modules/sys_time (Makefile.am): Likewise.
72838
72839 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72840
72841         * modules/gettimeofday (License): Change from GPL to LGPL, since
72842         gettimeofday is a library function.
72843
72844 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72845
72846         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
72847
72848 2007-01-21  Bruno Haible  <bruno@clisp.org>
72849
72850         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
72851
72852 2007-01-21  Bruno Haible  <bruno@clisp.org>
72853
72854         * modules/striconveha: New file.
72855         * lib/striconveha.h: New file.
72856         * lib/striconveha.c: New file.
72857         * MODULES.html.sh (Internationalization functions): Add striconveha.
72858         * lib/striconv.c (str_iconv): Optimize the case of an empty input
72859         string.
72860         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
72861
72862 2007-01-21  Bruno Haible  <bruno@clisp.org>
72863
72864         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
72865         * lib/striconveh.c (str_iconveh): Likewise.
72866
72867 2007-01-21  Bruno Haible  <bruno@clisp.org>
72868
72869         * lib/striconveh.h (mem_iconveh): New declaration.
72870         * lib/striconveh.c (mem_iconveh): New function.
72871         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
72872
72873 2007-01-21  Bruno Haible  <bruno@clisp.org>
72874
72875         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
72876
72877         * lib/striconveh.h (mem_cd_iconveh): Change specification.
72878         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
72879         original result buffer.
72880         (str_cd_iconveh): Update.
72881         * tests/test-striconveh.c (main): Update.
72882
72883         * lib/striconv.h (mem_cd_iconv): Change specification.
72884         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
72885         result buffer.
72886         (str_cd_iconv): Update.
72887         * tests/test-striconv.c (main): Update.
72888
72889 2007-01-21  Bruno Haible  <bruno@clisp.org>
72890
72891         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
72892
72893 2007-01-20  Jim Meyering  <jim@meyering.net>
72894
72895         * lib/userspec.c (parse_with_separator): If a user or group string
72896         starts with "+", skip the corresponding name-to-ID look-up, since
72897         such a look-up must fail: user and group names may not include "+".
72898
72899 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72900
72901         * lib/poll.c: Include sys/time.h and time.h unconditionally,
72902         since we now assume the sys_time module.
72903         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
72904         check for sys/time.h; no longer needed.
72905         * modules/poll (Depends-on): Depend on sys_time.
72906
72907 2007-01-18  Bruno Haible  <bruno@clisp.org>
72908
72909         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
72910         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72911
72912         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
72913         gettimeofday.
72914
72915         * tests/test-gettimeofday.c: Include <time.h>.
72916         (dummy): Remove variable.
72917
72918         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
72919         gl_HEADER_SYS_TIME_H.
72920         (gl_HEADER_SYS_TIME_H): New macro.
72921
72922         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
72923         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72924         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
72925         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
72926         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72927         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
72928         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
72929         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72930         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
72931         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
72932         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72933
72934         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
72935         last change; it caused a compilation error when cross-compiling to
72936         Cygwin.
72937
72938 2007-01-18  Jim Meyering  <jim@meyering.net>
72939
72940         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
72941         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
72942         than the race-prone "test -d sys || mkdir sys".
72943         (configure.ac): Use AC_PROG_MKDIR_P.
72944         * modules/sys_select: Likewise.
72945         * modules/sys_socket: Likewise.
72946         * modules/sys_time: Likewise.
72947
72948 2007-01-18  Eric Blake  <ebb9@byu.net>
72949
72950         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
72951         replace gettimeofday.
72952         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
72953         name, to avoid infinite recursion.
72954
72955 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
72956
72957         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
72958         module sys_time.
72959         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
72960         assume timespec.h defines struct timeval.
72961         * lib/settime.c: Likewise.
72962         * lib/utimens.c: Likewise.
72963         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
72964         since we now assume the gettimeofday module.
72965         * lib/tempname.c (__gen_tempname): Likewise.
72966         * lib/gettimeofday.h: Remove.
72967         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
72968         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
72969         Include <time.h>, for 'time()'.
72970         (localtime_buffer_addr): Also use this workaround if
72971         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
72972         to simplify the uses.  All uses changed.
72973         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
72974         that #undef is inside {}, and 'const' follows type name consistently.
72975         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
72976         (gettimeofday): Do not use the maximum possible value for
72977         tv->tv_usec, since that might break usages other than ls.c.
72978         Instead, we'll leave ls.c alone.  This undoes today's patch
72979         by Bruno.  Add a compile-time warning for 1s-clock resolution;
72980         we've never observed the problem but might as well keep the
72981         canary.
72982         * lib/nanosleep.c: Include timespec.h first, for interface check.
72983         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
72984         now assume the sys_time module.
72985         * lib/tempname.c: Likewise.
72986         * lib/timespec.h: Likewise.
72987         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
72988         needed.
72989         * lib/strftime.c: Likewise.
72990         * lib/timespec.h: Likewise.
72991         * lib/posixtm.c: Include posixtm.h first, for interface check.
72992         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
72993         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
72994         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
72995         * lib/sys_time_.h: New file.
72996         * lib/timespec.h (struct timespec): Use long int, not long.
72997         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72998         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
72999         Remove obsolescent call to AC_HEADER_TIME.
73000         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73002         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73003         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73004         Likewise.
73005         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73006         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73007         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73008         into the sys_time module.  Check for gettimeofday just once.
73009         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73010         for gettimeofday signature to just check the signature.  Merely
73011         compile it, since linking doesn't test signature.  Improve test for
73012         whether gettimeofday.o is actually needed.
73013         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73014         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73015         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73016         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73017         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73018         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73019         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73020         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73021         than worrying about sys/time.h.
73022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73023         Don't bother worrying about TIME_WITH_SYS_TIME.
73024         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73025         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73026         * m4/sys_time_h.m4: New file.
73027         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73028         Don't include sys/time.h.  Return from main rather than exiting.
73029         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73030         all uses changed.
73031         * modules/gethrxtime (Depends-on): Add sys_time.
73032         * modules/gettime (Depends-on): Likewise.
73033         * modules/gettimeofday (Depends-on): Likewise.
73034         * modules/nanosleep (Depends-on): Likewise.
73035         * modules/settime (Depends-on): Likewise.
73036         * modules/tempname (Depends-on): Likewise.
73037         * modules/utimens (Depends-on): Likewise.
73038         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73039         (Include): Change back to <sys/time.h>.
73040         (Maintainer): Add self.
73041         * modules/sys_time: New file.
73042         * modules/tempname (Depends-on): Add gettimeofday.
73043         * tests/test-gettimeofday.c: Include <sys/time.h>
73044         rather than gettimeofday.h.
73045
73046 2007-01-17  Bruno Haible  <bruno@clisp.org>
73047
73048         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73049         the license default to GPL.
73050         (func_create_testdir): Don't complain if a module is LGPL and its
73051         tests module depends on GPLed modules.
73052
73053 2007-01-17  Bruno Haible  <bruno@clisp.org>
73054
73055         * lib/gettimeofday.c (gettimeofday): Add code for the case
73056         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73057         maximum possible value for tv->tv_usec, rather than the minimum one.
73058
73059 2005-10-08  Martin Lambers  <marlam@marlam.de>
73060 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73061 2007-01-16  Bruno Haible  <bruno@clisp.org>
73062
73063         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73064         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73065         gl_FUNC_GETTIMEOFDAY.
73066         (Include): Add gettimeofday.h.
73067         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73068         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73069         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73070         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73071         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73072         * lib/gettimeofday.h: New file.
73073         * lib/gettimeofday.c: Include <sys/timeb.h>.
73074         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73075         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73076         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73077         fall back on time().
73078
73079         * tests/test-gettimeofday.c: New file.
73080         * modules/gettimeofday-tests: New file.
73081
73082 2007-01-16  Eric Blake  <ebb9@byu.net>
73083
73084         * modules/fnmatch (Depends-on): Depend on wchar.
73085         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73086         * m4/fnmatch.m4: Likewise.
73087         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73088         * m4/mbchar.m4: Likewise.
73089         * modules/mbswidth (Depends-on): Depend on wchar.
73090         * lib/mbswidth.c: Assume <wchar.h>.
73091         * m4/mbswidth.m4: Likewise.
73092         * modules/quotearg (Depends-on): Depend on wchar.
73093         * lib/quotearg.c: Assume <wchar.h>.
73094         * m4/quotearg.m4: Likewise.
73095         * modules/regex (Depends-on): Depend on wchar.
73096         * lib/regex_internal.h: Assume <wchar.h>.
73097         * m4/regex.m4: Likewise.
73098         * modules/stdint (Depends-on): Depend on wchar.
73099         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73100         * m4/stdint.m4: Likewise.
73101         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73102         * modules/strftime (Depends-on): Depend on wchar.
73103         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73104         * modules/strtol (Depends-on): Depend on wchar.
73105         * lib/strtol.c: Assume <wchar.h>.
73106         * modules/wcwidth (Depends-on): Depend on wchar.
73107         * lib/wcwidth.h: Assume <wchar.h>.
73108         * m4/wcwidth.m4: Likewise.
73109
73110 2007-01-16  Bruno Haible  <bruno@clisp.org>
73111
73112         * modules/csharpexec-script: New, created from...
73113         * modules/csharpexec: ... this.
73114
73115 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73116
73117         * modules/javaexec-script: New, created from...
73118         * modules/javaexec: ... this.
73119
73120 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73121
73122         * modules/poll (Dependencies): Add sys_select.
73123
73124 2007-01-15  Jim Meyering  <jim@meyering.net>
73125
73126         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73127         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73128         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73129         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73130
73131 2007-01-15  Bruno Haible  <bruno@clisp.org>
73132
73133         * modules/striconveh: New file.
73134         * lib/striconveh.h: New file.
73135         * lib/striconveh.c: New file.
73136         * MODULES.html.sh (Internationalization functions): Add striconveh.
73137
73138         * modules/striconveh-tests: New file.
73139         * tests/test-striconveh.c: New file.
73140
73141 2007-01-15  Bruno Haible  <bruno@clisp.org>
73142
73143         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73144         not from GNU libiconv or GNU libc.
73145
73146 2007-01-15  Bruno Haible  <bruno@clisp.org>
73147
73148         * doc/gnulib-intro.texi (Copyright): Explain the different license
73149         terms for module descriptions, autoconf macros, tests, documentation.
73150
73151 2007-01-14  Bruno Haible  <bruno@clisp.org>
73152
73153         * modules/striconv-tests: New file.
73154         * tests/test-striconv.c: New file.
73155
73156 2007-01-14  Bruno Haible  <bruno@clisp.org>
73157
73158         * modules/iconv-tests: New file.
73159         * tests/test-iconv.c: New file.
73160
73161 2007-01-14  Bruno Haible  <bruno@clisp.org>
73162
73163         * gnulib-tool (func_get_license): For test modules, use the license of
73164         the main module.
73165
73166 2007-01-14  Bruno Haible  <bruno@clisp.org>
73167
73168         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73169         if iconv is found to exist.
73170
73171 2007-01-14  Bruno Haible  <bruno@clisp.org>
73172
73173         * modules/c-ctype-tests: New file.
73174         * tests/test-c-ctype.c: New file.
73175
73176 2007-01-14  Bruno Haible  <bruno@clisp.org>
73177
73178         * modules/binary-io-tests: New file.
73179         * tests/test-binary-io.sh: New file.
73180         * tests/test-binary-io.c: New file.
73181
73182 2007-01-14  Bruno Haible  <bruno@clisp.org>
73183
73184         * modules/array-oset-tests: New file.
73185         * tests/test-array_oset.c: New file.
73186
73187 2007-01-14  Bruno Haible  <bruno@clisp.org>
73188
73189         * modules/array-list-tests: New file.
73190         * tests/test-array_list.c: New file.
73191
73192 2007-01-14  Bruno Haible  <bruno@clisp.org>
73193
73194         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73195         and make.
73196         Reported by Simon Josefsson in
73197         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73198
73199 2007-01-14  Bruno Haible  <bruno@clisp.org>
73200
73201         * modules/allocsa-tests: New file.
73202         * tests/test-allocsa.c: New file.
73203
73204 2007-01-14  Bruno Haible  <bruno@clisp.org>
73205
73206         * modules/fchdir (Depends-on): Add absolute-header.
73207         * modules/unistd (Depends-on): Likewise.
73208
73209 2006-12-30  Bruno Haible  <bruno@clisp.org>
73210
73211         * modules/fchdir: New file.
73212         * modules/unistd (Files): Add lib/unistd_.h.
73213         (Makefile.am): Generate unistd.h from unistd_.h.
73214         * lib/fchdir.c: New file.
73215         * lib/dirent_.h: New file.
73216         * lib/unistd_.h: New file.
73217         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73218         * m4/fchdir.m4: New file.
73219         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73220         (gl_HEADER_UNISTD): Invoke it.
73221         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73222         function.
73223         * lib/backupfile.c (opendir, closedir): Undefine.
73224         * lib/chown.c (open, close): Undefine.
73225         * lib/clean-temp.c (open, close): Undefine.
73226         * lib/copy-file.c (open, close): Undefine.
73227         * lib/execute.c (open, close): Undefine.
73228         * lib/fsusage.c (open, close): Undefine.
73229         * lib/gc-gnulib.c (open, close): Undefine.
73230         * lib/getcwd.c (opendir, closedir): Undefine.
73231         * lib/glob.c (opendir, closedir): Undefine.
73232         * lib/javacomp.c (open, close): Undefine.
73233         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73234         * lib/openat-proc.c (open, close): Undefine.
73235         * lib/pagealign_alloc.c (open, close): Undefine.
73236         * lib/pipe.c (open, close): Undefine.
73237         * lib/progreloc.c (open, close): Undefine.
73238         * lib/savedir.c (opendir, closedir): Undefine.
73239         * lib/utime.c (open, close): Undefine.
73240         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73241
73242 2007-01-10  Bruno Haible  <bruno@clisp.org>
73243
73244         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73245
73246 2007-01-12  Eric Blake  <ebb9@byu.net>
73247
73248         Provide a robust <wchar.h>.  Further simplifications are now
73249         possible in other modules, but not included here.
73250         * modules/wchar: New module.
73251         * m4/wchar.m4: New file.
73252         * lib/wchar_.h: Likewise.
73253         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73254         of the new module.
73255         * MODULES.html.sh (Extended multibyte and wide character utilities):
73256         New section.
73257
73258 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73259
73260         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73261         to a reasonable default for memory allocation.
73262         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73263         file system that reports garbage st_size values for symlinks.
73264         Problem reported by Liyang Hu.
73265
73266 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73267
73268         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73269         Emacs .#* auto-save files).
73270
73271 2007-01-11  Bruno Haible  <bruno@clisp.org>
73272
73273         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73274         directory.
73275
73276 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73277
73278         Use @...@ consistently in lib/wctype_.h.
73279         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73280         on it being set to 1 or 0.
73281         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73282         go back to AC_SUBSTing it.
73283         * modules/wctype (Makefile.am): Undo previous change.
73284
73285 2007-01-10  Eric Blake  <ebb9@byu.net>
73286
73287         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73288         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73289         * modules/wctype (Makefile.am): Likewise.
73290         Reported by Chris McGuire.
73291
73292 2007-01-10  Jim Meyering  <jim@meyering.net>
73293
73294         fts.c: a small readability/maintainability improvement
73295         * lib/fts.c (fts_read): Make this code slightly more readable and
73296         maintainable by hoisting the "sp->fts_cur = p" assignments to
73297         immediately follow the statements that set P.  Derived from
73298         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73299
73300 2007-01-10  Eric Blake  <ebb9@byu.net>
73301
73302         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73303         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73305         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73306         Reported by Chris McGuire.
73307
73308 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73309
73310         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73311         in sed script.
73312
73313 2007-01-09  Bruno Haible  <bruno@clisp.org>
73314
73315         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73316         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73317         variables.
73318         (func_module): Use them.
73319
73320 2007-01-09  Bruno Haible  <bruno@clisp.org>
73321
73322         * modules/unistr/base: New file.
73323         * lib/unistr.h: New file.
73324
73325         * modules/unistr/u8-to-u16: New file.
73326         * lib/unistr/u8-to-u16.c: New file.
73327
73328         * modules/unistr/u8-to-u32: New file.
73329         * lib/unistr/u8-to-u32.c: New file.
73330
73331         * modules/unistr/u16-to-u8: New file.
73332         * lib/unistr/u16-to-u8.c: New file.
73333
73334         * modules/unistr/u16-to-u32: New file.
73335         * lib/unistr/u16-to-u32.c: New file.
73336
73337         * modules/unistr/u32-to-u8: New file.
73338         * lib/unistr/u32-to-u8.c: New file.
73339
73340         * modules/unistr/u32-to-u16: New file.
73341         * lib/unistr/u32-to-u16.c: New file.
73342
73343         * modules/unistr/u8-check: New file.
73344         * modules/unistr/u16-check: New file.
73345         * modules/unistr/u32-check: New file.
73346         * lib/unistr/u8-check.c: New file.
73347         * lib/unistr/u16-check.c: New file.
73348         * lib/unistr/u32-check.c: New file.
73349
73350         * modules/unistr/u8-chr: New file.
73351         * modules/unistr/u16-chr: New file.
73352         * modules/unistr/u32-chr: New file.
73353         * lib/unistr/u8-chr.c: New file.
73354         * lib/unistr/u16-chr.c: New file.
73355         * lib/unistr/u32-chr.c: New file.
73356
73357         * modules/unistr/u8-cmp: New file.
73358         * modules/unistr/u16-cmp: New file.
73359         * modules/unistr/u32-cmp: New file.
73360         * lib/unistr/u8-cmp.c: New file.
73361         * lib/unistr/u16-cmp.c: New file.
73362         * lib/unistr/u32-cmp.c: New file.
73363
73364         * modules/unistr/u8-cpy: New file.
73365         * modules/unistr/u16-cpy: New file.
73366         * modules/unistr/u32-cpy: New file.
73367         * lib/unistr/u8-cpy.c: New file.
73368         * lib/unistr/u16-cpy.c: New file.
73369         * lib/unistr/u32-cpy.c: New file.
73370         * lib/unistr/u-cpy.h: New file.
73371
73372         * modules/unistr/u8-cpy-alloc: New file.
73373         * modules/unistr/u16-cpy-alloc: New file.
73374         * modules/unistr/u32-cpy-alloc: New file.
73375         * lib/unistr/u8-cpy-alloc.c: New file.
73376         * lib/unistr/u16-cpy-alloc.c: New file.
73377         * lib/unistr/u32-cpy-alloc.c: New file.
73378         * lib/unistr/u-cpy-alloc.h: New file.
73379
73380         * modules/unistr/u8-endswith: New file.
73381         * modules/unistr/u16-endswith: New file.
73382         * modules/unistr/u32-endswith: New file.
73383         * lib/unistr/u8-endswith.c: New file.
73384         * lib/unistr/u16-endswith.c: New file.
73385         * lib/unistr/u32-endswith.c: New file.
73386         * lib/unistr/u-endswith.h: New file.
73387
73388         * modules/unistr/u8-mblen: New file.
73389         * modules/unistr/u16-mblen: New file.
73390         * modules/unistr/u32-mblen: New file.
73391         * lib/unistr/u8-mblen.c: New file.
73392         * lib/unistr/u16-mblen.c: New file.
73393         * lib/unistr/u32-mblen.c: New file.
73394
73395         * modules/unistr/u8-mbtouc: New file.
73396         * modules/unistr/u16-mbtouc: New file.
73397         * modules/unistr/u32-mbtouc: New file.
73398         * lib/unistr/u8-mbtouc.c: New file.
73399         * lib/unistr/u16-mbtouc.c: New file.
73400         * lib/unistr/u32-mbtouc.c: New file.
73401
73402         * modules/unistr/u8-mbtouc-safe: New file.
73403         * modules/unistr/u16-mbtouc-safe: New file.
73404         * modules/unistr/u32-mbtouc-safe: New file.
73405         * lib/unistr/u8-mbtouc-safe.c: New file.
73406         * lib/unistr/u16-mbtouc-safe.c: New file.
73407         * lib/unistr/u32-mbtouc-safe.c: New file.
73408
73409         * modules/unistr/u8-move: New file.
73410         * modules/unistr/u16-move: New file.
73411         * modules/unistr/u32-move: New file.
73412         * lib/unistr/u8-move.c: New file.
73413         * lib/unistr/u16-move.c: New file.
73414         * lib/unistr/u32-move.c: New file.
73415         * lib/unistr/u-move.h: New file.
73416
73417         * modules/unistr/u8-next: New file.
73418         * modules/unistr/u16-next: New file.
73419         * modules/unistr/u32-next: New file.
73420         * lib/unistr/u8-next.c: New file.
73421         * lib/unistr/u16-next.c: New file.
73422         * lib/unistr/u32-next.c: New file.
73423
73424         * modules/unistr/u8-prev: New file.
73425         * modules/unistr/u16-prev: New file.
73426         * modules/unistr/u32-prev: New file.
73427         * lib/unistr/u8-prev.c: New file.
73428         * lib/unistr/u16-prev.c: New file.
73429         * lib/unistr/u32-prev.c: New file.
73430
73431         * modules/unistr/u8-set: New file.
73432         * modules/unistr/u16-set: New file.
73433         * modules/unistr/u32-set: New file.
73434         * lib/unistr/u8-set.c: New file.
73435         * lib/unistr/u16-set.c: New file.
73436         * lib/unistr/u32-set.c: New file.
73437         * lib/unistr/u-set.h: New file.
73438
73439         * modules/unistr/u8-startswith: New file.
73440         * modules/unistr/u16-startswith: New file.
73441         * modules/unistr/u32-startswith: New file.
73442         * lib/unistr/u8-startswith.c: New file.
73443         * lib/unistr/u16-startswith.c: New file.
73444         * lib/unistr/u32-startswith.c: New file.
73445         * lib/unistr/u-startswith.h: New file.
73446
73447         * modules/unistr/u8-stpcpy: New file.
73448         * modules/unistr/u16-stpcpy: New file.
73449         * modules/unistr/u32-stpcpy: New file.
73450         * lib/unistr/u8-stpcpy.c: New file.
73451         * lib/unistr/u16-stpcpy.c: New file.
73452         * lib/unistr/u32-stpcpy.c: New file.
73453         * lib/unistr/u-stpcpy.h: New file.
73454
73455         * modules/unistr/u8-stpncpy: New file.
73456         * modules/unistr/u16-stpncpy: New file.
73457         * modules/unistr/u32-stpncpy: New file.
73458         * lib/unistr/u8-stpncpy.c: New file.
73459         * lib/unistr/u16-stpncpy.c: New file.
73460         * lib/unistr/u32-stpncpy.c: New file.
73461         * lib/unistr/u-stpncpy.h: New file.
73462
73463         * modules/unistr/u8-strcat: New file.
73464         * modules/unistr/u16-strcat: New file.
73465         * modules/unistr/u32-strcat: New file.
73466         * lib/unistr/u8-strcat.c: New file.
73467         * lib/unistr/u16-strcat.c: New file.
73468         * lib/unistr/u32-strcat.c: New file.
73469         * lib/unistr/u-strcat.h: New file.
73470
73471         * modules/unistr/u8-strchr: New file.
73472         * modules/unistr/u16-strchr: New file.
73473         * modules/unistr/u32-strchr: New file.
73474         * lib/unistr/u8-strchr.c: New file.
73475         * lib/unistr/u16-strchr.c: New file.
73476         * lib/unistr/u32-strchr.c: New file.
73477
73478         * modules/unistr/u8-strcmp: New file.
73479         * modules/unistr/u16-strcmp: New file.
73480         * modules/unistr/u32-strcmp: New file.
73481         * lib/unistr/u8-strcmp.c: New file.
73482         * lib/unistr/u16-strcmp.c: New file.
73483         * lib/unistr/u32-strcmp.c: New file.
73484
73485         * modules/unistr/u8-strcpy: New file.
73486         * modules/unistr/u16-strcpy: New file.
73487         * modules/unistr/u32-strcpy: New file.
73488         * lib/unistr/u8-strcpy.c: New file.
73489         * lib/unistr/u16-strcpy.c: New file.
73490         * lib/unistr/u32-strcpy.c: New file.
73491         * lib/unistr/u-strcpy.h: New file.
73492
73493         * modules/unistr/u8-strcspn: New file.
73494         * modules/unistr/u16-strcspn: New file.
73495         * modules/unistr/u32-strcspn: New file.
73496         * lib/unistr/u8-strcspn.c: New file.
73497         * lib/unistr/u16-strcspn.c: New file.
73498         * lib/unistr/u32-strcspn.c: New file.
73499         * lib/unistr/u-strcspn.h: New file.
73500
73501         * modules/unistr/u8-strdup: New file.
73502         * modules/unistr/u16-strdup: New file.
73503         * modules/unistr/u32-strdup: New file.
73504         * lib/unistr/u8-strdup.c: New file.
73505         * lib/unistr/u16-strdup.c: New file.
73506         * lib/unistr/u32-strdup.c: New file.
73507         * lib/unistr/u-strdup.h: New file.
73508
73509         * modules/unistr/u8-strlen: New file.
73510         * modules/unistr/u16-strlen: New file.
73511         * modules/unistr/u32-strlen: New file.
73512         * lib/unistr/u8-strlen.c: New file.
73513         * lib/unistr/u16-strlen.c: New file.
73514         * lib/unistr/u32-strlen.c: New file.
73515         * lib/unistr/u-strlen.h: New file.
73516
73517         * modules/unistr/u8-strmblen: New file.
73518         * modules/unistr/u16-strmblen: New file.
73519         * modules/unistr/u32-strmblen: New file.
73520         * lib/unistr/u8-strmblen.c: New file.
73521         * lib/unistr/u16-strmblen.c: New file.
73522         * lib/unistr/u32-strmblen.c: New file.
73523
73524         * modules/unistr/u8-strmbtouc: New file.
73525         * modules/unistr/u16-strmbtouc: New file.
73526         * modules/unistr/u32-strmbtouc: New file.
73527         * lib/unistr/u8-strmbtouc.c: New file.
73528         * lib/unistr/u16-strmbtouc.c: New file.
73529         * lib/unistr/u32-strmbtouc.c: New file.
73530
73531         * modules/unistr/u8-strncat: New file.
73532         * modules/unistr/u16-strncat: New file.
73533         * modules/unistr/u32-strncat: New file.
73534         * lib/unistr/u8-strncat.c: New file.
73535         * lib/unistr/u16-strncat.c: New file.
73536         * lib/unistr/u32-strncat.c: New file.
73537         * lib/unistr/u-strncat.h: New file.
73538
73539         * modules/unistr/u8-strncmp: New file.
73540         * modules/unistr/u16-strncmp: New file.
73541         * modules/unistr/u32-strncmp: New file.
73542         * lib/unistr/u8-strncmp.c: New file.
73543         * lib/unistr/u16-strncmp.c: New file.
73544         * lib/unistr/u32-strncmp.c: New file.
73545
73546         * modules/unistr/u8-strncpy: New file.
73547         * modules/unistr/u16-strncpy: New file.
73548         * modules/unistr/u32-strncpy: New file.
73549         * lib/unistr/u8-strncpy.c: New file.
73550         * lib/unistr/u16-strncpy.c: New file.
73551         * lib/unistr/u32-strncpy.c: New file.
73552         * lib/unistr/u-strncpy.h: New file.
73553
73554         * modules/unistr/u8-strnlen: New file.
73555         * modules/unistr/u16-strnlen: New file.
73556         * modules/unistr/u32-strnlen: New file.
73557         * lib/unistr/u8-strnlen.c: New file.
73558         * lib/unistr/u16-strnlen.c: New file.
73559         * lib/unistr/u32-strnlen.c: New file.
73560         * lib/unistr/u-strnlen.h: New file.
73561
73562         * modules/unistr/u8-strpbrk: New file.
73563         * modules/unistr/u16-strpbrk: New file.
73564         * modules/unistr/u32-strpbrk: New file.
73565         * lib/unistr/u8-strpbrk.c: New file.
73566         * lib/unistr/u16-strpbrk.c: New file.
73567         * lib/unistr/u32-strpbrk.c: New file.
73568         * lib/unistr/u-strpbrk.h: New file.
73569
73570         * modules/unistr/u8-strrchr: New file.
73571         * modules/unistr/u16-strrchr: New file.
73572         * modules/unistr/u32-strrchr: New file.
73573         * lib/unistr/u8-strrchr.c: New file.
73574         * lib/unistr/u16-strrchr.c: New file.
73575         * lib/unistr/u32-strrchr.c: New file.
73576
73577         * modules/unistr/u8-strspn: New file.
73578         * modules/unistr/u16-strspn: New file.
73579         * modules/unistr/u32-strspn: New file.
73580         * lib/unistr/u8-strspn.c: New file.
73581         * lib/unistr/u16-strspn.c: New file.
73582         * lib/unistr/u32-strspn.c: New file.
73583         * lib/unistr/u-strspn.h: New file.
73584
73585         * modules/unistr/u8-strstr: New file.
73586         * modules/unistr/u16-strstr: New file.
73587         * modules/unistr/u32-strstr: New file.
73588         * lib/unistr/u8-strstr.c: New file.
73589         * lib/unistr/u16-strstr.c: New file.
73590         * lib/unistr/u32-strstr.c: New file.
73591         * lib/unistr/u-strstr.h: New file.
73592
73593         * modules/unistr/u8-strtok: New file.
73594         * modules/unistr/u16-strtok: New file.
73595         * modules/unistr/u32-strtok: New file.
73596         * lib/unistr/u8-strtok.c: New file.
73597         * lib/unistr/u16-strtok.c: New file.
73598         * lib/unistr/u32-strtok.c: New file.
73599         * lib/unistr/u-strtok.h: New file.
73600
73601         * modules/unistr/u8-uctomb: New file.
73602         * modules/unistr/u16-uctomb: New file.
73603         * modules/unistr/u32-uctomb: New file.
73604         * lib/unistr/u8-uctomb.c: New file.
73605         * lib/unistr/u16-uctomb.c: New file.
73606         * lib/unistr/u32-uctomb.c: New file.
73607
73608         * MODULES.html.sh (Unicode string functions): Add the new modules.
73609
73610 2007-01-08  Bruno Haible  <bruno@clisp.org>
73611
73612         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
73613         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
73614         subdirectories.
73615
73616 2007-01-08  Karl Berry  <karl@gnu.org>
73617
73618         * doc/error.texi: mention that main() fns must set program_name
73619         when progname is used.
73620
73621 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
73622
73623         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
73624         WCTYPE_H is empty, for the benefit of builds from non-distclean
73625         directories.  Problem reported by Eric Blake in
73626         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
73627
73628 2007-01-08  Bruno Haible  <bruno@clisp.org>
73629
73630         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
73631         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
73632         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
73633         PROVIDE_CANONICALIZE_FILENAME_MODE.
73634         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
73635
73636 2007-01-08  Bruno Haible  <bruno@clisp.org>
73637
73638         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
73639         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
73640         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
73641         * lib/fts.c: Likewise.
73642         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
73643
73644 2006-12-25  Bruno Haible  <bruno@clisp.org>
73645
73646         * modules/utf8-ucs4-safe: New file.
73647         * lib/utf8-ucs4-safe.h: New file.
73648         * lib/unistr/utf8-ucs4-safe.c: New file.
73649
73650         * modules/utf16-ucs4-safe: New file.
73651         * lib/utf16-ucs4-safe.h: New file.
73652         * lib/unistr/utf16-ucs4-safe.c: New file.
73653
73654         * MODULES.html.sh (Unicode string functions): Add the new modules.
73655
73656 2007-01-08  Bruno Haible  <bruno@clisp.org>
73657
73658         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
73659         (Depends-on): Add unitypes.
73660         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73661         (u8_mbtouc_aux): Move out to separate file.
73662         (u8_mbtouc): Use ucs4_t, uint8_t types.
73663         * lib/unistr/utf8-ucs4.c: New file.
73664
73665         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
73666         (Depends-on): Add unitypes.
73667         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73668         (u16_mbtouc_aux): Move out to separate file.
73669         (u16_mbtouc): Use ucs4_t, uint16_t types.
73670         * lib/unistr/utf16-ucs4.c: New file.
73671
73672         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
73673         (Depends-on): Add unitypes.
73674         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
73675         (u8_uctomb_aux): Move out to separate file.
73676         (u8_uctomb): Use ucs4_t, uint8_t types.
73677         * lib/unistr/ucs4-utf8.c: New file.
73678
73679         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
73680         (Depends-on): Add unitypes.
73681         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
73682         (u16_uctomb_aux): Move out to separate file.
73683         (u16_uctomb): Use ucs4_t, uint16_t types.
73684         * lib/unistr/ucs4-utf16.c: New file.
73685
73686 2006-12-25  Bruno Haible  <bruno@clisp.org>
73687
73688         * modules/unitypes: New file.
73689         * lib/unitypes.h: New file.
73690         * MODULES.html.sh (func_all_modules): New section "Unicode string
73691         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
73692         this section. Add unitypes.
73693
73694 2007-01-08  Bruno Haible  <bruno@clisp.org>
73695
73696         Avoid variable names that conflict with those from libtool.
73697         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73698         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
73699         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
73700         library_names_spec to acl_library_names_spec, hardcode_* to
73701         acl_hardcode_*.
73702         Reported by Ralf Wildenhues.
73703
73704 2007-01-08  Bruno Haible  <bruno@clisp.org>
73705
73706         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
73707         definition.
73708         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
73709         definition.
73710         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
73711         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
73712         definition.
73713         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
73714         definition.
73715         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
73716         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
73717         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
73718         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
73719         definition.
73720         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
73721         definition.
73722         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
73723         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
73724         GC_USE_<algorithm>.
73725         * lib/gc-libgcrypt.c: Likewise.
73726         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
73727         * modules/gc-arctwo (configure.ac): Likewise.
73728         * modules/gc-des (configure.ac): Likewise.
73729         * modules/gc-hmac-md5 (configure.ac): Likewise.
73730         * modules/gc-hmac-sha1 (configure.ac): Likewise.
73731         * modules/gc-md2 (configure.ac): Likewise.
73732         * modules/gc-md4 (configure.ac): Likewise.
73733         * modules/gc-md5 (configure.ac): Likewise.
73734         * modules/gc-random (configure.ac): Likewise.
73735         * modules/gc-rijndael (configure.ac): Likewise.
73736         * modules/gc-sha1 (configure.ac): Likewise.
73737
73738 2007-01-08  Bruno Haible  <bruno@clisp.org>
73739
73740         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
73741         macro definition.
73742         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
73743         definition.
73744         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
73745         definition.
73746         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
73747         * modules/fcntl-safer (configure.ac): Likewise.
73748         * modules/fopen-safer (configure.ac): Likewise.
73749         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
73750         GNULIB_FWRITEERROR macro definition.
73751
73752 2007-01-08  Bruno Haible  <bruno@clisp.org>
73753
73754         * m4/gnulib-common.m4: New file.
73755         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
73756         (func_get_filelist): Add m4/gnulib-common.m4.
73757
73758 2007-01-08  Bruno Haible  <bruno@clisp.org>
73759
73760         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
73761         command.
73762
73763 2007-01-08  Jim Meyering  <jim@meyering.net>
73764
73765         Use a more robust test for a "can't happen" condition.
73766         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
73767         narrowed the st_size value.  Presuming the "can't happen" condition
73768         is true, that narrowing could conceivably convert an invalid st_size
73769         value into a valid one.  Instead, use a change based on Matthew
73770         Woehlke's original patch.
73771
73772         Slight readability improvement: use an assert-like macro
73773         in place of literal "abort ()" uses.
73774         * lib/fts.c (fts_assert): Define.
73775         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
73776         Use this macro instead of a bare 'abort'.
73777
73778 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
73779
73780         Don't worry about using IRIX 5.3's wctype.h broken definitions;
73781         simply work around them.
73782         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
73783         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
73784         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
73785         declaring.
73786         Don't bother to define as macros, since the standard doesn't require it.
73787         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
73788         longer worry about IRIX 5.3.
73789         (HAVE_WCTYPE_CTMP_BUG): Remove.
73790
73791 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73792
73793         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
73794         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
73795         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
73796         Problems reported by Georg Schwarz for IRIX 5.3.
73797
73798         * gnulib-tool (autoconf_minversion): Take the maximum version number
73799         found, not the minimum.  Problem reported by James Youngman.
73800
73801 2007-01-03  Karl Berry  <karl@gnu.org>
73802
73803         * doc/error.texi: new file, explaining interaction with progname.
73804         * doc/gnulib.texi: include it.  Update copyright.
73805
73806 2007-01-03  Simon Josefsson  <simon@josefsson.org>
73807
73808         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
73809         AC_CANONICAL_HOST, to improve autobuild outputs.
73810
73811 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
73812             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73813
73814         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
73815         sockets, server sockets, and other file descriptors.  Count errors
73816         to compute the return value.  Reorder the code a bit to be easier
73817         to follow.  Don't set event bits that were not requested (except
73818         POLLERR and POLLHUP).
73819
73820 2007-01-01  Bruno Haible  <bruno@clisp.org>
73821
73822         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
73823
73824 2007-01-03  Jim Meyering  <jim@meyering.net>
73825
73826         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
73827
73828 2007-01-02  Bruno Haible  <bruno@clisp.org>
73829
73830         * modules/settime (Include): Require timespec.h.
73831         * modules/nanosleep (Include): Likewise.
73832
73833 2007-01-01  Bruno Haible  <bruno@clisp.org>
73834
73835         * gnulib-tool (func_emit_copyright_notice): Bump year.
73836         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
73837
73838 2007-01-01  Bruno Haible  <bruno@clisp.org>
73839
73840         Improve support for OpenBSD.
73841         * build-aux/config.rpath (libname_spec): Export.
73842         (library_names_spec): New variable. Export.
73843         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
73844         library_names_spec from the config.rpath output. Locate shared library
73845         through the name pattern in library_names_spec.
73846
73847 2007-01-01  Eric Blake  <ebb9@byu.net>
73848
73849         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
73850
73851 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
73852
73853         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
73854         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
73855         assume the C locale, and avoid an "eval" that could cause trouble.
73856         Problem with SORT reported by Bob Proulx.
73857
73858         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
73859         Define.  Trivial patch from Henning Nielsen Lund, originally
73860         sent to bug-grep@gnu.org today.
73861
73862 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
73863
73864         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
73865         struct stat.  Problem reported by Henning Nielsen Lund.
73866         * lib/acl.c: Include acl.h first, to check interface.  Don't
73867         bother to include sys/types.h and sys/stat.h again.
73868
73869 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73870
73871         Import the following change from libc; problem reported by
73872         Sven Verdoolaege.
73873
73874         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
73875
73876         [BZ #1373]
73877         * lib/argp.h: Remove __NTH for __argp_usage inline function.
73878
73879 2006-12-28  Jim Meyering  <jim@meyering.net>
73880
73881         * build-aux/announce-gen: Do not assume that the package
73882         builds any of tar.gz, tar.bz2, and .xdelta files.
73883         Suggestion from Simon Josefsson.
73884
73885 2006-12-28  Simon Josefsson  <simon@josefsson.org>
73886
73887         * modules/announce-gen: New file.
73888
73889 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
73890
73891         * lib/mbchar.h: Just include <wctype.h>; the wctype module
73892         handles its gotchas now.
73893         * lib/mbswidth.c: Likewise.
73894         * lib/wcwidth.h: Likewise.
73895         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
73896         and iswcntrl; the wctype module does this stuff now.
73897         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73899         * modules/mbchar (Depends-on): Add wctype.
73900         * modules/mbswidth (Depends-on): Likewise.
73901         * modules/wcwidth (Depends-on): Likewise.
73902
73903 2006-12-27  Eric Blake  <ebb9@byu.net>
73904
73905         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
73906         module uses more than what <wctype.h> is required to provide.
73907
73908 2006-12-26  Eric Blake  <ebb9@byu.net>
73909
73910         * gnulib-tool (sed_extract_prog): Avoid space-tab.
73911
73912 2006-12-26  Eric Blake  <ebb9@byu.net>
73913
73914         * modules/absolute-header: New module.
73915         * modules/fcntl (Depends-on): Depend on it.
73916         * modules/inttypes (Depends-on): Likewise.
73917         * modules/stdint (Depends-on): Likewise.
73918         * modules/sys_stat (Depends-on): Likewise.
73919         * modules/wctype (Depends-on): Likewise.
73920         * MODULES.html.sh (Support for building libraries and
73921         executables): Document it.
73922
73923 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
73924
73925         * gnulib-tool (SED): Remove, undoing previous change.
73926         The problem was that it broke coreutils on Solaris, because
73927         "sed --posix" leaked into a makefile.
73928         (sed): New alias, if 'alias' and GNU sed.
73929
73930 2006-12-24  Jim Meyering  <jim@meyering.net>
73931
73932         Work around an fchownat bug in glibc-2.4:
73933         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
73934         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
73935         in spite of the -P option.
73936         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
73937         New macros.
73938         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
73939         * modules/openat (Files): Add lib/fchownat.c.
73940         * lib/openat.c (fchownat): Don't define here.  Move to...
73941         * lib/fchownat.c: ...this new file.
73942
73943 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73944
73945         Fix bug reported by Bruno Haible in
73946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
73947         where quotearg.c didn't compile on Mac OS X 10.2 because it
73948         lacks <wchar.h> and wint_t.
73949         * lib/wctype_.h (__wctype_wint_t): New type.
73950         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
73951         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
73952         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
73953         Arg is now of type __wctype_wint_t, not wint_t.
73954         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
73955         substitute HAVE_WINT_T.
73956         * modules/wctype (Files): Add m4/wint_t.m4.
73957         (wctype.h): Substitute HAVE_WINT_T.
73958
73959 2006-12-23  Bruno Haible  <bruno@clisp.org>
73960
73961         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
73962
73963 2006-12-23  Bruno Haible  <bruno@clisp.org>
73964
73965         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
73966         S_ISLNK.
73967         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
73968         mingw.
73969
73970 2006-12-22  Bruno Haible  <bruno@clisp.org>
73971
73972         * lib/copy-file.c: Include acl.h.
73973         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
73974         Close the file descriptors only after being done with copy_acl.
73975         * modules/copy-file (Depends-on): Add acl.
73976
73977 2006-12-22  Bruno Haible  <bruno@clisp.org>
73978
73979         * gnulib-tool (SED): New variable.
73980         Use $SED instead of sed everywhere.
73981
73982 2006-12-22  Bruno Haible  <bruno@clisp.org>
73983
73984         * modules/no-c++: New file.
73985         * m4/no-c++.m4: New file.
73986         * MODULES.html.sh (Support for building libraries and executables):
73987         Add no-c++.
73988
73989 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
73990
73991         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73992         Include <limits.h>, and use its INT_MAX to rewrite the
73993         j loop so that it does not overflow 'int'.  Problem reported by
73994         Ralf Wildenhues in
73995         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
73996         Play it safe by shifting left by 1 rather than multiplying by 2,
73997         as GCC is less likely to optimize this away when the value
73998         is signed (when it assumes overflow leads to undefined behavior).
73999         Also, don't assume time_t uses two's complement.
74000
74001 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74002
74003         * MODULES.html.sh: New module wctype.
74004         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74005         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74006         <wctype.h>, since the new wctype module should fix this.
74007         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74008         the wctype module should arrange for it.
74009         * lib/regex_internal.h: Likewise.
74010         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74011         since the wctype module should handle this now.
74012         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74013         * modules/fnmatch (Depends-on): Add wctype.
74014         * modules/quotearg (Depends-on): Likewise.
74015         * modules/regex (Depends-on): Likewise.
74016
74017 2006-12-19  Bruno Haible  <bruno@clisp.org>
74018
74019         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74020         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74021
74022 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74023
74024         * modules/savewd (Depends-on): Fix dependency on fcntl.
74025
74026 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74027
74028         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74029         conforms to C99, rather than relying on the user's environment
74030         setting of STDINT_H.
74031
74032 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74033         and Eric Blake  <ebb9@byu.net>
74034
74035         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74036         This is more consistent with the other defines here.
74037         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74038         Port to z/OS.  Problem reported by Paul Gilmartin.
74039         Change local vars to use gl_ prefix rather than ac_.
74040         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74041         with other defines.
74042         * modules/double-slash-root: New module.
74043         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74044         (Depends-on): Add double-slash-root.
74045         * MODULES.html.sh (File system functions): Mention new module.
74046
74047 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74048
74049         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74050         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74051         This is for the benefit of gzip, which doesn't do i18n.
74052
74053 2006-12-12  Jim Meyering  <jim@meyering.net>
74054
74055         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74056         Reported by Andreas Schwab <schwab@suse.de>.
74057
74058 2006-12-12  Bruno Haible  <bruno@clisp.org>
74059
74060         Merge these changes.
74061         2006-09-05  Bruno Haible  <bruno@clisp.org>
74062         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74063         iconv_alloc succeeded.
74064         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74065         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74066         test for " && dest " at the end - dest is always != NULL there. Call
74067         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74068         with 2xNULL arguments, also to flush the state storage. Handle the
74069         IRIX iconv behaviour. Realloc the final result, to throw away unused
74070         memory.
74071
74072 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74073
74074         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74075         and fchmodat unconditionally, since glibc 2.4 has them.
74076         Problem reported by Arkadiusz Miskiewicz.
74077
74078 2006-12-10  Bruno Haible  <bruno@clisp.org>
74079
74080         * gnulib-tool (func_import): Show the include files only for those
74081         modules that are copied and specified.
74082         Reported by Karl Berry.
74083
74084 2006-12-08  Jim Meyering  <jim@meyering.net>
74085
74086         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74087         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74088
74089         * build-aux/announce-gen: Add two new options, both optional:
74090         --bootstrap-tools=TOOL_LIST
74091               a comma-separated list of tools, e.g.,
74092               autoconf,automake,bison,gnulib
74093         --gnulib-snapshot-date=DATE
74094               if gnulib is in the bootstrap tool list,
74095               then report this as the snapshot date.
74096               If not specified, use the current date/time.
74097               If you specify a date here, be sure it's UTC.
74098
74099 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74100
74101         * tests/test-argp-2.sh: Fix test to match actual output.
74102         (func_compare): Fix sed script to be portable.
74103
74104 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74105
74106         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74107         workaround for this case.  It is not autoconfigured now; offhand
74108         it's hard to see how to autoconfigure it.
74109
74110 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74111
74112         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74113         a directory that is about to be chowned.  Such a directory's
74114         initial file permissions should permit the owner only and this
74115         should not be changed until after the chown, since the group and
74116         other bits would be incorrect if they granted permission before
74117         the chown.
74118
74119         Fix porting problem for iswctype reported by Georg Schwarz in:
74120         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74121         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74122         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74123         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74124         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74125
74126 2006-12-03  Jim Meyering  <jim@meyering.net>
74127
74128         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74129         p->fts_statp may not yet be defined.
74130         (fts_read): Instead, set it in the caller, once p->fts_statp is
74131         sure to be defined, and corresponds to a top-level directory.
74132         This bug made du -x fail.  Here's the coreutils test case:
74133         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74134         Reported by Mike Frysinger.
74135
74136 2006-12-01  Jim Meyering  <jim@meyering.net>
74137
74138         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74139         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74140         Reported by Simon Josefsson.
74141
74142 2006-11-30  Jim Meyering  <jim@meyering.net>
74143
74144         * m4/warning.m4: Use the all-permissive copyright notice
74145         recommended by RMS (rather than LGPL).
74146         * m4/vararrays.m4: Likewise.
74147         * m4/flexmember.m4: Likewise.
74148
74149 2006-11-29  Bruno Haible  <bruno@clisp.org>
74150
74151         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74152         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74153         using +=.
74154         Reported by Simon Josefsson <simon@josefsson.org>.
74155
74156 2006-11-28  James Youngman <jay@gnu.org>
74157
74158         * README: Advise users that they might find the bug-gnulib@gnu.org
74159         and autotools-announce@gnu.org mailing lists useful.
74160
74161 2006-11-28  Bruno Haible  <bruno@clisp.org>
74162
74163         * m4/ptrdiff_max.m4: Remove file.
74164
74165 2006-11-21  Bruno Haible  <bruno@clisp.org>
74166
74167         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74168         _AC_COMPUTE_INT.
74169         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74170         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74171         _AC_COMPUTE_INT.
74172         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74173         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74174         _AC_COMPUTE_INT.
74175         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74176
74177 2006-11-28  Jim Meyering  <jim@meyering.net>
74178
74179         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74180         warning from "gcc -Wshadow" about shadowing the builtin.
74181
74182 2006-11-27  Bruno Haible  <bruno@clisp.org>
74183
74184         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74185         _AC_COMPUTE_INT.
74186         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74187
74188 2006-11-27  Bruno Haible  <bruno@clisp.org>
74189             Paul Eggert  <eggert@cs.ucla.edu>
74190
74191         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74192
74193 2006-11-26  Bruno Haible  <bruno@clisp.org>
74194
74195         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74196         noinst_LTLIBRARIES.
74197
74198 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74199             Bruno Haible  <bruno@clisp.org>
74200
74201         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74202         if compiling with "gcc -ansi".
74203
74204 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74205
74206         Fix some incompatibilities with gcc -ansi -pedantic.
74207         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74208         if compiling pedantically with GCC, unless it's C99 or later.
74209         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74210         it mishandles gcc -ansi -pedantic as well.
74211         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74212         if gcc -pedantic.
74213         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74214         initializers for struct if -pedantic, unless it's C99 or later.
74215
74216 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74217
74218         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74219         Don't close an fd more than once. Identical atimes indicate
74220         success, not failure.
74221
74222 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74223
74224         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74225
74226 2006-11-23  Jim Meyering  <jim@meyering.net>
74227
74228         * build-aux/announce-gen: New file.  From coreutils.
74229
74230 2006-11-22  Jim Meyering  <jim@meyering.net>
74231
74232         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74233         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74234         (fts_read): Use a temporary to narrow the overused st_size member
74235         before using it in a switch statement.  Reported by Matthew Woehlke.
74236
74237         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74238         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74239
74240 2006-11-20  Bruno Haible  <bruno@clisp.org>
74241
74242         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74243         changequote instead of pairs of brackets.
74244         Reported by Andreas Schwab <schwab@suse.de>.
74245
74246 2006-11-21  Jim Meyering  <jim@meyering.net>
74247
74248         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74249         so as to remain compatible with older compilers.
74250         Patch from Michael Deutschmann.
74251
74252 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74253
74254         * MODULES.html.sh (File system functions): Add openat.
74255
74256         * lib/openat.h (rpl_fstatat): New macro, if
74257         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74258         (fstatat): Define to rpl_fstatat under the same conditions,
74259         unless COMPILING_FSTATAT.
74260         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74261         seems to have the bug.
74262         * lib/fstatat.c: New file.
74263         * modules/openat (Files): Add it.
74264
74265 2006-11-20  Bruno Haible  <bruno@clisp.org>
74266
74267         * Makefile: New file.
74268
74269 2006-11-20  Jim Meyering  <jim@meyering.net>
74270
74271         The beginnings of syntax-related checks for gnulib.
74272         * lib/Makefile: New file.
74273         * lib/t-idcache: New script.  Ensure that the two halves of
74274         idcache.c stay in sync.
74275
74276         * lib/idcache.c: Adjust comments in user- and group- portions to
74277         be more accurate, and to be consistent with one another.
74278
74279 2006-11-20  Jim Meyering  <jim@meyering.net>
74280
74281         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74282         continue using the flexible array member (thus, this module performs
74283         half as many malloc calls), with the addition that...
74284         (getgroup, getuser): Consistently record a non-match via an empty
74285         "name" string, and map an empty string match to a NULL return value.
74286         * modules/idcache (Depends-on): Re-add flexmember.
74287
74288         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74289         (getuidbyname, getgroup, getgidbyname): Likewise.
74290
74291         Use cleaner syntax: NULL rather than 0.
74292         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74293
74294 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74295
74296         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74297         It mishandled the case where the group was missing.
74298         Problem reported by Greg Schafer.
74299         * modules/idcache: Likewise.
74300
74301 2006-11-18  Jim Meyering  <jim@meyering.net>
74302
74303         * check-module (%exempt_header): Add exception for some
74304         conditionally-included headers.
74305
74306         * modules/i-ring (Depends-on): Add verify.
74307         (License): Change to LGPL.
74308
74309 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74310
74311         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74312         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74313         and inttostr.h.  Use snprintf rather than uinttostr, so that
74314         LGPLed code doesn't depend on GPLed.
74315
74316 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74317
74318         * modules/inline (License): Change from GPL to LGPL.
74319
74320 2006-11-17  Jim Meyering  <jim@meyering.net>
74321
74322         * modules/d-type (License): Switch to LGPL.
74323
74324 2006-11-15  Bruno Haible  <bruno@clisp.org>
74325
74326         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74327
74328 2006-11-15  Eric Blake  <ebb9@byu.net>
74329
74330         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74331         the module dependency.
74332
74333 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74334             Bruno Haible  <bruno@clisp.org>
74335
74336         * gnulib-tool (func_create_testdir): Add license consistency check.
74337
74338 2006-11-15  Eric Blake  <ebb9@byu.net>
74339
74340         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74341         random "(cached)" in configure output.
74342
74343 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74344
74345         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74346         test for conforming inttypes.h is both announced and cached.
74347
74348         * MODULES.html.sh (seen_modules, seen_files): New variables.
74349         (func_module): Rewrite to use a few less gnulib-tool and sed
74350         invocations.  Avoid a couple of quadratic algorithms for ...
74351         (missed_modules, missed_files): ... these, with ...
74352         (func_append, func_tmpdir): ... these new functions, from
74353         gnulib-tool.  Analogously, install traps for cleanup.
74354
74355         * tests/test-gc.c (main): Remove unused variables.
74356         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74357
74358 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74359
74360         * modules/inttostr (License): Change to LGPL.
74361
74362 2006-11-14  Eric Blake  <ebb9@byu.net>
74363
74364         * modules/tempname (License): Change to LGPL.
74365
74366 2006-11-14  Eric Blake  <ebb9@byu.net>
74367
74368         * doc/functions.texi (Function Portability): *printf functions on
74369         Cygwin now understand all POSIX size specifiers.
74370
74371 2006-11-14  Bruno Haible  <bruno@clisp.org>
74372
74373         * modules/c-ctype (License): Change to LGPL.
74374
74375 2006-11-12  Bruno Haible  <bruno@clisp.org>
74376
74377         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74378         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74379         for GNOME libraries, for which the include files are installed in
74380         subdirectories of $prefix/include.
74381
74382 2006-11-12  Bruno Haible  <bruno@clisp.org>
74383
74384         * m4/lib-link.m4: Require at least autoconf-2.54.
74385         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74386         name to underscores for the --with option.
74387
74388 2006-11-13  Bruno Haible  <bruno@clisp.org>
74389
74390         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74391         the tests directory.
74392         Reported by Ralf Wildenhues.
74393
74394 2006-11-13  Bruno Haible  <bruno@clisp.org>
74395
74396         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74397         (func_emit_initmacro_end): Undo the override here.
74398         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74399         Works around the famous automake error in coreutils.
74400
74401 2006-11-13  Eric Blake  <ebb9@byu.net>
74402
74403         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74404         element, not its node.
74405
74406 2006-11-12  Bruno Haible  <bruno@clisp.org>
74407
74408         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74409         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74410
74411 2006-11-12  Bruno Haible  <bruno@clisp.org>
74412
74413         * gnulib-tool: New option --local-symlink.
74414         (func_usage): Document it.
74415         (lsymbolic): New variable.
74416         (func_import, func_create_testdir): If --symlink was not specified,
74417         test whether --local-symlink was specified and the file comes from
74418         the local_gnulib_dir.
74419
74420 2006-11-12  Bruno Haible  <bruno@clisp.org>
74421
74422         * gnulib-tool (func_ln): New function.
74423         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74424
74425 2006-11-12  Bruno Haible  <bruno@clisp.org>
74426
74427         Finish support for source files in subdirectories.
74428         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74429         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74430         AUTOMAKE_OPTIONS.
74431         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74432
74433 2006-11-12  Bruno Haible  <bruno@clisp.org>
74434
74435         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74436         EXTRA_lib_SOURCES augmentation.
74437         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74438
74439 2006-11-12  Jim Meyering  <jim@meyering.net>
74440
74441         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74442         file descriptors.  This also averts a failure on systems with
74443         native openat support when a traversed directory lacks "x" access.
74444         * lib/fts_.h: Include "i-ring.h"
74445         (struct FTS) [fts_fd_ring]: New member.
74446         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74447         (FCHDIR): Add parentheses.
74448         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74449         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74450         When descending, rather than simply closing the previous
74451         fts_cwd_fd value, push that file descriptor onto the ring.
74452         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74453         (fts_open): Initialize the new fd_ring member.
74454         (fts_close): Clear the ring.
74455         (fts_safe_changedir): When possible, use our new fd_ring to skip
74456         the diropen and fstat and dev/ino comparison that would normally
74457         accompany a virtual `chdir ("..")'.
74458
74459         * modules/fts (Depends-on): Add i-ring.
74460         * modules/i-ring: New module.
74461         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74462         * m4/i-ring.m4: New file.
74463
74464 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74465
74466         * gnulib-tool (func_create_testdir): Fix replacement of
74467         `build-aux' in configure.ac.  Run autotools in gltests
74468         subdirectory.
74469         (func_create_testdir, func_create_megatestdir, test): There is
74470         no need for '--force' in most autotool invocations in a new
74471         tree.  Actually fail the whole test if any of the tools, or the
74472         configure or make stages fail.
74473
74474         Sync from Automake.
74475         * build-aux/gnupload: Revert last change.  Add pointer to upload
74476         instructions of the GNU Maintenance Instructions.
74477         Suggestion by Karl Berry.
74478
74479 2006-11-10  Jim Meyering  <jim@meyering.net>
74480
74481         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74482
74483 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74484
74485         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74486         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74487         (bind_textdomain_codeset) [! ENABLE_NLS]:
74488         Evaluate all the arguments.  That way, callers get compatible behavior
74489         if the arguments have side effects.  Also, it avoids some GCC
74490         diagnostics in some cases; Joel E. Denny reported problems when Bison
74491         was configured with --enable-gcc-warnigs.
74492
74493 2006-11-10  Jim Meyering  <jim@meyering.net>
74494
74495         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74496         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74497         account.
74498
74499 2006-11-10  Jim Meyering  <jim@meyering.net>
74500
74501         * modules/inline: New file/module.
74502         * modules/xalloc (Files): Remove m4/inline.m4.
74503         (Depends-on): Add inline, instead.
74504         * modules/oset: Likewise.
74505         * modules/list: Likewise.
74506
74507 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74508
74509         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74510         Problem reported by Matthew Woehlke.
74511
74512 2006-11-09  Bruno Haible  <bruno@clisp.org>
74513
74514         * lib/tempname.c (gen_tempname): Remove variant that invokes
74515         __gen_tempname.
74516         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74517         __gen_tempname.
74518
74519 2006-11-08  Bruno Haible  <bruno@clisp.org>
74520
74521         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74522         to 'yes' instead of 'cross-compiling'.
74523
74524 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74525
74526         * lib/quotearg.h (quotearg_free): New decl.
74527         * lib/quotearg.c (quotearg_free): New function.
74528         (slot0, nslots, slotvec0, slotvec):
74529         Now file-scope so that quotearg_free can get at them.
74530
74531 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74532
74533         Sync from Automake.
74534         * build-aux/gnupload: Add missing 'gnu' to example URL.
74535         Report by Karl Berry.
74536
74537 2006-11-08  Bruno Haible  <bruno@clisp.org>
74538
74539         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74540         Suggested by Paul Eggert.
74541
74542 2006-11-08  Jim Meyering  <jim@meyering.net>
74543
74544         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74545         It's already included if !_LIBC.
74546         (fts_safe_changedir): Add a comment.
74547
74548 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74549
74550         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74551         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74552         Matthew Woehlke.
74553
74554         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74555         definitions up, to avoid colliding with change below.
74556         (static_inline) [HAVE_INLINE]: New macro.
74557         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74558         Provide extern decls when !HAVE_INLINE.  Do not define unless
74559         static_inline is defined, either by us or by xmalloc.c.  Use
74560         static_inline rather than static inline.
74561         (XCALLOC): Optimize sizeof(T) = 1 case.
74562         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74563
74564 2006-11-07  Bruno Haible  <bruno@clisp.org>
74565
74566         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74567         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74568         AC_C_INLINE.
74569         * modules/xalloc (Files): Add m4/inline.m4.
74570
74571 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74572
74573         * README: Fix typo.
74574         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74575         (Miscellanous Notes): ...from this.
74576
74577 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74578
74579         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74580         Mention that offsetof should be used instead of sizeof.
74581         From Bruno Haible.
74582
74583 2006-11-07  Bruno Haible  <bruno@clisp.org>
74584
74585         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74586
74587 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74590         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74591         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74592         (gl_tree_add_before, gl_tree_add_after):
74593         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74594         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74595         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74596         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74597         (gl_linked_add_after, gl_linked_add_at): Likewise.
74598         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74599         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74600         (gl_tree_add_before, gl_tree_add_after): Likewise.
74601         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74602         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
74603         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74604
74605 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74606
74607         * lib/gl_oset.h: Use C comment style, not C++ comment style.
74608
74609 2006-11-06  Bruno Haible  <bruno@clisp.org>
74610
74611         * m4/inline.m4: New file.
74612         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
74613         * modules/list (Files): Add m4/inline.m4.
74614         * modules/oset (Files): Likewise.
74615
74616 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74617
74618         * lib/idcache.c: Include <stddef.h>, for offsetof.
74619         (struct userid.name): Change from char * to a flexible array member.
74620         All uses changed.
74621         * modules/idcache (Depends-on): Add flexmember.
74622
74623         * MODULES.html.sh (Core language properties): New module flexmember.
74624         * modules/flexmember, m4/flexmember.m4: New files.
74625
74626         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
74627         inline functions that are identical with the old xnmalloc_inline,
74628         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
74629         that we can avoid some unnecessary integer multiplications and
74630         divisions in the common case where the element size is known at
74631         compile time.
74632         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
74633         needed.
74634         (xnboundedmalloc): Remove.
74635         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
74636         arguments, for consistency with rest of this header.
74637         (xcharalloc): Rewrite using XNMALLOC.
74638         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
74639         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
74640         versions have been moved to lib/xalloc.h and renamed to be the
74641         non-*_inline versions.
74642         (xmalloc, xrealloc): Implement without reference to the xnmalloc
74643         and xnrealloc functions, since those functions are now inline and
74644         now call us.
74645         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
74646         renaming described above.
74647         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
74648         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
74649         captures the dependency in AC_C_INLINE.
74650
74651         New module canonicalize-lgpl, proposed by Charles Wilson in
74652         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
74653         with a few small changes afterwards.
74654         * MODULES.html.sh (File system functions): New module
74655         canonicalize-lgpl.
74656         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
74657         and canonicalize_file_name.
74658         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
74659         * modules/canonicalize-lgpl: New files.
74660
74661 2006-11-05  Bruno Haible  <bruno@clisp.org>
74662
74663         * gnulib-tool (func_import, func_create_testdir): Create directories
74664         also for files in subdirectories of lib/.
74665
74666 2006-11-05  Bruno Haible  <bruno@clisp.org>
74667
74668         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
74669         ANSI C compliant.
74670
74671 2006-11-03  Bruno Haible  <bruno@clisp.org>
74672
74673         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74674         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
74675         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
74676         (xnboundedmalloc): New inline function.
74677         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
74678         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
74679         xmalloc.
74680         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
74681         xmalloc.
74682         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
74683         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
74684         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
74685         xmalloc.
74686         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74687         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
74688         xmalloc.
74689         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
74690         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74691         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
74692         xmalloc.
74693         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74694         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
74695         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74696         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
74697         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
74698         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
74699         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
74700
74701 2006-11-03  Bruno Haible  <bruno@clisp.org>
74702
74703         * lib/c-ctype.h [C++]: Define functions without name mangling.
74704         * lib/fwriteerror.h [C++]: Likewise.
74705         * lib/gcd.h [C++]: Likewise.
74706         * lib/linebreak.h [C++]: Likewise.
74707
74708 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74709
74710         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
74711         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
74712         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
74713         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74714         Check for functions and headers just once.
74715         Check for declaration of canonicalize_file_name.
74716         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
74717
74718 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74719
74720         * gnulib-tool (func_import): Fix typo in actioncmd.
74721
74722 2006-11-02  Bruno Haible  <bruno@clisp.org>
74723
74724         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
74725         newline sequence in the Makefile.am snippet as a space, like "make"
74726         does.
74727         Reported by Roger Persson <perrog@gmail.com>.
74728
74729 2006-11-01  Bruno Haible  <bruno@clisp.org>
74730
74731         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
74732         already declared in <string.h>.
74733         * lib/strcase.h (strncasecmp): Don't declare it if yes.
74734
74735 2006-11-01  Bruno Haible  <bruno@clisp.org>
74736
74737         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
74738         * lib/strcase.h: Include <string.h>.
74739         (strcasecmp): Define to rpl_strcasecmp here.
74740
74741 2006-11-01  Bruno Haible  <bruno@clisp.org>
74742
74743         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
74744
74745 2006-11-01  Eric Blake  <ebb9@byu.net>
74746
74747         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
74748
74749         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
74750
74751 2006-10-29  Bruno Haible  <bruno@clisp.org>
74752
74753         Make it compile in C++ mode.
74754         * lib/full-write.c (full_rw): Add a cast.
74755
74756 2006-11-01  Bruno Haible  <bruno@clisp.org>
74757
74758         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
74759         be POSIX compliant.
74760         Reported by Roger Persson <perrog@gmail.com>.
74761
74762 2006-11-01  Eric Blake  <ebb9@byu.net>
74763
74764         * lib/getopt_.h: Fix comments.
74765
74766 2006-10-31  Eric Blake  <ebb9@byu.net>
74767
74768         * modules/tmpdir (Depends-on): Add sys_stat.
74769         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
74770         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
74771         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
74772         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
74773         tempname.
74774
74775 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
74776
74777         Avoid some C++ diagnostics reported by Bruno Haible.
74778         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
74779         xmalloc.
74780         (quotearg_alloc): Use xcharalloc rather than xmalloc.
74781         (struct slotvec): Move to top level.
74782         (quotearg_n_options): Rewrite to avoid xmalloc.
74783         * lib/xalloc.h (xcharalloc): New function.
74784         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
74785         [defined __cplusplus]: Add function template that provides result
74786         type propagation.  This part of the change is from Bruno Haible.
74787
74788 2006-10-29  Bruno Haible  <bruno@clisp.org>
74789
74790         Make it compile in C++ mode.
74791         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
74792         * lib/strnlen1.c (strnlen1): Cast memchr result.
74793         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
74794         * lib/clean-temp.c (string_equals, string_hash): Add casts.
74795         (create_temp_dir): Rename local variable 'template'.
74796         (compile_csharp_using_sscli): Add cast.
74797         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
74798         * lib/findprog.c (find_in_path): Likewise.
74799         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
74800         * lib/wait-process.c (register_slave_subprocess): Likewise.
74801
74802 2006-10-22  Bruno Haible  <bruno@clisp.org>
74803
74804         * modules/tsearch: New file.
74805         * lib/tsearch.h: New file.
74806         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
74807         * m4/tsearch.m4: New file.
74808         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
74809
74810 2006-10-29  Eric Blake  <ebb9@byu.net>
74811
74812         * lib/arcfour.c: Assume config.h.
74813         * lib/arctwo.c: Likewise.
74814         * lib/base64.c: Likewise.
74815         * lib/check-version.c: Likewise.
74816         * lib/crc.c: Likewise.
74817         * lib/des.c: Likewise.
74818         * lib/gc-gnulib.c: Likewise.
74819         * lib/gc-libgcrypt.c: Likewise.
74820         * lib/gc-pbkdf2-sha1.c: Likewise.
74821         * lib/getaddrinfo.c: Likewise.
74822         * lib/getdelim.c: Likewise.
74823         * lib/getline.c: Likewise.
74824         * lib/hmac-md5.c: Likewise.
74825         * lib/hmac-sha1.c: Likewise.
74826         * lib/iconvme.c: Likewise.
74827         * lib/md2.c: Likewise.
74828         * lib/md4.c: Likewise.
74829         * lib/memxor.c: Likewise.
74830         * lib/read-file.c: Likewise.
74831         * lib/readline.c: Likewise.
74832         * lib/rijndael-alg-fst.c: Likewise.
74833         * lib/rijndael-api-fst.c: Likewise.
74834         * lib/xgetdomainname.c: Likewise.
74835
74836 2006-10-28  Eric Blake  <ebb9@byu.net>
74837
74838         * lib/xstrndup.c: Assume config.h.
74839
74840 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74841
74842         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
74843         stat-macros.h is now for our own macros, whereas stat_h is for
74844         macros in the <sys/stat.h> name space.
74845         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
74846         (STAT_MACROS_H): Remove.
74847         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
74848         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
74849         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
74850         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
74851         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
74852         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
74853         Move these macros to ...
74854         * lib/stat_.h: here.  Don't include stat-macros.h.
74855         * lib/canonicalize.c: Don't include stat-macros.h.
74856         * lib/chown.c: Likewise.
74857         * lib/euidaccess.c: Likewise.
74858         * lib/file-type.c: Likewise.
74859         * lib/filemode.c: Likewise.
74860         * lib/glob.c: Likewise.
74861         * lib/isapipe.c: Likewise.
74862         * lib/lchown.c: Likewise.
74863         * lib/lstat.c: Likewise.
74864         * lib/mkdir-p.c: Likewise.
74865         * lib/rmdir.c: Likewise.
74866         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
74867         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
74868         unless mkdir isn't declared, to speed up 'configure'.
74869         Always create sys/stat.h, since it's unlikely any real sys/stat.h
74870         would define all the S_* symbols.
74871         * modules/canonicalize (Depends-on):
74872         Depend on sys_stat, not stat-macros.
74873         * modules/chown: Likewise.
74874         * modules/euidaccess: Likewise.
74875         * modules/filemode: Likewise.
74876         * modules/file-type: Likewise.
74877         * modules/glob: Likewise.
74878         * modules/isapipe: Likewise.
74879         * modules/lchown: Likewise.
74880         * modules/lstat: Likewise.
74881         * modules/mkancesdirs: Likewise.
74882         * modules/rmdir: Likewise.
74883         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
74884         * modules/modechange: Likewise.
74885         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
74886         (configure.ac): Remove gl_STAT_MACROS.
74887         * modules/sys_stat (Depends-on): Remove stat-macros.
74888
74889 2006-10-27  Bruno Haible  <bruno@clisp.org>
74890
74891         * m4/signed.m4: Remove file.
74892         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
74893         invocation.
74894         * modules/vasnprintf (Files): Remove m4/signed.m4.
74895
74896 2006-10-27  Bruno Haible  <bruno@clisp.org>
74897
74898         Update to GNU gettext 0.16.
74899         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
74900         m4/inttypes-h.m4, m4/signed.m4.
74901         * m4/gettext.m4: Update to GNU gettext 0.16.
74902         * m4/intl.m4: New file, from GNU gettext.
74903         * m4/intldir.m4: New file, from GNU gettext.
74904         * config/srclist.txt: Update
74905
74906 2006-10-27  Eric Blake  <ebb9@byu.net>
74907
74908         * MODULES.html.sh: Document tempname.
74909         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
74910         dependencies.
74911         (Files): Move lib/tempname.c...
74912         * modules/tempname: ...to this new module.
74913         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
74914         (gl_PREREQ_TEMPNAME): Move...
74915         * m4/tempname.m4: ...to this new file.
74916         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
74917         * modules/sys_stat (Depends-on): Add stat-macros.
74918         * lib/stat_.h (includes): Pick up stat macros.
74919         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
74920         if stat macros are broken.
74921         * lib/tempname.c (includes): No need to include "stat-macros.h".
74922         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
74923         (direxists, __path_search) [!_LIBC]: Don't compile these in
74924         gnulib; the tmpdir module covers that.
74925         * lib/tempname.h: New file.
74926
74927 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
74928
74929         * COPYING: Explain how gnulib-tool converts licence headers.
74930         Almost all wording by Eric Blake.
74931
74932 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
74933
74934         * lib/mbchar.h (is_basic_table): Make read-only.
74935         * lib/mbchar.c (is_basic_table): Likewise.
74936         Reported by John Darrington.
74937
74938 2006-10-25  Bruno Haible  <bruno@clisp.org>
74939
74940         * lib/progname.h (set_program_name): Undefine before defining.
74941
74942 2006-10-25  Bruno Haible  <bruno@clisp.org>
74943
74944         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
74945         false for non-gcc C++ compilers.
74946         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74947
74948 2006-10-24  Bruno Haible  <bruno@clisp.org>
74949
74950         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
74951         iconv implementations like Irix iconv.
74952
74953 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         * modules/vararrays: New file.
74956         * m4/vararrays.m4: New file, taken from diffutils.
74957         * MODULES.html.sh: New module vararrays.
74958
74959 2006-10-24  Karl Berry  <karl@gnu.org>
74960
74961         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
74962         Don't call GNU Unix.
74963
74964 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74965
74966         * users.txt: Add Libtool.
74967
74968         Sync from Libtool:
74969
74970         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74971
74972         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
74973         to gnulib's policy of including config.h unconditionally.
74974
74975 2006-10-24  Bruno Haible  <bruno@clisp.org>
74976
74977         * modules/wcwidth (Files): Add m4/wint_t.m4.
74978         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
74979         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
74980
74981 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74982
74983         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
74984         to pacify GCC with some -W flags enabled.  Problem reported by
74985         Bruno Haible.
74986
74987 2006-10-24  Jim Meyering  <jim@meyering.net>
74988
74989         * MODULES.html.sh: Remove uinttostr.  It's not a module.
74990         Reported by Karl Berry.
74991
74992 2006-10-23  Bruno Haible  <bruno@clisp.org>
74993
74994         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
74995
74996 2006-10-24  Bruno Haible  <bruno@clisp.org>
74997
74998         * lib/gl_list.h: Use C comment style, not C++ comment style.
74999
75000 2006-10-23  Eric Blake  <ebb9@byu.net>
75001
75002         * lib/getaddrinfo.c (includes): Add missing include.
75003
75004 2006-10-23  Bruno Haible  <bruno@clisp.org>
75005             Paul Eggert  <eggert@cs.ucla.edu>
75006
75007         Ability to rename obstack_free.
75008         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75009         obstack_free.
75010         (obstack_free): Invoke the __obstack_free macro.
75011         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75012
75013 2006-10-23  Bruno Haible  <bruno@clisp.org>
75014             Paul Eggert  <eggert@cs.ucla.edu>
75015
75016         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75017         __argc, __argv from the declaration. (They are defined as macros on
75018         mingw.)
75019
75020 2006-10-22  Bruno Haible  <bruno@clisp.org>
75021
75022         * doc/gnulib-intro.texi: New file.
75023         * doc/gnulib.texi: Include it.
75024
75025 2006-10-21  Bruno Haible  <bruno@clisp.org>
75026
75027         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75028         "Introduction", "Miscellanous Notes", "Particular Modules".
75029
75030 2006-10-21  Bruno Haible  <bruno@clisp.org>
75031
75032         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75033         Change mostlyclean-local rule to avoid sh syntax error from bash
75034         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75035
75036 2006-10-23  Jim Meyering  <jim@meyering.net>
75037
75038         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75039         in place of snprintf.
75040
75041         * modules/inttostr (Files): Add lib/uinttostr.c.
75042         * lib/uinttostr.c (inttostr): New file/function.
75043         * lib/inttostr.h (uinttostr): Declare.
75044         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75045         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75046         Add uinttostr.
75047         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75048
75049 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75050
75051         * lib/canonicalize.c (ELOOP): Define if not already defined.
75052         Problem reported by Bruno Haible in
75053         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75054
75055 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75056
75057         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75058         Problem reported by Perry Smith and Ville Laurikari.
75059
75060         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75061         uses.
75062
75063 2006-10-19  Bruno Haible  <bruno@clisp.org>
75064
75065         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75066         for mingw.
75067
75068 2006-10-19  Bruno Haible  <bruno@clisp.org>
75069
75070         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75071         Needed for mingw.
75072
75073 2006-10-19  Bruno Haible  <bruno@clisp.org>
75074
75075         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75076
75077 2006-10-19  Bruno Haible  <bruno@clisp.org>
75078
75079         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75080         it.
75081
75082 2006-10-19  Bruno Haible  <bruno@clisp.org>
75083
75084         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75085         invocation.
75086
75087 2006-10-19  Bruno Haible  <bruno@clisp.org>
75088
75089         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75090         mountlist by default.
75091
75092 2006-10-16  Bruno Haible  <bruno@clisp.org>
75093
75094         * lib/c-strstr.c: Include c-strstr.h.
75095
75096 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75097
75098         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75099         in a slash.
75100
75101 2006-10-18  Bruno Haible  <bruno@clisp.org>
75102
75103         * lib/lock.h [C++]: Wrap definitions in extern "C".
75104
75105 2006-10-18  Bruno Haible  <bruno@clisp.org>
75106
75107         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75108         gl_LIBOBJS list.
75109
75110 2006-10-18  Bruno Haible  <bruno@clisp.org>
75111
75112         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75113
75114 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75115
75116         * lib/xstrtol.h: Include gettext.h.
75117         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75118         Problem reported by Eric Blake.
75119         * modules/xstrtol (Depends-on): Add gettext-h.
75120
75121 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75122
75123         * lib/strftime.c (advance): New macro.
75124         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75125         incomplete type, so you can't add 0 to it.  Problem and patch
75126         reported by Eelco Dolstra for dietlibc.
75127
75128 2006-10-18  Jim Meyering  <jim@meyering.net>
75129
75130         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75131         type for a local, and rename it: s/up/user_proc/.
75132
75133 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75134
75135         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75136         READ_UTMP_USER_PROCESS.
75137         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75138
75139 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75140
75141         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75142         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75143
75144 2006-10-17  Eric Blake  <ebb9@byu.net>
75145
75146         * lib/sigprocmask.c (sigprocmask): Fix typo.
75147
75148         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75149
75150         * modules/clean-temp (Makefile.am): Don't add to make output...
75151         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75152         config.h.
75153
75154 2006-10-17  Bruno Haible  <bruno@clisp.org>
75155
75156         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75157         differently if DEFAULT_TEXT_DOMAIN is set.
75158
75159 2006-10-16  Bruno Haible  <bruno@clisp.org>
75160
75161         * lib/clean-temp.c: Include fwriteerror.h.
75162
75163 2006-10-16  Bruno Haible  <bruno@clisp.org>
75164
75165         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75166
75167 2006-10-16  Bruno Haible  <bruno@clisp.org>
75168
75169         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75170         * lib/sigprocmask.h: Include <sys/types.h>.
75171         (sigset_t): Use the system's definition if present.
75172
75173 2006-10-17  Eric Blake  <ebb9@byu.net>
75174
75175         * lib/xvasprintf.c (includes): Assume config.h.
75176         * lib/xasprintf.c (includes): Likewise.
75177
75178 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75179
75180         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75181         at least as wide as intmax_t.
75182
75183 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75184
75185         (Imported from Automake.)
75186         * build-aux/gnupload: Update to version 1.1 of directive file.
75187
75188 2006-10-16  Eric Blake  <ebb9@byu.net>
75189
75190         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75191         match Automake 1.10a.
75192
75193 2006-10-14  Bruno Haible  <bruno@clisp.org>
75194
75195         * modules/sigprocmask: New file.
75196         * lib/sigprocmask.h: New file.
75197         * lib/sigprocmask.c: New file.
75198         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75199         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75200         request sigprocmask.o.
75201         (gl_PREREQ_SIGPROCMASK): New macro.
75202         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75203         (Depends-on): Add sigprocmask.
75204         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75205         gt_SIGNALBLOCKING. Test for 'raise' only once.
75206         * lib/fatal-signal.c: Include sigprocmask.h.
75207         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75208         unblock_fatal_signals): Define always.
75209         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75210         sigprocmask.
75211
75212 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75213
75214         Sync from Automake.
75215         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75216         which incorrectly sets the mode of an existing destination
75217         directory.  In some cases the unpatched install-sh could do the
75218         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75219         system.  We hope this is rare in practice, but it's clearly worth
75220         fixing.  Problem reported by Alex Unleashed in
75221         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75222         Also, don't bother to check for -m bugs unless we're using -m;
75223         suggested by Stepan Kasal.
75224
75225 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75226
75227         Sync from Automake.
75228         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75229         `-c' flag, so they appear at the same position as in %FASTDEP%
75230         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75231         which ignores unknown options only after the first non-option.
75232         Bug report against M4 by Nelson H. F. Beebe.
75233
75234 2006-10-13  Jim Meyering  <jim@meyering.net>
75235
75236         Fix a bug in yesterday's change.
75237         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75238         p->fts_statp->st_dev would be used uninitialized.
75239         Ensures that we always call fts_stat on the very first entry.
75240         Miklos Szeredi reported that find -xdev stopped working.
75241
75242 2006-10-12  Bruno Haible  <bruno@clisp.org>
75243
75244         * gnulib-tool (func_get_automake_snippet): Append an automatically
75245         computed EXTRA_DIST augmentation.
75246         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75247         * modules/alloca-opt (Makefile.am): Likewise.
75248         * modules/allocsa (Makefile.am): Likewise.
75249         * modules/arcfour (Makefile.am): Likewise.
75250         * modules/arctwo (Makefile.am): Likewise.
75251         * modules/argmatch (Makefile.am): Likewise.
75252         * modules/argz (Makefile.am): Likewise.
75253         * modules/atexit (Makefile.am): Likewise.
75254         * modules/backupfile (Makefile.am): Likewise.
75255         * modules/byteswap (Makefile.am): Likewise.
75256         * modules/c-strtod (Makefile.am): Likewise.
75257         * modules/c-strtold (Makefile.am): Likewise.
75258         * modules/calloc (Makefile.am): Likewise.
75259         * modules/canon-host (Makefile.am): Likewise.
75260         * modules/canonicalize (Makefile.am): Likewise.
75261         * modules/chdir-long (Makefile.am): Likewise.
75262         * modules/chdir-safer (Makefile.am): Likewise.
75263         * modules/check-version (Makefile.am): Likewise.
75264         * modules/chown (Makefile.am): Likewise.
75265         * modules/cloexec (Makefile.am): Likewise.
75266         * modules/close-stream (Makefile.am): Likewise.
75267         * modules/closeout (Makefile.am): Likewise.
75268         * modules/crc (Makefile.am): Likewise.
75269         * modules/csharpexec (Makefile.am): Likewise.
75270         * modules/cycle-check (Makefile.am): Likewise.
75271         * modules/des (Makefile.am): Likewise.
75272         * modules/dev-ino (Makefile.am): Likewise.
75273         * modules/dirfd (Makefile.am): Likewise.
75274         * modules/dirname (Makefile.am): Likewise.
75275         * modules/dup2 (Makefile.am): Likewise.
75276         * modules/eealloc (Makefile.am): Likewise.
75277         * modules/error (Makefile.am): Likewise.
75278         * modules/euidaccess (Makefile.am): Likewise.
75279         * modules/exclude (Makefile.am): Likewise.
75280         * modules/exitfail (Makefile.am): Likewise.
75281         * modules/fcntl-safer (Makefile.am): Likewise.
75282         * modules/fcntl (Makefile.am): Likewise.
75283         * modules/file-type (Makefile.am): Likewise.
75284         * modules/fileblocks (Makefile.am): Likewise.
75285         * modules/filemode (Makefile.am): Likewise.
75286         * modules/filenamecat (Makefile.am): Likewise.
75287         * modules/fnmatch (Makefile.am): Likewise.
75288         * modules/fopen-safer (Makefile.am): Likewise.
75289         * modules/fpending (Makefile.am): Likewise.
75290         * modules/fprintftime (Makefile.am): Likewise.
75291         * modules/free (Makefile.am): Likewise.
75292         * modules/fsusage (Makefile.am): Likewise.
75293         * modules/ftruncate (Makefile.am): Likewise.
75294         * modules/fts (Makefile.am): Likewise.
75295         * modules/gc-arcfour (Makefile.am): Likewise.
75296         * modules/gc-des (Makefile.am): Likewise.
75297         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75298         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75299         * modules/gc-md4 (Makefile.am): Likewise.
75300         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75301         * modules/gc-sha1 (Makefile.am): Likewise.
75302         * modules/gc (Makefile.am): Likewise.
75303         * modules/getaddrinfo (Makefile.am): Likewise.
75304         * modules/getcwd (Makefile.am): Likewise.
75305         * modules/getdelim (Makefile.am): Likewise.
75306         * modules/getdomainname (Makefile.am): Likewise.
75307         * modules/getgroups (Makefile.am): Likewise.
75308         * modules/gethostname (Makefile.am): Likewise.
75309         * modules/gethrxtime (Makefile.am): Likewise.
75310         * modules/getline (Makefile.am): Likewise.
75311         * modules/getloadavg (Makefile.am): Likewise.
75312         * modules/getlogin_r (Makefile.am): Likewise.
75313         * modules/getndelim2 (Makefile.am): Likewise.
75314         * modules/getopt (Makefile.am): Likewise.
75315         * modules/getpagesize (Makefile.am): Likewise.
75316         * modules/getpass-gnu (Makefile.am): Likewise.
75317         * modules/getpass (Makefile.am): Likewise.
75318         * modules/getsubopt (Makefile.am): Likewise.
75319         * modules/gettime (Makefile.am): Likewise.
75320         * modules/gettimeofday (Makefile.am): Likewise.
75321         * modules/getugroups (Makefile.am): Likewise.
75322         * modules/getusershell (Makefile.am): Likewise.
75323         * modules/glob (Makefile.am): Likewise.
75324         * modules/group-member (Makefile.am): Likewise.
75325         * modules/hard-locale (Makefile.am): Likewise.
75326         * modules/hash (Makefile.am): Likewise.
75327         * modules/hmac-md5 (Makefile.am): Likewise.
75328         * modules/hmac-sha1 (Makefile.am): Likewise.
75329         * modules/human (Makefile.am): Likewise.
75330         * modules/idcache (Makefile.am): Likewise.
75331         * modules/imaxabs (Makefile.am): Likewise.
75332         * modules/imaxdiv (Makefile.am): Likewise.
75333         * modules/inet_ntop (Makefile.am): Likewise.
75334         * modules/inet_pton (Makefile.am): Likewise.
75335         * modules/intprops (Makefile.am): Likewise.
75336         * modules/inttostr (Makefile.am): Likewise.
75337         * modules/inttypes (Makefile.am): Likewise.
75338         * modules/isapipe (Makefile.am): Likewise.
75339         * modules/javaversion (Makefile.am): Likewise.
75340         * modules/lchmod (Makefile.am): Likewise.
75341         * modules/lchown (Makefile.am): Likewise.
75342         * modules/localcharset (Makefile.am): Likewise.
75343         * modules/long-options (Makefile.am): Likewise.
75344         * modules/lstat (Makefile.am): Likewise.
75345         * modules/malloc (Makefile.am): Likewise.
75346         * modules/mathl (Makefile.am): Likewise.
75347         * modules/mbchar (Makefile.am): Likewise.
75348         * modules/md2 (Makefile.am): Likewise.
75349         * modules/md4 (Makefile.am): Likewise.
75350         * modules/md5 (Makefile.am): Likewise.
75351         * modules/memcasecmp (Makefile.am): Likewise.
75352         * modules/memchr (Makefile.am): Likewise.
75353         * modules/memcmp (Makefile.am): Likewise.
75354         * modules/memcoll (Makefile.am): Likewise.
75355         * modules/memcpy (Makefile.am): Likewise.
75356         * modules/memmem (Makefile.am): Likewise.
75357         * modules/memmove (Makefile.am): Likewise.
75358         * modules/mempcpy (Makefile.am): Likewise.
75359         * modules/memrchr (Makefile.am): Likewise.
75360         * modules/memset (Makefile.am): Likewise.
75361         * modules/memxor (Makefile.am): Likewise.
75362         * modules/mkancesdirs (Makefile.am): Likewise.
75363         * modules/mkdir-p (Makefile.am): Likewise.
75364         * modules/mkdir (Makefile.am): Likewise.
75365         * modules/mkdtemp (Makefile.am): Likewise.
75366         * modules/mkstemp (Makefile.am): Likewise.
75367         * modules/mktime (Makefile.am): Likewise.
75368         * modules/modechange (Makefile.am): Likewise.
75369         * modules/mountlist (Makefile.am): Likewise.
75370         * modules/nanosleep (Makefile.am): Likewise.
75371         * modules/obstack (Makefile.am): Likewise.
75372         * modules/openat (Makefile.am): Likewise.
75373         * modules/pagealign_alloc (Makefile.am): Likewise.
75374         * modules/pathmax (Makefile.am): Likewise.
75375         * modules/physmem (Makefile.am): Likewise.
75376         * modules/poll (Makefile.am): Likewise.
75377         * modules/posixtm (Makefile.am): Likewise.
75378         * modules/posixver (Makefile.am): Likewise.
75379         * modules/putenv (Makefile.am): Likewise.
75380         * modules/quote (Makefile.am): Likewise.
75381         * modules/quotearg (Makefile.am): Likewise.
75382         * modules/raise (Makefile.am): Likewise.
75383         * modules/read-file (Makefile.am): Likewise.
75384         * modules/readline (Makefile.am): Likewise.
75385         * modules/readlink (Makefile.am): Likewise.
75386         * modules/readtokens (Makefile.am): Likewise.
75387         * modules/readutmp (Makefile.am): Likewise.
75388         * modules/realloc (Makefile.am): Likewise.
75389         * modules/regex (Makefile.am): Likewise.
75390         * modules/rename-dest-slash (Makefile.am): Likewise.
75391         * modules/rename (Makefile.am): Likewise.
75392         * modules/rijndael (Makefile.am): Likewise.
75393         * modules/rmdir (Makefile.am): Likewise.
75394         * modules/rpmatch (Makefile.am): Likewise.
75395         * modules/safe-read (Makefile.am): Likewise.
75396         * modules/safe-write (Makefile.am): Likewise.
75397         * modules/same-inode (Makefile.am): Likewise.
75398         * modules/same (Makefile.am): Likewise.
75399         * modules/save-cwd (Makefile.am): Likewise.
75400         * modules/savedir (Makefile.am): Likewise.
75401         * modules/setenv (Makefile.am): Likewise.
75402         * modules/settime (Makefile.am): Likewise.
75403         * modules/sha1 (Makefile.am): Likewise.
75404         * modules/sig2str (Makefile.am): Likewise.
75405         * modules/snprintf (Makefile.am): Likewise.
75406         * modules/stat-macros (Makefile.am): Likewise.
75407         * modules/stat-time (Makefile.am): Likewise.
75408         * modules/stdbool (Makefile.am): Likewise.
75409         * modules/stdint (Makefile.am): Likewise.
75410         * modules/stdlib-safer (Makefile.am): Likewise.
75411         * modules/stpcpy (Makefile.am): Likewise.
75412         * modules/stpncpy (Makefile.am): Likewise.
75413         * modules/strcase (Makefile.am): Likewise.
75414         * modules/strcasestr (Makefile.am): Likewise.
75415         * modules/strchrnul (Makefile.am): Likewise.
75416         * modules/strcspn (Makefile.am): Likewise.
75417         * modules/strdup (Makefile.am): Likewise.
75418         * modules/strerror (Makefile.am): Likewise.
75419         * modules/strftime (Makefile.am): Likewise.
75420         * modules/strndup (Makefile.am): Likewise.
75421         * modules/strnlen (Makefile.am): Likewise.
75422         * modules/strpbrk (Makefile.am): Likewise.
75423         * modules/strsep (Makefile.am): Likewise.
75424         * modules/strstr (Makefile.am): Likewise.
75425         * modules/strtod (Makefile.am): Likewise.
75426         * modules/strtoimax (Makefile.am): Likewise.
75427         * modules/strtok_r (Makefile.am): Likewise.
75428         * modules/strtol (Makefile.am): Likewise.
75429         * modules/strtoll (Makefile.am): Likewise.
75430         * modules/strtoul (Makefile.am): Likewise.
75431         * modules/strtoull (Makefile.am): Likewise.
75432         * modules/strtoumax (Makefile.am): Likewise.
75433         * modules/strverscmp (Makefile.am): Likewise.
75434         * modules/sys_socket (Makefile.am): Likewise.
75435         * modules/sys_stat (Makefile.am): Likewise.
75436         * modules/sysexits (Makefile.am): Likewise.
75437         * modules/time_r (Makefile.am): Likewise.
75438         * modules/timegm (Makefile.am): Likewise.
75439         * modules/timespec (Makefile.am): Likewise.
75440         * modules/tmpfile-safer (Makefile.am): Likewise.
75441         * modules/trim (Makefile.am): Likewise.
75442         * modules/unistd-safer (Makefile.am): Likewise.
75443         * modules/unlinkdir (Makefile.am): Likewise.
75444         * modules/unlocked-io (Makefile.am): Likewise.
75445         * modules/userspec (Makefile.am): Likewise.
75446         * modules/utime (Makefile.am): Likewise.
75447         * modules/utimecmp (Makefile.am): Likewise.
75448         * modules/utimens (Makefile.am): Likewise.
75449         * modules/vasnprintf (Makefile.am): Likewise.
75450         * modules/vasprintf (Makefile.am): Likewise.
75451         * modules/vsnprintf (Makefile.am): Likewise.
75452         * modules/xalloc (Makefile.am): Likewise.
75453         * modules/xgetcwd (Makefile.am): Likewise.
75454         * modules/xnanosleep (Makefile.am): Likewise.
75455         * modules/xreadlink (Makefile.am): Likewise.
75456         * modules/xstrtod (Makefile.am): Likewise.
75457         * modules/xstrtol (Makefile.am): Likewise.
75458         * modules/xstrtold (Makefile.am): Likewise.
75459         * modules/yesno (Makefile.am): Likewise.
75460         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75461
75462 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75463
75464         * modules/error (Makefile.am): Distribute files through
75465         EXTRA_DIST, not lib_SOURCES.
75466
75467 2006-10-12  Eric Blake  <ebb9@byu.net>
75468
75469         * modules/error (Makefile.am): Distribute files in /lib.
75470         * modules/obstack (Makefile.am): Likewise.
75471
75472 2006-10-12  Bruno Haible  <bruno@clisp.org>
75473
75474         * modules/acl (Makefile.am): Distribute all files in lib/ through
75475         EXTRA_DIST.
75476         * modules/arcfour (Makefile.am): Likewise.
75477         * modules/arctwo (Makefile.am): Likewise.
75478         * modules/argmatch (Makefile.am): Likewise.
75479         * modules/argz (Makefile.am): Likewise.
75480         * modules/atexit (Makefile.am): Likewise.
75481         * modules/backupfile (Makefile.am): Likewise.
75482         * modules/c-strtod (Makefile.am): Likewise.
75483         * modules/c-strtold (Makefile.am): Likewise.
75484         * modules/calloc (Makefile.am): Likewise.
75485         * modules/canon-host (Makefile.am): Likewise.
75486         * modules/canonicalize (Makefile.am): Likewise.
75487         * modules/chdir-long (Makefile.am): Likewise.
75488         * modules/chdir-safer (Makefile.am): Likewise.
75489         * modules/check-version (Makefile.am): Likewise.
75490         * modules/chown (Makefile.am): Likewise.
75491         * modules/cloexec (Makefile.am): Likewise.
75492         * modules/close-stream (Makefile.am): Likewise.
75493         * modules/closeout (Makefile.am): Likewise.
75494         * modules/crc (Makefile.am): Likewise.
75495         * modules/cycle-check (Makefile.am): Likewise.
75496         * modules/des (Makefile.am): Likewise.
75497         * modules/dirfd (Makefile.am): Likewise.
75498         * modules/dirname (Makefile.am): Likewise.
75499         * modules/dup2 (Makefile.am): Likewise.
75500         * modules/euidaccess (Makefile.am): Likewise.
75501         * modules/exclude (Makefile.am): Likewise.
75502         * modules/exitfail (Makefile.am): Likewise.
75503         * modules/fcntl-safer (Makefile.am): Likewise.
75504         * modules/file-type (Makefile.am): Likewise.
75505         * modules/fileblocks (Makefile.am): Likewise.
75506         * modules/filemode (Makefile.am): Likewise.
75507         * modules/filenamecat (Makefile.am): Likewise.
75508         * modules/fnmatch (Makefile.am): Likewise.
75509         * modules/fopen-safer (Makefile.am): Likewise.
75510         * modules/fpending (Makefile.am): Likewise.
75511         * modules/fprintftime (Makefile.am): Likewise.
75512         * modules/free (Makefile.am): Likewise.
75513         * modules/fsusage (Makefile.am): Likewise.
75514         * modules/ftruncate (Makefile.am): Likewise.
75515         * modules/fts (Makefile.am): Likewise.
75516         * modules/gc (Makefile.am): Likewise.
75517         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75518         * modules/getaddrinfo (Makefile.am): Likewise.
75519         * modules/getcwd (Makefile.am): Likewise.
75520         * modules/getdelim (Makefile.am): Likewise.
75521         * modules/getdomainname (Makefile.am): Likewise.
75522         * modules/getgroups (Makefile.am): Likewise.
75523         * modules/gethostname (Makefile.am): Likewise.
75524         * modules/gethrxtime (Makefile.am): Likewise.
75525         * modules/getline (Makefile.am): Likewise.
75526         * modules/getloadavg (Makefile.am): Likewise.
75527         * modules/getlogin_r (Makefile.am): Likewise.
75528         * modules/getopt (Makefile.am): Likewise.
75529         * modules/getpass (Makefile.am): Likewise.
75530         * modules/getpass-gnu (Makefile.am): Likewise.
75531         * modules/getsubopt (Makefile.am): Likewise.
75532         * modules/gettime (Makefile.am): Likewise.
75533         * modules/gettimeofday (Makefile.am): Likewise.
75534         * modules/getugroups (Makefile.am): Likewise.
75535         * modules/getusershell (Makefile.am): Likewise.
75536         * modules/glob (Makefile.am): Likewise.
75537         * modules/group-member (Makefile.am): Likewise.
75538         * modules/hard-locale (Makefile.am): Likewise.
75539         * modules/hash (Makefile.am): Likewise.
75540         * modules/hmac-md5 (Makefile.am): Likewise.
75541         * modules/hmac-sha1 (Makefile.am): Likewise.
75542         * modules/human (Makefile.am): Likewise.
75543         * modules/idcache (Makefile.am): Likewise.
75544         * modules/imaxabs (Makefile.am): Likewise.
75545         * modules/imaxdiv (Makefile.am): Likewise.
75546         * modules/inet_ntop (Makefile.am): Likewise.
75547         * modules/inet_pton (Makefile.am): Likewise.
75548         * modules/inttostr (Makefile.am): Likewise.
75549         * modules/isapipe (Makefile.am): Likewise.
75550         * modules/lchown (Makefile.am): Likewise.
75551         * modules/long-options (Makefile.am): Likewise.
75552         * modules/lstat (Makefile.am): Likewise.
75553         * modules/malloc (Makefile.am): Likewise.
75554         * modules/mathl (Makefile.am): Likewise.
75555         * modules/mbchar (Makefile.am): Likewise.
75556         * modules/md2 (Makefile.am): Likewise.
75557         * modules/md4 (Makefile.am): Likewise.
75558         * modules/md5 (Makefile.am): Likewise.
75559         * modules/memcasecmp (Makefile.am): Likewise.
75560         * modules/memchr (Makefile.am): Likewise.
75561         * modules/memcmp (Makefile.am): Likewise.
75562         * modules/memcoll (Makefile.am): Likewise.
75563         * modules/memcpy (Makefile.am): Likewise.
75564         * modules/memmem (Makefile.am): Likewise.
75565         * modules/memmove (Makefile.am): Likewise.
75566         * modules/mempcpy (Makefile.am): Likewise.
75567         * modules/memrchr (Makefile.am): Likewise.
75568         * modules/memset (Makefile.am): Likewise.
75569         * modules/memxor (Makefile.am): Likewise.
75570         * modules/mkancesdirs (Makefile.am): Likewise.
75571         * modules/mkdir (Makefile.am): Likewise.
75572         * modules/mkdir-p (Makefile.am): Likewise.
75573         * modules/mkdtemp (Makefile.am): Likewise.
75574         * modules/mkstemp (Makefile.am): Likewise.
75575         * modules/mktime (Makefile.am): Likewise.
75576         * modules/modechange (Makefile.am): Likewise.
75577         * modules/mountlist (Makefile.am): Likewise.
75578         * modules/nanosleep (Makefile.am): Likewise.
75579         * modules/openat (Makefile.am): Likewise.
75580         * modules/pagealign_alloc (Makefile.am): Likewise.
75581         * modules/physmem (Makefile.am): Likewise.
75582         * modules/poll (Makefile.am): Likewise.
75583         * modules/posixtm (Makefile.am): Likewise.
75584         * modules/posixver (Makefile.am): Likewise.
75585         * modules/putenv (Makefile.am): Likewise.
75586         * modules/quote (Makefile.am): Likewise.
75587         * modules/quotearg (Makefile.am): Likewise.
75588         * modules/raise (Makefile.am): Likewise.
75589         * modules/read-file (Makefile.am): Likewise.
75590         * modules/readline (Makefile.am): Likewise.
75591         * modules/readlink (Makefile.am): Likewise.
75592         * modules/readtokens (Makefile.am): Likewise.
75593         * modules/readutmp (Makefile.am): Likewise.
75594         * modules/realloc (Makefile.am): Likewise.
75595         * modules/regex (Makefile.am): Likewise.
75596         * modules/rename (Makefile.am): Likewise.
75597         * modules/rename-dest-slash (Makefile.am): Likewise.
75598         * modules/rijndael (Makefile.am): Likewise.
75599         * modules/rmdir (Makefile.am): Likewise.
75600         * modules/rpmatch (Makefile.am): Likewise.
75601         * modules/safe-read (Makefile.am): Likewise.
75602         * modules/safe-write (Makefile.am): Likewise.
75603         * modules/same (Makefile.am): Likewise.
75604         * modules/save-cwd (Makefile.am): Likewise.
75605         * modules/savedir (Makefile.am): Likewise.
75606         * modules/setenv (Makefile.am): Likewise.
75607         * modules/settime (Makefile.am): Likewise.
75608         * modules/sha1 (Makefile.am): Likewise.
75609         * modules/sig2str (Makefile.am): Likewise.
75610         * modules/snprintf (Makefile.am): Likewise.
75611         * modules/stdlib-safer (Makefile.am): Likewise.
75612         * modules/stpcpy (Makefile.am): Likewise.
75613         * modules/stpncpy (Makefile.am): Likewise.
75614         * modules/strcase (Makefile.am): Likewise.
75615         * modules/strcasestr (Makefile.am): Likewise.
75616         * modules/strchrnul (Makefile.am): Likewise.
75617         * modules/strcspn (Makefile.am): Likewise.
75618         * modules/strdup (Makefile.am): Likewise.
75619         * modules/strerror (Makefile.am): Likewise.
75620         * modules/strftime (Makefile.am): Likewise.
75621         * modules/strndup (Makefile.am): Likewise.
75622         * modules/strnlen (Makefile.am): Likewise.
75623         * modules/strpbrk (Makefile.am): Likewise.
75624         * modules/strsep (Makefile.am): Likewise.
75625         * modules/strstr (Makefile.am): Likewise.
75626         * modules/strtod (Makefile.am): Likewise.
75627         * modules/strtoimax (Makefile.am): Likewise.
75628         * modules/strtok_r (Makefile.am): Likewise.
75629         * modules/strtol (Makefile.am): Likewise.
75630         * modules/strtoll (Makefile.am): Likewise.
75631         * modules/strtoul (Makefile.am): Likewise.
75632         * modules/strtoull (Makefile.am): Likewise.
75633         * modules/strtoumax (Makefile.am): Likewise.
75634         * modules/strverscmp (Makefile.am): Likewise.
75635         * modules/time_r (Makefile.am): Likewise.
75636         * modules/timegm (Makefile.am): Likewise.
75637         * modules/tmpfile-safer (Makefile.am): Likewise.
75638         * modules/unistd-safer (Makefile.am): Likewise.
75639         * modules/unlinkdir (Makefile.am): Likewise.
75640         * modules/userspec (Makefile.am): Likewise.
75641         * modules/utime (Makefile.am): Likewise.
75642         * modules/utimecmp (Makefile.am): Likewise.
75643         * modules/utimens (Makefile.am): Likewise.
75644         * modules/vasnprintf (Makefile.am): Likewise.
75645         * modules/vasprintf (Makefile.am): Likewise.
75646         * modules/vsnprintf (Makefile.am): Likewise.
75647         * modules/xalloc (Makefile.am): Likewise.
75648         * modules/xgetcwd (Makefile.am): Likewise.
75649         * modules/xnanosleep (Makefile.am): Likewise.
75650         * modules/xreadlink (Makefile.am): Likewise.
75651         * modules/xstrtod (Makefile.am): Likewise.
75652         * modules/xstrtol (Makefile.am): Likewise.
75653         * modules/xstrtold (Makefile.am): Likewise.
75654         * modules/yesno (Makefile.am): Likewise.
75655
75656 2006-10-12  Jim Meyering  <jim@meyering.net>
75657
75658         * m4/getloadavg.m4: Revert the change below.
75659
75660         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
75661         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
75662         fail with a symlink, which is what coreutils' ./bootstrap now
75663         creates by default.
75664
75665 2006-10-12  Bruno Haible  <bruno@clisp.org>
75666
75667         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
75668         mingw.
75669         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
75670         MSVC and mingw explicitly.
75671
75672 2006-10-11  Simon Josefsson  <jas@extundo.com>
75673             Bruno Haible  <bruno@clisp.org>
75674
75675         Add support for multiple gnulib-tool invocations in the scope of a
75676         single configure.ac file.
75677         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
75678         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
75679         with the same contents as the _LIBADD variable.
75680         (func_emit_initmacro_start, func_emit_initmacro_end,
75681         func_emit_initmacro_done): New functions.
75682         (func_import, func_create_testdir): Invoke them. Allow the identifiers
75683         gl_LIBOBJS and gl_LTLIBOBJS.
75684
75685 2006-10-11  Bruno Haible  <bruno@clisp.org>
75686
75687         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
75688         (func_create_testdir): Don't create po/Makefile.am, don't invoke
75689         autoreconf. Instead, invoke autopoint explicitly but move back the
75690         *.m4 files from gnulib.
75691
75692 2006-10-11  Bruno Haible  <bruno@clisp.org>
75693
75694         * gnulib-tool (func_usage): Make module names after --create-testdir
75695         optional.
75696         (func_create_testdir): If no module was specified, use nearly all
75697         modules.
75698
75699 2006-10-12  Jim Meyering  <jim@meyering.net>
75700
75701         Big performance improvement for fts-based tools that use FTS_NOSTAT.
75702         Avoid spurious inode-mismatch problems on non-POSIX file systems.
75703         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
75704         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
75705         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
75706         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
75707         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
75708         (fts_set_stat_required): New function.
75709         (fts_open): Defer the calls to fts_stat, if possible or requested.
75710         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
75711         into fts_stat itself.
75712         (fts_read): Perform any required (deferred) fts_stat call.
75713         (fts_build): Likewise, for the directory we're about to open and read.
75714         In the readdir loop, carefully decide whether each entry will require
75715         an eventual call to fts_stat, using dirent.d_type info if available.
75716         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
75717         a command line argument into this function.  Update all callers.
75718         Map a return value of FTS_DOT to FTS_D for a command line argument.
75719         * modules/fts (Depends-on): Add d-type.  Alphabetize.
75720         Thanks to Miklos Szeredi for his tenacity and for the initial
75721         bug report about "find" failing on a FUSE-based file system.
75722
75723         * lib/fts.c (fts_open): Use consistent indentation.
75724
75725 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75726
75727         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
75728         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
75729         reported by Jim Meyering.  All uses of cache variables renamed
75730         to match Autoconf's.
75731         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
75732         the other one.
75733
75734         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75735         Fix misspelling in diagnostic.
75736
75737 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75738
75739         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
75740         defined.  Problem reported by Matthew Woehlke.
75741
75742         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
75743         Add support for Tandem NonStop R series.
75744         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
75745         Use new macro.
75746
75747         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
75748         (has_trailing_slash): Omit size arg; all callers changed.
75749         Omit 'inline', since it doesn't help performance and we'd
75750         need to configure it.
75751         Don't count //, ///, etc. as having a trailing slash.
75752         As a side effect, this removes a C99ism reported by Matthew Woehlke.
75753         (rpl_rename_dest_slash): On failure, use rename's errno rather
75754         than (in some cases) an incorrect or junk errno.
75755         Simplify code by removing need to compute length; this does
75756         cause it to make two passes instead of one over the file name,
75757         but it's worth it.
75758
75759         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
75760         change, since Autoconf's version may no longer be appropriate now
75761         that we are using CVS Autoconf's version.  Add support for Tandem.
75762
75763 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75764             Bruno Haible  <bruno@clisp.org>
75765
75766         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
75767         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
75768         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
75769         gl_AC_TYPE_LONG_LONG.
75770
75771         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
75772         instead of HAVE_LONG_LONG.
75773         * lib/printf-args.c (printf_fetchargs): Likewise.
75774         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
75775         * lib/vasnprintf.c (VASNPRINTF): Likewise.
75776         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
75777         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
75778         gl_AC_TYPE_LONG_LONG.
75779
75780 2006-10-11  Bruno Haible  <bruno@clisp.org>
75781
75782         * m4/longlong.m4: Add comments.
75783         * m4/ulonglong.m4: Likewise.
75784
75785 2006-10-10  Bruno Haible  <bruno@clisp.org>
75786
75787         Make it possible to #define stpcpy, strdup to aliases.
75788         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
75789         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
75790
75791 2006-10-10  Bruno Haible  <bruno@clisp.org>
75792
75793         Make it possible to #define gcd to an alias.
75794         * lib/gcd.c: Include config.h.
75795
75796 2006-10-10  Bruno Haible  <bruno@clisp.org>
75797
75798         Make it possible to #define c_isascii to an alias.
75799         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
75800         defined. Undefine the macros before defining them, to avoid gcc
75801         warnings.
75802         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
75803         define NO_C_CTYPE_MACROS early.
75804
75805 2006-10-10  Bruno Haible  <bruno@clisp.org>
75806
75807         Make it possible to #define set_program_name to an alias.
75808         * lib/progname.c: Don't undefine set_program_name; instead, undefine
75809         ENABLE_RELOCATABLE early.
75810
75811 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75812
75813         Port to Tandem NSK OSS, which has 64-bit signed int but at most
75814         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
75815         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
75816         More generally, don't assume that 64-bit signed int is available
75817         if unsigned int is, and vice versa.
75818         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
75819         unsigned symbols, not on their signed counterparts.
75820         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
75821         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
75822         (UINT64_C, UINTMAX_C):
75823         Likewise.
75824         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
75825         unsigned counterparts.
75826         (Have_long_long, Unsigned): New macros.
75827         (Int): Renamed from INT.
75828         (strtoimax): Use the new macros.
75829         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
75830         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
75831         * modules/inttypes (inttypes.h): Substitute
75832         HAVE_UNSIGNED_LONG_LONG_INT.
75833         * modules/stdint (stdint.h): Likewise.
75834         (Files): Add m4/ulonglong.m4.
75835
75836 2006-10-10  Bruno Haible  <bruno@clisp.org>
75837
75838         Fix a gcc -Wshadow warning.
75839         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
75840         to 'bucket'.
75841         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
75842         gl_linked_indexof_from_to): Likewise.
75843         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
75844         Likewise.
75845         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
75846         Likewise.
75847         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
75848         Reported by Eric Blake.
75849
75850 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
75851
75852         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
75853         for NetBSD.  Problem reported by Bruno Haible.
75854
75855 2006-10-09  Jim Meyering  <jim@meyering.net>
75856
75857         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
75858         Patch from Bruno Haible.
75859
75860 2006-10-09  Jim Meyering  <jim@meyering.net>
75861
75862         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
75863         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
75864         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
75865
75866 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75867
75868         Don't include <config.h> twice; this doesn't work in some cases,
75869         e.g., when config.h has "#define intmax_t long long int" and
75870         we include <config.h>, <inttypes.h>, <config.h> in that order.
75871         Problem reported by Matthew Woehlke in:
75872         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
75873         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
75874         * lib/fts-cycle.c: Don't include config.h.
75875         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
75876         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
75877         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
75878         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
75879         inttypes.h.
75880         * lib/xstrtoumax.c: Likewise.
75881         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
75882         __strtol and the like, so that this module is more like its siblings.
75883         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
75884         Remove; no longer needed now that we assume gnulib inttypes.h.
75885
75886 2006-10-08  Bruno Haible  <bruno@clisp.org>
75887
75888         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
75889         option.
75890
75891 2006-10-07  Jim Meyering  <jim@meyering.net>
75892
75893         * modules/inttypes (inttypes.h): Revert what seems to have been
75894         an inadvertent part of today's change: use "|", not "/" in the
75895         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
75896
75897 2006-10-07  Bruno Haible  <bruno@clisp.org>
75898
75899         * modules/sublist: New file.
75900
75901 2006-10-07  Bruno Haible  <bruno@clisp.org>
75902
75903         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
75904         * modules/argz (argz.h): Likewise.
75905         * modules/arpa_inet (arpa/inet.h): Likewise.
75906         * modules/byteswap (byteswap.h): Likewise.
75907         * modules/configmake (configmake.h): Likewise.
75908         * modules/fcntl (fcntl.h): Likewise.
75909         * modules/fnmatch (fnmatch.h): Likewise.
75910         * modules/getopt (getopt.h): Likewise.
75911         * modules/glob (glob.h): Likewise.
75912         * modules/inttypes (inttypes.h): Likewise.
75913         * modules/netinet_in (netinet/in.h): Likewise.
75914         * modules/poll (poll.h): Likewise.
75915         * modules/stdbool (stdbool.h): Likewise.
75916         * modules/stdint (stdint.h): Likewise.
75917         * modules/sys_select (sys/select.h): Likewise.
75918         * modules/sys_socket (sys/socket.h): Likewise.
75919         * modules/sys_stat (sys/stat.h): Likewise.
75920         * modules/sysexits (sysexits.h): Likewise.
75921         * modules/unistd (unistd.h): Likewise.
75922         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75923         Add a "DO NOT EDIT" comment to the generated file.
75924         (func_import): Likewise for gnulib-comp.m4.
75925
75926 2006-10-07  Bruno Haible  <bruno@clisp.org>
75927
75928         * lib/gl_sublist.h: New file.
75929         * lib/gl_sublist.c: New file.
75930
75931 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75932
75933         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
75934         name (relative to the original working directory) and the file
75935         name component (relative to the temporary working directory).  All
75936         callers changed.
75937         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
75938         * lib/mkdir-p.c (make_dir_parents): Likewise.
75939         * lib/mkdir-p.h (make_dir_parents): Likewise.
75940
75941 2006-10-06  Eric Blake  <ebb9@byu.net>
75942
75943         Define several macros for use by the clean-temp module.
75944         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
75945         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
75946         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
75947
75948         * lib/clean-temp.h (close_stream_temp): New declaration.
75949         * lib/clean-temp.c (includes): Pull in headers according to what
75950         other modules are in use.
75951         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
75952
75953 2006-10-06  Bruno Haible  <bruno@clisp.org>
75954
75955         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
75956         instead of fopen, fwriteerror.
75957
75958 2006-10-06  Bruno Haible  <bruno@clisp.org>
75959
75960         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
75961         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
75962         int.
75963         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
75964         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
75965         Return an error indicator.
75966         Suggested by Eric Blake.
75967
75968 2006-10-06  Bruno Haible  <bruno@clisp.org>
75969
75970         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
75971         Reported by Eric Blake.
75972
75973 2006-10-06  Bruno Haible  <bruno@clisp.org>
75974
75975         * modules/closeout (Description): Mention stderr too.
75976
75977 2006-10-06  Bruno Haible  <bruno@clisp.org>
75978         and Paul Eggert  <eggert@cs.ucla.edu>
75979
75980         * lib/closeout.c (close_stdout): Also close stderr.
75981         * lib/closeout.h: Update comment.
75982
75983 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75984
75985         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
75986         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
75987         * lib/dirchownmod.c: Include lchown.h.
75988         * lib/lchown.c: Don't include files that lchown.h now includes.
75989         Don't declare chown, since lchown.h now does that.
75990         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
75991         (lchown): Define to rpl_chown if lchown is declared but
75992         does not exist.  Declare using a prototype if lchown is not
75993         declared.  Add a copyright notice.
75994         * lib/mkstemp.h: Include <unistd.h>.
75995         * lib/openat.c: Include lchown.h.
75996
75997         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
75998         we now test for that separately.
75999         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76000         rather than O_NOFOLLOW, when testing whether it's possible to
76001         avoid a race condition reliably.
76002         * lib/savewd.c (savewd_chdir): Likewise.
76003
76004         Remove macros that are no longer needed now that stdint.h is
76005         reliable.
76006         * lib/fsusage.c (UINTMAX_MAX): Remove.
76007         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76008         * lib/utimecmp.c (SIZE_MAX): Remove.
76009
76010         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76011
76012         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76013         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76014         O_NOATIME works.
76015
76016 2006-10-05  Bruno Haible  <bruno@clisp.org>
76017
76018         * lib/gl_list.h (gl_sortedlist_search_from_to,
76019         gl_sortedlist_indexof_from_to): New declarations.
76020         (gl_list_implementation): New fields sortedlist_search_from_to,
76021         sortedlist_indexof_from_to.
76022         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76023         inline functions.
76024         * lib/gl_list.c (gl_sortedlist_search_from_to,
76025         gl_sortedlist_indexof_from_to): New functions.
76026         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76027         function.
76028         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76029         (gl_array_sortedlist_search_from_to): New function.
76030         (gl_array_list_implementation): Update.
76031         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76032         function.
76033         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76034         (gl_carray_sortedlist_search_from_to): New function.
76035         (gl_carray_list_implementation): Update.
76036         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76037         gl_linked_sortedlist_indexof_from_to): New functions.
76038         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76039         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76040         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76041         gl_tree_sortedlist_indexof_from_to): New functions.
76042         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76043         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76044         Update.
76045         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76046         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76047         Update.
76048
76049 2006-10-05  Bruno Haible  <bruno@clisp.org>
76050
76051         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76052         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76053         (struct gl_list_implementation): Add fields search_from_to,
76054         indexof_from_to. Remove fields search, indexof.
76055         (gl_list_search): Use the search_from_to method.
76056         (gl_list_search_from, gl_list_search_from_to): New functions.
76057         (gl_list_indexof): Use the indexof_from_to method.
76058         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76059         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76060         (gl_list_search_from, gl_list_search_from_to): New functions.
76061         (gl_list_indexof): Use the indexof_from_to method.
76062         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76063         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76064         gl_array_indexof. Add start_index, end_index arguments.
76065         (gl_array_search_from_to): Renamed from gl_array_search. Add
76066         start_index, end_index arguments.
76067         (gl_array_remove, gl_array_list_implementation): Update.
76068         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76069         gl_carray_indexof. Add start_index, end_index arguments.
76070         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76071         start_index, end_index arguments.
76072         (gl_carray_remove, gl_carray_list_implementation): Update.
76073         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76074         gl_linked_search. Add start_index, end_index arguments.
76075         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76076         start_index, end_index arguments.
76077         (gl_linked_remove): Update.
76078         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76079         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76080         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76081         field to 'size_t'.
76082         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76083         gl_tree_search. Add start_index, end_index arguments.
76084         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76085         start_index, end_index arguments.
76086         (gl_tree_remove): Update.
76087         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76088         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76089         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76090         function.
76091         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76092         gl_tree_search. Add start_index, end_index arguments.
76093         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76094         start_index, end_index arguments.
76095         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76096         Update.
76097         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76098
76099 2006-10-05  Bruno Haible  <bruno@clisp.org>
76100
76101         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76102
76103         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76104         fwriteerror_temp): New declarations.
76105         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76106         (descriptors): New variable.
76107         (cleanup): First, close the descriptors.
76108         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76109         fclose_temp, fwriteerror_temp): New functions.
76110
76111 2006-10-04  Jim Meyering  <jim@meyering.net>
76112
76113         * lib/fts.c (fts_open): Tiny comment change.
76114
76115 2006-10-04  Bruno Haible  <bruno@clisp.org>
76116
76117         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76118         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76119         gl_LOCK_BODY.
76120         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76121         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76122         gl_LOCK_EARLY_BODY.
76123         (gl_LOCK): Require gl_LOCK_BODY.
76124
76125 2006-10-04  Bruno Haible  <bruno@clisp.org>
76126
76127         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76128         (gl_oset_search_atleast): New declaration.
76129         (struct gl_oset_implementation): Add field 'search_atleast'.
76130         (gl_oset_search_atleast): New inline function.
76131         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76132         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76133         (gl_array_oset_implementation): Update.
76134         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76135         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76136         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76137
76138 2006-10-04  Bruno Haible  <bruno@clisp.org>
76139
76140         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76141
76142 2006-10-03  Bruno Haible  <bruno@clisp.org>
76143
76144         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76145         from gl_avltreehash_list_implementation.
76146
76147 2006-10-03  Bruno Haible  <bruno@clisp.org>
76148
76149         * lib/gl_oset.c (gl_oset_add): Fix return type.
76150
76151 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76152
76153         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76154
76155 2006-10-02  Eric Blake  <ebb9@byu.net>
76156
76157         * modules/strnlen (Depends-on): Add extensions.
76158
76159 2006-10-02  Eric Blake  <ebb9@byu.net>
76160
76161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76162         definition in 2.60+.
76163
76164 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76165
76166         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76167         checks.
76168
76169 2006-10-02  Bruno Haible  <bruno@clisp.org>
76170
76171         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76172         to the AUTOMAKE_OPTIONS.
76173         Reported by Jim Meyering.
76174
76175 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76176
76177         Work around bug in Solaris 10 /proc file system:
76178         /proc/self/fd/NNN/.. isn't the parent directory of
76179         the directory whose file descriptor is NNN.  This needs to
76180         be worked around at run time, not compile time, since a
76181         program might be built on Solaris 8, where things work, and
76182         run on Solaris 10.
76183         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76184         to use the following interface instead:
76185         (OPENAT_BUFFER_SIZE): New macro.
76186         (openat_proc_name): New function.
76187         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76188         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76189         Likewise.
76190         * lib/openat-proc.c: New file.
76191         * modules/openat (Files): Add lib/openat-proc.c.
76192         (Depends-on): Add same-inode, stdbool.
76193         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76194
76195 2006-09-29  Bruno Haible  <bruno@clisp.org>
76196
76197         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76198         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76199         argument. Set stdout_closed before testing for ferror, not after.
76200         (fwriteerror, fwriteerror_no_ebadf): New functions.
76201
76202 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76203
76204         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76205
76206 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76207
76208         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76209         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76210
76211 2006-09-28  Jim Meyering  <jim@meyering.net>
76212
76213         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76214         Include <unistd.h>.
76215
76216 2006-09-28  Bruno Haible  <bruno@clisp.org>
76217
76218         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76219         * modules/linkedhash-list (Depends-on): Likewise.
76220         * modules/rbtreehash-list (Depends-on): Likewise.
76221
76222 2006-09-28  Bruno Haible  <bruno@clisp.org>
76223
76224         * lib/strndup.h: Simplify the redefinition of strndup.
76225         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76226         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76227
76228 2006-09-28  Bruno Haible  <bruno@clisp.org>
76229
76230         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76231         * lib/gl_linkedhash_list.c: Likewise.
76232         * lib/gl_rbtreehash_list.c: Likewise.
76233
76234 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76235
76236         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76237         getaddrinfo.
76238
76239         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76240         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76241         it causes <stdio_ext.h> to cause a compile-time error.
76242         Problem reported by Nelson H. F. Beebe.
76243         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76244         of HAVE_DECL___PENDING.
76245
76246         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76247         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76248         declaration.
76249
76250 2006-09-27  Jim Meyering  <jim@meyering.net>
76251
76252         This file could end up with a definition for a function
76253         named __strndup, rather than rpl_strndup on a system with
76254         incomplete weak_alias support.
76255         * lib/strndup.c (strndup): Rename from __strndup.
76256         Remove #defines that used to map __strndup to strndup.
76257         Don't use K&R prototypes.
76258         Remove LIBC-related code, since this file is not sync'd with glibc.
76259         * lib/strndup.h: Revamp, accordingly.
76260         * m4/strndup.m4: Modernize.
76261
76262 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76263
76264         * modules/savewd (Depends-on): Add 'raise'.
76265         * lib/savewd.c: Include <signal.h>, for 'raise'.
76266
76267 2006-09-26  Jim Meyering  <jim@meyering.net>
76268
76269         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76270         when we detect Darwin 8.7.0's acl_get_file bug.
76271         Rearrange to perform the new (below) run-test while $LIBS
76272         contains any acl-related library.  Set USE_ACL at the end.
76273         (gl_ACL_GET_FILE): New function.
76274
76275 2006-09-26  Eric Blake  <ebb9@byu.net>
76276
76277         * lib/verror.c: Include <config.h> unconditionally.
76278
76279 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76280
76281         * modules/clock-time (Maintainer): Add self.
76282         * modules/getlogin_r (Depends-on): Add extensions.
76283
76284 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76285
76286         * modules/clock-time: New module.
76287         * modules/nanosleep (Depends-on): Add clock-time.
76288         * modules/gethrxtime (Depends-on): Likewise.
76289         * modules/gettime (Depends-on): Likewise.
76290         * modules/settime (Depends-on): Likewise.
76291
76292         * modules/fts-lgpl: Depend on openat.
76293         * modules/mkancesdirs: Depend on savewd.
76294         * modules/mkdir-p: Likewise.
76295
76296 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76297
76298         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76299
76300         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76301         `gl_have_arbitrary_file_name_length_limit' to
76302         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76303         actually works between configure runs.
76304
76305 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76306             Bruno Haible  <bruno@clisp.org>
76307
76308         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76309
76310 2006-09-25  Jim Meyering  <jim@meyering.net>
76311
76312         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76313         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76314
76315 2006-09-25  Eric Blake  <ebb9@byu.net>
76316
76317         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76318         exec's in 2006-09-18 patch when shuffling fds.
76319
76320 2006-09-25  Bruno Haible  <bruno@clisp.org>
76321
76322         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76323         Reported by Jim Meyering.
76324
76325 2006-09-24  Jim Meyering  <jim@meyering.net>
76326
76327         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76328         compare a pointer against a literal "0".  That caused failures with
76329         at least HP-UX's hpcc.
76330
76331 2006-09-22  Simon Josefsson  <jas@extundo.com>
76332
76333         * modules/gc-sha1:
76334         * modules/gc-md4:
76335         * modules/gc-hmac-sha1:
76336         * modules/gc-hmac-md5:
76337         * modules/gc-des:
76338         * modules/gc-arcfour: Distribute more files.
76339
76340 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76341
76342         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76343         (gl_linked_iterator_from_to): Initialize struct completely.
76344         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76345         (gl_tree_iterator_from_to): Likewise
76346         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76347         * lib/gl_array_list.c [lint] (gl_array_iterator)
76348         (gl_array_iterator_from_to): Likewise.
76349         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76350         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76351         (gl_carray_iterator_from_to): Likewise.
76352
76353         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76354         * lib/md4.c (md4_process_block): Remove unused variable.
76355         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76356         parentheses for clarity.
76357
76358 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76359
76360         * modules/bison-i18n (Depends-on): Add gettext.
76361
76362 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76363
76364         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76365         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76366         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76367         also add missing comma that caused broken test.
76368         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76369         stdlib.h, for `abort'.
76370         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76371         variables.
76372         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76373         include unistd.h if present, for `rmdir'.
76374         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76375         variables.
76376         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76377         in the process include standard headers for prototypes.
76378         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76379         gets declared on GNU/Linux.
76380         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76381         unistd.h, for `rmdir'.
76382         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76383
76384         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76385         always true.
76386         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76387
76388         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76389
76390 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76391
76392         * gnulib-tool (func_version): Create output all at once.  This
76393         may help avoid triggering unnecessary SIGPIPEs, and at any
76394         rate it doesn't hurt.
76395
76396 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76397             Bruno Haible  <bruno@clisp.org>
76398
76399         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76400         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76401         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76402
76403         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76404         (gl_FUNC_VASPRINTF): Invoke it.
76405
76406 2006-09-22  Bruno Haible  <bruno@clisp.org>
76407
76408         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76409         getloadavg.c as first argument.
76410
76411 2006-09-22  Bruno Haible  <bruno@clisp.org>
76412
76413         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76414         at the beginning of the gl_INIT macro.
76415         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76416         gl_GETLOADAVG.
76417
76418 2006-09-22  Bruno Haible  <bruno@clisp.org>
76419
76420         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76421         module.
76422         Suggested by Ralf Wildenhues.
76423
76424 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76425
76426         Import this patch from libc:
76427
76428         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76429
76430         * lib/regex_internal.c (re_string_reconstruct): Handle
76431         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76432         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76433         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76434         re_string_context_at.
76435
76436         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76437         now requires it.
76438         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76439         gl_REGEX now does it for us.
76440         (gl_REGEX): Add test taken from
76441         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76442
76443         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76444         Check that large offsets work.  Modernize Autoconf usages.
76445         Prefer "yes" to mean a good thing rather than a bad.
76446         Don't put "#define mkstemp" in config.h, as this might interfere
76447         with standard system headers that "#define mkstemp mkstemp64".
76448
76449         * modules/mkstemp (Depends-on): Add extensions, so that
76450         mkstemp is visible on some platforms.
76451         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76452         (Include): Change to "mkstemp.h" from <stdlib.h>.
76453         (Files): Add mkstemp.h.
76454
76455         * lib/mkstemp.h: New file, since some standard headers
76456         #define mkstemp.
76457         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76458         Include "mkstemp.h".
76459         Make the _LIBC code resemble glibc original more,
76460         e.g., use K&R style.
76461         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76462         (mkstemp): Remove, since mkstemp.h does this for us.
76463         * lib/stdlib--.h: Include mkstemp.h.
76464
76465         Import this patch from libc:
76466
76467         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76468
76469         * lib/tempname.c (__gen_tempname): Change attempts_min
76470         into a macro.  Use preprocessor to decide how to initialize
76471         attempts [Coverity CID 67].
76472
76473 2006-09-20  Bruno Haible  <bruno@clisp.org>
76474
76475         * lib/mkdtemp.c: Import from libc.
76476         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76477                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76478                 attempts_min into a macro.  Use preprocessor to decide how to
76479                 initialize attempts [Coverity CID 67].
76480         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76481                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76482                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76483
76484 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76485
76486         * gnulib-tool (func_exit): New function, to allow to pass the
76487         exit status portably through the trap.  Use everywhere.
76488         (--help, --version): Signal a write error.
76489         (trap): catch SIGPIPE, for write errors.
76490         Exit at the end of the trap, with the correct exit status.
76491
76492 2006-09-19  Karl Berry  <karl@gnu.org>
76493
76494         * doc/gnulib.texi: note about the license texinfo files.
76495
76496 2006-09-19  Eric Blake  <ebb9@byu.net>
76497
76498         * gnulib-tool: Avoid space-tab.
76499
76500 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76501
76502         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76503         that prevented coreutils 6.1 from building.  Problem reported
76504         by Petter Reinholdtsen.
76505
76506 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76507
76508         * gnulib-tool (avoidlist): Fix typo that broke options like
76509         --avoid=lock that are used by coreutils bootstrap.
76510
76511 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76512
76513         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76514         more systematically.
76515
76516 2006-09-18  Jim Meyering  <jim@meyering.net>
76517
76518         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76519
76520 2006-09-18  Bruno Haible  <bruno@clisp.org>
76521
76522         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76523
76524 2006-09-18  Bruno Haible  <bruno@clisp.org>
76525
76526         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76527         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76528         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76529         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76530         * m4/gettext.m4: Require autoconf >= 2.52.
76531         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76532         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76533         of gl_cv_header_inttypes_h.
76534
76535 2006-09-18  Bruno Haible  <bruno@clisp.org>
76536
76537         * lib/javaversion.c: Include configmake.h.
76538
76539 2006-09-18  Bruno Haible  <bruno@clisp.org>
76540
76541         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76542         avoid that the while loops be executed in a subshell.
76543
76544 2006-09-18  Bruno Haible  <bruno@clisp.org>
76545
76546         * MODULES.html.sh (func_module): Break long lines.
76547         Suggested by Bruce Korb <bkorb@gnu.org>.
76548
76549 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76550
76551         Speed up by a factor of 1.12.
76552         * gnulib-tool (nl): New variable.
76553         (func_import): Rewrite include directive extraction to only read each
76554         directive once.
76555
76556 2006-09-17  Bruno Haible  <bruno@clisp.org>
76557
76558         * modules/javaversion (Makefile.am): Remove DEFS setting.
76559         (Depends-on): Add configmake, for PKGDATADIR definition.
76560
76561 2006-09-17  Bruno Haible  <bruno@clisp.org>
76562
76563         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76564
76565 2006-09-17  Bruno Haible  <bruno@clisp.org>
76566
76567         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76568         (func_modules_transitive_closure, func_modules_add_dummy,
76569         func_modules_to_filelist, func_import, func_create_testdir,
76570         func_create_megatestdir, ...): Use it wherever possible.
76571         Suggested by Ralf Wildenhues.
76572
76573 2006-09-16  Karl Berry  <karl@gnu.org>
76574
76575         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76576         to avoid sectioning errors.
76577         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76578         [ifinfo]: blank line after @center-ed titles.
76579         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76580         Spell FSF address consistently with others.
76581         (These changes approved by rms.)
76582
76583 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76584
76585         Speed up by a factor of 1.61.
76586         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76587         already checked module names again.
76588
76589 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76590
76591         Speed up by a factor of 1.13.
76592         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76593         for new_files, and the input to func_add_or_update.
76594
76595 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76596
76597         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76598         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76599
76600 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76601
76602         * modules/mkancesdirs (Depends-on): Add fcntl.
76603         * modules/savewd: New file.
76604         * MODULES.html.sh (File system functions): Add savewd.
76605
76606         * modules/configmake (Makefile.am): Add support for the
76607         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
76608
76609 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76610
76611         * m4/savewd.m4: New file.
76612
76613 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76614
76615         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
76616         (dirchownmod): New arg FD.  All callers changed.
76617         Use FD rather than opening the directory ourself, as opening is
76618         now the caller's responsibility.
76619         * lib/dirchownmod.h: Likewise.
76620         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
76621         hosts that require <sys/types.h> before <sys/stat.h>.  Include
76622         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
76623         (test_dir): Remove.
76624         (mkancesdirs): Return length of prefix of FILE that has already
76625         been made, or -2 if there is a child doing the work.  Redo
76626         algorithm so that it is O(N) rather than O(N**2).  Optimize away
76627         ".", and treat ".." specially since it might stray back into
76628         already-created areas.  Use a subprocess if necessary.  New arg
76629         WD; all users changed.  MAKE_DIR function should now return 1
76630         if it creates a directory that is not readable.  Return -2 if
76631         a child process is spun off.
76632         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
76633         Adjust signature to match code.
76634         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
76635         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
76636         all users changed.
76637         * lib/savewd.c, lib/savewd.h: New files.
76638
76639 2006-09-15  Jim Meyering  <jim@meyering.net>
76640
76641         * modules/rename-dest-slash: New module.
76642         * MODULES.html.sh (posix_compat): Add it here.
76643
76644         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
76645
76646 2006-09-15  Jim Meyering  <jim@meyering.net>
76647
76648         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
76649         file.
76650
76651         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
76652
76653 2006-09-15  Jim Meyering  <jim@meyering.net>
76654
76655         * lib/rename-dest-slash.c (has_trailing_slash): Use
76656         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
76657         (rpl_rename_dest_slash): Perform the cheaper trailing slash
76658         test before testing whether SRC is a directory.
76659         Suggestions from Bruno Haible.
76660
76661         Avoid a warning about an unused variable.
76662         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
76663         into the #ifdef block where it's used.
76664
76665         * lib/rename-dest-slash.c: New file.
76666
76667 2006-09-14  Bruno Haible  <bruno@clisp.org>
76668
76669         * lib/allocsa.c: Include <config.h> unconditionally.
76670         * lib/asnprintf.c: Likewise.
76671         * lib/asprintf.c: Likewise.
76672         * lib/c-strcasecmp.c: Likewise.
76673         * lib/c-strcasestr.c: Likewise.
76674         * lib/c-strncasecmp.c: Likewise.
76675         * lib/c-strstr.c: Likewise.
76676         * lib/classpath.c: Likewise.
76677         * lib/clean-temp.c: Likewise.
76678         * lib/concatpath.c: Likewise.
76679         * lib/copy-file.c: Likewise.
76680         * lib/csharpcomp.c: Likewise.
76681         * lib/csharpexec.c: Likewise.
76682         * lib/execute.c: Likewise.
76683         * lib/fatal-signal.c: Likewise.
76684         * lib/findprog.c: Likewise.
76685         * lib/fwriteerror.c: Likewise.
76686         * lib/gl_array_list.c: Likewise.
76687         * lib/gl_array_oset.c: Likewise.
76688         * lib/gl_avltree_list.c: Likewise.
76689         * lib/gl_avltree_oset.c: Likewise.
76690         * lib/gl_avltreehash_list.c: Likewise.
76691         * lib/gl_carray_list.c: Likewise.
76692         * lib/gl_linked_list.c: Likewise.
76693         * lib/gl_linkedhash_list.c: Likewise.
76694         * lib/gl_list.c: Likewise.
76695         * lib/gl_oset.c: Likewise.
76696         * lib/gl_rbtree_list.c: Likewise.
76697         * lib/gl_rbtree_oset.c: Likewise.
76698         * lib/gl_rbtreehash_list.c: Likewise.
76699         * lib/imaxabs.c: Likewise.
76700         * lib/imaxdiv.c: Likewise.
76701         * lib/javacomp.c: Likewise.
76702         * lib/javaexec.c: Likewise.
76703         * lib/javaversion.c: Likewise.
76704         * lib/linebreak.c: Likewise.
76705         * lib/localcharset.c: Likewise.
76706         * lib/lock.c: Likewise.
76707         * lib/mbchar.c: Likewise.
76708         * lib/mbswidth.c: Likewise.
76709         * lib/mkdtemp.c: Likewise.
76710         * lib/pipe.c: Likewise.
76711         * lib/printf-args.c: Likewise.
76712         * lib/printf-parse.c: Likewise.
76713         * lib/progname.c: Likewise.
76714         * lib/progreloc.c: Likewise.
76715         * lib/readlink.c: Likewise.
76716         * lib/sh-quote.c: Likewise.
76717         * lib/stpcpy.c: Likewise.
76718         * lib/stpncpy.c: Likewise.
76719         * lib/strcasecmp.c: Likewise.
76720         * lib/strcasestr.c: Likewise.
76721         * lib/strcspn.c: Likewise.
76722         * lib/striconv.c: Likewise.
76723         * lib/strncasecmp.c: Likewise.
76724         * lib/strnlen1.c: Likewise.
76725         * lib/strstr.c: Likewise.
76726         * lib/strtok_r.c: Likewise.
76727         * lib/tls.c: Likewise.
76728         * lib/tmpdir.c: Likewise.
76729         * lib/unicodeio.c: Likewise.
76730         * lib/unsetenv.c: Likewise.
76731         * lib/vasnprintf.c: Likewise.
76732         * lib/vasprintf.c: Likewise.
76733         * lib/wait-process.c: Likewise.
76734         * lib/xallocsa.c: Likewise.
76735         * lib/xsetenv.c: Likewise.
76736         * lib/xstriconv.c: Likewise.
76737
76738 2006-09-13  Simon Josefsson  <jas@extundo.com>
76739
76740         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
76741         that internally, suggested by Ralf Wildenhues
76742         <Ralf.Wildenhues@gmx.de>.
76743
76744 2006-09-13  Simon Josefsson  <jas@extundo.com>
76745
76746         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
76747         @LIBOBJS@.
76748         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76749
76750 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76751
76752         * lib/_fpending.c: Include <config.h> unconditionally, since we no
76753         longer worry about uses that don't define HAVE_CONFIG_H.
76754         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
76755         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
76756         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
76757         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
76758         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
76759         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
76760         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
76761         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
76762         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
76763         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
76764         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
76765         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
76766         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
76767         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
76768         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
76769         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
76770         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
76771         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
76772         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
76773         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
76774         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
76775         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
76776         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
76777         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
76778         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
76779         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
76780         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
76781         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
76782         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
76783         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
76784         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
76785         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
76786         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
76787         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
76788         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
76789         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
76790         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
76791         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
76792         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
76793         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
76794         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
76795         Likewise.
76796
76797 2006-09-13  Eric Blake  <ebb9@byu.net>
76798
76799         * lib/getopt.c: Fix typo in last commit.
76800
76801 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76802
76803         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
76804         dgettext.
76805
76806 2006-09-12  Jim Meyering  <jim@meyering.net>
76807
76808         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
76809         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
76810         Reported by Nelson H. F. Beebe.
76811
76812 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76813
76814         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
76815         program_invocation_name and program_invocation_short_name are
76816         initialized.
76817         * lib/argp-namefrob.h: Move declarations of program_invocation_name
76818         and program_invocation_short_name to argp.h, so they are visible
76819         to user programs.
76820         * lib/argp.h: Likewise
76821
76822 2006-09-10  Bruno Haible  <bruno@clisp.org>
76823
76824         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76825         m4/inttypes_h.m4, m4/uintmax_t.m4.
76826
76827 2006-09-10  Bruno Haible  <bruno@clisp.org>
76828
76829         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
76830         gl_AC_TYPE_UINTMAX_T.
76831
76832 2006-09-10  Bruno Haible  <bruno@clisp.org>
76833
76834         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
76835
76836 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76837
76838         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
76839         convention.  Text proposed by Bruno Haible.
76840         (struct argp_option): Document the use of N_() wrappers.
76841
76842         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
76843         '\v', and translate the two parts separately, instead of feeding
76844         the whole string to gettext.  This allows to exclude
76845         '\v' from the strings visible to the translator by writing doc
76846         strings as N_("..") "\v" N_("..").
76847
76848 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
76849
76850         * config/srclist.txt: Undo latest change; the bug was fixed.
76851
76852 2006-09-09  Bruno Haible  <bruno@clisp.org>
76853
76854         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
76855         assignments if building a library without libtool.
76856         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
76857         in func_emit_lib_Makefile_am.
76858         (func_import): When building a static library libfoo.a, arrange to
76859         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
76860         (func_create_testdir): Likewise.
76861         * modules/gc (configure.ac, Makefile.am): If building statically,
76862         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
76863         * modules/iconvme (configure.ac, Makefile.am): Likewise.
76864         * modules/striconv (configure.ac, Makefile.am): Likewise.
76865         Based on a suggestion by Ralf Wildenhues.
76866
76867 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76868
76869         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76870         Check for unistd.h too, since Autoconf doesn't assume POSIX.
76871         Also:
76872
76873         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76874         Add year_2050_test to catch glibc bug 2821
76875         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76876
76877         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76878         Prefer #ifdef to #if.
76879
76880         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
76881         Return from 'main' instead of calling 'exit'.
76882
76883 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76884
76885         * lib/mktime.c (guess_time_tm): Fix bug where mktime
76886         returned the maximum time_t value rather than (time_t) -1.
76887         Problem originally reported by William Bardwell
76888         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76889
76890         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76891         Moved to here ...
76892         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76893         ... from here.
76894
76895 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76896
76897         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
76898         2821 is fixed.
76899
76900 2006-09-08  Jim Meyering  <jim@meyering.net>
76901
76902         Don't make generated files read-only.  That would bother too many
76903         people.  However, do retain the ability to work when targets are
76904         read-only: remove the destination and temporary files before writing
76905         them (when generated via sed or echo), or by using the -f option for
76906         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
76907         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76908         * modules/byteswap, modules/configmake, modules/fcntl:
76909         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76910         * modules/localcharset, modules/netinet_in, modules/poll:
76911         * modules/stdbool, modules/stdint, modules/sys_select:
76912         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76913
76914 2006-09-08  Jim Meyering  <jim@meyering.net>
76915
76916         Avoid new build failure on FreeBSD 6.0.
76917         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
76918         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
76919         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
76920
76921 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76922
76923         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
76924
76925 2006-09-07  Jim Meyering  <jim@meyering.net>
76926
76927         Fix global typo in last change: use chmod u-w, not chmod u-x.
76928         Spotted by Paul Eggert and Bruce Korb.
76929         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76930         * modules/byteswap, modules/configmake, modules/fcntl:
76931         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76932         * modules/localcharset, modules/netinet_in, modules/poll:
76933         * modules/stdbool, modules/stdint, modules/sys_select:
76934         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76935
76936 2006-09-06  Jim Meyering  <jim@meyering.net>
76937
76938         Make generated files be read-only.
76939         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
76940         Ensure that each generated file is now read-only.
76941         * modules/argz: Likewise.
76942         * modules/arpa_inet: Likewise.
76943         * modules/byteswap: Likewise.
76944         * modules/configmake: Likewise.
76945         * modules/fcntl: Likewise.
76946         * modules/fnmatch: Likewise.
76947         * modules/getopt: Likewise.
76948         * modules/glob: Likewise.
76949         * modules/inttypes: Likewise.
76950         * modules/netinet_in: Likewise.
76951         * modules/poll: Likewise.
76952         * modules/stdbool: Likewise.
76953         * modules/stdint: Likewise.
76954         * modules/sys_select: Likewise.
76955         * modules/sys_socket: Likewise.
76956         * modules/sys_stat: Likewise.
76957         * modules/sysexits: Likewise.
76958         * modules/localcharset: Same as above, but continue using temporary
76959         file named "t-$@" (why different?) rather than the "$@-t" used
76960         everywhere else.
76961
76962         * modules/sysexits (Makefile.am): Replace literal occurrences
76963         of "sysexit.h" more readable, and more consistent, "$@".
76964
76965 2006-09-06  Bruno Haible  <bruno@clisp.org>
76966
76967         * modules/striconv: New file.
76968         * modules/xstriconv: New file.
76969         * MODULES.html.sh (Internationalization functions): Add striconv,
76970         xstriconv.
76971
76972 2006-09-06  Bruno Haible  <bruno@clisp.org>
76973
76974         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
76975         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
76976         not using libtool correctly.
76977
76978 2006-09-06  Bruno Haible  <bruno@clisp.org>
76979
76980         * lib/striconv.h: New file.
76981         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
76982         iconvstring.c.
76983         * lib/xstriconv.h: New file.
76984         * lib/xstriconv.c: New file.
76985
76986 2006-09-06  Bruno Haible  <bruno@clisp.org>
76987
76988         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76989         lib_..._LDFLAGS.
76990
76991 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76992
76993         * lib/argz_.h: Sync from Libtool.
76994
76995         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
76996                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76997
76998         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
76999
77000 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77001
77002         * modules/trim: New file.
77003
77004 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77005
77006         * lib/trim.h: New file.
77007         * lib/trim.c: New file.
77008
77009 2006-09-05  Bruno Haible  <bruno@clisp.org>
77010
77011         * MODULES.html.sh (String handling): Add trim.
77012
77013 2006-09-04  Karl Berry  <karl@gnu.org>
77014
77015         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77016         until next release.
77017
77018 2006-09-03  Bruno Haible  <bruno@clisp.org>
77019
77020         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77021         correctly.
77022
77023 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77024
77025         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77026         not gl_GETLOADAVG.  Omit unneeded semicolons.
77027         Problems reported by Ralf Wildenhues in
77028         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77029         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77030         at the end, which is the usual gnulib style.
77031
77032         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77033         of doing all the work ourselves.
77034         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77035         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77036
77037 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77038
77039         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77040         Problem reported by Ralf Wildenhues in
77041         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77042
77043         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77044         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77045
77046 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77047
77048         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77049         yesterday's patch by changing test -n to test -z.
77050
77051 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77052
77053         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77054         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77055         the former is now obsolescent.
77056
77057         * modules/chdir-long (Depends-on): Add fcntl.
77058
77059 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77060
77061         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77062         obsolescent, and programs should use gnulib instead.
77063         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77064         but with prefixes changed.
77065
77066 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77067
77068         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77069         or stdbool.h, because they might not exist while configuring.
77070
77071         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77072         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77073         does that for us.
77074         (O_DIRECTORY): Remove.
77075
77076 2006-08-31  Eric Blake  <ebb9@byu.net>
77077
77078         * gnulib-tool: Don't let emacs change spaces to TAB.
77079
77080 2006-08-31  Bruno Haible  <bruno@clisp.org>
77081
77082         * gnulib-tool: When calling func_import more than once, do it in a
77083         subshell.
77084         Reported by Eric Blake <ebb9@byu.net>.
77085
77086 2006-08-31  Bruno Haible  <bruno@clisp.org>
77087
77088         * gnulib-tool (nl): Remove variable.
77089         (sed_transform_lib_file): Use more robust test for config-h module.
77090         (func_import): Fix typo in 2006-08-25 patch.
77091
77092 2006-08-31  Bruno Haible  <bruno@clisp.org>
77093
77094         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77095         specified, augment Makefile.am variables instead of assigning them.
77096
77097 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77098
77099         Work around a bug in both the Linux and SunOS 64-bit kernels:
77100         nanosleep mishandles sleeps for longer than 2**31 seconds.
77101         Problem reported by Frank v Waveren in
77102         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77104         Check for nanosleep bug.
77105         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77106
77107 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         Work around a bug in both the Linux and SunOS 64-bit kernels:
77110         nanosleep mishandles sleeps for longer than 2**31 seconds.
77111         Problem reported by Frank v Waveren in
77112         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77113         * lib/nanosleep.c (BILLION): New constant.
77114         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77115         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77116         implementation.
77117
77118 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77119
77120         * modules/nanosleep (Depends-on): Add gettime.
77121
77122 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77123         and Simon Josefsson  <jas@extundo.com>
77124         and Oskar Liljeblad  <oskar@osk.mine.nu>
77125
77126         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77127         * gnulib-tool (func_import): New license type 'unmodifiable license
77128         text'.
77129         * modules/fdl: Use it.  Longer description.
77130         * module/gpl, module/lgpl: New files.
77131
77132 2006-08-30  Jim Meyering  <jim@meyering.net>
77133
77134         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77135         shadowing the parameter.
77136
77137 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77138
77139         Sync from Libtool:
77140
77141         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77142
77143         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77144         sharing with gnulib.  Report by Eric Blake.
77145
77146 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77147
77148         * modules/isapipe: New file.
77149         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77150
77151 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77152
77153         * modules/configmake (Makefile.am): Add a comment, and omit
77154         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77155         by Bruno Haible.
77156
77157 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77158
77159         * m4/isapipe.m4: New file.
77160
77161 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77162
77163         * lib/isapipe.c, lib/isapipe.h: New files.
77164
77165 2006-08-29  Jim Meyering  <jim@meyering.net>
77166
77167         * modules/configmake (Makefile.am): Make configmake.h depend on
77168         Makefile.  Otherwise, a stale configmake.h could hang around.
77169
77170 2006-08-29  Eric Blake  <ebb9@byu.net>
77171
77172         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77173         resolution of upstream bug 3044.
77174
77175 2006-08-29  Bruno Haible  <bruno@clisp.org>
77176
77177         * modules/localcharset (Depends-on): Add configmake.
77178         (Makefile.am): Remove setting of LIBDIR through DEFS.
77179
77180 2006-08-29  Bruno Haible  <bruno@clisp.org>
77181
77182         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77183         defined.
77184
77185 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77186
77187         * modules/fcntl: New file.
77188         * modules/chdir-safer (Depends-on): Add fcntl.
77189         * modules/fts: Likewise.
77190         * modules/mkdir-p: Likewise.
77191
77192         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77193         This undoes the most recent change, since we're now addressing the
77194         problem in a different way.
77195
77196         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77197         into output, since the output might be called Makefile.am even
77198         if $makefile_name is something different.
77199         (func_import): Use $makefile_am rather than
77200         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77201         empty.
77202
77203         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77204
77205 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77206
77207         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77208         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77209         recent change to stdint.m4, since we're now addressing the problem in a
77210         different way.
77211
77212 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77213
77214         * m4/fcntl_h.m4: New file.
77215
77216 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         * lib/fcntl_.h: New file.
77219         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77220         the fcntl module.
77221         * lib/dirchownmod.c: Likewise.
77222         * lib/fts.c: Likewise.
77223
77224         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77225         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77226         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77227         just before including <inttypes.h>, to avoid circular inclusion.
77228
77229 2006-08-28  Jim Meyering  <jim@meyering.net>
77230
77231         * doc/visibility.texi: Actually read and correct the grammar of the
77232         sentence affected by yesterday's change.
77233
77234 2006-08-28  Eric Blake  <ebb9@byu.net>
77235
77236         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77237         needs wrapper.
77238
77239 2006-08-28  Eric Blake  <ebb9@byu.net>
77240
77241         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77242
77243 2006-08-28  Eric Blake  <ebb9@byu.net>
77244
77245         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77246
77247 2006-08-28  Bruno Haible  <bruno@clisp.org>
77248
77249         * modules/c-strstr: New file, from GNU gettext.
77250         * MODULES.html.sh (String handling): Add c-strstr.
77251
77252 2006-08-28  Bruno Haible  <bruno@clisp.org>
77253
77254         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77255         macros.
77256         Reported by Eric Blake.
77257
77258 2006-08-28  Bruno Haible  <bruno@clisp.org>
77259
77260         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77261         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77262         * lib/vasprintf.c: Include errno.h, limits.h.
77263         (EOVERFLOW): New fallback definition.
77264         (vasprintf): Test here whether the string length is > INT_MAX.
77265         * lib/vsnprintf.c: Include errno.h, limits.h.
77266         (EOVERFLOW): New fallback definition.
77267         (vsnprintf): Fix bug when generated string was too long for the buffer.
77268         Test here whether the string length is > INT_MAX.
77269
77270 2006-08-28  Bruno Haible  <bruno@clisp.org>
77271
77272         * lib/inttypes_.h (SCNX*): Remove definitions.
77273         Reported by Eric Blake.
77274
77275 2006-08-28  Bruno Haible  <bruno@clisp.org>
77276
77277         * lib/c-strstr.h: New file, from GNU gettext.
77278         * lib/c-strstr.c: New file, from GNU gettext.
77279
77280 2006-08-28  Bruno Haible  <bruno@clisp.org>
77281
77282         * gnulib-tool: Reorder some statements.
77283
77284 2006-08-28  Bruno Haible  <bruno@clisp.org>
77285
77286         * gnulib-tool: New option --makefile-name.
77287         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77288         $makefile_name.
77289         (func_import): Write $makefile_name to the cache file, and read it from
77290         there unless explicitly specified. Use $makefile_name as file name
77291         instead of Makefile.am. Adjust the recommendations accordingly.
77292
77293 2006-08-28  Bruno Haible  <bruno@clisp.org>
77294
77295         * gnulib-tool (func_verify_module): Check against misapplying patch.
77296
77297 2006-08-28  Bruno Haible  <bruno@clisp.org>
77298
77299         * gnulib-tool (func_relativize, func_relconcat): New functions.
77300         Give an error if --local-dir is given with --update.
77301         Remove trailing slashes from $local_gnulib_dir.
77302         (func_import): Store the relativized $local_gnulib_dir in
77303         gnulib-cache.m4, and read it from there if not specified explicitly.
77304
77305 2006-08-28  Bruno Haible  <bruno@clisp.org>
77306
77307         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77308         is the current directory. Respect also $local_gnulib_dir.
77309
77310 2006-08-28  Bruno Haible  <bruno@clisp.org>
77311             Simon Josefsson  <jas@extundo.com>
77312
77313         BeOS portability.
77314         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77315
77316 2006-08-27  Jim Meyering  <jim@meyering.net>
77317
77318         * doc/visibility.texi: Remove duplicate word: "pointer".
77319
77320 2006-08-26  Bruno Haible  <bruno@clisp.org>
77321
77322         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77323         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77324         (Makefile.am): Create inttypes.h from inttypes_.h.
77325         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77326
77327         * modules/imaxabs: New file.
77328
77329         * modules/imaxdiv: New file.
77330
77331 2006-08-26  Bruno Haible  <bruno@clisp.org>
77332
77333         * m4/inttypes.m4: New file.
77334         * m4/_inttypes_h.m4: Remove file.
77335         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77336         PRI_MACROS_BROKEN.
77337         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77338
77339         * m4/imaxabs.m4: New file.
77340
77341         * m4/imaxdiv.m4: New file.
77342
77343 2006-08-26  Bruno Haible  <bruno@clisp.org>
77344
77345         * lib/inttypes_.h: New file.
77346         * lib/inttypes.h: Remove file.
77347         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77348
77349         * lib/imaxabs.c: New file.
77350
77351         * lib/imaxdiv.c: New file.
77352
77353 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77354
77355         New config-h module, so that "make" output needn't be cluttered
77356         by -DHAVE_CONFIG_H.
77357         * MODULES.html.sh (Support for building libraries and executables):
77358         Add config-h.
77359         * modules/config-h: New file.
77360         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77361         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77362         the config-h module is used.
77363
77364         New configmake module, so that "make" output needn't be cluttered
77365         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77366         * MODULES.html.sh (Support for building libraries and executables):
77367         Add configmake.
77368         * modules/configmake: New file.
77369
77370 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77371
77372         * m4/config-h.m4: New file.
77373
77374 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77375
77376         * config/srclist.txt: Add elisp-comp.
77377
77378 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77379
77380         * MODULES.html.sh (Support for building libraries and executables):
77381         Add elisp-comp.
77382         * build-aux/elisp-comp: New file.
77383         * modules/elisp-comp: New file.
77384
77385 2006-08-24  Bruno Haible  <bruno@clisp.org>
77386
77387         * gnulib-tool (func_create_testdir): Use non-default values of
77388         sourcebase and m4base.
77389
77390 2006-08-24  Bruno Haible  <bruno@clisp.org>
77391
77392         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77393         HTML structure.
77394
77395 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77396
77397         * modules/openat (Depends-on): Add lchown.
77398
77399 2006-08-23  Bruno Haible  <bruno@clisp.org>
77400
77401         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77402         of gl_LOCK_EARLY instead of gl_LOCK.
77403
77404 2006-08-23  Bruno Haible  <bruno@clisp.org>
77405
77406         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77407         on OSF/1 to no.
77408         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77409
77410 2006-08-23  Bruno Haible  <bruno@clisp.org>
77411
77412         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77413         as unusable.
77414
77415         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77416         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77417         (gl_LOCK): New macro.
77418
77419 2006-08-22  Simon Josefsson  <jas@extundo.com>
77420
77421         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77422         to md5 module.
77423
77424 2006-08-22  Simon Josefsson  <jas@extundo.com>
77425
77426         * MODULES.html.sh: Add "Support for maintaining and release
77427         projects".
77428
77429         * build-aux/gnupload: New file, from coreutils.
77430
77431 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77432
77433         Avoid the need for AC_LIBSOURCES in m4 macros.
77434         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77435         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77436         * modules/check-version (EXTRA_DIST): Add check-version.h.
77437         * modules/crc (EXTRA_DIST): Add crc.h.
77438         * modules/des (EXTRA_DIST): Add des.h.
77439         * modules/gc (EXTRA_DIST): Add gc.h.
77440         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77441         * modules/getline (EXTRA_DIST): Add getline.h.
77442         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77443         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77444         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77445         * modules/md2 (EXTRA_DIST): Add md2.h.
77446         * modules/md4 (EXTRA_DIST): Add md4.h.
77447         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77448         * modules/read-file (EXTRA_DIST): Add read-file.h.
77449         * modules/readline (EXTRA_DIST): Add readline.h.
77450         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77451         rijndael-api-fst.h.
77452
77453 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77454
77455         * m4/rijndael.m4 (gl_ARCFOUR):
77456         * m4/arctwo.m4 (gl_ARCTWO):
77457         * m4/check-version.m4 (gl_CHECK_VERSION):
77458         * m4/crc.m4 (gl_CRC):
77459         * m4/des.m4 (gl_DES):
77460         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77461         * m4/gc.m4 (gl_GC):
77462         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77463         * m4/getline.m4 (gl_FUNC_GETLINE):
77464         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77465         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77466         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77467         * m4/md2.m4 (gl_MD2):
77468         * m4/md4.m4 (gl_MD4):
77469         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77470         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77471         * m4/readline.m4 (gl_FUNC_READLINE):
77472         * m4/rijndael.m4 (gl_RIJNDAEL):
77473         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77474         to get the necessary .h files and whatnot.
77475
77476 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77477
77478         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77479         gnulib rather than the other way around.
77480         * config/srclistvars.sh (COREUTILS): Remove.
77481
77482 2006-08-22  Jim Meyering  <jim@meyering.net>
77483
77484         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77485
77486         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77487
77488 2006-08-22  Eric Blake  <ebb9@byu.net>
77489
77490         * modules/regexprops-generic: New file.
77491         * MODULES.html.sh (Support for building documentation): List it.
77492
77493 2006-08-22  Eric Blake  <ebb9@byu.net>
77494
77495         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77496         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77497         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77498         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77499
77500 2006-08-22  Bruno Haible  <bruno@clisp.org>
77501
77502         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77503         and lib_LTLIBRARIES like the other lib_* variables.
77504
77505 2006-08-22  Bruno Haible  <bruno@clisp.org>
77506
77507         * build-aux/x-to-1.in: New file, from GNU gettext.
77508
77509 2006-08-22  Bruno Haible  <bruno@clisp.org>
77510
77511         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77512         <utmpx.h> exists.
77513
77514 2006-08-22  Bruno Haible  <bruno@clisp.org>
77515
77516         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77517         <utmpx.h> exists.
77518
77519 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         BeOS portability.
77522         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77523         exist.
77524         Problem reported by Bruno Haible.
77525
77526 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77527
77528         Avoid the need for AC_LIBSOURCES in m4 macros.
77529         * modules/acl (EXTRA_DIST): Add acl.h.
77530         * modules/argmatch (Files): Add m4/argmatch.m4.
77531         (configure.ac): Add gl_ARGMATCH.
77532         (EXTRA_DIST): Renamed from lib_SOURCES, for
77533         consistency with the other modules.  Remove argmatch.c.
77534         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77535         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77536         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77537         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77538         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77539         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77540         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77541         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77542         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77543         * modules/closeout (EXTRA_DIST): Add closeout.h.
77544         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77545         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77546         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77547         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77548         dirname.h; remove basename.c and stripslash.c.
77549         * modules/exclude (EXTRA_DIST): Add exclude.h.
77550         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77551         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77552         * modules/file-type (EXTRA_DIST): Add file-type.h.
77553         * modules/filemode (EXTRA_DIST): Add filemode.h.
77554         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77555         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77556         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77557         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77558         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77559         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77560         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77561         * modules/getdate (EXTRA_DIST): Add getdate.c.
77562         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77563         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77564         * modules/getpass (EXTRA_DIST): Add getpass.h.
77565         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77566         * modules/group-member (EXTRA_DIST): Add group-member.h.
77567         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77568         * modules/hash (EXTRA_DIST): Add hash.h.
77569         * modules/human (EXTRA_DIST): Add human.h.
77570         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77571         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77572         * modules/lchown (EXTRA_DIST): Add lchown.h.
77573         * modules/long-options (EXTRA_DIST): Add long-options.h.
77574         * modules/lstat (EXTRA_DIST): Add lstat.h.
77575         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77576         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77577         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77578         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77579         * modules/memxor (EXTRA_DIST): Add memxor.h.
77580         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77581         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77582         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77583         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77584         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77585         * modules/physmem (EXTRA_DIST): Add physmem.h.
77586         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77587         * modules/posixver (EXTRA_DIST): Add posixver.h.
77588         * modules/quote (EXTRA_DIST): Add quote.h.
77589         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77590         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77591         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77592         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77593         regex_internal.h regexec.c.
77594         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77595         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77596         * modules/same (EXTRA_DIST): Add same.h.
77597         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77598         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77599         * modules/savedir (EXTRA_DIST): Add savedir.h.
77600         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77601         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77602         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
77603         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
77604         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
77605         * modules/strdup (EXTRA_DIST): Add strdup.h.
77606         * modules/strftime (EXTRA_DIST): Add strftime.h.
77607         * modules/strndup (EXTRA_DIST): Add strndup.h.
77608         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
77609         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
77610         * modules/time_r (EXTRA_DIST): Add time_r.h.
77611         * modules/timespec (EXTRA_DIST): Add timespec.h.
77612         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77613         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
77614         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
77615         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
77616         * modules/userspec (EXTRA_DIST): Add userspec.h.
77617         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
77618         * modules/utimens (EXTRA_DIST): Add utimens.h.
77619         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
77620         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
77621         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
77622         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
77623         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
77624         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
77625         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
77626         * modules/yesno (EXTRA_DIST): Add yesno.h.
77627
77628 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77629
77630         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
77631
77632         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
77633         * m4/dev-ino.m4, same-inode.m4: Remove.
77634
77635         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
77636         * m4/acl.m4 (AC_FUNC_ACL):
77637         * m4/backupfile.m4 (gl_BACKUPFILE):
77638         * m4/c-strtod.m4 (gl_C99_STRTOLD):
77639         * m4/canon-host.m4 (gl_CANON_HOST):
77640         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77641         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
77642         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
77643         * m4/cloexec.m4 (gl_CLOEXEC):
77644         * m4/close-stream.m4 (gl_CLOSE_STREAM):
77645         * m4/closeout.m4 (gl_CLOSEOUT):
77646         * m4/dirfd.m4 (gl_FUNC_DIRFD):
77647         * m4/dirname.m4 (gl_DIRNAME):
77648         * m4/exclude.m4 (gl_EXCLUDE):
77649         * m4/exitfail.m4 (gl_EXITFAIL):
77650         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
77651         * m4/file-type.m4 (gl_FILE_TYPE):
77652         * m4/filemode.m4 (gl_FILEMODE):
77653         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
77654         * m4/fpending.m4 (gl_FUNC_FPENDING):
77655         * m4/fprintftime.m4 (gl_FPRINTFTIME):
77656         * m4/fts.m4 (gl_FUNC_FTS):
77657         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
77658         * m4/getdate.m4 (gl_GETDATE):
77659         * m4/gethrxtime.m4 (gl_GETHRXTIME):
77660         * m4/getpagesize.m4 (gl_GETPAGESIZE):
77661         * m4/getpass.m4 (gl_FUNC_GETPASS):
77662         * m4/gettime.m4 (gl_GETTIME):
77663         * m4/getugroups.m4 (gl_GETUGROUPS):
77664         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
77665         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
77666         * m4/hard-locale.m4 (gl_HARD_LOCALE):
77667         * m4/hash.m4 (gl_HASH):
77668         * m4/idcache.m4 (gl_IDCACHE):
77669         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
77670         * m4/lchown.m4 (gl_FUNC_LCHOWN):
77671         * m4/long-options.m4 (gl_LONG_OPTIONS):
77672         * m4/lstat.m4 (gl_FUNC_LSTAT):
77673         * m4/md5.m4 (gl_MD5):
77674         * m4/memcasecmp.m4 (gl_MEMCASECMP):
77675         * m4/memcoll.m4 (gl_MEMCOLL):
77676         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
77677         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
77678         * m4/memxor.m4 (gl_MEMXOR):
77679         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
77680         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
77681         * m4/modechange.m4 (gl_MODECHANGE):
77682         * m4/mountlist.m4 (gl_MOUNTLIST):
77683         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
77684         * m4/openat.m4 (gl_FUNC_OPENAT):
77685         * m4/pathmax.m4 (gl_PATHMAX):
77686         * m4/physmem.m4 (gl_PHYSMEM):
77687         * m4/posixtm.m4 (gl_POSIXTM):
77688         * m4/posixver.m4 (gl_POSIXVER):
77689         * m4/quote.m4 (gl_QUOTE):
77690         * m4/quotearg.m4 (gl_QUOTEARG):
77691         * m4/readtokens.m4 (gl_READTOKENS):
77692         * m4/readutmp.m4 (gl_READUTMP):
77693         * m4/regex.m4 (gl_REGEX):
77694         * m4/safe-read.m4 (gl_SAFE_READ):
77695         * m4/safe-write.m4 (gl_SAFE_WRITE):
77696         * m4/same.m4 (gl_SAME):
77697         * m4/save-cwd.m4 (gl_SAVE_CWD):
77698         * m4/savedir.m4 (gl_SAVEDIR):
77699         * m4/settime.m4 (gl_SETTIME):
77700         * m4/sha1.m4 (gl_SHA1):
77701         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
77702         * m4/stat-macros.m4 (gl_STAT_MACROS):
77703         * m4/stat-time.m4 (gl_STAT_TIME):
77704         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
77705         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
77706         * m4/strdup.m4 (gl_FUNC_STRDUP):
77707         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
77708         * m4/strndup.m4 (gl_FUNC_STRNDUP):
77709         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
77710         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
77711         * m4/time_r.m4 (gl_TIME_R):
77712         * m4/timespec.m4 (gl_TIMESPEC):
77713         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
77714         * m4/unlinkdir.m4 (gl_UNLINKDIR):
77715         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
77716         * m4/userspec.m4 (gl_USERSPEC):
77717         * m4/utimecmp.m4 (gl_UTIMECMP):
77718         * m4/utimens.m4 (gl_UTIMENS):
77719         * m4/xalloc.m4 (gl_XALLOC):
77720         * m4/xgetcwd.m4 (gl_XGETCWD):
77721         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
77722         * m4/xreadlink.m4 (gl_XREADLINK):
77723         * m4/xstrtod.m4 (gl_XSTRTOD):
77724         * m4/yesno.m4 (gl_YESNO):
77725         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77726         to get the necessary .h files and whatnot.
77727
77728 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
77729             Bruno Haible  <bruno@clisp.org>
77730
77731         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
77732         /bin/sh understanding of '!' conditional negation.
77733
77734 2006-08-21  Jim Meyering  <jim@meyering.net>
77735
77736         * modules/openat (Depends-on): Really alphabetize.
77737
77738         * modules/acl (Depends-on): Add error and quote.
77739
77740         * check-module (find_included_lib_files): Add at-func.c to the
77741         ok-to-include-more-than-once white list.
77742
77743         * modules/openat (Depends-on): Add lstat.  Alphabetize.
77744
77745 2006-08-21  Bruno Haible  <bruno@clisp.org>
77746
77747         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77748         Emit a pkgdata_DATA variable only if some snippets add contents to it.
77749         Reported by Martin Lambers <marlam@marlam.de>.
77750
77751 2006-08-21  Bruno Haible  <bruno@clisp.org>
77752
77753         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
77754         specify an installation location, don't emit a noinst_LIBRARIES or
77755         noinst_LTLIBRARIES assignment.
77756
77757 2006-08-21  Bruno Haible  <bruno@clisp.org>
77758
77759         BeOS portability.
77760         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
77761         BeOS has mbrtowc() but no <wctype.h>.
77762
77763 2006-08-21  Bruno Haible  <bruno@clisp.org>
77764
77765         BeOS portability.
77766         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
77767         exist.
77768
77769 2006-08-21  Bruno Haible  <bruno@clisp.org>
77770
77771         BeOS portability.
77772         * lib/mbchar.h: Include <wctype.h> only if it exists.
77773
77774 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77775
77776         Remove files that are no longer needed by their respective modules.
77777         * m4/obstack.m4: Remove.
77778         * m4/strerror_r.m4: Remove.
77779         * m4/uint32_t.m4: Remove.
77780         * m4/uintptr_t.m4: Remove.
77781         * m4/ullong_max.m4: Remove.
77782         * m4/xstrtoimax.m4: Remove.
77783         * m4/xstrtoumax.m4: Remove.
77784
77785         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
77786         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
77787         dependencies now capture this.
77788
77789         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
77790         Do not use AC_LIBSOURCES, since gnulib modules now do this.
77791         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
77792         * m4/human.m4 (gl_HUMAN): Likewise.
77793         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
77794         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
77795
77796         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
77797
77798         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
77799         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
77800         stdint.
77801         * m4/human.m4 (gl_HUMAN): Likewise.
77802         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
77803         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
77804         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77805         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77806         * m4/xstrtol (gl_XSTRTOL): Likewise.
77807
77808         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
77809         AC_TYPE_LONG_LONG_INT.
77810         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77811         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
77812         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
77813         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77814
77815         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
77816         on stdbool.
77817
77818         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
77819         (gl_PREREQ_XSTRTOUL): Remove.
77820
77821         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
77822
77823         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
77824         mode.
77825
77826 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77827
77828         Add and change modules to make it easier for coreutils to use
77829         gnulib-tool.
77830         * modules/backupfile (Files): Remove m4/d-ino.m4.
77831         (Depends-on): Add d-ino.
77832         * modules/cycle-check (Depends-on): Add stdint.
77833         (lib_SOURCES): Add cycle-check.h.
77834         * modules/d-ino: New module.
77835         * modules/d-type: New module.
77836         * modules/error (Files): Remove m4/strerror_r.m4.
77837         * modules/filemode (Files): Add m4/st_dm_mode.m4.
77838         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77839         m4/inttypes_h.m4, m4/uintmax_t.m4.
77840         (Depends-on): Add stdint.
77841         (lib_SOURCES): Add fsusage.h.
77842         * modules/getcwd (Files): Remove d-ino.m4.
77843         (Depends-on): Add d-ino.
77844         * modules/getndelim2 (Depends-on): Add stdint.
77845         * modules/glob (Files): Remove m4/d-type.m4.
77846         (Depends-on): Add d-type.
77847         * modules/host-os: New module.
77848         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
77849         m4/inttypes_h.m4, m4/uintmax_t.m4.
77850         * Depends-on: Add stdint.
77851         (lib_SOURCES): Add human.h.
77852         * modules/inttostr (Files): Remove m4/intmax_t.m4,
77853         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
77854         m4/uintmax_t.m4, m4/ulonglong.m4.
77855         (Depends-on): Add stdint.
77856         (EXTRA_DIST): Add inttostr.h.
77857         * modules/lchmod: New module.
77858         * modules/link-follow: New module.
77859         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
77860         (Depends-on): Add lchmod.
77861         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
77862         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
77863         (Depends-on): Add stdint.
77864         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
77865         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
77866         (Depends-on): Add stdint.
77867         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
77868         * modules/perl: New module.
77869         * modules/regex (Depends-on): Add stdint.
77870         * modules/rmdir-errno: New module.
77871         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77872         m4/intmax_t.m4.
77873         (Depends-on): Add stdint.
77874         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77875         m4/uintmax_t.m4.
77876         (Depends-on): Add stdint.
77877         * modules/unlink-busy: New module.
77878         * modules/utimecmp (Depends-on): Add stdint.
77879         * modules/uptime: New module.
77880         * modules/winsz-ioctl: New module.
77881         * modules/winsz-termios: New module.
77882         * modules/xnanosleep (Depends-on): Add nanosleep.
77883         * modules/ullong_max: Remove.
77884         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
77885         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
77886         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
77887         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
77888         (Depends-on): Add inttypes.
77889         (lib_SOURCES): Add xstrtol.h.
77890         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
77891         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
77892         * MODULES.html.sh: Move 'assert' into the assert section.
77893         Move 'dummy' into the linking section.
77894         Remove ullong_max.
77895         Add section for compatibility checks for POSIX:2001 functions,
77896         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
77897         winsz-ioctl, and winsz-termios into it.
77898         Add lchmod.
77899         Add top-level Misc section and put host-os, perl, and uptime
77900         into it.
77901
77902 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77903
77904         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
77905         now assume the stdint module.  Do not include inttypes.h.
77906         * lib/fsusage.h: Likewise.
77907         * lib/getndelim2.c: Likewise.
77908         * lib/human.h: Likewise.
77909         * lib/inttostr.h: Likewise.
77910         * lib/obstack.c: Likewise.
77911         * lib/regex_internal.h: Likewise.
77912         * lib/tempname.c: Likewise.
77913         * lib/utimecmp.c: Likewise.
77914         * lib/xstrtol.h: Likewise.
77915
77916         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
77917
77918         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
77919         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
77920         * lib/xtime.h: Likewise.
77921
77922 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77923
77924         * modules/openat (Files): Add lib/fchmodat.c.
77925         Fixes problem reported by Jay Youngman.
77926
77927 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77928
77929         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
77930         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
77931
77932 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
77933             Bruno Haible  <bruno@clisp.org>
77934
77935         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
77936         and is a script that invokes bison. Tighten the code. Add comments.
77937
77938 2006-08-18  Jim Meyering  <jim@meyering.net>
77939
77940         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
77941         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
77942         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
77943         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
77944
77945 2006-08-18  Bruno Haible  <bruno@clisp.org>
77946
77947         * modules/bison-i18n: New file.
77948         * MODULES.html.sh (Internationalization functions): Add it.
77949
77950 2006-08-18  Bruno Haible  <bruno@clisp.org>
77951
77952         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
77953         sys/statvfs.h. When getmntinfo was found, check its declaration and
77954         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
77955
77956 2006-08-18  Bruno Haible  <bruno@clisp.org>
77957
77958         * m4/bison-i18n.m4: New file, from bison.
77959
77960 2006-08-18  Bruno Haible  <bruno@clisp.org>
77961
77962         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
77963         (ME_DUMMY): Treat "kernfs" as a dummy.
77964         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
77965
77966 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77967
77968         Update from coreutils.
77969
77970         2006-08-15  Jim Meyering  <jim@meyering.net>
77971
77972         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
77973
77974         2006-01-17  Jim Meyering  <jim@meyering.net>
77975
77976         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
77977
77978         2006-01-11  Jim Meyering  <jim@meyering.net>
77979
77980         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
77981         Check for the lchmod function.
77982
77983 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77984
77985         Update from coreutils.
77986
77987         * lib/__fpending.h: Add copyright notice.
77988         * lib/fprintftime.h: Likewise.
77989         * lib/savedir.c: Use (C) in copyright notice.
77990         * lib/savedir.h: Likewise.
77991
77992         2006-08-15  Jim Meyering  <jim@meyering.net>
77993
77994         * lib/at-func.c: New file, with the logic of all emulated at-functions.
77995         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
77996         in support of the EXPECTED_ERRNO macro.
77997         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
77998         definitions.  Instead, define the appropriate symbols and include
77999         "at-func.c".
78000         * lib/mkdirat.c (mkdirat): Likewise.
78001         * lib/fchmodat.c (fchmodat): Likewise.
78002         (ENOSYS): Remove definition.
78003         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78004         it.  Don't include "unistd--.h" -- it wasn't ever used.
78005
78006         2006-01-17  Jim Meyering  <jim@meyering.net>
78007
78008         Rewrite fts.c not to change the current working directory,
78009         by using openat, fstatat, fdopendir, etc..
78010
78011         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78012         (HAVE_OPENAT_SUPPORT): Define.
78013         [_LIBC] (fchdir): Don't undef or define; no longer used.
78014         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78015         Now, this `function' always succeeds, and consumes its file descriptor
78016         parameter -- so callers must not close such FDs.  Update callers.
78017         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78018         (diropen): Add parameter, SP.  Adjust all callers.
78019         Implement using diropen_fd, rather than open.
78020         (fts_open): Initialize new member, fts_cwd_fd.
78021         Remove fts_rft-setting code.
78022         (fts_close): Close fts_cwd_fd, if necessary.
78023         (__opendir2): Define in terms of opendir or opendirat,
78024         depending on whether the FST_NOCHDIR flag is set.
78025         (fts_build): Since fts_safe_changedir consumes its FD, and since
78026         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78027         and close the dup'd file descriptor upon failure.
78028         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78029         (fts_safe_changedir): Tweak semantics to reflect that this function
78030         now calls cwd_advance_fd and hence consumes its FD argument.
78031         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78032         [struct FTS] (fts_rft): Remove now-unused member.
78033         [struct FTS] (fts_cycle.state): Improve comment.
78034
78035         * lib/openat.c (openat_needs_fchdir): New function.
78036         * lib/openat.h (openat_needs_fchdir): Declare it.
78037
78038 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78039
78040         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78041         Problem and fix reported by Pádraig Brady in
78042         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78043
78044 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78047
78048 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78049
78050         * lib/memcoll.c (memcoll): Optimize for the common case where the
78051         arguments are bytewise equal.
78052
78053 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78054
78055         * doc/regexprops-generic.texi: Add a copyright notice.
78056
78057 2006-08-15  Bruno Haible  <bruno@clisp.org>
78058
78059         * modules/tmpdir (License): Change to LGPL.
78060
78061 2006-08-15  Bruno Haible  <bruno@clisp.org>
78062
78063         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78064         module.
78065
78066 2006-08-14  Simon Josefsson  <jas@extundo.com>
78067
78068         * config/srclist.txt: Add gnupload.
78069
78070 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78071
78072         Change copyright notice from LGPL 2 to GPL 2, since that's the
78073         standard form used in the gnulib repository.
78074         * tests/test-lock.c: Likewise.
78075         * tests/test-stdint.c: Likewise.
78076         * tests/test-tls.c: Likewise.
78077
78078         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78079         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78080         Add copyright notice.
78081
78082         * check-module: Add copyright notice.  Output a copyright
78083         notice if "--version" is specified.
78084         * modules/COPYING: New file.
78085         * tests/test-getaddrinfo.c: Add copyright notice.
78086         * tests/test-verify.c: Likewise.
78087
78088 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78089
78090         Change copyright notice from LGPL 2 to GPL 2, since that's the
78091         standard form used in the gnulib repository.
78092         * lib/lock.c: LGPL -> GPL.
78093         * lib/lock.h: Likewise.
78094         * lib/strnlen1.c: Likewise.
78095         * lib/strnlen1.h: Likewise.
78096         * lib/tls.c: Likewise.
78097         * lib/tls.h: Likewise.
78098         * lib/tmpdir.c: Likewise.
78099
78100         * lib/TODO: Remove; this belongs only in coreutils.
78101
78102 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78103
78104         Add copyright notices to long-enough files that lack them, since
78105         otherwise the files aren't clearly free.  Use the same notice that
78106         getdate.texi already uses.
78107         * doc/alloca-opt.texi: Add copyright notice.
78108         * doc/alloca.texi: Likewise.
78109         * doc/ctime.texi: Likewise.
78110         * doc/functions.texi: Likewise.
78111         * doc/gcd.texi: Likewise.
78112         * doc/gnulib-tool.texi: Likewise.
78113         * doc/inet_ntoa.texi: Likewise.
78114         * doc/visibility.texi: Likewise.
78115
78116         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78117         * doc/quote.texi: Add copyright notice.
78118
78119         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78120         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78121         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78122         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78123         is now obsolete, and give a pointer to the Sun list.
78124         Add copyright notice.
78125
78126 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78127
78128         * config/srclistvars.sh: Add copyright notice.
78129
78130 2006-08-14  Eric Blake  <ebb9@byu.net>
78131
78132         Import the following change from libc:
78133
78134         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78135
78136         Upstream bug 2997.
78137         * lib/misc/error.c: Add space between program name and message if file
78138         name is missing.
78139
78140 2006-08-12  Karl Berry  <karl@gnu.org>
78141
78142         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78143         remove, these originate in gnulib now.
78144
78145 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78146
78147         * doc/Makefile (standards.info standards.html standards.dvi):
78148         Also depend on make-stds.texi.
78149
78150 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78151
78152         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78153         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78154
78155         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78156         in wchar_t.  Problem reported by Eric Blake.
78157
78158         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78159         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78160         Also, help the compiler to keep LEN in a register.
78161
78162 2006-08-11  Eric Blake  <ebb9@byu.net>
78163
78164         * users.txt: Sort.  Add tar.
78165
78166 2006-08-11  Bruno Haible  <bruno@clisp.org>
78167
78168         * users.txt: New file.
78169
78170 2006-08-11  Bruno Haible  <bruno@clisp.org>
78171
78172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78173         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78174
78175 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78176
78177         * modules/snprintf (Depends-on): Remove minmax.
78178         (Maintainer): Add self and Bruno.
78179
78180 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78181
78182         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78183         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78184         (EOVERFLOW): Define if the system does not.
78185         Do not include "minmax.h"; it wasn't used.
78186         (snprintf): Don't assume size_t promotes to an unsigned type.
78187         Fix bug when generated string was too long for the buffer: the
78188         buffer's contents are supposed to be the initial prefix of the
78189         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78190         exceeds INT_MAX; do the check ourselves.
78191
78192         Import the following changes from libc:
78193
78194         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78195
78196         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78197         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78198         set wc to the byte which couldn't be converted.
78199         (re_string_reconstruct): Don't clear valid_raw_len before calling
78200         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78201         tip_context using re_string_context_at.
78202
78203         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78204
78205         * lib/posix/regex.h: g++ still cannot handled [restrict].
78206
78207         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78208
78209         * lib/posix/regex.h: Remove special handling for VMS.
78210
78211 2006-08-10  Jim Meyering  <jim@meyering.net>
78212
78213         * modules/same-inode: New module.
78214         * modules/dev-ino: New module.
78215         * modules/cycle-check: Depend on these modules, rather than simply
78216         including their .h files.
78217         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78218         required via m4/cycle-check.m4.
78219         * modules/same: Depend on new same-inode module, rather than
78220         including same-inode.h.
78221         * modules/chdir-safer: New file.
78222
78223         * modules/chown (Depends-on): Add stat-macros.
78224
78225 2006-08-10  Jim Meyering  <jim@meyering.net>
78226
78227         * m4/cycle-check.m4: New file.
78228         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78229         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78230
78231 2006-08-10  Eric Blake  <ebb9@byu.net>
78232
78233         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78234         in from original proposal.
78235
78236 2006-08-10  Eric Blake  <ebb9@byu.net>
78237         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78238
78239         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78240         namespace.
78241
78242 2006-08-10  Bruno Haible  <bruno@clisp.org>
78243
78244         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78245         as well.
78246
78247 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78248
78249         Sync from coreutils.
78250
78251         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78252
78253         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78254         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78255
78256 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78257
78258         * modules/restrict: Remove; no longer needed now that we assume
78259         Autoconf 2.59 or later.
78260         * MODULES.html.sh: Remove 'restrict'.
78261         * modules/argp (Depends-on): Remove 'restrict'.
78262         * modules/base64 (Depends-on): Likewise.
78263         * modules/gc (Depends-on): Likewise.
78264         * modules/getaddrinfo (Depends-on): Likewise.
78265         * modules/glob (Depends-on): Likewise.
78266         * modules/inet_ntop (Depends-on): Likewise.
78267         * modules/inet_pton (Depends-on): Likewise.
78268         * modules/memxor (Depends-on): Likewise.
78269         * modules/regex (Depends-on): Likewise.
78270         * modules/strtok_r (Depends-on): Likewise.
78271         * modules/time_r (Depends-on): Likewise.
78272
78273 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78274
78275         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78276         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78277         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78278         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78279         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78280         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78281         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78282         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78283
78284         Merge from coreutils.
78285         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78286         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78287         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78288         * m4/time_r.m4 (gl_TIME_R): Likewise.
78289
78290 2006-08-09  Karl Berry  <karl@gnu.org>
78291
78292         * config/srclist.txt: no more gettext-tools, per Bruno.
78293
78294 2006-08-08  Eric Blake  <ebb9@byu.net>
78295
78296         * modules/verror: New module.
78297         * MODULES.html.sh: Document it.
78298
78299 2006-08-08  Eric Blake  <ebb9@byu.net>
78300
78301         * lib/verror.h, lib/verror.c: New files.
78302
78303 2006-08-08  Eric Blake  <ebb9@byu.net>
78304
78305         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78306         verror_at_line output complies with GNU Coding Standards even when
78307         file is NULL.
78308
78309 2006-08-07  Bruno Haible  <bruno@clisp.org>
78310
78311         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78312         versions of AIX.
78313         Reported by Ralf Wildenhues.
78314
78315 2006-08-07  Bruno Haible  <bruno@clisp.org>
78316
78317         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78318         in an AC_DEFUN. Needed so that the autoconf snippets can use
78319         AC_REQUIRE.
78320
78321 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78322
78323         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78324         Initialize pkgdata_DATA.
78325         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78326         overriding it.
78327
78328 2006-08-06  Eric Blake  <ebb9@byu.net>
78329
78330         * lib/error.h: Fold in some upstream changes from glibc.
78331         * lib/error.c: Likewise.
78332
78333 2006-08-04  Bruno Haible  <bruno@clisp.org>
78334
78335         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78336         Make the mostlyclean-local rule depend on mostlyclean-generic.
78337         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78338
78339 2006-07-31  Bruno Haible  <bruno@clisp.org>
78340
78341         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78342         <stdlib.h>, <string.h>.
78343
78344 2006-07-30  Bruno Haible  <bruno@clisp.org>
78345
78346         * modules/readlink (License): Change to LGPL.
78347
78348 2006-07-30  Bruno Haible  <bruno@clisp.org>
78349
78350         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78351         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78352         set PKGDATADIR to point to it.
78353
78354 2006-07-30  Bruno Haible  <bruno@clisp.org>
78355
78356         * modules/csharpexec (configure.ac): Comment out macro invocation.
78357         * modules/javaexec (configure.ac): Likewise.
78358         * modules/javacomp-script (configure.ac): Likewise.
78359
78360         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78361
78362 2006-07-30  Bruno Haible  <bruno@clisp.org>
78363
78364         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78365         linked-list.
78366
78367 2006-07-30  Bruno Haible  <bruno@clisp.org>
78368
78369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78370
78371 2006-07-30  Bruno Haible  <bruno@clisp.org>
78372
78373         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78374         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78375         get removed.
78376
78377 2006-07-29  Bruno Haible  <bruno@clisp.org>
78378
78379         Make it possible for gnulib-tool to work with locally modified or
78380         augmented gnulib repositories.
78381         * gnulib-tool (func_usage): Document --local-dir option.
78382         (local_gnulib_dir): New variable.
78383         Handle --local-dir option.
78384         (func_lookup_file): New function.
78385         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78386         (func_get_description, func_get_filelist, func_get_description,
78387         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78388         func_get_automake_snippet, func_get_include_directive,
78389         func_get_license, func_get_maintainer): Use func_lookup_file.
78390         (func_import, func_create_testdir): Use func_lookup_file.
78391
78392 2006-07-29  Bruno Haible  <bruno@clisp.org>
78393
78394         * modules/setenv (Depends-on): Add unistd.
78395
78396 2006-07-29  Bruno Haible  <bruno@clisp.org>
78397
78398         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78399
78400 2006-07-29  Bruno Haible  <bruno@clisp.org>
78401
78402         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78403
78404 2006-07-29  Bruno Haible  <bruno@clisp.org>
78405
78406         * gnulib-tool (import, update): If there is no Makefile.am, look at
78407         aclocal.m4, instead of bailing out.
78408
78409 2006-07-29  Bruno Haible  <bruno@clisp.org>
78410
78411         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78412         Categorize the options by when they are useful.
78413
78414 2006-07-29  Bruno Haible  <bruno@clisp.org>
78415
78416         * gnulib-tool (func_usage): Document option --no-libtool.
78417         Handle option --no-libtool.
78418         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78419         for changed semantics of $libtool variable.
78420         (func_import): Likewise. If libtool is not used, show this through
78421         an option --no-libtool.
78422         (func_create_testdir): Update.
78423
78424 2006-07-29  Bruno Haible  <bruno@clisp.org>
78425
78426         * gnulib-tool (func_import): Extend error message about missing
78427         --doc-base.
78428
78429 2006-07-29  Bruno Haible  <bruno@clisp.org>
78430
78431         * gnulib-tool (func_import): Don't create the $docbase directory if
78432         there is no file to store there.
78433
78434 2006-07-29  Bruno Haible  <bruno@clisp.org>
78435
78436         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78437         relevant, look for configure.ac there, not in the current directory.
78438         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78439
78440 2006-07-29  Bruno Haible  <bruno@clisp.org>
78441
78442         * gnulib-tool (SORT): New variable.
78443         (func_usage): Undocument --assume-autoconf option.
78444         Remove --assume-autoconf option handling.
78445         (autoconf_minversion): Determine from the contents of configure.ac.
78446         (func_import): Remove autoconf_minversion handling.
78447         Suggested by Eric Blake.
78448
78449 2006-07-29  Bruno Haible  <bruno@clisp.org>
78450
78451         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78452
78453 2006-07-29  Bruno Haible  <bruno@clisp.org>
78454
78455         * config/srclist.txt (*setenv.[ch]): Remove rules.
78456
78457 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78458
78459         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78460
78461 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78462
78463         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78464         arpa/inet.h.
78465
78466 2006-07-28  Simon Josefsson  <jas@extundo.com>
78467
78468         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78469         * modules/inet_pton (Depends-on): Likewise.
78470
78471 2006-07-28  Simon Josefsson  <jas@extundo.com>
78472
78473         * m4/netinet_in_h.m4: New file.
78474
78475 2006-07-28  Simon Josefsson  <jas@extundo.com>
78476
78477         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78478         #include's.
78479
78480 2006-07-28  Simon Josefsson  <jas@extundo.com>
78481
78482         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78483         #include's.
78484
78485 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78486
78487         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78488         setgid on directories only if they set these bits.
78489         * lib/modechange.h: Remove obsolete comment about masks.
78490
78491 2006-07-28  Eric Blake  <ebb9@byu.net>
78492
78493         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78494         macro expansion.
78495
78496 2006-07-28  Bruno Haible  <bruno@clisp.org>
78497
78498         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78499
78500 2006-07-28  Bruno Haible  <bruno@clisp.org>
78501
78502         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78503
78504 2006-07-28  Bruno Haible  <bruno@clisp.org>
78505
78506         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78507         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78508         Define fallbacks.
78509         Avoids link error on FreeBSD 4.x.
78510         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78511
78512         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78513         encoding.
78514         * lib/mbswidth.c (iswcntrl): Likewise.
78515
78516 2006-07-27  Bruno Haible  <bruno@clisp.org>
78517
78518         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78519         test.
78520
78521 2006-07-27  Bruno Haible  <bruno@clisp.org>
78522
78523         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78524         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78525         defined.
78526
78527 2006-07-26  Eric Blake  <ebb9@byu.net>
78528
78529         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78530
78531 2006-07-26  Eric Blake  <ebb9@byu.net>
78532
78533         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78534         like mingw that lack mkstemp.
78535         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78536         avoid compilation warning on mingw.
78537
78538 2006-07-26  Bruno Haible  <bruno@clisp.org>
78539
78540         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78541         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78542         INT_FAST*_MIN, INTPTR_MIN.
78543
78544 2006-07-25  Bruno Haible  <bruno@clisp.org>
78545
78546         * modules/version-etc (Depends-on): Add stdarg.
78547
78548 2006-07-25  Bruno Haible  <bruno@clisp.org>
78549
78550         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78551         complex commands.
78552
78553 2006-07-25  Bruno Haible  <bruno@clisp.org>
78554
78555         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78556         defined in <stdarg.h> or config.h.
78557
78558 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78559
78560         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78561         (gl_STDIO_SAFER): Remove.
78562
78563 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78564
78565         * MODULES.html.sh (File stream based Input/Output):
78566         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78567         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78568         * modules/fopen-safer, modules/tmpfile-safer: New files.
78569         * modules/stdio-safer: Remove.
78570
78571 2006-07-24  Bruno Haible  <bruno@clisp.org>
78572
78573         * modules/tmpdir: New file.
78574         * MODULES.html.sh (File system functions): Add it.
78575
78576 2006-07-24  Bruno Haible  <bruno@clisp.org>
78577
78578         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78579         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78580
78581 2006-07-24  Bruno Haible  <bruno@clisp.org>
78582
78583         * modules/clean-temp: New file.
78584
78585 2006-07-24  Bruno Haible  <bruno@clisp.org>
78586
78587         * m4/tmpdir.m4: New file, from GNU gettext.
78588
78589 2006-07-24  Bruno Haible  <bruno@clisp.org>
78590
78591         * lib/tmpdir.h: New file, from GNU gettext.
78592         * lib/tmpdir.c: New file, from GNU gettext.
78593
78594 2006-07-24  Bruno Haible  <bruno@clisp.org>
78595
78596         * lib/clean-temp.h: New file, from GNU gettext.
78597         * lib/clean-temp.c: New file, from GNU gettext.
78598
78599 2006-07-23  Eric Blake  <ebb9@byu.net>
78600
78601         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78602         (Depends-on): Add binary-io.
78603
78604 2006-07-23  Eric Blake  <ebb9@byu.net>
78605
78606         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
78607
78608 2006-07-23  Eric Blake  <ebb9@byu.net>
78609
78610         * lib/tmpfile-safer.c: New file.
78611         * lib/stdio-safer.h (fopen_safer): Add prototype.
78612         * lib/stdio--.h (tmpfile): Make safer.
78613
78614 2006-07-23  Bruno Haible  <bruno@clisp.org>
78615
78616         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
78617         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
78618         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
78619         gl_linked_remove_at): Use it.
78620
78621 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78622         and Simon Josefsson <jas@extundo.com>
78623
78624         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
78625
78626         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
78627
78628 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78629
78630         * modules/close-stream: New file.
78631         * modules/closeout (Description): Make it clear that it exits
78632         with a diagnostic on error.
78633         (Depends-on): Add close-stream.  Remove fpending, stdbool.
78634         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
78635
78636 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78637
78638         * m4/close-stream.m4: New file.
78639
78640 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78641
78642         * lib/close-stream.c, lib/close-stream.h: New files.
78643
78644 2006-07-22  Bruno Haible  <bruno@clisp.org>
78645
78646         Merge from GNU gettext 0.15.
78647
78648         2006-05-01  Bruno Haible  <bruno@clisp.org>
78649
78650                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
78651
78652         2006-07-22  Bruno Haible  <bruno@clisp.org>
78653
78654                 * modules/javaversion: New file.
78655                 * MODULES.html.sh (Java): Add javaversion.
78656
78657         2006-03-12  Bruno Haible  <bruno@clisp.org>
78658
78659                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
78660
78661         2005-12-04  Bruno Haible  <bruno@clisp.org>
78662
78663                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
78664                 (untested).
78665
78666         2006-06-21  Bruno Haible  <bruno@clisp.org>
78667
78668                 Avoid warnings from recent versions of mcs.
78669                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
78670                 -o, -L, -r any more. Use options documented since mcs-1.0
78671                 instead. Similarly for -g.
78672
78673         2005-12-04  Bruno Haible  <bruno@clisp.org>
78674
78675                 * build-aux/csharpcomp.sh.in: Suffix for resources is
78676                 .resources, not .resource.
78677
78678         2005-07-09  Bruno Haible  <bruno@clisp.org>
78679
78680                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
78681                 add a .dll suffix.
78682                 Reported by Mark Junker <mjscod@gmx.de>.
78683
78684         2006-07-22  Bruno Haible  <bruno@clisp.org>
78685
78686                 * modules/gettext: Upgrade to gettext-0.15.
78687                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
78688                 m4/visibility.m4.
78689                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
78690
78691 2006-07-22  Bruno Haible  <bruno@clisp.org>
78692
78693         Merge from GNU gettext 0.15.
78694
78695         2006-03-25  Bruno Haible  <bruno@clisp.org>
78696
78697                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
78698
78699         2006-07-21  Bruno Haible  <bruno@clisp.org>
78700
78701                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
78702                 "1.1".
78703
78704         2006-05-09  Bruno Haible  <bruno@clisp.org>
78705
78706                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
78707                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
78708                 for the conftestver execution.
78709
78710         2006-05-01  Bruno Haible  <bruno@clisp.org>
78711
78712                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
78713                 optional target-version argument. Verify that the compiler
78714                 groks source of the specified source-version, or add -source
78715                 option as necessary. Verify that the compiler produces
78716                 bytecode in the specified target-version, or add -target and
78717                 -source options as necessary. Make the result of the test
78718                 available as variable CONF_JAVAC. Also log error output in
78719                 config.log.
78720
78721         2006-03-11  Bruno Haible  <bruno@clisp.org>
78722
78723                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
78724
78725         2006-05-09  Bruno Haible  <bruno@clisp.org>
78726
78727                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
78728                 CLASSPATH_SEPARATOR to a semicolon.
78729
78730         2006-03-12  Bruno Haible  <bruno@clisp.org>
78731
78732                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
78733                 available as variable CONF_JAVA, for subsequent autoconf
78734                 tests. Also log error output in config.log.
78735
78736         2006-07-19  Bruno Haible  <bruno@clisp.org>
78737
78738                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
78739                 that getline works on glibc2 systems. Needed to avoid trouble
78740                 in relocatable.c.
78741                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
78742
78743         2005-12-04  Bruno Haible  <bruno@clisp.org>
78744
78745                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
78746                 launcher (untested).
78747
78748         2005-12-04  Bruno Haible  <bruno@clisp.org>
78749
78750                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
78751
78752         2006-07-22  Bruno Haible  <bruno@clisp.org>
78753
78754                 * gettext.m4: Update from GNU gettext-0.15.
78755                 * nls.m4: Likewise.
78756                 * po.m4: Likewise.
78757                 * inttypes-pri.m4: Likewise.
78758                 * inttypes-h.m4: Renamed from inttypes.m4.
78759                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
78760
78761 2006-07-22  Bruno Haible  <bruno@clisp.org>
78762
78763         Merge from GNU gettext 0.15.
78764
78765         2005-07-05  Bruno Haible  <bruno@clisp.org>
78766
78767                 * printf-args.c (printf_fetchargs): Work around broken
78768                 definition of wint_t on mingw.
78769
78770         2005-02-12  Bruno Haible  <bruno@clisp.org>
78771
78772                 * xallocsa.h: Add extern "C" for C++.
78773
78774         2006-05-17  Bruno Haible  <bruno@clisp.org>
78775
78776                 Cygwin portability.
78777                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
78778
78779         2006-04-30  Bruno Haible  <bruno@clisp.org>
78780
78781                 * progreloc.c: Include <mach-o/dyld.h> if available.
78782                 (find_executable): Use _NSGetExecutablePath when possible.
78783
78784         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
78785
78786                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
78787                 function.
78788
78789         2005-12-29  Bruno Haible  <bruno@clisp.org>
78790
78791                 * progreloc.c (set_program_name_and_installdir): Fix
78792                 compilation error.
78793
78794         2005-12-04  Bruno Haible  <bruno@clisp.org>
78795
78796                 Cygwin portability.
78797                 * progreloc.c: Include <windows.h> also on Cygwin.
78798                 (find_executable): Add support for Cygwin.
78799                 (set_program_name_and_installdir): Handle also platforms with
78800                 nonempty EXEEXT.
78801
78802         2006-07-11  Bruno Haible  <bruno@clisp.org>
78803
78804                 * javacomp.c: Fix a comment.
78805                 Reported by Jim Meyering.
78806
78807         2006-04-30  Bruno Haible  <bruno@clisp.org>
78808
78809                 * javacomp.h (compile_java_class): Add source_version,
78810                 target_version arguments.
78811                 * javacomp.c: Rewritten to choose only a compiler that
78812                 respects the specified source_version and target_version.
78813
78814         2006-06-27  Bruno Haible  <bruno@clisp.org>
78815
78816                 Assume correct S_ISDIR macro.
78817                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
78818
78819         2006-07-22  Bruno Haible  <bruno@clisp.org>
78820
78821                 * javaversion.h: New file, from GNU gettext.
78822                 * javaversion.c: New file, from GNU gettext.
78823                 * javaversion.java: New file, from GNU gettext.
78824                 * javaversion.class: New file, from GNU gettext.
78825
78826         2006-05-17  Bruno Haible  <bruno@clisp.org>
78827
78828                 Cygwin portability.
78829                 * javaexec.c (execute_java_class): Test for jview program
78830                 also on Cygwin.
78831
78832         2006-04-09  Bruno Haible  <bruno@clisp.org>
78833
78834                 * fatal-signal.c: Don't include string.h.
78835                 (at_fatal_signal): Use a copying loop instead of memcpy.
78836
78837         2005-12-04  Bruno Haible  <bruno@clisp.org>
78838
78839                 * csharpexec.c: Add support for 'clix' launcher (untested).
78840                 (execute_csharp_using_sscli): New function.
78841                 (execute_csharp_program): Call it.
78842
78843         2006-06-21  Bruno Haible  <bruno@clisp.org>
78844
78845                 Avoid warnings from recent versions of mcs.
78846                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
78847                 -o, -L, -r any more. Use options documented since mcs-1.0
78848                 instead. Similarly for -g.
78849
78850         2005-07-09  Bruno Haible  <bruno@clisp.org>
78851
78852                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
78853                 add a .dll suffix.
78854                 Reported by Mark Junker <mjscod@gmx.de>.
78855
78856         2006-06-17  Bruno Haible  <bruno@clisp.org>
78857
78858                 * config.charset: Update for NetBSD 3.0.
78859
78860         2006-05-17  Bruno Haible  <bruno@clisp.org>
78861
78862                 Cygwin portability.
78863                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
78864
78865         2006-05-16  Bruno Haible  <bruno@clisp.org>
78866
78867                 * localcharset.c [CYGWIN]: Include <windows.h>.
78868                 (get_charset_aliases): For Cygwin, return the same CPxxx
78869                 aliases list as under WIN32.
78870                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
78871                 the environment variables. Fall back to GetACP().
78872
78873         2006-04-05  Bruno Haible  <bruno@clisp.org>
78874
78875                 * config.charset: Update Juan Manuel Guerrero's address.
78876
78877         2005-02-12  Bruno Haible  <bruno@clisp.org>
78878
78879                 * allocsa.h: Add extern "C" for C++.
78880
78881         2005-02-10  Bruno Haible  <bruno@clisp.org>
78882
78883                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
78884                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
78885
78886         2006-07-22  Bruno Haible  <bruno@clisp.org>
78887
78888                 * gettext.h: Update to GNU gettext-0.15.
78889
78890 2006-07-22  Bruno Haible  <bruno@clisp.org>
78891
78892         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
78893         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
78894         lib-prefix.m4, longdouble.m4, ssize_t.m4.
78895
78896 2006-07-21  Eric Blake  <ebb9@byu.net>
78897
78898         * modules/stdlib-safer: New file.
78899         * MODULES.html.sh (File stream based Input/Output): Add
78900         stdlib-safer.
78901
78902 2006-07-21  Eric Blake  <ebb9@byu.net>
78903
78904         * lib/stdlib-safer.h: New file from coreutils, required by
78905         stdlib--.h.
78906
78907 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
78908
78909         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
78910
78911 2006-07-20  Bruno Haible  <bruno@clisp.org>
78912
78913         * gnulib-tool: Recognize new option --assume-autoconf.
78914         (autoconf_minversion): New variable.
78915         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
78916
78917 2006-07-20  Bruno Haible  <bruno@clisp.org>
78918
78919         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
78920
78921 2006-07-19  Derek R. Price  <derek@ximbiot.com>
78922
78923         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
78924         Reindent and repaginate.
78925
78926 2006-07-19  Derek Price  <derek@ximbiot.com>
78927
78928         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
78929         Correct grammar.
78930
78931 2006-07-17  Bruno Haible  <bruno@clisp.org>
78932
78933         * modules/list: New file.
78934         * modules/array-list: New file.
78935         * modules/carray-list, modules/carray-list-tests: New files.
78936         * modules/linked-list, modules/linked-list-tests: New files.
78937         * modules/avltree-list, modules/avltree-list-tests: New files.
78938         * modules/rbtree-list, modules/rbtree-list-tests: New files.
78939         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
78940         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
78941         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
78942         * modules/oset: New file.
78943         * modules/array-oset: New file.
78944         * modules/avltree-oset, modules/avltree-oset-tests: New files.
78945         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
78946         * tests/test-carray_list.c: New file.
78947         * tests/test-linked_list.c: New file.
78948         * tests/test-avltree_list.c: New file.
78949         * tests/test-rbtree_list.c: New file.
78950         * tests/test-linkedhash_list.c: New file.
78951         * tests/test-avltreehash_list.c: New file.
78952         * tests/test-rbtreehash_list.c: New file.
78953         * tests/test-avltree_oset.c: New file.
78954         * tests/test-rbtree_oset.c: New file.
78955         * MODULES.html.sh (Container data structures): New section.
78956
78957 2006-07-17  Bruno Haible  <bruno@clisp.org>
78958
78959         * m4/gl_list.m4: New file.
78960
78961 2006-07-17  Bruno Haible  <bruno@clisp.org>
78962
78963         * lib/gl_list.h: New file.
78964         * lib/gl_list.c: New file.
78965         * lib/gl_array_list.h: New file.
78966         * lib/gl_array_list.c: New file.
78967         * lib/gl_carray_list.h: New file.
78968         * lib/gl_carray_list.c: New file.
78969         * lib/gl_linked_list.h: New file.
78970         * lib/gl_linked_list.c: New file.
78971         * lib/gl_anylinked_list1.h: New file.
78972         * lib/gl_anylinked_list2.h: New file.
78973         * lib/gl_avltree_list.h: New file.
78974         * lib/gl_avltree_list.c: New file.
78975         * lib/gl_anyavltree_list1.h: New file.
78976         * lib/gl_anyavltree_list2.h: New file.
78977         * lib/gl_rbtree_list.h: New file.
78978         * lib/gl_rbtree_list.c: New file.
78979         * lib/gl_anyrbtree_list1.h: New file.
78980         * lib/gl_anyrbtree_list2.h: New file.
78981         * lib/gl_anytree_list1.h: New file.
78982         * lib/gl_anytree_list2.h: New file.
78983         * lib/gl_linkedhash_list.h: New file.
78984         * lib/gl_linkedhash_list.c: New file.
78985         * lib/gl_anyhash_list1.h: New file.
78986         * lib/gl_anyhash_list2.h: New file.
78987         * lib/gl_avltreehash_list.h: New file.
78988         * lib/gl_avltreehash_list.c: New file.
78989         * lib/gl_rbtreehash_list.h: New file.
78990         * lib/gl_rbtreehash_list.c: New file.
78991         * lib/gl_anytreehash_list1.h: New file.
78992         * lib/gl_anytreehash_list2.h: New file.
78993
78994         * lib/gl_oset.h: New file.
78995         * lib/gl_oset.c: New file.
78996         * lib/gl_array_oset.h: New file.
78997         * lib/gl_array_oset.c: New file.
78998         * lib/gl_avltree_oset.h: New file.
78999         * lib/gl_avltree_oset.c: New file.
79000         * lib/gl_rbtree_oset.h: New file.
79001         * lib/gl_rbtree_oset.c: New file.
79002         * lib/gl_anytree_oset.h: New file.
79003
79004 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79005
79006         * m4/mkancesdirs.m4: New file.
79007         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79008         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79009         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79010         it.
79011
79012 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79013
79014         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79015         * lib/mkancesdirs.h: New files.
79016         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79017         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79018         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79019         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79020         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79021         callers changed.  Revamp internals significantly, by not
79022         attempting to create directories that are temporarily more
79023         permissive than the final results.  Do not attempt to use
79024         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79025         This removes some race conditions, fixes some bugs, and simplifies
79026         things.  Use new dirchownmod function to do owner and mode changes.
79027         * lib/mkdir-p.h: Likewise.
79028         * lib/modechange.c (octal_to_mode): New function.
79029         (struct mode_change): New member mentioned.
79030         (make_node_op_equals): New arg mentioned.  All callers changed.
79031         (mode_compile): Keep track of which mode bits the user has explicitly
79032         mentioned.
79033         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79034         New arg PMODE_BITS, to keep track of which mode bits the user
79035         mentioned; it treats S_ISUID and S_ISGID speciall.
79036         All callers changed.
79037         * lib/modechange.h: Likewise.
79038
79039 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79040
79041         * MODULES.html.sh: Add mkancestors.
79042         * modules/mkancesdirs: New module.
79043         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79044         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79045         The chdir-safer and afs files are now orphans; I'll remove them
79046         unless someone speaks up.
79047         Add lib/dirchownmod.c, lib/dirchownmod.h.
79048         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79049         Add lchown, mkancesdirs.
79050         (Maintainer): Add self.
79051
79052 2006-07-15  Karl Berry  <karl@gnu.org>
79053
79054         * gnulib-tool: help message wording/arrangement.
79055
79056 2006-07-14  Simon Josefsson  <jas@extundo.com>
79057
79058         * doc/gnulib.texi (Libtool and Windows): New section.
79059
79060 2006-07-12  Simon Josefsson  <jas@extundo.com>
79061
79062         * modules/gendocs (License): Fix license, approved by Karl.
79063
79064 2006-07-12  Eric Blake  <ebb9@byu.net>
79065
79066         * MODULES.html.sh: Add gendocs.
79067
79068 2006-07-11  Eric Blake  <ebb9@byu.net>
79069
79070         * modules/fdl: New module, to install doc/fdl.texi.
79071         * MODULES.html.sh: Add new section for documentation modules.
79072         * gnulib-tool: Avoid space-tab.
79073         (--doc-base): New option, to manage files from doc.
79074
79075 2006-07-11  Eric Blake  <ebb9@byu.net>
79076
79077         * m4/absolute-header.m4: Fix comments to match recent change.
79078
79079 2006-07-11  Eric Blake  <ebb9@byu.net>
79080
79081         * gnulib-tool: List --doc-base before --tests-base.
79082
79083 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79084
79085         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79086
79087 2006-07-11  Bruno Haible  <bruno@clisp.org>
79088
79089         * README: Mention where to put documentation.
79090
79091 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79092
79093         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79094
79095 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79096
79097         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79098         to stdint.m4.
79099
79100 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79101
79102         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79103         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79104         "no/such/file/stdint.h" when there is no such file, so that
79105         the resulting C code can be parsed by dodgy compilers.
79106         Problems reported by Bob Proulx.
79107
79108 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79109
79110         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79111         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79112         macros into the GNU _D_EXACT_NAMLEN.
79113         * lib/savedir.c:  Likewise.
79114         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79115
79116 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79117         and Paul Eggert  <eggert@cs.ucla.edu>
79118
79119         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79120         * m4/savedir.m4:
79121         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79122         macros into the GNU _D_EXACT_NAMLEN.
79123
79124 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79125
79126         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79127         around the absolute name, to work around a problem with the HP-UX
79128         11.23 native C compiler, reported by Bob Proulx.
79129
79130 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79131
79132         * doc/maintain.texi, make-stds.texi: Sync from
79133         <http://savannah.gnu.org/projects/gnustandards>.
79134
79135 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79136
79137         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79138
79139 2006-07-09  Jim Meyering  <jim@meyering.net>
79140
79141         * m4/glob.m4: Remove a doubled word in a comment.
79142
79143 2006-07-09  Jim Meyering  <jim@meyering.net>
79144
79145         * lib/argp-pv.c: Remove a doubled word in a comment.
79146         * lib/check-version.c (check_version): Likewise.
79147         * lib/javacomp.c (compile_java_class): Likewise.
79148
79149 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79150
79151         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79152         for the benefit of people using Autoconf 2.60.  If you want to
79153         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79154         (or m4/onceonly.m4, if pre-2.57) manually.
79155
79156 2006-07-08  Jim Meyering  <jim@meyering.net>
79157
79158         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79159         comment.
79160         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79161         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79162         comment.
79163
79164 2006-07-08  Jim Meyering  <jim@meyering.net>
79165
79166         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79167
79168 2006-07-07  Simon Josefsson  <jas@extundo.com>
79169
79170         * tests/test-crc.c: Change expected crc value, the test vector
79171         were probably computed using the old broken crc.c?
79172
79173 2006-07-06  Simon Josefsson  <jas@extundo.com>
79174
79175         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79176         now the canonical place for the M4 file).
79177
79178         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79179         from the sys_socket dependency now.
79180
79181         * modules/inet_pton (Files): Ditto.
79182
79183         * modules/inet_ntop (Files): Ditto.
79184
79185 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79186
79187         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79188         not gl_PREREQ_GETUSERSHELL.
79189
79190 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79191
79192         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79193         with only one argument, for Autoconf 2.60.
79194         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79195         expand to nothing, so add a shell command to avoid syntax error.
79196         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79197
79198 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79199
79200         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79201
79202 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79203
79204         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79205         no longer needed.  Check for isblank decl.
79206         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79207         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79208         of existence.
79209
79210 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79211
79212         * lib/getloadavg.c: Use __VMS, not VMS.
79213         * lib/getopt.c: Likewise.
79214         * lib/getpagesize.h: Likewise.
79215         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79216         and probably does not work.
79217
79218 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79219
79220         * lib/.cppi-disable: Add wcwidth.
79221         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79222         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79223         (ISGRAPH): Remove.  All uses changed to isgraph.
79224         (FOLD) [!defined _LIBC]: Remove special case.
79225         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79226         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79227         HAVE_ISBLANK.
79228         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79229         case.
79230
79231 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79232
79233         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79234         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79235         brackets.  Other minor changes to suppress some compiler
79236         warnings.
79237
79238 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79239         and Paul Eggert  <eggert@cs.ucla.edu>
79240
79241         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79242         of invoking obsolescent AC_HEADER_DIRENT macro.
79243         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79244         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79245         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79246         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79247         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79248         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79249         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79250         * m4/readdir.m4: Remove; no longer needed.
79251
79252 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79253         and Paul Eggert  <eggert@cs.ucla.edu>
79254
79255         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79256         Don't worry about this obsolete case any more.
79257         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79258         directories.
79259         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79260         worry about this obsolete case any more.
79261         * lib/fts.c: Likewise.
79262         * lib/getcwd.c: Likewise.
79263         * lib/glob.h: Likewise.
79264         * lib/savedir.c: Likewise.
79265
79266 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79267
79268         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79269         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79270         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79271         needed.
79272         All uses removed.
79273         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79274         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79275         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79276         needed.
79277         * m4/getdate.m4 (gl_GETDATE): Likewise.
79278         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79279         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79280         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79281         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79282         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79283         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79284         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79285         needed.
79286
79287 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79288
79289         * lib/memcasecmp.c: Include <limits.h>.
79290         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79291         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79292         Don't assume isdigit succeeds only on '0' through '9'.
79293
79294 2006-07-05  Eric Blake  <ebb9@byu.net>
79295
79296         * modules/getaddrinfo (Depends-on): Add snprintf.
79297
79298 2006-07-05  Eric Blake  <ebb9@byu.net>
79299
79300         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79301         to avoid 'header present but could not be compiled' on cygwin.
79302
79303 2006-07-05  Eric Blake  <ebb9@byu.net>
79304
79305         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79306         missing from netdb.h.
79307         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79308
79309 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79310
79311         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79312         no longer needed.
79313         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79314         * m4/getdate.m4 (gl_GETDATE): Likewise.
79315         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79316         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79317         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79318         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79319         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79320
79321 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79322
79323         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79324         All uses of is_space replaced by isspace.
79325         * lib/exit.h: Don't talk about STDC_HEADERS.
79326         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79327         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79328         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79329         replaced by isprint etc.
79330         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79331         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79332         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79333         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79334         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79335         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79336
79337 2006-07-05  Bruno Haible  <bruno@clisp.org>
79338
79339         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79340         the function exists, before testing against AIX.
79341         Reported by Martin Lambers <marlam@marlam.de>.
79342
79343 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79344
79345         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79346         From Mark D. Baushke.
79347
79348 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79349
79350         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79351         to the absolute name, not just one, to bypass Sun C 5.8's
79352         "warning: #include of /usr/include/... may be non-portable".
79353
79354 2006-07-04  Eric Blake  <ebb9@byu.net>
79355
79356         * modules/dirname-tests: New test module.
79357         * tests/test-dirname.c: New file, replacing dirname.c
79358         TEST_DIRNAME section that was recently deleted.
79359
79360 2006-07-04  Bruno Haible  <bruno@clisp.org>
79361
79362         Assume ANSI C header files and <ctype.h> functions.
79363         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79364         (mbsnwidth): Use isprint, iscntrl instead.
79365
79366 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79367
79368         Merge from coreutils.
79369         * MODULES.html.sh: Add xstrtold.
79370         * modules/xstrtold: New file.
79371         * modules/cycle-check (Files): Add lib/same-inode.h.
79372         * modules/dirname (Files): Add m4/double-slash-root.m4.
79373         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79374         * modules/mkdir-p (Files): Add lib/same-inode.h.
79375         * modules/same (Files): Add lib/same-inode.h.
79376
79377 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79378
79379         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79380         This is to keep the terminology clean; POSIX talks about
79381         "absolute pathnames", not "full pathnames", but the GNU
79382         Coding Standards say to use "path" for something else;
79383         so use "absolute" to keep both sides happy.
79384         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79385         Set gl_absolute_header, not gl_full_header_path.
79386         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79387         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79388         All uses changed.
79389
79390         Merge from coreutils.
79391
79392         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79393
79394         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79395         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79396         want to require the building of c-strtod.o.
79397         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79398         needs -lm directly.
79399         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79400
79401         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79402
79403         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79404         --as-needed option if available.  Problem reported by Albert Chin in
79405         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79406         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79407         cc merely issues a bunch of annoying warnings for --as-needed
79408         (this problem was reported by Bob Proulx).  Also, try linking with
79409         -lm to detect a bug in binutils 2.16 (this problem was reported
79410         by Ralf Wildenhues).
79411
79412         2006-06-18  Jim Meyering  <jim@meyering.net>
79413
79414         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79415         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79416         macro.
79417         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79418         also check for glibc-2.4's abort-inducing bug.
79419
79420         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79421         Low-probability clean-up should be to use rmdir to get rid of
79422         the just-created directory, not unlink.
79423
79424         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79425         configure fail, and request a bug report to inform us about it.
79426         Add a comment that, barring reports to the contrary, in 2007 we'll
79427         assume ftruncate is universally available.
79428
79429         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79430
79431         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79432
79433         2006-03-12  Jim Meyering  <jim@meyering.net>
79434
79435         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79436         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79437         * m4/same.m4 (gl_SAME): Likewise.
79438         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79439
79440         2006-03-11  Eric Blake  <ebb9@byu.net>
79441
79442         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79443         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79444         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79445         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79446
79447 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79448
79449         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79450         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79451         reported by Mark D. Baushke, one in
79452         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79453
79454         Merge from coreutils.
79455
79456         * lib/.cppi-disable: Add stdint_.h.
79457         * lib/.cvsignore: Add stdint.h.
79458
79459         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79460
79461         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79462         both double and long double versions.
79463         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79464         * lib/xstrtold.c: New file.
79465         * lib/xstrtod.h (xstrtold): New decl.
79466
79467         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79468
79469         * lib/filemode.c (setst): Remove.
79470         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79471         (arguably) clearer, and the generated code is a bit smaller on my
79472         Debian GNU/Linux stable x86 host.
79473
79474         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79475
79476         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79477         Assume that filemode.h includes sys/types.h and sys/stat.h.
79478         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79479         (ftypelet): Reorder to put common cases first, for efficiency.
79480         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79481         to do 'M'.
79482         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79483         of 10, for compatibility with FreeBSD.  All callers changed.
79484         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79485         types that can't be deduced solely from st_mode.  First arg is now a
79486         const pointer.
79487         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79488         (strmode): Renamed from mode_string.
79489         (filemodestring): New decl.
79490         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79491         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79492         needed.
79493         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79494
79495         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79496
79497         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79498         fsusage.h now does that.  Include fsusage.h first, to test interface.
79499         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79500         at most one method (the old code could have generated decls that
79501         didn't conform to C89, not that this was ever exercised).
79502         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79503
79504         2006-03-19  Jim Meyering  <jim@meyering.net>
79505
79506         Work even in a chroot where d_ino values for entries in "/"
79507         don't match the stat.st_ino values for the same names.
79508         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79509         number, iterate through all entries again, using lstat instead.
79510         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79511         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79512
79513         * lib/getcwd.c (__getcwd): Clarify a comment.
79514         Use memcpy in place of a call to strcpy.
79515
79516         2006-03-12  Jim Meyering  <jim@meyering.net>
79517
79518         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79519         matches that of the current directory (which we're about to chdir ".."
79520         out of), then save the dev-ino of the parent, instead.
79521
79522         * lib/same-inode.h (SAME_INODE): New file/macro.
79523         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79524         Include "same-inode.h", instead.
79525         * lib/same.c: Likewise.
79526         * lib/cycle-check.h: Include "same-inode.h".
79527         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79528         * lib/cycle-check.c (SAME_INODE): Remove definition.
79529         * lib/root-dev-ino.h: Include "same-inode.h".
79530
79531         2006-03-11  Eric Blake  <ebb9@byu.net>
79532
79533         * lib/same.c (same_name): s/base_name/last_component/
79534         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79535         * lib/filenamecat.c (file_name_concat): Likewise.
79536
79537         2006-03-11  Eric Blake  <ebb9@byu.net>,
79538                     Paul Eggert  <eggert@cs.ucla.edu>
79539
79540         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79541         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79542         drive prefix.
79543         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79544         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79545         (last_component): New method.
79546         * lib/dirname.c (dir_len): Determine when drive letters need a
79547         subsequent slash.  Preserve // when it is special.
79548         (dir_name): Don't append dot when drive letter is absolute.
79549         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79550         * lib/basename.c (base_name): New semantics - malloc the result.
79551         Preserve // when it is special.  Preserve relative files that look
79552         like drive letters.
79553         (base_len): Preserve // when it is special.
79554         (last_component): New method, similar to old base_name semantics.
79555         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79556         base_name.  Strip redundant slashes from ///.
79557
79558 2006-07-03  Jim Meyering  <jim@meyering.net>
79559
79560         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79561         macro is used before the first cycle_check call.
79562
79563 2006-07-03  Eric Blake  <ebb9@byu.net>
79564
79565         * modules/dirname (Depends-on): Add xstrndup.
79566
79567 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79568
79569         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79570         test cases, so that config.log is a bit easier to follow.
79571
79572 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79573
79574         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79575         both are 64 bits, since this seems to be the tradition, and this
79576         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79577         we ever run into a host that prefers long long to long in this
79578         case, we'll need another configure-time test.  Problem reported by
79579         Jim Meyering.
79580
79581 2006-07-02  Eric Blake  <ebb9@byu.net>
79582
79583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79584
79585 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79586
79587         * modules/inttypes (Depends-on): No longer depends on stdint.
79588         * modules/stdint (Description): Say more about assumptions.
79589         Say that the fast types might differ.  Say macros are used.
79590         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79591         (Makefile.am): Revise list of substituted symbols to match
79592         new stdint.m4.
79593         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79594         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79595         * tests/test-stdint.c (verify_same_types)
79596         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79597         the code conforms to C99/C89.
79598         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79599         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79600
79601 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79602
79603         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
79604         but fix a bug, by requiring at least 64 bits.
79605         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79606         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
79607         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
79608         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79609
79610         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
79611         changes.  Make 2.59 a prerequisite.  Check and substitute for
79612         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
79613         inttypes.h.  Do not use special include files; just use the
79614         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
79615         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
79616         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
79617         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
79618         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
79619         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
79620         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
79621         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
79622         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
79623         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
79624         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
79625         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
79626         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
79627         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
79628         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
79629         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
79630         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
79631         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
79632         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
79633         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
79634         WINT_MAX.  Check for C99 conformance more strictly, by detecting
79635         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
79636         not check for things that C99 does not require, e.g., int8_t.  If
79637         a test isn't needed unless <stdint.h> isn't working, and is
79638         unlikely to be needed for any other reason, then don't do it
79639         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
79640         size_t, since we assume C89 freestanding at least.  Do not check
79641         for sig_atomic_t, wchar_t, or wint_t, since the code now does
79642         the right thing even if the types are not defined.  Instead use:
79643         (gl_STDINT_TYPE_PROPERTIES): New macro.
79644         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
79645         testing whether <sys/types.h> clashes, as Autoconf does this for
79646         us now.  All uses removed.
79647         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
79648         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
79649         (gl_CHECK_TYPE_SAME):
79650         Remove; no longer needed.
79651         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
79652         exists, since we'll return 0 anyway in that case.
79653         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
79654
79655 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79656
79657         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
79658         possible collision with system files.
79659         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
79660         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
79661         WCHAR_MIN and WCHAR_MAX in this case.
79662         (<stddef.h>): Do not include; no longer needed.
79663         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
79664         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
79665         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
79666         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
79667         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
79668         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
79669         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
79670         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
79671         !defined(__c99))]: Include in this case too, since it's harmless
79672         now.
79673         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
79674         dangerous to do so.
79675         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
79676         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
79677         (_STDINT_MIN, _STDINT_MAX): New macros.
79678         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
79679         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
79680         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
79681         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
79682         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
79683         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
79684         macros, not typedefs; this simplifies things quite a bit.
79685         Use long int for all types narrower than int64_t.
79686         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
79687         Define in terms of long long int or int64_t or long int,
79688         not int64_t or int32_t.  This saves some compile-time testing.
79689         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
79690         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
79691         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
79692         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
79693         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
79694         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
79695         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
79696         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
79697         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
79698         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
79699         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79700         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79701         undef any previous version and define our own version, for
79702         simplicity and consistency with the new macros for types.
79703         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79704         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79705         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
79706         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
79707         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
79708         @WINT_T_SUFFIX@ to keep things simple here.
79709         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
79710         Simplify by assuming typical 8/16/32/64 host, since we're
79711         already doing that elsewhere anyway.
79712         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
79713         and assume long long int is 64 bits if available.  This
79714         speeds up 'configure'.
79715
79716 2006-07-01  Eric Blake  <ebb9@byu.net>
79717
79718         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
79719         Reported by Andreas Buening.
79720
79721 2006-07-01  Eric Blake  <ebb9@byu.net>
79722
79723         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
79724
79725 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79726
79727         * lib/getaddrinfo.c: fixed typo
79728
79729 2006-06-29  Jim Meyering  <jim@meyering.net>
79730
79731         * modules/strftime (Maintainer): Add my name, since with the
79732         FPRINTFTIME changes strftime.c has forked from glibc.
79733
79734 2006-06-29  Eric Blake  <ebb9@byu.net>
79735
79736         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
79737
79738 2006-06-29  Eric Blake  <ebb9@byu.net>
79739
79740         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
79741
79742 2006-06-29  Eric Blake  <ebb9@byu.net>
79743
79744         * lib/stat_.h: New file.
79745
79746 2006-06-29  Eric Blake  <ebb9@byu.net>
79747
79748         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
79749         unused static function.
79750
79751 2006-06-29  Eric Blake  <ebb9@byu.net>
79752
79753         * doc/functions.texi (Function Portability): Document missing lstat
79754         on mingw.
79755
79756 2006-06-29  Eric Blake  <ebb9@byu.net>
79757
79758         * MODULES.html.sh: Add sys_stat.
79759         * modules/sys_stat: New module.
79760         * modules/mkstemp (Depends-on): Add sys_stat.
79761
79762 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79763
79764         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
79765
79766 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79767
79768         * m4/c-bs-a.m4: Removed.
79769
79770 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79771
79772         * lib/strftime.c: Assume strftime() exists.
79773
79774 2006-06-29  Derek Price  <derek@ximbiot.com>
79775
79776         * modules/c-bs-a: Removed - \a is C89.
79777         * MODULES.html.sh: Remove c-bs-a.
79778
79779 2006-06-29  Bruno Haible  <bruno@clisp.org>
79780
79781         * modules/wcwidth (License): Change to LGPL.
79782
79783 2006-06-28  Simon Josefsson  <jas@extundo.com>
79784
79785         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
79786         on _WIN32.
79787
79788         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
79789         getnameinfo.
79790
79791 2006-06-28  Simon Josefsson  <jas@extundo.com>
79792
79793         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
79794
79795 2006-06-28  Simon Josefsson  <jas@extundo.com>
79796
79797         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
79798         functions there.  It will succeed on Windows XP, but on Windows
79799         2000 and (presumably) earlier, it will fail, and use the internal
79800         re-implementation.
79801         (use_win32_p): New function.
79802         (getaddrinfo): Use strtoul on servname, to support numeric ports.
79803         Support AI_NUMERICSERV to disable getservbyname.
79804         (getnameinfo): New function, only supports
79805         NI_NUMERICHOST|NI_NUMERICSERV for now.
79806
79807         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
79808         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
79809         getnameinfo.
79810
79811 2006-06-28  Eric Blake  <ebb9@byu.net>
79812
79813         * modules/wcwidth: New file.
79814         * modules/mbchar (Depends-on): Add wcwidth.
79815         * modules/mbswidth (Depends-on): Add wcwidth.
79816         * MODULES.html.sh: Add wcwidth.
79817
79818 2006-06-28  Eric Blake  <ebb9@byu.net>
79819
79820         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
79821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
79822
79823 2006-06-28  Eric Blake  <ebb9@byu.net>
79824
79825         * lib/xvasprintf.h: Fix comments.
79826
79827 2006-06-28  Eric Blake  <ebb9@byu.net>
79828
79829         * lib/mbchar.h (wcwidth): Include wcwidth.h.
79830         * lib/mbswidth.c (wcwidth): Move from here...
79831         * lib/wcwidth.h: ...to this new file.
79832
79833 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79834
79835         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
79836
79837         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
79838         it's obsolete.
79839         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
79840
79841 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79842
79843         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
79844         Autoconf 2.60 says this stuff was obsolete.
79845
79846 2006-06-28  Bruno Haible  <bruno@clisp.org>
79847
79848         * modules/wcwidth (Files): Add m4/wchar_t.m4.
79849
79850 2006-06-28  Bruno Haible  <bruno@clisp.org>
79851
79852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
79853         gt_TYPE_WCHAR_T.
79854
79855 2006-06-28  Bruno Haible  <bruno@clisp.org>
79856
79857         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
79858         declaration for wcwidth.
79859         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
79860
79861 2006-06-28  Bruno Haible  <bruno@clisp.org>
79862
79863         * lib/mkdtemp.c [MINGW]: Include <io.h>.
79864         (mkdir): Define using _mkdir.
79865
79866 2006-06-28  Bruno Haible  <bruno@clisp.org>
79867
79868         * lib/getaddrinfo.h: Fix POSIX URL.
79869         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
79870         _WIN32.
79871         (use_win32_p): Make static.
79872         (getaddrinfo): Reject service name if it is empty or does not consist
79873         solely of decimal digits, or if its value is > 65535.
79874         (getnameinfo): Remove useless casts.
79875
79876 2006-06-27  Simon Josefsson  <jas@extundo.com>
79877
79878         * modules/sys_select: New file, suggested by Bruno Haible, Paul
79879         Eggert and Martin Lambers.
79880
79881 2006-06-27  Simon Josefsson  <jas@extundo.com>
79882
79883         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
79884         Eggert and Martin Lambers.
79885
79886 2006-06-27  Bruno Haible  <bruno@clisp.org>
79887
79888         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
79889         result to 0, not to empty.
79890         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
79891
79892 2006-06-27  Bruno Haible  <bruno@clisp.org>
79893
79894         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
79895
79896 2006-06-26  Simon Josefsson  <jas@extundo.com>
79897
79898         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
79899         present.
79900
79901 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
79902
79903         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
79904         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
79905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
79906
79907 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
79908
79909         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
79910
79911 2006-06-26  Bruno Haible  <bruno@clisp.org>
79912
79913         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
79914
79915 2006-06-26  Bruno Haible  <bruno@clisp.org>
79916
79917         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
79918
79919 2006-06-26  Bruno Haible  <bruno@clisp.org>
79920
79921         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
79922         SGI C compiler in pre-C99 mode.
79923         Suggested by Mark D. Baushke and Larry Jones.
79924
79925 2006-06-26  Bruno Haible  <bruno@clisp.org>
79926
79927         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
79928         WCHAR_MAX.
79929         Reported by Mark D. Baushke and Larry Jones.
79930
79931 2006-06-26  Bruno Haible  <bruno@clisp.org>
79932
79933         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
79934         in pre-C99 mode.
79935         Suggested by Mark D. Baushke and Larry Jones.
79936
79937 2006-06-23  Simon Josefsson  <jas@extundo.com>
79938             Bruno Haible  <bruno@clisp.org>
79939
79940         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
79941         Emit mostlyclean-local rule.
79942         (func_emit_tests_Makefile_am): Likewise.
79943         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
79944
79945 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
79946
79947         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
79948
79949 2006-06-23  Bruno Haible  <bruno@clisp.org>
79950
79951         * tests/test-stdint.c: Update to match ISO C 99 Technical
79952         Corrigendum 1.
79953
79954 2006-06-23  Bruno Haible  <bruno@clisp.org>
79955
79956         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
79957
79958 2006-06-23  Bruno Haible  <bruno@clisp.org>
79959
79960         * lib/stdint_.h: Treat IRIX like OpenBSD.
79961
79962 2006-06-23  Bruno Haible  <bruno@clisp.org>
79963
79964         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
79965         ISO C 99 Technical Corrigendum 1.
79966
79967 2006-06-22  Simon Josefsson  <jas@extundo.com>
79968
79969         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
79970         MinGW.
79971
79972 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79973
79974         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
79975         needed.  Some compiler complained about some of them.  Problem reported
79976         by Larry Jones in
79977         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
79978
79979 2006-06-21  Simon Josefsson  <jas@extundo.com>
79980
79981         * tests/test-getaddrinfo.c: New file.
79982
79983         * modules/getaddrinfo-tests: New file.
79984
79985         * MODULES.html.sh: Add inet_pton.
79986
79987         * modules/inet_pton: New file.
79988
79989 2006-06-21  Simon Josefsson  <jas@extundo.com>
79990
79991         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
79992         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
79993         of using the (limited) gnulib implementation on Windows XP.
79994
79995         * m4/inet_pton.m4: New file.
79996
79997 2006-06-21  Simon Josefsson  <jas@extundo.com>
79998
79999         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80000         variable.
80001
80002         * lib/socket_.h: Don't define WINVER.
80003
80004         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80005         slightly modified to work in gnulib.
80006
80007 2006-06-21  Simon Josefsson  <jas@extundo.com>
80008
80009         * doc/gnulib.texi (Windows sockets): Add.
80010
80011 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80012
80013         * lib/read-file.c (fread_file): Start with buffer allocation of
80014         0 bytes rather than 1 byte; this simplifies the code.
80015         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80016         code to free buffer and save/restore errno.
80017         (internal_read_file): Remove unused local.
80018
80019 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80020
80021         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80022         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80023         Problem reported by Denis Excoffier in
80024         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80025
80026 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80027
80028         * modules/sys_socket, modules/socklen: Include sys/types since
80029         FreeBSD 4.x's sys/socket.h needs it.
80030
80031 2006-06-19  Simon Josefsson  <jas@extundo.com>
80032
80033         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80034
80035 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80036
80037         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80038
80039 2006-06-19  Bruno Haible  <bruno@clisp.org>
80040
80041         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80042         and FULL_PATH_INTTYPES_H in angle brackets.
80043         Reported by Mark D. Baushke <mdb@gnu.org>.
80044
80045 2006-06-17  Eric Blake  <ebb9@byu.net>
80046
80047         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80048         errno.
80049
80050 2006-06-17  Bruno Haible  <bruno@clisp.org>
80051
80052         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80053         <sys/inttypes.h>.
80054
80055 2006-06-17  Bruno Haible  <bruno@clisp.org>
80056
80057         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80058         whether errno is declared. Assume <errno.h> declares errno.
80059
80060 2006-06-17  Bruno Haible  <bruno@clisp.org>
80061
80062         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80063
80064 2006-06-17  Bruno Haible  <bruno@clisp.org>
80065
80066         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80067         problem on Solaris 2.5.1.
80068
80069 2006-06-16  Eric Blake  <ebb9@byu.net>
80070
80071         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80072         * lib/unicodeio.c [!defined errno]: Likewise.
80073         * lib/strtol.c [!defined errno]: Likewise.
80074         * lib/strtod.c [!defined errno]: Likewise.
80075
80076 2006-06-15  Eric Blake  <ebb9@byu.net>
80077
80078         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80079
80080 2006-06-15  Eric Blake  <ebb9@byu.net>
80081
80082         * config/srclist.txt (ssize_t.m4): Lose sync.
80083
80084 2006-06-15  Bruno Haible  <bruno@clisp.org>
80085
80086         * modules/stdint (Files): Include m4/full-header-path.m4,
80087         m4/size_max.m4, m4/wchar_t.m4.
80088         (Makefile.am): Many more substitutions.
80089         * modules/stdint-tests: New file.
80090         * tests/test-stdint.c: New file.
80091
80092 2006-06-15  Bruno Haible  <bruno@clisp.org>
80093
80094         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80095         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80096         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80097         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80098         gl_CHECK_TYPE_SAME): New macros.
80099
80100 2006-06-15  Bruno Haible  <bruno@clisp.org>
80101
80102         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80103
80104 2006-06-15  Bruno Haible  <bruno@clisp.org>
80105
80106         * lib/stdint_.h: Rewritten to be fully auto-configured.
80107         Fixes bug on HP-UX/IA64.
80108
80109 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80110
80111         * lib/getdate.y (__attribute__): Don't define if already defined.
80112         Problem reported by Larry Jones.
80113         * lib/utimens.c (__attribute__): Likewise.
80114
80115 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80116
80117         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80118         reported by Andreas Schwab.
80119
80120 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80121             Bruno Haible  <bruno@clisp.org>
80122
80123         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80124         check for the declaration of strnlen and a run test that exposes the
80125         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80126         rpl_strndup.
80127
80128 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80129             Bruno Haible  <bruno@clisp.org>
80130
80131         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80132
80133 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80134
80135         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80136         compile test, for Tru64 4.0D.
80137
80138 2006-05-28  Karl Berry  <karl@gnu.org>
80139
80140         * config/srclist.txt (printf-args.c): lose sync.
80141
80142 2006-05-26  Martin Lambers  <marlam@marlam.de>
80143
80144         * lib/getpass.c: Updates the test for the native W32 API, and adds
80145         missing includes, thus fixing compilation warnings.
80146
80147 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80148
80149         * lib/exclude.c (exclude_fnmatch): New function.
80150         (excluded_file_name): Call exclude_fnmatch.
80151         * lib/exclude.h (excluded_file_name): New prototype
80152
80153 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80154
80155         * lib/tempname.c (small_open, large_open): New macros.
80156         (__open, __open64) [!_LIBC]: Remove.
80157         (__gen_tempname): Use small_open and large_open instead of __open
80158         and __open64.  This fixes a portability bug on HP-UX 11.11i
80159         reported by Simon Wing-Tang in
80160         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80161
80162 2006-05-24  Bruno Haible  <bruno@clisp.org>
80163
80164         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80165         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80166         Reported by Thorsten Maerz <torte@netztorte.de> via
80167         Aaron Stone <aaron@serendipity.cx>.
80168
80169 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80170
80171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80172         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80173         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80174         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80175         not really conditional on the cache.
80176         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80177
80178 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80179
80180         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80181         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80182         (my_usleep): Don't mishandle maximum value.
80183
80184 2006-05-19  Jim Meyering  <jim@meyering.net>
80185
80186         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80187
80188 2006-05-17  Bruno Haible  <bruno@clisp.org>
80189
80190         Cygwin portability.
80191         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80192
80193 2006-05-17  Bruno Haible  <bruno@clisp.org>
80194
80195         * lib/stdint_.h: Fix recognition of Cygwin.
80196
80197 2006-05-15  Bruno Haible  <bruno@clisp.org>
80198
80199         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80200         on libtool patch by Ralf Wildenhues.
80201
80202 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80203
80204         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80205         test for C99 conformance; (bool) 0.5 is an integer constant
80206         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80207         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80208
80209 2006-05-11  Simon Josefsson  <jas@extundo.com>
80210
80211         * m4/xvasprintf.m4: Fix obvious typo.
80212
80213 2006-05-11  Jim Meyering  <jim@meyering.net>
80214
80215         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80216         James Lemley.
80217
80218 2006-05-10  Simon Josefsson  <jas@extundo.com>
80219
80220         * lib/md4.c: Typo fix, update copyright years.
80221         (K1, K2): Don't use L because it turn computations into 64-bit on
80222         64-bit platforms.
80223
80224 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80225
80226         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80227         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80228         unwanted sign propagation, e.g., on hosts with 64-bit int.
80229         There still are some problems with reeelly weird theoretical hosts
80230         (e.g., 33-bit int) but it's not worth worrying about now.
80231         * lib/sha1.c (rol): Likewise.
80232         (K1, K2, K3, K4): Remove unnecessary L suffix.
80233
80234 2006-05-10  Bruno Haible  <bruno@clisp.org>
80235
80236         * lib/des.c: Cast to avoid warnings.
80237
80238 2006-05-09  Bruno Haible  <bruno@clisp.org>
80239
80240         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80241         (Depends-on): Depend also on xsize, stdarg.
80242         (configure.ac): Add gl_XVASPRINTF.
80243
80244 2006-05-09  Bruno Haible  <bruno@clisp.org>
80245
80246         * m4/xvasprintf.m4: New file.
80247
80248 2006-05-09  Bruno Haible  <bruno@clisp.org>
80249
80250         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80251         (EOVERFLOW): Define fallback value.
80252         (xstrcat): New function.
80253         (xvasprintf): Recognize the special case of a string concatenation.
80254
80255 2006-05-08  Eric Blake  <ebb9@byu.net>
80256
80257         * gnulib-tool (func_version): Base copyright year on CVS date.
80258         (func_emit_copyright_notice): New function.
80259         (func_emit_lib_Makefile_am): Use it.
80260         (func_emit_tests_Makefile_am): Likewise.
80261         (func_import): Likewise.
80262
80263 2006-05-08  Bruno Haible  <bruno@clisp.org>
80264
80265         * modules/stdarg: New file.
80266         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80267
80268 2006-05-08  Bruno Haible  <bruno@clisp.org>
80269
80270         * m4/stdarg.m4: New file, from GNU gettext.
80271
80272 2006-05-08  Bruno Haible  <bruno@clisp.org>
80273
80274         * config/srclist.txt (build-aux/config.rpath): different from latest
80275         release.
80276
80277 2006-05-08  Bruno Haible  <bruno@clisp.org>
80278
80279         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80280
80281 2006-05-05  Jim Meyering  <jim@meyering.net>
80282
80283         * m4/warning.m4: New file, derived from bison's file by the same name.
80284
80285 2006-05-03  Bruno Haible  <bruno@clisp.org>
80286
80287         * lib/stdint_.h: Shorter URL.
80288         * lib/inttypes.h: Likewise.
80289
80290 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80291
80292         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80293
80294 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80295
80296         * lib/verify.h: Document the internals better.  Most of this change
80297         was written by Bruno Haible.
80298
80299 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80300
80301         * doc/verify.texi: New file, partly based on a proposal by
80302         Bruno Haible.
80303
80304 2006-05-02  Bruno Haible  <bruno@clisp.org>
80305
80306         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80307         test from here...
80308         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80309
80310 2006-04-29  Bruno Haible  <bruno@clisp.org>
80311
80312         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80313         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80314
80315 2006-04-29  Bruno Haible  <bruno@clisp.org>
80316
80317         * gnulib-tool: Make --update option actually work.
80318
80319 2006-04-29  Bruno Haible  <bruno@clisp.org>
80320
80321         * doc/gcd.texi: New file.
80322         * doc/gnulib.texi: Include it.
80323
80324 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80325
80326         * lib/getdate.y (get_date): When adding relative date, start with the
80327         initial time, not with the result of the first mktime call.
80328
80329 2006-04-25  Bruno Haible  <bruno@clisp.org>
80330
80331         * gnulib-tool (func_import): Output the include directives in three
80332         blocks, sorted separately.
80333         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80334
80335 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80336
80337         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80338         to define main with arguments, for C++.  Reported by Eric Blake.
80339         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80340         Prefer 'int main ()' to 'int main (void)', for C++.
80341         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80342         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80343         for 'main', for C99 and C++.
80344
80345 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80346
80347         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80348         Don't assume that exit status -1 is valid.
80349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80350         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80351         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80352         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80353         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80354         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80355         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80356         functions can be used without declaring them, or that you can
80357         exit with status -1.
80358         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80359
80360 2006-04-24  Karl Berry  <karl@gnu.org>
80361
80362         * config/srclist.txt (longdouble.m4): sync lost.
80363
80364 2006-04-24  Eric Blake  <ebb9@byu.net>
80365
80366         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80367
80368 2006-04-24  Bruno Haible  <bruno@clisp.org>
80369
80370         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80371         poll() implementation in AIX.
80372         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80373
80374 2006-04-24  Bruno Haible  <bruno@clisp.org>
80375
80376         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80377         assigned exactly once.
80378
80379 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80380             Bruno Haible  <bruno@clisp.org>
80381
80382         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80383         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80384         for AM_CPPFLAGS.
80385
80386 2006-04-23  Bruno Haible  <bruno@clisp.org>
80387
80388         * modules/copy-file: Depend on unistd.
80389         * modules/execute: Likewise.
80390         * modules/fatal-signal: Likewise.
80391         * modules/findprog: Likewise.
80392         * modules/mkdtemp : Likewise.
80393         * modules/pipe: Likewise.
80394         * modules/wait-process: Likewise.
80395
80396 2006-04-23  Bruno Haible  <bruno@clisp.org>
80397
80398         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80399         condition was already detected.
80400         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80401
80402 2006-04-23  Bruno Haible  <bruno@clisp.org>
80403
80404         * lib/copy-file.c: Include <unistd.h> unconditionally.
80405         * lib/execute.c: Likewise.
80406         * lib/fatal-signal.c: Likewise.
80407         * lib/findprog.c: Likewise.
80408         * lib/mkdtemp.c: Likewise.
80409         * lib/pipe.h: Likewise.
80410         * lib/pipe.c: Likewise.
80411         * lib/wait-process.h: Likewise.
80412
80413 2006-04-23  Bruno Haible  <bruno@clisp.org>
80414
80415         * gnulib-tool (func_usage): Fix --import description. Document
80416         --update.
80417         (func_import): Create temporary file in a temporary directory, if
80418         --dry-run is specified. Silence errors from 'grep' when there are no
80419         m4 files in $m4dir.
80420         (func_create_testdir): Silence errors from 'grep' when there are no
80421         m4 files in $m4dir.
80422         Reported by Karl Berry <karl@freefriends.org>.
80423
80424 2006-04-20  Bruno Haible  <bruno@clisp.org>
80425
80426         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80427         one argument, so that the code will be portable to Autoconf 2.60.
80428         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80429         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80430         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80431
80432 2006-04-19  Derek Price  <derek@ximbiot.com>
80433             Eric Blake  <ebb9@byu.net>
80434
80435         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80436         rather than "/full/path.h".  Update comment to match.  Shorten &
80437         generalize m4_translit call via AS_TR_CPP.
80438
80439 2006-04-19  Derek Price  <derek@ximbiot.com>
80440             Eric Blake  <ebb9@byu.net>
80441
80442         * lib/inttypes.h: Correct grammar in comment.
80443
80444 2006-04-18  Derek Price  <derek@ximbiot.com>
80445             Paul Eggert  <eggert@cs.ucla.edu>
80446
80447         * modules/inttypes: New file.
80448         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80449
80450 2006-04-18  Derek Price  <derek@ximbiot.com>
80451             Paul Eggert  <eggert@cs.ucla.edu>
80452
80453         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80454         New files.
80455
80456 2006-04-18  Derek Price  <derek@ximbiot.com>
80457             Paul Eggert  <eggert@cs.ucla.edu>
80458
80459         * lib/inttypes.h: New file.
80460         * lib/strtoimax.c: Assume <inttypes.h>.
80461
80462 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80463
80464         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80465         isn't mounted.  Problem reported by Kir Kolyshkin.
80466
80467 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80468
80469         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80470         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80471         Derek R. Price.
80472         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80473         implementation.
80474
80475 2006-04-12  Eric Blake  <ebb9@byu.net>
80476
80477         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80478         is now done automatically by the corresponding Autoconf macro.
80479
80480 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80481
80482         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80483         time_r.h.
80484
80485 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80486
80487         Merge regex changes from libc, removing some of our
80488         POSIX-conformance changes that were rejected and redoing them in a
80489         less-intrusive way.
80490
80491         * lib/regcomp.c (re_compile_internal, init_dfa):
80492         Length arg is now size_t, not Idx.  All uses changed.
80493         (peek_token): Forward decl now says internal_function.
80494         (__re_error_msgid, __re_error_msgid_idx):
80495         Now static rather than extern with attribute_hidden.
80496         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80497         For some reason libc prefers K&R style defns for external functions.
80498         (regerror) [!defined _LIBC]: Likewise.
80499         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80500         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80501         (build_range_exp, build_collating_symbol):
80502         Use K&R-style defn.
80503         (re_compile_fastmap): Use '\0' to memset, not 0.
80504         (utf8_sb_map): Make the calculations more obvious.
80505         (init_dfa, parse_bracket_exp, build_charclass_op):
80506         Call calloc and cast result, as glibc does.
80507         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80508         (build_range_exp, build_collating_symbol):
80509         Now internal functions.
80510
80511         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80512
80513         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80514         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80515         Don't depend on VMS; depend on __VMS instead, for POSIX
80516         namespace cleanness.
80517         (regoff_t): Define to ssize_t, not long int.
80518
80519         Remove the REG_ macros named below.  Instead, make the old names
80520         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80521         __USE_GNU_REGEX.
80522         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80523         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80524         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80525         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80526         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80527         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80528         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80529         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80530         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80531         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80532         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80533         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80534         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80535         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80536         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80537         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80538         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80539         (REG_NREGS):
80540         Remove.  All uses replaced by the old RE_* names.
80541         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80542         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80543         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80544         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80545         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80546         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80547         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80548         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80549         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80550         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80551         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80552         Don't bother having these macros be independent of each others'
80553         values, since they no longer exist in the POSIX name space.
80554
80555         Rename the following member names back to their old names,
80556         unless !__USE_GNU_REGEX.  All uses changed back.
80557         (buffer): Renamed from re_buffer.
80558         (allocated): Renamed from re_allocated.
80559         (used): Renamed from re_used.
80560         (syntax): Renamed from re_syntax.
80561         (fastmap): Renamed from re_fastmap.
80562         (translate): Renamed from re_translate.
80563         (can_be_null): Renamed from re_can_be_null.
80564         (regs_allocated): Renamed from re_regs_allocated.
80565         (fastmap_accurate): Renamed from re_fastmap_accurate.
80566         (no_sub): Renamed from re_no_sub.
80567         (not_bol): Renamed from re_not_bol.
80568         (not_eol): Renamed from re_not_eol.
80569         (newline_anchor): Renamed from re_newline_anchor.
80570         (num_regs): Renamed from rm_num_regs.
80571         (start): Renamed from rm_start.
80572         (end): Renamed from rm_end.
80573
80574         (free_state): Move up a bit.
80575
80576         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80577         #define to be empty.
80578         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80579         when that is what is intended.
80580         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80581         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80582         (MAX): New macro.
80583         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80584         All uses changed back to re_malloc, etc.  It's now the caller's
80585         responsibility to check for overflow; all callers changed.
80586         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80587         (re_x2nrealloc): Remove.
80588         (free_state): Remove decl.
80589
80590         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80591         (re_set_registers, re_exec):
80592         Use K&R-style defn.
80593
80594         2006-01-31  Roland McGrath  <roland@redhat.com>
80595
80596         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80597         Reported by Mike Frysinger <vapier@gentoo.org>.
80598
80599         2006-01-15  Andreas Jaeger  <aj@suse.de>
80600
80601         [BZ #1950]
80602         * lib/regex_internal.c (re_string_reconstruct): Adjust for
80603         build_wcs_upper_buffer change.
80604         (build_wcs_upper_buffer): Change return type.
80605
80606         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
80607
80608         * lib/regex_internal.h: Include <stdint.h> if available.
80609
80610         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
80611
80612         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
80613
80614         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
80615
80616         * lib/regcomp.c: Adjust for changed secondary hash function.
80617
80618         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
80619
80620         * lib/regex.h: Pretty printing.
80621         Clean up namespace a bit.
80622
80623         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
80624
80625         * lib/regexec.c (update_cur_sifted_state, check_arrival,
80626         check_arrival_add_next_nodes): Avoid using uninitialized variable.
80627
80628         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80629                     Ulrich Drepper  <drepper@redhat.com>
80630
80631         [BZ #1302]
80632         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
80633         changed.
80634         (bitset_word_t): Renamed from bitset_word.  All uses changed.
80635
80636         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
80637
80638         [BZ #281]
80639         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
80640         * lib/regcomp.c: Remove unnecessary uses of
80641         unsigned RE_TRANSLATE_TYPE.
80642         * lib/regex_internal.h: Likewise.
80643         * lib/regex_internal.c: Likewise.
80644         * lib/regexec.c: Likewise.
80645         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
80646
80647         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
80648
80649         * lib/regexec.c (find_recover_state): Remove unnecessary
80650         initialization.
80651         (transit_state_bkref): Make DFA a const pointer.
80652         (get_subexp): Likewise.
80653         (check_arrival): Likewise.
80654         (update_cur_sifted_state): Likewise.
80655         (re_search_internal): Likewise.
80656         (prune_impossible_nodes): Likewise.
80657         (acquire_init_state_context): Likewise.
80658         (proceed_next_node): Likewise.
80659         (set_regs): Likewise.
80660         (free_fail_stack_return): Likewise.
80661         (check_arrival_expand_ecl): Mark DFA parameter as const.
80662         (check_arrival_expand_ecl_sub): Likewise.
80663         (check_subexp_limits): Likewise.
80664         (sub_epsilon_src_nodes):  Likewise.
80665         (add_epsilon_src_nodes):  Likewise.
80666         (merge_state_array): Likewise.
80667         (update_regs): Likewise.
80668         (build_trtable): Likewise.
80669         (sift_states_backward): Mark MCTX parameter as const.
80670         (build_sifted_states): Likewise.
80671         (update_cur_sifted_state): Likewise.
80672         (sift_states_mkref): Likewise.
80673         (check_arrival_expand_ecl): Mark eclosure as const.
80674         (check_dst_limits_calc_pos_1): Likewise.
80675         * lib/regex_internal.h (re_match_context_t): Make dfa a const
80676         pointer.
80677
80678         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
80679
80680         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
80681         (transit_state_sb): Likewise.
80682         (transit_state_mb): Likewise.
80683         (sift_states_iter_mb): Likewise.
80684         (check_arrival_add_next_nodes): Likewise.
80685         (check_node_accept_bytes): Change first parameter to pointer-to-const.
80686         [_LIBC] (re_search_2_stub): Use mempcpy.
80687
80688         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
80689         mbrtowc for very simple UTF-8 case.
80690
80691         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
80692         a pointer-to-const.
80693         (re_acquire_state_context): Likewise.
80694         * lib/regex_internal.h: Adjust prototypes.
80695
80696         * lib/regex.c: Prevent using C++ compilers.
80697
80698         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
80699         (re_acquire_state_context): Likewise.
80700
80701 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80702
80703         * modules/regex (Depends-on): Add ssize_t.
80704
80705 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80706
80707         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
80708         translation table.
80709
80710 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80711
80712         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
80713
80714 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
80715             Bruno Haible  <bruno@clisp.org>
80716
80717         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
80718         <sys/types.h> and <inttypes.h>.
80719
80720 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80721
80722         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
80723         `__error_t_defined', so argp.h will not typedef the former.
80724
80725 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80726
80727         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
80728         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
80729         glibc names.  Even if glibc is changed to conform to POSIX, the
80730         traditional names will be available anyway, since regex depends on
80731         the extensions module.  Also, fix a longstanding typo in the
80732         implementation of Spencer ERE test #75 from grep 2.3.  Problems
80733         reported by Emanuele Giaquinta.  Also, change sense of cached
80734         variable, so that the message makes sense.
80735
80736 2006-03-24  Simon Josefsson  <jas@extundo.com>
80737
80738         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
80739         including some doc fixes.
80740         (base64_encode_alloc): Fix +1 bug on allocation failures.
80741
80742 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80743
80744         * lib/base64.c (base64_encode): Do not read past end of array with
80745         unsanitized input on systems with CHAR_BIT > 8.
80746
80747 2006-03-24  Eric Blake  <ebb9@byu.net>
80748
80749         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
80750
80751 2006-03-22  Karl Berry  <karl@gnu.org>
80752
80753         * config/srclist.txt (*setenv.[ch]): get from coreutils.
80754         * config/srclistvars.sh (COREUTILS): new var.
80755
80756 2006-03-17  Jim Meyering  <jim@meyering.net>
80757
80758         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
80759         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
80760
80761 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80762
80763         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
80764         no longer needs it.  Instead, check that regoff_t is as least
80765         as wide as ptrdiff_t.
80766
80767         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
80768         so that our regex.h stays compatible with the installed regex.
80769         This is helpful for installers who configure --without-included-regex.
80770         Problem reported by Emanuele Giaquinta.
80771
80772 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80773
80774         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
80775         Typedef to long int, not to off_, as POSIX will likely change
80776         in that direction.
80777
80778 2006-03-15  Eric Blake  <ebb9@byu.net>
80779
80780         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
80781
80782 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80783
80784         * lib/argp-help.c (validate_uparams): Fix typo
80785         * lib/argp-parse.c (argp_default_options): Consistently begin help
80786         messages with a lowercase letter.
80787
80788 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
80789
80790         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
80791         overrun buffers and shouldn't be used (much as gets shouldn't be
80792         used).
80793         * lib/time_r.c (asctime_r, ctime_r): Likewise.
80794
80795 2006-03-08  Simon Josefsson  <jas@extundo.com>
80796
80797         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
80798         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80799
80800 2006-03-08  Simon Josefsson  <jas@extundo.com>
80801
80802         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
80803         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80804
80805 2006-03-08  Simon Josefsson  <jas@extundo.com>
80806
80807         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
80808         signal that configure disabled the device.
80809
80810 2006-03-08  Simon Josefsson  <jas@extundo.com>
80811
80812         * build-aux/maint.mk: Fix refresh-po, to handle no translated
80813         languages.
80814
80815 2006-03-07  Simon Josefsson  <jas@extundo.com>
80816
80817         * modules/getopt (Depends-on): Add unistd.
80818
80819         * modules/unistd: New file.
80820
80821 2006-03-07  Simon Josefsson  <jas@extundo.com>
80822
80823         * modules/gc-random: New file.
80824
80825 2006-03-07  Simon Josefsson  <jas@extundo.com>
80826
80827         * m4/unistd_h.m4: New file.
80828
80829 2006-03-07  Simon Josefsson  <jas@extundo.com>
80830
80831         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
80832         test to be side-effect free by storing the result in the cache
80833         variable gl_cv_lib_readline, and moving the assignment of
80834         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
80835         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80836
80837 2006-03-07  Simon Josefsson  <jas@extundo.com>
80838
80839         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
80840         error on missing devices (the functions will return an error).
80841
80842         * m4/gc.m4: Move random stuff to gc-random.m4
80843
80844 2006-03-07  Simon Josefsson  <jas@extundo.com>
80845
80846         * lib/unistd_.h: New file.
80847
80848 2006-03-07  Simon Josefsson  <jas@extundo.com>
80849
80850         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
80851
80852 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80853
80854         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
80855         Problem reported by Juan Manuel Guerrero.
80856
80857 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80858
80859         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
80860         the unistd module.
80861         * lib/getlogin_r.c: Likewise.
80862         * lib/getlogin_r.h: Likewise.
80863         * lib/glob.c: Likewise.
80864         * lib/pagealign_alloc.c: Likewise.
80865         * lib/unistd_.h: Remove; no longer needed.
80866
80867 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80868
80869         * MODULES.html.sh (Support for systems lacking POSIX:2001):
80870         Add unistd.
80871         * modules/c-stack (Depends-on): Add unistd.
80872         * modules/getlogin_r: Likewise.
80873         * modules/glob: Likewise.
80874         * modules/pagealign_alloc: Likewise.
80875         * modules/unistd (Files): Remove lib/unistd_.h.
80876         (EXTRA_DIST): Remove.
80877         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
80878         need unistd_.h.
80879         (MOSTLYCLEANFILES): Remove unistd.h-t.
80880
80881 2006-03-03  Simon Josefsson  <jas@extundo.com>
80882
80883         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
80884
80885 2006-03-03  Simon Josefsson  <jas@extundo.com>
80886
80887         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
80888         libidn and bison.
80889
80890 2006-03-03  Simon Josefsson  <jas@extundo.com>
80891
80892         * build-aux/maint.mk: Add indent target.
80893
80894 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
80895
80896         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
80897         our replacement poll.h in any case, to avoid a differing
80898         declaration from a system header.  Seen on AIX.
80899
80900 2006-03-01  Simon Josefsson  <jas@extundo.com>
80901
80902         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
80903         <kasal@ucw.cz>.
80904
80905 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80906
80907         * modules/gettime (Depends-on): Add extensions module.
80908         * modules/nanosleep (Depends-on): Likewise.
80909         * modules/settime (Depends-on): Likewise.
80910
80911 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80912
80913         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
80914         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
80915         pedantically.
80916         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80917         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
80918
80919         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
80920         not "==".  Reported by Ralf Wildenhues.
80921
80922 2006-03-01  Karl Berry  <karl@gnu.org>
80923
80924         * doc/Copyright/request-*: new files, synced from gnuorg.
80925
80926 2006-03-01  Karl Berry  <karl@gnu.org>
80927
80928         * config/srclist.txt (Copyright/*): new entries.
80929
80930 2006-02-28  Simon Josefsson  <jas@extundo.com>
80931
80932         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
80933
80934 2006-02-27  Simon Josefsson  <jas@extundo.com>
80935
80936         * lib/base64.h: Indent #define's.  From Jim Meyering
80937         <jim@meyering.net>.
80938
80939 2006-02-27  Jim Meyering  <jim@meyering.net>
80940
80941         Revert the change of 2006-02-24, so these files can continue
80942         to be sync'd from gettext.
80943         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
80944         of `config.h'.
80945
80946 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80947
80948         * modules/intprops: New file.
80949         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
80950         Add intprops.
80951         * modules/getloadavg (Files): Remove lib/intprops.h.
80952         (Depends-on): Add intprops.
80953         * modules/human: Likewise.
80954         * modules/inttostr: Likewise.
80955         * modules/openat: Likewise.
80956         * modules/sig2str: Likewise.
80957         * modules/userspec: Likewise.
80958         * modules/utimecmp: Likewise.
80959         * modules/xnanosleep: Likewise.
80960         * modules/xstrtol: Likewise.
80961
80962 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
80963
80964         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
80965         * modules/lock-tests (TESTS): Use $(EXEEXT).
80966         * modules/tls-tests: Likewise.
80967         * modules/argp-tests: Likewise.
80968         (check_PROGRAMS): New var, replacing...
80969         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
80970
80971 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80972
80973         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
80974         `config.h'.
80975
80976 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
80977
80978         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
80979
80980 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80981
80982         Sync from coreutils.
80983         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
80984         gl_CHDIR_SAFER.
80985
80986 2006-02-22  Jim Meyering  <jim@meyering.net>
80987
80988         Sync from coreutils.
80989         * m4/chdir-safer.m4: New file.
80990
80991 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
80992
80993         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
80994         AT_FDCWD exceeds INT_MAX.
80995         * lib/openat.h (AT_FDCWD): Likewise.
80996
80997 2006-02-17  Eric Blake  <address@hidden>
80998
80999         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81000
81001 2006-02-16  Simon Josefsson  <jas@extundo.com>
81002
81003         * modules/getaddrinfo (Depends-on): Add sys_socket.
81004
81005 2006-02-15  Simon Josefsson  <jas@extundo.com>
81006
81007         * build-aux/maint.mk: Add dsyntax-check rule.
81008
81009 2006-02-15  Eric Blake  <ebb9@byu.net>
81010
81011         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81012         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81013         'present but cannot compile' warnings on cygwin.
81014         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81015         use ws2tcpip.h if sys/socket.h works.
81016         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81017         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81018
81019 2006-02-14  Simon Josefsson  <jas@extundo.com>
81020
81021         * modules/maintainer-makefile (Files): Rename.
81022
81023         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81024         and (the local) Makefile.cfg to maint-cfg.mk.
81025
81026         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81027         to the latter.
81028
81029         * modules/maintainer-makefile: New module.
81030
81031         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81032         severaly stripped to make it possible to build it up from scratch
81033         with reliable tests.
81034
81035         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81036         fixes to permit overriding the default actions when configure and
81037         makefile are not available.
81038
81039 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81040
81041         Sync from coreutils.
81042         * modules/lstat (Depends-on): Don't depend on xalloc.
81043         (License): Change from GPL to LGPL, since this is now simply a
81044         replacement for a libc function.
81045
81046 2006-02-14  Jim Meyering  <jim@meyering.net>
81047
81048         Sync from coreutils.
81049
81050         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81051         failure on deficient systems, and simplify gnulib lgpl dependencies.
81052         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81053         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81054
81055         * lib/xalloc-die.c: Remove unused definition of N_.
81056
81057 2006-02-14  Jim Meyering  <jim@meyering.net>
81058
81059         Sync from coreutils.
81060         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81061         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81062         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81063         double-quote uses of that variable, to accommodate the rare case in
81064         which getmntent is available in none of the libraries checked.  This
81065         happens at least on FreeBSD 5.0.
81066
81067 2006-02-13  Simon Josefsson  <jas@extundo.com>
81068
81069         * gnulib-tool (Usage): Fix --import, from
81070         karl@freefriends.org (Karl Berry).
81071
81072 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81073
81074         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81075
81076 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81077
81078         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81079         "autoupdate" on 2005-12-12.
81080
81081 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81082
81083         * modules/closeout (Depends-on): Remove atexit.
81084
81085 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81086
81087         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81088         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81089
81090 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81091
81092         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81093         __EXTENSIONS__ if this causes compilation to fail.  Problem
81094         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81095         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81096
81097 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81098
81099         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81100         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81101         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81102         All uses changed.
81103
81104 2006-01-26  Simon Josefsson  <jas@extundo.com>
81105
81106         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81107         prototype is visible on mingw32.
81108
81109         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81110         for mingw32.
81111
81112         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81113         mingw32).
81114
81115 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81116
81117         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81118         attempt to open for write; this always fails, at least on POSIX
81119         hosts.  This reinstates the 2006-01-09 change, which was
81120         inadvertently removed.
81121
81122 2006-01-26  Bruno Haible  <bruno@clisp.org>
81123
81124         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81125         Reported by Paul Eggert.
81126
81127 2006-01-26  Bruno Haible  <bruno@clisp.org>
81128             Paul Eggert  <eggert@cs.ucla.edu>
81129
81130         * lib/stdbool_.h (_Bool)
81131         [(! (defined __cplusplus || defined __BEOS__)
81132           && !defined __GNUC__
81133           && !(defined __HP_cc || defined __xlc__
81134                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81135                || defined __sgi))]:
81136         #define to signed char in these cases too; this simplifies
81137         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81138         etc., separately) and makes it more conservative.
81139
81140 2006-01-25  Simon Josefsson  <jas@extundo.com>
81141
81142         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81143         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81144         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81145
81146 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81147
81148         * lib/argp-namefrob.h: Bugfix. Remove stray #
81149
81150 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81151
81152         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81153         so that we test the test.
81154         Check for yet another HP-UX cc bug involving *bool |= bool.
81155
81156 2006-01-25  Karl Berry  <karl@gnu.org>
81157
81158         * config/srclist.txt (vasnprintf.c): sync lost.
81159
81160 2006-01-25  Jim Meyering  <jim@meyering.net>
81161
81162         Sync from the stable (b5) branch of coreutils:
81163
81164         * lib/fts.c (fts_children): Don't let close() clobber errno from
81165         failed fchdir().
81166
81167         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81168         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81169         a dangling symlink.  That can also happen at least for ELOOP.
81170         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81171         FYI, this bug predates the inclusion of fts.c in coreutils.
81172
81173         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81174         in their own block, so pre-c99 compilers don't object.
81175
81176         Avoid the double-free (first in fts_read, second in fts_close) that
81177         would occur when an `active' directory is made inaccessible (e.g.,
81178         via chmod a-x) during a traversal.
81179         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81180         before returning.  Reproduce this failure by
81181         mkdir -p a/b; cd a; chmod a-x . b
81182         Reported by Stavros Passas.
81183
81184 2006-01-25  Jim Meyering  <jim@meyering.net>
81185
81186         * lib/fileblocks.c: Remove more useless parentheses.
81187         * lib/readutmp.h: Likewise.
81188
81189 2006-01-25  Bruno Haible  <bruno@clisp.org>
81190
81191         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81192         warnings.
81193         Reported by Paul Eggert.
81194
81195 2006-01-25  Bruno Haible  <bruno@clisp.org>
81196
81197         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81198         rid of a trap command. For Solaris sh.
81199         Reported by Mark D. Baushke <mdb@gnu.org>.
81200
81201 2006-01-24  Simon Josefsson  <jas@extundo.com>
81202
81203         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81204         Bruno.
81205
81206 2006-01-24  Karl Berry  <karl@gnu.org>
81207
81208         * config/srclist.txt (argp-namefrob.h): sync lost.
81209
81210 2006-01-24  Jim Meyering  <jim@meyering.net>
81211
81212         * modules/openat (Files): Add lib/intprops.h.
81213         From Mark D. Baushke.
81214
81215 2006-01-24  Jim Meyering  <jim@meyering.net>
81216
81217         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81218         Reported by Mark D. Baushke.
81219
81220 2006-01-24  Jim Meyering  <jim@meyering.net>
81221
81222         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81223
81224 2006-01-24  Bruno Haible  <bruno@clisp.org>
81225
81226         * modules/strnlen (Maintainer): Change from glibc to all.
81227
81228 2006-01-24  Bruno Haible  <bruno@clisp.org>
81229
81230         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81231         Patch by Paul Eggert.
81232
81233 2006-01-24  Bruno Haible  <bruno@clisp.org>
81234
81235         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81236         already has it.
81237         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81238         2005-11-26.
81239
81240         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81241         'signed char' to avoid problems with the built-in _Bool type.
81242         Reported by Paul Eggert on 2005-11-26.
81243
81244 2006-01-24  Bruno Haible  <bruno@clisp.org>
81245
81246         * gnulib-tool (func_import): Avoid constructing complicated sed
81247         expressions inside backquote.
81248         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81249
81250 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81251
81252         These changes imported from libc.
81253         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81254         test and two separate function calls.
81255         * lib/strndup.c (__strndup): Add libc_hidden_def.
81256
81257 2006-01-23  Simon Josefsson  <jas@extundo.com>
81258
81259         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81260         Remove the test_*_SOURCES variable: automake infers it by default.
81261         * modules/tls-tests: Likewise.
81262
81263 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81264
81265         Work around porting bugs reported by Dieter in
81266         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81267         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81268         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81269         Include "getopt.h" first, to check interface.
81270         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81271         !HAVE_DECL_GETENV.
81272         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81273         (__strndup): Revert to K&R-style function dfns, the glibc style.
81274         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81275         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81276         Include strnlen.h first, to get prototype properly.
81277         (strnlen): Renamed from __strnlen.
81278         Remove weak alias.
81279
81280 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81281
81282         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81283
81284 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81285
81286         * config/srclist.txt: Adjust to reflect glibc reorganization.
81287         This affects only comments.
81288
81289 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81290
81291          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81292          Reported by Bruce Korb <bkorb@gnu.org>.
81293
81294 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81295
81296         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81297         to pacify gcc -Wswitch-default.
81298
81299 2006-01-22  Bruno Haible  <bruno@clisp.org>
81300
81301         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81302         temporary buffer for sprintf, take into account the precision also
81303         for 'd', 'i', 'u', 'o', 'x', 'X'.
81304
81305 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81306
81307         * modules/argp-tests: New module
81308         * tests/test-argp.c: New file
81309         * tests/test-argp-2.sh: New file
81310
81311 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81312
81313         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81314         (__argp_base_name): Removed
81315         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81316         typo.
81317         (__argp_base_name): Provide macro definition or extern declaration
81318         depending on the configuration
81319
81320 2006-01-20  Simon Josefsson  <jas@extundo.com>
81321
81322         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81323
81324 2006-01-20  Simon Josefsson  <jas@extundo.com>
81325
81326         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81327
81328 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81329
81330         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81331         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81332         Suggested by Bruno Haible.
81333
81334 2006-01-20  Karl Berry  <karl@gnu.org>
81335
81336         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81337         until changes propagate, I guess.
81338
81339 2006-01-19  Simon Josefsson  <jas@extundo.com>
81340
81341         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81342
81343 2006-01-19  Simon Josefsson  <jas@extundo.com>
81344
81345         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81346
81347 2006-01-19  Simon Josefsson  <jas@extundo.com>
81348
81349         * gnulib-tool: Set check_PROGRAMS.
81350
81351         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81352         modules/des-tests, modules/gc-arcfour-tests,
81353         modules/gc-arctwo-tests, modules/gc-des-tests,
81354         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81355         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81356         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81357         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81358         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81359         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81360         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81361         test_*_SOURCES.
81362
81363 2006-01-18  Simon Josefsson  <jas@extundo.com>
81364
81365         * modules/socklen (Depends-on): Depend on sys_socket.
81366
81367 2006-01-18  Simon Josefsson  <jas@extundo.com>
81368
81369         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81370         modules/des-tests, modules/gc-arcfour-tests,
81371         modules/gc-arctwo-tests, modules/gc-des-tests,
81372         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81373         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81374         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81375         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81376         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81377         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81378         $(EXEEXT) to automake TESTS variable, for mingw32.
81379
81380 2006-01-17  Simon Josefsson  <jas@extundo.com>
81381
81382         * modules/socklen (Include): Need sys/socket.h.
81383
81384 2006-01-17  Bruno Haible  <bruno@clisp.org>
81385
81386         * modules/ssize_t (Include): Add <sys/types.h>.
81387
81388 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81389
81390         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81391         it's not portable and it doesn't work with cross-compiles.
81392         Problem reported by Bruno Haible.  Fix missing-$ typo in
81393         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81394         -zignore from being used with Sun's C compiler.
81395
81396 2006-01-12  Simon Josefsson  <jas@extundo.com>
81397
81398         * lib/base64.c: Fix warning, reported by Bruno Haible
81399         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81400
81401 2006-01-12  Bruno Haible  <bruno@clisp.org>
81402
81403         * modules/ldd: New file.
81404         * build-aux/ldd.sh.in: New file.
81405         * MODULES.html.sh (Support for building libraries and executables): Add
81406         ldd.
81407
81408 2006-01-12  Bruno Haible  <bruno@clisp.org>
81409
81410         * m4/ldd.m4: New file.
81411
81412 2006-01-12  Bruno Haible  <bruno@clisp.org>
81413
81414         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81415         endless loop while replacing $auxdir with build-aux.
81416
81417 2006-01-11  Simon Josefsson  <jas@extundo.com>
81418
81419         * lib/stdint_.h (SIZE_MAX): Add missing (.
81420
81421 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81422
81423         Sync from coreutils.
81424         * lib/md5.c: Fix commentary typos.
81425         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81426         * lib/md5.h (__attribute__): Remove; unused.
81427         * lib/sha1.c: Fix commentary to match md5 better.
81428         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81429         so that we don't need to worry about alignment.  All uses changed.
81430         This merges the 2005-10-28 md5 change into sha1.
81431
81432 2006-01-11  Jim Meyering  <jim@meyering.net>
81433
81434         Sync from coreutils.
81435         * lib/md5.c (OP): Fix spacing.
81436
81437 2006-01-11  Bruno Haible  <bruno@clisp.org>
81438
81439         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81440         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81441         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81442
81443 2006-01-11  Bruno Haible  <bruno@clisp.org>
81444
81445         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81446         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81447         the "early" section as well.
81448
81449 2006-01-11  Bruno Haible  <bruno@clisp.org>
81450
81451         Avoid "ar: no archive members specified" error on MacOS X.
81452         * gnulib-tool (func_modules_add_dummy): New function.
81453         (func_import, func_create_testdir): Invoke it.
81454
81455 2006-01-11  Bruno Haible  <bruno@clisp.org>
81456
81457         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81458         with $auxdir in AC_CONFIG_FILES statements.
81459
81460 2006-01-11  Bruno Haible  <bruno@clisp.org>
81461
81462         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81463         Initialize also noinst_HEADERS to empty.
81464
81465 2006-01-11  Bruno Haible  <bruno@clisp.org>
81466
81467         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81468         variables.
81469         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81470         autoreconf.
81471
81472 2006-01-11  Bruno Haible  <bruno@clisp.org>
81473
81474         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81475         overridable by the user.
81476         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81477
81478 2006-01-10  Simon Josefsson  <jas@extundo.com>
81479
81480         * modules/sys_socket: New file.
81481
81482 2006-01-10  Simon Josefsson  <jas@extundo.com>
81483
81484         * m4/sys_socket_h.m4: New file.
81485
81486 2006-01-10  Simon Josefsson  <jas@extundo.com>
81487
81488         * lib/socket_.h: New file.
81489
81490 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81491
81492         * modules/readutmp (Maintainer): Add myself.
81493
81494 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81495
81496         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81497         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81498         People who are still concerned with buggy memcmp implementations
81499         can invoke gl_FUNC_MEMCMP themselves.
81500
81501 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81502
81503         * lib/regex_internal.h (BITSET_WORD_BITS):
81504         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81505         preprocessor mishandles large unsigned values as if they were signed.
81506         Problem reported by Claudio Fontana in
81507         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81508
81509 2006-01-10  Jim Meyering  <jim@meyering.net>
81510
81511         Avoid the double-free (first in fts_read, second in fts_close) that
81512         would occur when an `active' directory is made inaccessible (e.g.,
81513         via chmod a-x) during a traversal.
81514         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81515         before returning.  Reproduce this failure by
81516         mkdir -p a/b; cd a; chmod a-x . b
81517         Reported by Stavros Passas.
81518
81519         Sync from coreutils.
81520         * lib/sha1.c: Tweak grammar in a comment.
81521
81522 2006-01-10  Jim Meyering  <jim@meyering.net>
81523
81524         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81525         Patch by Joerg Sonnenberger.
81526
81527 2006-01-10  Bruno Haible  <bruno@clisp.org>
81528
81529         * modules/readutmp: Depend on module free.
81530         * modules/strtok_r: Depend on module restrict.
81531
81532 2006-01-10  Bruno Haible  <bruno@clisp.org>
81533
81534         * modules/gettext (configure.ac): Add an invocation of
81535         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81536
81537 2006-01-10  Bruno Haible  <bruno@clisp.org>
81538
81539         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81540         Reported by Werner Lemberg <wl@gnu.org>.
81541
81542 2006-01-10  Bruno Haible  <bruno@clisp.org>
81543
81544         * lib/localcharset.c: Update from GNU gettext.
81545
81546 2006-01-10  Bruno Haible  <bruno@clisp.org>
81547
81548         * lib/argp.h (__const): Remove macro. Use const instead.
81549         * lib/argp-fmtstream.h (__const): Likewise.
81550         * lib/glob_.h (__const): Remove macro.
81551         * lib/glob-libc.h: Use const instead of __const.
81552
81553 2006-01-10  Bruno Haible  <bruno@clisp.org>
81554
81555         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81556         variable.
81557         Needed to avoid an automake error regarding the 'gettext' module.
81558
81559 2006-01-09  Simon Josefsson  <jas@extundo.com>
81560
81561         * modules/inet_ntop (Depends-on): Add restrict.
81562
81563 2006-01-09  Simon Josefsson  <jas@extundo.com>
81564
81565         * modules/gc-rijndael-tests (License): Put under LGPL.
81566
81567         * modules/gc-des-tests (License): Likewise.
81568
81569         * modules/gc-arcfour-tests (License): Likewise.
81570
81571         * modules/gc-arctwo-tests (License): Likewise.
81572
81573         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81574
81575         * modules/gc-hmac-sha1-tests (Files): Likewise.
81576
81577         * modules/gc-hmac-md5-tests (License): Likewise.
81578
81579         * modules/gc-sha1-tests (License): Likewise.
81580
81581         * modules/gc-md5-tests (License): Likewise.
81582
81583         * modules/gc-md4-tests (License): Likewise.
81584
81585         * modules/gc-md2-tests (License): Likewise.
81586
81587         * modules/gc-tests (License): Likewise.
81588
81589         * modules/des-tests (License): Likewise.
81590
81591         * modules/md4-tests (License): Likewise.
81592
81593         * modules/md2-tests (License): Likewise.
81594
81595 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81596
81597         Sync from coreutils:
81598
81599         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81600         * modules/lib-ignore: New file.
81601         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81602         chdir-safer.m4, lchmod.m4.
81603         * modules/openat: Add mkdirat.c, openat-priv.h.
81604
81605 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81606
81607         Sync from coreutils.
81608         * m4/lib-ignore.m4: New file.
81609         * m4/lchmod.m4: New file.
81610
81611 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81612
81613         Sync from coreutils.
81614         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
81615         for write access: POSIX says that must fail.
81616         * lib/fts.c (diropen): Likewise.
81617         * lib/save-cwd.c (save_cwd): Likewise.
81618         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
81619         well, for minor improvements on hosts that lack O_DIRECTORY.
81620         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
81621         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
81622         Fall back on chown if open failed with EACCES.
81623
81624         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
81625         Report an error at compile-time if only a 1-second nominal clock
81626         resolution is found.
81627
81628         * lib/lchmod.h: New file.
81629         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
81630         (make_dir_parents): Use lchown rather than chown, and
81631         lchmod rather than chmod.
81632
81633         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
81634         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
81635         "proc" reported by n0dalus.
81636
81637         * lib/mountlist.c: Include <limits.h>.
81638         (dev_from_mount_options)
81639         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
81640         New function.  It no longer assumes "dev=" has the System V meaning
81641         on Linux (since it doesn't).  It also parses "dev=" more carefully.
81642         (read_file_system_list)
81643         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
81644         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
81645         dev= in that case.
81646
81647         * lib/posixtm.h (PDS_PRE_2000): New macro.
81648         * lib/posixtm.c (year): Arg is now syntax_bits rather than
81649         allow_century.  All usages changed.  Reject dates outside the range
81650         1969-1999 if PDS_PRE_2000 is used.
81651
81652 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81653
81654         Sync from coreutils.
81655         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
81656         (Time of day items): Mention the possibility of leap seconds.
81657         Problem reported by Dr. David Alan Gilbert.
81658
81659 2006-01-09  Jim Meyering  <jim@meyering.net>
81660
81661         Sync from coreutils.
81662
81663         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
81664
81665         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
81666
81667         * lib/modechange.c (mode_compile): Reject an invalid mode string
81668         that starts with an octal digit.  From Andreas Gruenbacher.
81669
81670         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
81671         and dup to open_safer and dup_safer, respectively.
81672         (openat_permissive): Fix typo in comment.
81673
81674         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
81675         "gettext.h"; either no longer needed or are guaranteed by openat.h.
81676         (_): Remove; no longer needed.
81677         (openat): Renamed from rpl_openat; no need for rpl_openat
81678         since openat.h renames openat for us.
81679         Replace most of the body with a call to openat_permissive,
81680         to avoid duplicate code.
81681         Port to (probably hypothetical) environments were mode_t is
81682         wider than int.
81683         (openat_permissive): Require mode arg, so that we can check
81684         types better.  Put it just after flags.  Change cwd failure
81685         indicator from pointer-to-bool to pointer-to-errno-value.
81686         All callers changed.
81687         Invoke openat_save_fail and/or openat_restore_fail if
81688         cwd_errno is null, so that openat can call us.
81689         (openat_permissive, fdopendir, fstatat, unlinkat):
81690         Simplify errno handling to avoid some duplicate code,
81691         as it's OK to set errno on success.
81692         * lib/openat.h: Revamp code so that function macros depend on
81693         __OPENAT_PREFIX only, not also on AT_FDCWD.
81694         (openat_ro): Remove.  Caller changed to use openat_permissive.
81695         (openat_permissive): Now a macro, if not a function.
81696         (openat_restore_fail, openat_save_fail): Now always functions,
81697         since mkdirat needs them even if __OPENAT_PREFIX is defined.
81698
81699         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
81700         and openat.c.
81701         * lib/mkdirat.c: Include openat-priv.h.
81702         Remove definitions of macros defined therein.
81703         * lib/openat.c: Likewise.
81704
81705         * lib/mkdirat.c (mkdirat): New file and function.
81706         * lib/openat.h (mkdirat): Declare.
81707
81708         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
81709
81710         * lib/openat.h (openat_permissive): Declare.
81711         (openat_ro): Define.
81712
81713         * lib/openat.c (EXPECTED_ERRNO): New macro.
81714         (openat_permissive): New function -- used in remove.c rewrite.
81715         (all functions): Set errno just before returning, only if there
81716         was an actual failure.
81717         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
81718
81719         Emulate openat-family functions using Linux's procfs, if possible.
81720         Idea and some code based on Ulrich Drepper's glibc changes.
81721
81722         * lib/openat.c: (BUILD_PROC_NAME): New macro.
81723         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
81724         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
81725         before falling back on save_cwd and restore_cwd.
81726         (fdopendir, fstatat, unlinkat): Likewise.
81727
81728         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
81729         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
81730
81731         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
81732         as second argument to va_arg.  Otherwise, some versions of gcc
81733         warn that `if this code is reached, the program will abort'.
81734
81735 2006-01-09  Jim Meyering  <jim@meyering.net>
81736
81737         Sync from coreutils.
81738         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
81739         Require openat-priv.h.
81740
81741 2006-01-09  Bruno Haible  <bruno@clisp.org>
81742
81743         * modules/strnlen (Include): Use strnlen.h.
81744
81745 2006-01-09  Bruno Haible  <bruno@clisp.org>
81746
81747         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
81748
81749 2006-01-09  Bruno Haible  <bruno@clisp.org>
81750
81751         * lib/sysexit_.h (EX_OK): New macro.
81752         Suggested by Martin Lambers <marlam@marlam.de>.
81753
81754 2006-01-09  Bruno Haible  <bruno@clisp.org>
81755
81756         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
81757         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
81758
81759 2006-01-09  Bruno Haible  <bruno@clisp.org>
81760
81761         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
81762         numbers.
81763
81764 2006-01-09  Bruno Haible  <bruno@clisp.org>
81765
81766         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
81767         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
81768         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
81769         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
81770
81771 2006-01-09  Bruno Haible  <bruno@clisp.org>
81772
81773         * build-aux/javacomp.sh.in: New file, moved from lib/.
81774         * modules/javacomp-script (Files): Update.
81775         (configure.ac): Add AC_CONFIG_FILES invocation.
81776         (EXTRA_DIST): Remove variable.
81777
81778         * build-aux/javaexec.sh.in: New file, moved from lib/.
81779         * modules/javaexec (Files): Update.
81780         (configure.ac): Add AC_CONFIG_FILES invocation.
81781         (EXTRA_DIST): Remove javaexec.sh.in.
81782
81783         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
81784         * modules/csharpcomp-script (Files): Update.
81785         (configure.ac): Add AC_CONFIG_FILES invocation.
81786         (EXTRA_DIST): Remove variable.
81787
81788         * build-aux/csharpexec.sh.in: New file, moved from lib/.
81789         * modules/csharpexec (Files): Update.
81790         (configure.ac): Add AC_CONFIG_FILES invocation.
81791         (EXTRA_DIST): Remove csharpexec.sh.in.
81792
81793 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81794
81795         Sync from coreutils.
81796
81797         Add POSIX ACL support
81798         * lib/acl.h (copy_acl, set_acl): Add declarations.
81799         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
81800         systems other than Linux.
81801         (chmod_or_fchmod): New function: use fchmod when possible,
81802         and chmod otherwise.
81803         (file_has_acl): Add a POSIX ACL implementation, with a
81804         Linux-specific subcase.
81805         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
81806         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
81807         acls are unsupported.
81808         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
81809         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
81810         are unsupported.
81811
81812 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81813
81814         Sync from coreutils.
81815         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
81816
81817 2006-01-07  Bruno Haible  <bruno@clisp.org>
81818
81819         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
81820         gl_EARLY.
81821
81822 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81823
81824         * lib/strftime.c (tzname): Don't declare if it is already #defined.
81825         Problem reported for Mingw by Mark Junker.
81826
81827 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81828
81829         * README: Gnulib normally doesn't generate a tarball.
81830
81831 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
81832
81833         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
81834         long int, not int, for nanosecond counts, so that people who are
81835         used to POSIX struct timespec won't be surprised.  Reported by Jim
81836         Meyering.
81837
81838 2005-12-28  Bruno Haible  <bruno@clisp.org>
81839
81840         * build-aux/config.rpath: Update from GNU gettext.
81841
81842 2005-12-16  Jim Meyering  <jim@meyering.net>
81843
81844         * modules/fprintftime: New module.
81845         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
81846
81847 2005-12-16  Jim Meyering  <jim@meyering.net>
81848
81849         * m4/fprintftime.m4: New file.
81850
81851 2005-12-16  Jim Meyering  <jim@meyering.net>
81852
81853         * lib/fprintftime.c, lib/fprintftime.h: New files.
81854
81855 2005-12-15  Simon Josefsson  <jas@extundo.com>
81856
81857         * modules/socklen (configure.ac): Fix M4 macro name, to align with
81858         new m4/socklen.m4.
81859
81860 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81861
81862         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
81863         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
81864
81865 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81866
81867         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
81868         * lib/argp-help.c (fill_in_uparams): Check if the constructed
81869         struct uparams is valid. Fall back to the default values if it is
81870         not.
81871
81872 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81873
81874         * modules/argp (Files): Add argp-pin.c
81875         (Depends-on): dirname
81876         (lib_SOURCES): Add argp-pin.c
81877
81878 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81879
81880         * m4/argp.m4:  Check if program_invocation_name and
81881         program_invocation_short_name are declared and define appropriate
81882         macros if they are not.
81883
81884 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81885
81886         * lib/argp-help.c (__argp_base_name): New function
81887         (__argp_short_program_name): Rewrite using __argp_base_name
81888         * lib/argp-namefrob.h: Define program_invocation_name and
81889         program_invocation_short_name if requested
81890         (__argp_base_name): Add prototype
81891         * lib/argp-parse.c (argp_def): Use gettext wrappers
81892         (argp_default_parser): Use __argp_base_name
81893         * lib/argp-pin.c: New file. Defines program_invocation_name and
81894         program_invocation_short_name on systems that lack them.
81895
81896 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81897
81898         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
81899         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81900         porting problem reported by Georg Schwarz in
81901         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81902
81903 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81904
81905         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
81906         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81907         porting problem reported by Georg Schwarz in
81908         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81909
81910 2005-12-05  Bruno Haible  <bruno@clisp.org>
81911
81912         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
81913         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
81914         Reported by Mark Junker <mjscod@gmx.de>.
81915
81916 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
81917
81918         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
81919         Use implementation from Albert Chin, with some
81920         comments/corrections by Stepan Kasal and myself.
81921
81922 2005-12-02  Bruno Haible  <bruno@clisp.org>
81923
81924         * gnulib-tool (func_import): Accept GPLed build tool modules when
81925         --lgpl is given.
81926         * modules/csharpcomp-script: New file.
81927         * modules/csharpcomp: Depend on it.
81928         * modules/javacomp-script: New file.
81929         * modules/javacomp: Depend on it.
81930         Suggested by Simon Josefsson.
81931
81932 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
81933
81934         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
81935         statement, to work around an HP-UX 10.20 compiler bug reported by
81936         Peter O'Gorman.
81937
81938 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81939
81940         * modules/savedir (Depends-on): Add openat.
81941
81942 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81943
81944         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
81945         (uintmax_t) [defined uintmax_t]: Do not declare.
81946         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
81947         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
81948         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
81949         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
81950         sake of portability to weird hosts that C allows (though we don't
81951         know of any practical examples).
81952
81953         * lib/savedir.h (fdsavedir): New decl.
81954         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
81955         contains most of the former guts of savedir.
81956         (savedir): Use savedirstream.
81957         Include "openat.h".
81958
81959 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81960
81961         * modules/obstack (Files): Add m4/ulonglong.m4.
81962         Problem reported by Davide Angelocola.
81963
81964 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
81965
81966         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
81967         coreutils no longer futzes with rounding modes.
81968
81969 2005-11-14  Jim Meyering  <jim@meyering.net>
81970
81971         * lib/mkstemp-safer.c: Include <config.h>, required for possible
81972         replacement of mkstemp.
81973
81974 2005-11-10  Simon Josefsson  <jas@extundo.com>
81975
81976         * lib/readline.c: Remove EOL.
81977
81978 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81979
81980         * modules/gethrxtime (Depends-on): Add gettime.
81981
81982 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81983
81984         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
81985         or gettimeofday; no longer needed.
81986
81987 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81988
81989         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
81990         time business.
81991         (gethrxtime) [! (HAVE_NANOUPTIME
81992         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
81993         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
81994         our own approximation.
81995
81996 2005-11-08  Eric Blake  <ebb9@byu.net>
81997
81998         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81999
82000 2005-11-08  Eric Blake  <ebb9@byu.net>
82001
82002         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82003
82004 2005-11-04  Bruno Haible  <bruno@clisp.org>
82005
82006         * gnulib-tool: Implement --update mode.
82007
82008 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82009
82010         Fix porting problem reported by Theodoros V. Kalamatianos.
82011         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82012         Don't assume that futimes failing means we must fail.
82013
82014 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82015
82016         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82017         variables to suggest the intended function of the PATH_MAX check.
82018
82019 2005-10-30  Kean Johnston  <jkj@sco.com>
82020
82021         Trivial changes to support SCO systems.
82022         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82023         as PATH_MAX.
82024         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82025         where __ptr is null when no I/O is pending.
82026
82027 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82028
82029         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82030         leave errno alone.  Problem reported by Dmitry V. Levin.
82031
82032 2005-10-28  Simon Josefsson  <jas@extundo.com>
82033
82034         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82035         Test more.
82036
82037         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82038
82039         * modules/md2, modules/md2-tests: New files.
82040
82041 2005-10-28  Simon Josefsson  <jas@extundo.com>
82042
82043         * m4/inet_ntop.m4: More tests.
82044
82045         * m4/gc-md2.m4, md2.m4: New file.
82046
82047 2005-10-28  Simon Josefsson  <jas@extundo.com>
82048
82049         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82050         "restrict" keywords, as per POSIX.  Protect the function
82051         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82052         Don't use K&R prototypes.  Check the sprintf return values.
82053         Re-define EAFNOSUPPORT if not present.  Indent.
82054
82055         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82056         suggested by Bruno Haible <bruno@clisp.org>.
82057
82058         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82059
82060         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82061
82062         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82063         libgcrypt).
82064
82065         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82066
82067         * lib/md2.h, lib/md2.c: New files.
82068
82069 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82070
82071         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82072         errno alone.  Problem reported by Frederic Jolliton.
82073
82074 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82075
82076         * modules/verify (License): Change from GPL to LGPL.  This is a
82077         tiny module and there are apparently near-equivalents that are
82078         under the BSD license.
82079
82080 2005-10-24  Simon Josefsson  <jas@extundo.com>
82081
82082         * modules/sha1: Relicense to LGPL.
82083
82084 2005-10-24  Simon Josefsson  <jas@extundo.com>
82085
82086         * lib/md4.h: Shrink buffer size, now that we changed the type.
82087
82088 2005-10-23  Simon Josefsson  <jas@extundo.com>
82089
82090         * gnulib-tool (func_import): Fix --tests-base.
82091
82092 2005-10-22  Simon Josefsson  <jas@extundo.com>
82093
82094         * modules/arcfour (Depends-on): Need stdint.
82095
82096 2005-10-22  Simon Josefsson  <jas@extundo.com>
82097
82098         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82099         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82100
82101 2005-10-22  Simon Josefsson  <jas@extundo.com>
82102
82103         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82104         suggested by Bruno Haible <bruno@clisp.org>.
82105
82106 2005-10-22  Simon Josefsson  <jas@extundo.com>
82107
82108         * lib/crc.h: Include stddef.h, for size_t.
82109
82110 2005-10-22  Simon Josefsson  <jas@extundo.com>
82111
82112         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82113         arcfour_context struct (simplify test vector testing in GNU
82114         Shishi).
82115
82116 2005-10-21  Simon Josefsson  <jas@extundo.com>
82117
82118         * modules/des, modules/des-tests: New files.
82119
82120         * modules/gc-des, modules/gc-des-tests: New files.
82121
82122         * tests/test-des.c, tests/test-gc-des.c: New file.
82123
82124 2005-10-21  Simon Josefsson  <jas@extundo.com>
82125
82126         * modules/arctwo, modules/arctwo-tests: New files.
82127
82128         * tests/test-arctwo.c: New file.
82129
82130         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82131
82132         * tests/test-gc-arctwo.c: New file.
82133
82134 2005-10-21  Simon Josefsson  <jas@extundo.com>
82135
82136         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82137         Bruno Haible <bruno@clisp.org>.
82138
82139         * m4/gc-des.m4: New file.
82140
82141 2005-10-21  Simon Josefsson  <jas@extundo.com>
82142
82143         * m4/arctwo.m4: New file.
82144
82145         * m4/gc-arctwo.m4: New file.
82146
82147 2005-10-21  Simon Josefsson  <jas@extundo.com>
82148
82149         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82150         block.
82151
82152 2005-10-21  Simon Josefsson  <jas@extundo.com>
82153
82154         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82155         <bruno@clisp.org>.
82156
82157         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82158
82159         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82160         Bruno Haible <bruno@clisp.org>.
82161
82162         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82163         <bruno@clisp.org>.
82164
82165 2005-10-21  Simon Josefsson  <jas@extundo.com>
82166
82167         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82168
82169 2005-10-21  Simon Josefsson  <jas@extundo.com>
82170
82171         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82172
82173 2005-10-21  Simon Josefsson  <jas@extundo.com>
82174
82175         * lib/des.h, lib/des.c: New files.
82176
82177         * lib/gc-gnulib.c: Support DES.c
82178
82179 2005-10-21  Simon Josefsson  <jas@extundo.com>
82180
82181         * lib/arctwo.h, lib/arctwo.c: New files.
82182
82183         * lib/gc-gnulib.c: Support ARCTWO.
82184
82185 2005-10-21  Simon Josefsson  <jas@extundo.com>
82186
82187         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82188         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82189
82190 2005-10-21  Simon Josefsson  <jas@extundo.com>
82191
82192         * gnulib-tool (func_import, func_create_testdir): Define automake
82193         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82194         Makefile.am snippet),
82195         suggested by Bruno Haible <bruno@clisp.org>.
82196
82197         * modules/gc (Makefile.am): Use it.
82198
82199 2005-10-21  Bruno Haible  <bruno@clisp.org>
82200
82201         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82202         patch.
82203
82204 2005-10-19  Simon Josefsson  <jas@extundo.com>
82205
82206         * tests/test-gc-rijndael.c: New file.
82207
82208         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82209
82210 2005-10-19  Simon Josefsson  <jas@extundo.com>
82211
82212         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82213         interface too.
82214
82215 2005-10-19  Simon Josefsson  <jas@extundo.com>
82216
82217         * tests/test-gc-arcfour.c: New file.
82218
82219         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82220
82221 2005-10-19  Simon Josefsson  <jas@extundo.com>
82222
82223         * modules/gc-md4, modules/gc-md4-tests: New file.
82224
82225         * tests/test-gc-md4.c: New file.
82226
82227 2005-10-19  Simon Josefsson  <jas@extundo.com>
82228
82229         * m4/gc-md4.m4: New file.
82230
82231 2005-10-19  Simon Josefsson  <jas@extundo.com>
82232
82233         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82234         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82235         <kasal@ucw.cz>.
82236
82237 2005-10-19  Simon Josefsson  <jas@extundo.com>
82238
82239         * m4/gc-arcfour.m4: New file.
82240
82241         * m4/gc-rijndael.m4: New file.
82242
82243 2005-10-19  Simon Josefsson  <jas@extundo.com>
82244
82245         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82246
82247 2005-10-19  Simon Josefsson  <jas@extundo.com>
82248
82249         * lib/gc-gnulib.c: Support ARCFOUR.
82250
82251 2005-10-19  Simon Josefsson  <jas@extundo.com>
82252
82253         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82254         support.
82255
82256         * lib/gc.h: Add ECB enum type.
82257
82258         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82259
82260 2005-10-18  Simon Josefsson  <jas@extundo.com>
82261
82262         * tests/test-md5.c: New file.
82263
82264         * modules/md5-tests: New file.
82265
82266 2005-10-18  Simon Josefsson  <jas@extundo.com>
82267
82268         * tests/test-md4.c: New file.
82269
82270         * modules/md4, modules/md4-tests: New files.
82271
82272 2005-10-18  Simon Josefsson  <jas@extundo.com>
82273
82274         * m4/md4.m4: New file.
82275
82276 2005-10-18  Simon Josefsson  <jas@extundo.com>
82277
82278         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82279
82280 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82281
82282         * gnulib-tool (func_create_testdir): Omit the second check whether
82283         BUILT_SOURCES in nonempty.
82284
82285 2005-10-17  Simon Josefsson  <jas@extundo.com>
82286
82287         * tests/test-rijndael.c: New file.
82288
82289 2005-10-17  Simon Josefsson  <jas@extundo.com>
82290
82291         * modules/sha1: Depend on stdint instead of md5.
82292
82293         * modules/md5: Depend on stdint, remove uint32_t.
82294
82295 2005-10-17  Simon Josefsson  <jas@extundo.com>
82296
82297         * modules/gc-sha1-tests: New file.
82298
82299         * tests/test-gc-sha1.c: New file.
82300
82301 2005-10-17  Simon Josefsson  <jas@extundo.com>
82302
82303         * m4/md5.m4: Remove call to uint32_t.m4.
82304
82305 2005-10-17  Simon Josefsson  <jas@extundo.com>
82306
82307         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82308
82309         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82310         md5.h.
82311
82312         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82313
82314         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82315
82316 2005-10-17  Simon Josefsson  <jas@extundo.com>
82317
82318         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82319
82320 2005-10-17  Simon Josefsson  <jas@extundo.com>
82321
82322         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82323
82324 2005-10-17  Simon Josefsson  <jas@extundo.com>
82325
82326         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82327
82328         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82329
82330 2005-10-17  Bruno Haible  <bruno@clisp.org>
82331
82332         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82333         that it can also be used in a test.
82334
82335 2005-10-16  Bruno Haible  <bruno@clisp.org>
82336
82337         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82338         TESTS_ENVIRONMENT, so that individual tests can augment it.
82339
82340         * gnulib-tool (func_create_testdir): Use an intermediate target for
82341         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82342         macros, like $(ALLOCA_H), which cannot be passed through the command
82343         line.
82344
82345 2005-10-15  Simon Josefsson  <jas@extundo.com>
82346
82347         * modules/rijndael-tests: New file.
82348
82349         * modules/rijndael: New file.
82350
82351 2005-10-15  Simon Josefsson  <jas@extundo.com>
82352
82353         * m4/rijndael.m4: New file.
82354
82355 2005-10-15  Simon Josefsson  <jas@extundo.com>
82356
82357         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82358
82359         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82360
82361 2005-10-14  Simon Josefsson  <jas@extundo.com>
82362
82363         * tests/test-arcfour.c: New file.
82364
82365         * modules/arcfour, modules/arcfour-tests: New files.
82366
82367 2005-10-14  Simon Josefsson  <jas@extundo.com>
82368
82369         * m4/arcfour.m4: New file.
82370
82371 2005-10-14  Simon Josefsson  <jas@extundo.com>
82372
82373         * lib/arcfour.h, lib/arcfour.c: New files.
82374
82375 2005-10-14  Roland McGrath  <roland@redhat.com>
82376
82377         Import from libc.  [BZ #1331]
82378         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82379         macro argument.
82380         Reported by Matej Vela <vela@debian.org>.
82381
82382 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82383
82384         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82385         include <wchar.h>; no longer needed.
82386
82387 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82388
82389         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82390
82391 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82392         and  Ulrich Drepper  <drepper@redhat.com>
82393
82394         Import from libc.
82395         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82396         instead of inline stream orientation test and two separate
82397         function calls.  Pay no attention to USE_IN_LIBIO.
82398
82399 2005-10-13  Simon Josefsson  <jas@extundo.com>
82400
82401         * modules/gc-hmac-md5-tests: New file.
82402
82403         * tests/test-gc-hmac-sha1.c: New file.
82404
82405         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82406
82407         * modules/gc-hmac-md5-tests: New file.
82408
82409         * tests/test-gc-md5.c: New file.
82410
82411         * modules/gc-md5-tests: New file.
82412
82413 2005-10-13  Simon Josefsson  <jas@extundo.com>
82414
82415         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82416         Move memory allocation outside of loop.
82417
82418 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82419
82420         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82421         intermediate directory is in a read-only file system.  Problem
82422         reported by Eric Blake.
82423
82424 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82425
82426         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82427
82428 2005-10-12  Simon Josefsson  <jas@extundo.com>
82429
82430         * tests/test-hmac-sha1.c: New file.
82431
82432         * modules/hmac-sha1-tests: New file.
82433
82434         * modules/hmac-sha1: New file.
82435
82436 2005-10-12  Simon Josefsson  <jas@extundo.com>
82437
82438         * modules/gc-sha1: New file.
82439
82440 2005-10-12  Simon Josefsson  <jas@extundo.com>
82441
82442         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82443
82444         * tests/test-gc-pbkdf2-sha1.c: New file.
82445
82446 2005-10-12  Simon Josefsson  <jas@extundo.com>
82447
82448         * modules/gc-md5, modules/gc-hmac-md5: New files.
82449
82450         * modules/gc (Files): Remove md5, memxor and hmac files.
82451
82452 2005-10-12  Simon Josefsson  <jas@extundo.com>
82453
82454         * m4/gc-pbkdf2-sha1.m4: New file.
82455
82456         * m4/gc-hmac-sha1.m4: New file.
82457
82458         * m4/gc-sha1: New file.
82459
82460         * m4/hmac-sha1.m4: New file.
82461
82462 2005-10-12  Simon Josefsson  <jas@extundo.com>
82463
82464         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82465
82466         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82467
82468 2005-10-12  Simon Josefsson  <jas@extundo.com>
82469
82470         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82471         suggested by Bruno Haible <bruno@clisp.org>.
82472
82473 2005-10-12  Simon Josefsson  <jas@extundo.com>
82474
82475         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82476
82477 2005-10-12  Simon Josefsson  <jas@extundo.com>
82478
82479         * lib/gc-pbkdf2-sha1.c: New file.
82480
82481         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82482
82483 2005-10-12  Simon Josefsson  <jas@extundo.com>
82484
82485         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82486
82487         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82488
82489 2005-10-12  Simon Josefsson  <jas@extundo.com>
82490
82491         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82492         GC_USE_HMAC_MD5, respectively.
82493
82494         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82495         (gc_md5): Fix typo.
82496
82497         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82498
82499         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82500
82501         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82502
82503 2005-10-12  Bruno Haible  <bruno@clisp.org>
82504
82505         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82506         Reported by Stepan Kasal <kasal@ucw.cz>.
82507
82508 2005-10-11  Simon Josefsson  <jas@extundo.com>
82509
82510         * tests/test-crc.c: New file.
82511
82512         * modules/crc, modules/crc-tests: New files.
82513
82514 2005-10-11  Simon Josefsson  <jas@extundo.com>
82515
82516         * m4/crc.m4: New file.
82517
82518 2005-10-11  Simon Josefsson  <jas@extundo.com>
82519
82520         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82521
82522         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82523
82524         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82525
82526 2005-10-11  Simon Josefsson  <jas@extundo.com>
82527
82528         * lib/crc.h, lib/crc.c: New files.
82529
82530         * lib/gc.h (gc_hash_buffer): Add doc.
82531
82532 2005-10-11  Bruno Haible  <bruno@clisp.org>
82533
82534         * modules/c-strcasestr: New file.
82535         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82536
82537 2005-10-11  Bruno Haible  <bruno@clisp.org>
82538
82539         * modules/c-strcase: New file.
82540         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82541
82542 2005-10-11  Bruno Haible  <bruno@clisp.org>
82543
82544         * lib/strcasecmp.c: Include limits.h.
82545         (strcasecmp): Avoid integer overflow on exotic platforms.
82546         * lib/strncasecmp.c: Include limits.h.
82547         (strncasecmp): Avoid integer overflow on exotic platforms.
82548         Reported by Paul Eggert.
82549
82550 2005-10-11  Bruno Haible  <bruno@clisp.org>
82551
82552         * lib/c-strcasestr.h: New file, from GNU gettext.
82553         * lib/c-strcasestr.c: New file, from GNU gettext.
82554
82555 2005-10-11  Bruno Haible  <bruno@clisp.org>
82556
82557         * lib/c-strcase.h: New file, from GNU gettext.
82558         * lib/c-strcasecmp.c: New file, from GNU gettext.
82559         * lib/c-strncasecmp.c: New file, from GNU gettext.
82560
82561 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82562
82563         * modules/mempcpy (License): GPL -> LGPL.
82564         * modules/strchrnul (License): Likewise.
82565         * modules/sysexits (License): Likewise.
82566
82567 2005-10-08  Simon Josefsson  <jas@extundo.com>
82568
82569         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82570
82571 2005-10-07  Simon Josefsson  <jas@extundo.com>
82572
82573         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82574
82575 2005-10-06  Simon Josefsson  <jas@extundo.com>
82576
82577         * tests/test-hmac-md5.c: New file.
82578
82579         * modules/hmac-md5-tests: New file.
82580
82581         * modules/hmac-md5: New file.
82582
82583 2005-10-06  Simon Josefsson  <jas@extundo.com>
82584
82585         * m4/hmac-md5.m4: New file.
82586
82587         * m4/memxor.m4: Require gl_C_RESTRICT.
82588
82589 2005-10-06  Simon Josefsson  <jas@extundo.com>
82590
82591         * lib/memxor.c (memxor): Avoid casts and warnings.
82592
82593 2005-10-06  Simon Josefsson  <jas@extundo.com>
82594
82595         * lib/hmac-md5.c: New file.
82596
82597         * lib/hmac.h: New file.
82598
82599 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82600
82601         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82602         promotes to int, not unsigned int, to catch the AIX 5.3
82603         compiler bug.
82604
82605 2005-10-05  Simon Josefsson  <jas@extundo.com>
82606
82607         * modules/memxor: New file.
82608
82609         * modules/iconv (Files): Move config.rpath to havelib, it is used
82610         there.
82611
82612         * modules/havelib (Files): Add config.rpath.
82613
82614 2005-10-05  Simon Josefsson  <jas@extundo.com>
82615
82616         * m4/memxor.m4: New file.
82617
82618 2005-10-05  Simon Josefsson  <jas@extundo.com>
82619
82620         * lib/memxor.c (memxor): Fix compiler error.
82621
82622         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
82623         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
82624
82625         * lib/memxor.h, lib/memxor.c: New files.
82626
82627         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
82628         we assume all systems have it, suggested by Jim Meyering
82629         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
82630         any systems lack sys/socket.h; mingw32 is known to lack it, but we
82631         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
82632         same reasons.
82633
82634 2005-10-05  Simon Josefsson  <jas@extundo.com>
82635
82636         * config/srclist.txt: Add glibc bug 1423 for md5.h.
82637
82638 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
82639
82640         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
82641         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
82642         needed, since the source code now assumes these .h files.
82643
82644 2005-10-05  Derek Price  <derek@ximbiot.com>
82645
82646         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
82647
82648 2005-10-05  Bruno Haible  <bruno@clisp.org>
82649
82650         * modules/stdint (License): Change to LGPL.
82651
82652 2005-10-04  Simon Josefsson  <jas@extundo.com>
82653
82654         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
82655         D. Baushke" <mdb@gnu.org>.
82656
82657 2005-10-04  Bruno Haible  <bruno@clisp.org>
82658
82659         * lib/verify.h (verify_true): Provide alternative definition for C++.
82660
82661 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
82662
82663         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
82664         (SSIZE_MAX): New macro, if not already defined.
82665         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
82666         than 2 GiB.
82667
82668 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82669
82670         Sync from coreutils.
82671         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
82672         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
82673         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
82674         ULLONG_MAX doesn't work with 2.7.2.1.
82675
82676 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82677
82678         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
82679         From Ben Pfaff.
82680
82681         * modules/exclude (Depends-on): Depend on verify.
82682         * modules/strtoimax (Depends-on): Likewise.
82683         * modules/utimecmp (Depends-on): Likewise.
82684
82685 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82686
82687         * lib/exclude.c: Include verify.h.
82688         (verify): Remove.  All callers changed to use verify.h's version.
82689         * lib/strtoimax.c: Likewise.
82690         * lib/utimecmp.c: Likewis.e
82691
82692         Sync from coreutils.
82693         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
82694         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
82695         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
82696         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
82697         bother returning ENOSYS if settimeofday or stime fails; just let
82698         them return whatever errno they want to return.
82699         * lib/utimens.c: Include unistd.h, for dup2.
82700         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
82701         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
82702
82703 2005-10-02  Jim Meyering  <jim@meyering.net>
82704
82705         Sync from coreutils.
82706         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
82707         from glibc-2.2.5 that fails for read-only files.
82708
82709 2005-10-02  Jim Meyering  <jim@meyering.net>
82710
82711         Sync from coreutils.
82712         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
82713         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
82714         `#if HAVE_CONFIG_H'.
82715         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
82716         Remove AT_FDCWD test.
82717         Do not consume the fd unless successful.
82718         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
82719         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
82720         block, so that we don't even try to compile it if settimeofday is
82721         available.  This works around a compilation failure on OSF1 V5.1,
82722         due to stime requiring a `long int*' while tv_sec is `int'.
82723
82724 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
82725
82726         Sync from coreutils.
82727         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
82728         against `yes', rather than just testing for nonempty.
82729
82730 2005-10-01  Simon Josefsson  <jas@extundo.com>
82731
82732         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
82733         and Darwin.
82734
82735         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
82736         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
82737         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
82738         freeaddrinfo and gai_strerror are declared by the POSIX headers.
82739         Check if struct addrinfo is declared.
82740
82741 2005-10-01  Simon Josefsson  <jas@extundo.com>
82742
82743         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
82744         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
82745         AI_* and EAI_* definitions.  Protect function declarations.
82746
82747 2005-10-01  Jim Meyering  <jim@meyering.net>
82748
82749         Sync from coreutils.
82750
82751         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
82752         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
82753         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
82754         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82755         in the inet and nsl libraries.  Required on Solaris 5.7.
82756
82757 2005-10-01  Jim Meyering  <jim@meyering.net>
82758
82759         Sync from coreutils.
82760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82761         in the inet and nsl libraries.  Required on Solaris 5.7.
82762
82763 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
82764
82765         * lib/getdelim.c (getdelim): Remove unused variables.
82766
82767 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
82768
82769         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
82770         so that the code works even with ancient cpp.  Portability problem
82771         with GCC 2.7.2.1 reported by Thomas M.Ott.
82772
82773 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
82774
82775         * modules/regex (Depends-on): Add strcase.
82776
82777         * modules/gethostname (Licence): Change from GPL to LGPL, since
82778         gethostname.c is a trivial implementation of a standard library
82779         function.
82780         * modules/poll (License): Change from GPL to LGPL, since it's
82781         derived from LGPL code.
82782
82783 2005-09-27  Jim Meyering  <jim@meyering.net>
82784
82785         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
82786         HAVE_CONFIG_H.
82787
82788         * lib/intprops.h (signed_type_or_expr__): Define.
82789         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
82790         for unsigned types.
82791
82792 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
82793
82794         * lib/verify.h (verify_expr): Remove, replacing with:
82795         (verify_true): New macro that returns true instead of void.
82796         (verify_type__): Remove.
82797         (verify): Use verify_true rather than verify_type__.
82798
82799 2005-09-26  Bruno Haible  <bruno@clisp.org>
82800
82801         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
82802         is necessary.
82803         (lib_SOURCES): Remove mbchar.c.
82804         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
82805         (Files): Add m4/mbrtowc.m4.
82806         * modules/mbiter: Likewise.
82807         * modules/mbuiter: Likewise.
82808
82809 2005-09-26  Bruno Haible  <bruno@clisp.org>
82810
82811         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
82812         compile mbchar.c if they are not both present.
82813         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
82814         * m4/mbiter.m4 (gl_MBITER): Likewise.
82815         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
82816         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
82817         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
82818
82819 2005-09-25  Jim Meyering  <jim@meyering.net>
82820
82821         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
82822         also uses socklen_t.
82823
82824 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
82825
82826         * lib/utimens.c (ENOSYS): Define if not already defined.
82827         (futimens): Support having a null PATH if the file descriptor
82828         is nonnegative.
82829
82830         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
82831         Remove.
82832         (__attribute): Define to empty unless GCC 3.1 or later.
82833         This works around a core dump on OpenBSD 3.4, which has GCC
82834         2.95.3, which dumps core when given __attribute__(()).  It also
82835         simplifies other tests, since we really don't want to bother with
82836         worrying about which ancient version of GCC supported what.
82837         Original problem reported by Yoann Vandoorselaere, with part of
82838         the fix suggested by Derek Price.
82839
82840 2005-09-24  Jim Meyering  <jim@meyering.net>
82841
82842         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
82843         so we can once again use a positive bitfield width of 1 -- now we
82844         don't have to explain why we were using a bitfield width of 2.
82845
82846 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82847
82848         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
82849         and similarly for the other external symbols.  Problem reported
82850         by James Gallager.
82851
82852         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
82853         bug reported by Jim Meyering.
82854
82855         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
82856         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
82857         not needed, since socklen is a prerequisite module.
82858
82859 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82860
82861         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
82862         Problem reported by Eric Blake.
82863         (getaddrinfo): Initialize se so that it's not garbage.
82864         Redo internal storage allocation so that it doesn't make unportable
82865         assumptions about alignment.
82866         Fix a memory leak.
82867
82868         * lib/utimens.c (futimens): Use futimesat if available.
82869         Prefer it to futimes since it doesn't have the futimes bug.
82870
82871         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
82872         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
82873         Instead, declare a function that returns a pointer to an array,
82874         and use verify_type__ to declare the size of the array.
82875         Problem and germ of a solution reported by Bruno Haible.
82876         (verify_type__): Use 2, not 1, for bitfield size, to avoid
82877         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
82878
82879 2005-09-23  Jim Meyering  <jim@meyering.net>
82880
82881         Sync from coreutils.
82882         Correct build failure (socklen_t not defined) on at least
82883         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
82884         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
82885
82886 2005-09-23  Jim Meyering  <jim@meyering.net>
82887
82888         * modules/getaddrinfo (Depends-on): Add socklen.
82889
82890 2005-09-23  Bruno Haible  <bruno@clisp.org>
82891
82892         * tests/test-verify.c: New file.
82893
82894 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82895
82896         Sync from coreutils.
82897
82898         * modules/argmatch (Depends-on): Add verify.
82899         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
82900         unistd-safer.
82901         * modules/save-cwd (Depends-on): Likewise.
82902
82903         * modules/openat (Files): Add lib/openat-die.c.
82904         (Depends-on): Remove error, exitfail.
82905         Add dirname.
82906
82907         * modules/verify: New file.
82908         * MODULES.html.sh (Diagnostics <assert.h>): New section,
82909         with "verify" module.
82910
82911 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82912
82913         Sync from coreutils.
82914
82915         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
82916         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
82917         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
82918         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
82919         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
82920         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
82921         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
82922         Don't bother checking for string.h, stdlib.h, unistd.h.
82923         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
82924         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
82925         module's job.
82926         * m4/jm-macros.m4 (gl_MACROS): Likewise.
82927         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
82928
82929         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
82930         (gl_GETDATE): Use it.
82931
82932         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
82933
82934 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82935
82936         Sync from coreutils.
82937
82938         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
82939         stat-time.h.
82940         * lib/argmatch.h: Include verify.h
82941         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
82942         (ARGMATCH_ASSERT): Remove; unused.
82943         * lib/canonicalize.c: Assume STDC_HEADERS.
82944         * lib/exclude.c: Include "strcase.h".
82945         * lib/regex_internal.h [!defined _LIBC]: Likewise.
82946         * lib/getusershell.c: Include stdio--.h rather than stdio.h
82947         and stdio-safer.h.
82948         (getusershell): Call fopen, not fopen_safer.
82949         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
82950         Do not include unistd-safer.h.
82951         (save_cwd): Don't call fd_safer; no longer needed
82952         now that we include fcntl--.h.
82953
82954         * lib/getdate.y (relative_time): New type.
82955         (RELATIVE_TIME_0): New constant.
82956         (parser_control): Use relative_time instead of doing it ourselves.
82957         (%union): Add new relative_time rel member.
82958         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
82959         Now typeless.
82960         (relunit, relunit_snumber): Now of type rel.
82961         (zone, rel, relunit, get_date): Adjust to above changes.
82962
82963         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
82964         Do not include unistd-safer.h.
82965         (getloadavg): Don't call fd_safer; no longer needed
82966         now that we include fcntl--.h.
82967
82968         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
82969         (make_dir_parents): Treat ENOSYS like EEXIST.
82970
82971         Improve quality of diagnostics on restore_cwd failure.
82972         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
82973         (make_dir_parents): Last arg is now int * (for errno), not bool *.
82974         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
82975         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
82976         each time through the loop.  Do not diagnose restore_cwd failure;
82977         that is the caller's job (and perhaps the caller does not care).
82978
82979         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
82980         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
82981         If the file already exists but is not a directory, don't bother
82982         to try to make its parents.
82983         Close potential file descriptor leak if we can't chdir("/") (!).
82984         Don't always return true if chdir($PWD) fails; return true only
82985         if the requested action was done successfully (except for the
82986         chdir($PWD)).
82987         Don't log final directory unless we actually made it.
82988         Refactor to avoid duplicate code to fix up permissions.
82989         Don't attempt to fix up parent permissions if chdir($PWD) fails.
82990
82991         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
82992         to make it a bit faster and (I hope) clearer.
82993         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
82994         Fix bug in formats like %2N.
82995
82996         * lib/verify.h: New file.
82997
82998 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82999
83000         Sync from coreutils.
83001         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83002
83003 2005-09-22  Jim Meyering  <jim@meyering.net>
83004
83005         Sync from coreutils.
83006
83007         * m4/lstat.m4 (gl_FUNC_LSTAT):
83008         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83009         Remove obsolete comment.
83010         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83011         * m4/xstrtod.m4: Likewise.
83012
83013         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83014
83015 2005-09-22  Jim Meyering  <jim@meyering.net>
83016
83017         Sync from coreutils.
83018
83019         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83020
83021         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83022         the .tm_year member, since otherwise gcc-4.0 would now warn about
83023         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83024
83025         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83026         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83027
83028         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83029         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83030         when run in a time zone for which daylight savings time is in effect
83031         for the starting date.
83032
83033         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83034         stop us from restricting permissions of just-created absolute-named
83035         directories.
83036         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83037         to restore initial working directory.
83038         * lib/mkdir-p.c (make_dir_parents): New parameter:
83039         different_working_dir, to tell caller if/when we change the working
83040         directory and are unable to return to the initial one.
83041         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83042         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83043         `return false'.  This fixes a bug introduced on 2004-07-30.
83044
83045         * lib/openat.c (fdopendir): Be sure to close the supplied
83046         file descriptor before returning.  This makes our replacement
83047         implementation a little closer to Solaris's, where fdopendir
83048         ties the file descriptor to the returned DIR* pointer.
83049         * lib/openat.c (unlinkat): New function.
83050         * lib/openat.h (unlinkat): Add prototype.
83051         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83052         (openat_restore_fail): Rename from openat_restore_die.
83053         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83054
83055         Provide an alternative to exiting immediately upon save_cwd or
83056         restore_cwd failure.  Now, an application can arrange e.g.,
83057         to perform a longjump in that case.
83058         * lib/openat.c: Include dirname.h.
83059         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83060         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83061         and openat_restore_die rather than calling error directly.
83062         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83063
83064         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83065         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83066         define.
83067
83068         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83069         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83070                             int utc, int nanoseconds);
83071         Background:
83072         date should not have to allocate a megabyte of virtual memory to
83073         handle a format argument like +%1048575T.  When implemented with
83074         strftime, it must allocate such a buffer, use strftime to fill it
83075         in, print it, then free it.
83076         With fprintftime, it simply prints everything and exits.
83077         With no need for memory allocation, that's one fewer way to fail.
83078         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83079         optional field width, not before, so we accept %9:z, not %:9z.
83080         (my_strftime): Be sure to use L_('x') for literals.
83081
83082         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83083         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83084         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83085         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83086         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83087         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83088         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83089         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83090         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83091         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83092         * lib/xgethostname.c, lib/xreadlink.c:
83093         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83094
83095         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83096         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83097         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83098         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83099         and don't include <sys/file.h>).
83100
83101 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83102
83103         Sync from coreutils.
83104
83105         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83106         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83107         [!LDAV_DONE]: Avoid unused variable warning.
83108
83109 2005-09-21  Bruno Haible  <bruno@clisp.org>
83110
83111         * lib/unicodeio.h (unicode_to_mb): New declaration.
83112
83113 2005-09-20  Derek Price  <derek@ximbiot.com>
83114
83115         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83116         getaddrinfo.h.
83117
83118 2005-09-20  Bruno Haible  <bruno@clisp.org>
83119
83120         * gnulib-tool: Remove trailing slashes from the values specified for
83121         --source-base, --m4-base, --tests-base, --aux-dir.
83122         Suggested by Simon Josefsson <jas@extundo.com>.
83123
83124 2005-09-20  Bruno Haible  <bruno@clisp.org>
83125
83126         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83127         func_modules_to_filelist, func_import, func_create_testdir): Make all
83128         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83129         change when gnulib-tool is invoked in a different locale.
83130
83131 2005-09-19  Simon Josefsson  <jas@extundo.com>
83132
83133         * m4/socklen.m4: Fix typo.
83134
83135 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83136
83137         Use a consistent style for including <config.h>.
83138         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83139         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83140         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83141         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83142         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83143         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83144         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83145         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83146         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83147         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83148         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83149         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83150         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83151         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83152         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83153         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83154         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83155         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83156         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83157         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83158         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83159         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83160         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83161         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83162         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83163         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83164         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83165         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83166         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83167         lib/xstrtoumax.c, lib/yesno.c:
83168         Standardize inclusion of config.h.
83169         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83170         lib/inttostr.h:  Removed inclusion of config.h from header files.
83171         * lib/inttostr.c:  Adjusted in-tree users.
83172         * lib/timespec.h: Remove superfluous warning to include config.h.
83173         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83174         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83175         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83176         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83177         config.h with HAVE_CONFIG_H.
83178
83179 2005-09-19  Jim Meyering  <jim@meyering.net>
83180
83181         * modules/pathmax (License): Change to LGPL.
83182
83183 2005-09-19  Derek Price  <derek@ximbiot.com>
83184
83185         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83186
83187 2005-09-19  Bruno Haible  <bruno@clisp.org>
83188
83189         * gnulib-tool (import): Provide default for --tests-base.
83190
83191 2005-09-19  Bruno Haible  <bruno@clisp.org>
83192
83193         * doc/quote.texi: New file, extracted from gnulib.texi.
83194         * doc/ctime.texi: New file, extracted from gnulib.texi.
83195         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83196         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83197         * doc/gnulib.texi: Include them.
83198
83199 2005-09-18  Bruno Haible  <bruno@clisp.org>
83200
83201         Portability fix.
83202         * gnulib-tool (func_readlink): New function.
83203         (func_ln_if_changed): Use it.
83204
83205 2005-09-18  Bruno Haible  <bruno@clisp.org>
83206
83207         * gnulib-tool: Support --with-tests also with --import.
83208         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83209         (func_import): Use variables $testsbase and $inctests. Emit a
83210         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83211         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83212         SUBDIRS += $testsdir.
83213         (func_create_testdir): Update.
83214
83215 2005-09-18  Bruno Haible  <bruno@clisp.org>
83216
83217         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83218         instead of $dry_run.
83219         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83220         (func_ln_if_changed): Don't handle dry-run here.
83221         (func_import): In dry-run mode, detect more precisely which actions
83222         would be performed, and don't use "...ing" verbs.
83223
83224 2005-09-18  Bruno Haible  <bruno@clisp.org>
83225
83226         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83227         (func_import): Use join on two temporary files instead of three nested
83228         loops, in order to determine which files are new or old.
83229
83230 2005-09-18  Bruno Haible  <bruno@clisp.org>
83231
83232         * gnulib-tool (func_import): Comment out code that spits out the
83233         new files with --dry-run.
83234
83235 2005-09-18  Bruno Haible  <bruno@clisp.org>
83236
83237         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83238
83239 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83240
83241         * lib/stat-time.h: New file.
83242         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83243         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83244         in a different way.
83245         (timespec_cmp): New function.
83246         * lib/utimecmp.c: Include stat-time.h.
83247         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83248         members exist, not on the obsolescent ST_MTIM_NSEC.
83249         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83250
83251 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83252
83253         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83254
83255 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83256
83257         * MODULES.html.sh (File system functions): Add stat-time.
83258         * modules/stat-time: New file.
83259         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83260         is now done in a different way, by the stat-time module.
83261         * modules/utimecmp (Depends-on): Add stat-time.
83262
83263 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83264
83265         * m4/st_mtim.m4: Remove.  Superseded by...
83266         * m4/stat-time.m4: New file.
83267         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83268         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83269
83270 2005-09-15  Derek Price  <derek@ximbiot.com>
83271
83272         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83273
83274 2005-09-15  Derek Price  <derek@ximbiot.com>
83275
83276         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83277         * lib/regex_internal.c: Ditto, using this...
83278         (__GNUC_PREREQ): ...new macro.
83279         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83280         using...
83281         (__GNUC_PREREQ): ...this new macro.
83282
83283         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83284
83285 2005-09-15  Derek Price  <derek@ximbiot.com>
83286             Paul Eggert  <eggert@cs.ucla.edu>
83287
83288         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83289         changes, consolidating in...
83290         * lib/regex_internal.h: ...this file.
83291
83292 2005-09-13  Jim Meyering  <jim@meyering.net>
83293
83294         * lib/canon-host.c: Filter through gnu indent and reword comments
83295         slightly.
83296         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83297
83298 2005-09-13  Derek Price  <derek@ximbiot.com>
83299
83300         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83301         failure.
83302         Reported by Jim Meyering  <jim@meyering.net>.
83303
83304 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83305
83306         * lib/base64.c: Typo.
83307         (base64_encode): Put b64str in initialized data section.
83308
83309 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83310
83311         Merge glibc and coreutils changes into gnulib, plus a few
83312         extra fixes.
83313         * lib/md5.c: Use #error rather than a string.
83314         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83315         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83316         (__attribute__): Define to empty for non recent-GCC.
83317         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83318         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83319         Renamed from their non-__ counterparts, with new macros replacing
83320         them if not _LIBC.  Add __THROW attribute.
83321         (rol): Remove.
83322         (struct md5_ctx): Align buffer if using GCC.
83323         * lib/sha1.h (struct sha1_ctx): Likewise.
83324         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83325         The old name was backwards.
83326         (NOTSWAP): Remove; not used.
83327         (rol): New macro, moved here from md5.h.
83328         (sha1_process_block): Remove a FIXME that doesn't make sense.
83329
83330 2005-09-12  Derek Price  <derek@ximbiot.com>
83331
83332         Return usable errors from canon-host.
83333         * lib/canon-host.h: New file.
83334         * lib/canon-host.c (canon_host): Wrap...
83335         (canon_host_r): ...this new function, which now relies exclusively on
83336         getaddrinfo.
83337         (ch_strerror): New function.
83338         (last_cherror): New global.
83339         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83340         interface.
83341         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83342         void *.
83343         (freeaddrinfo): Free ai->ai_canonname when set.
83344
83345 2005-09-12  Derek Price  <derek@ximbiot.com>
83346
83347         Make canon-host require getaddrinfo.
83348         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83349         AC_LIBSOURCE canon-host.h.  Call...
83350         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83351         gl_GETADDRINFO.
83352         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83353
83354 2005-09-12  Derek Price  <derek@ximbiot.com>
83355
83356         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83357         LGPL.
83358         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83359
83360 2005-09-12  Derek Price  <derek@ximbiot.com>
83361
83362         * lib/gai_strerror.c: Include config.h when available.  Include
83363         getaddrinfo.h before other headers to test interface.
83364         Reported by Larry Jones <lawrence.jones@ugs.com>.
83365
83366 2005-09-12  Derek Price  <derek@ximbiot.com>
83367             Paul Eggert  <eggert@cs.ucla.edu>
83368
83369         * modules/glob (Files): Add glob-libc.h.
83370
83371 2005-09-12  Derek Price  <derek@ximbiot.com>
83372             Paul Eggert  <eggert@cs.ucla.edu>
83373
83374         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83375         glob_.h, glob-libc.h.
83376         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83377
83378 2005-09-12  Derek Price  <derek@ximbiot.com>
83379             Paul Eggert  <eggert@cs.ucla.edu>
83380
83381         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83382         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83383         protecting things that should be done only in gnulib contexts.
83384         * lib/glob_.h: New file, containing only the glob things needed for
83385         gnulib.
83386         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83387         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83388         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83389         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83390         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83391         and to respect the namespace rules better.
83392
83393 2005-09-08  Simon Josefsson  <jas@extundo.com>
83394
83395         * modules/socklen: New file.
83396
83397 2005-09-08  Simon Josefsson  <jas@extundo.com>
83398
83399         * m4/socklen.m4: New file.
83400
83401 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83402
83403         * modules/utimens (Files): Add m4/utimbuf.m4, since
83404         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83405         Reported by Sergey Poznyakoff.
83406
83407 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83408
83409         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83410         definitions, since that's the preferred style in glibc.
83411         Fix a minor spacing issue, and update copyright notice to match
83412         glibc's.
83413
83414 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83415
83416         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83417
83418 2005-09-06  Simon Josefsson  <jas@extundo.com>
83419
83420         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83421         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83422
83423 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83424
83425         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83426         warning.
83427
83428 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83429
83430         * config/srclist.txt: Add glibc bug 1302.
83431
83432 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83433
83434         Change bitset word type from unsigned int to unsigned long int,
83435         as this has better performance on typical 64-bit hosts.
83436         Port bitset code to hosts with unusual word sizes.
83437         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83438         (build_collating_symbol):
83439         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83440         argument is a bitset.  This is merely a style issue, but it makes
83441         it clearer that an entire array is expected.
83442         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83443         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83444         Port to the case where bitset_word is not the same as unsigned int.
83445         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83446         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83447         Likewise.
83448         * lib/regexec.c (check_dst_limits_calc_pos_1,
83449         check_subexp_matching_top):
83450         (build_trtable, group_nodes_into_DFAstates):
83451         Likewise.
83452         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83453         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83454         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83455         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83456         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83457         * lib/regcomp.c (optimize_subexps, lower_subexp):
83458         Work even if bitset_word has holes in its bitwise representation.
83459         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83460         * lib/regexec.c (check_dst_limits_calc_pos_1,
83461         check_subexp_matching_top):
83462         Likewise.
83463         * lib/regex_internal.c (re_string_reconstruct):
83464         Don't assume UCHAR_MAX == 255.
83465         * lib/regex_internal.h (bitset_set_all): Likewise.
83466         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83467         All uses changed.
83468         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83469         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83470         All uses changed.
83471         (BITSET_WORD_MAX): New macro.
83472         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83473         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83474         (bitset_empty, bitset_copy):
83475         Prefer sizeof (bitset) to multiplying it out ourselves.
83476         (bitset_not_merge): Remove; unused.
83477         (bitset_contain): Return bool, not unsigned int with one bit on.
83478         All callers changed.
83479         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83480         alignment than re_node_set; do this by defining a new internal
83481         type struct dests_alloc and using it to allocate memory.
83482
83483 2005-09-05  Bruno Haible  <bruno@clisp.org>
83484
83485         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83486         links.
83487
83488 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83489
83490         * modules/size_max (Makefile.am): Add size_max.h
83491
83492 2005-09-04  Derek Price  <derek@ximbiot.com>
83493
83494         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83495
83496 2005-09-03  Simon Josefsson  <jas@extundo.com>
83497
83498         * gnulib-tool: Fix typo.
83499
83500 2005-09-03  Simon Josefsson  <jas@extundo.com>
83501
83502         * config/srclist.txt: Add glibc bug 1293.
83503
83504 2005-09-03  Derek Price  <derek@ximbiot.com>
83505
83506         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83507         From Larry Jones <lawrence.jones@ugs.com>.
83508
83509 2005-09-02  Simon Josefsson  <jas@extundo.com>
83510
83511         * modules/socklen: New file.
83512
83513 2005-09-02  Simon Josefsson  <jas@extundo.com>
83514
83515         * modules/havelib: New module.
83516
83517         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83518         Use havelib.
83519
83520 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83521
83522         Check for arithmetic overflow when calculating sizes, to prevent
83523         some buffer-overflow issues.  These patches are conservative, in the
83524         sense that when I couldn't determine whether an overflow was possible,
83525         I inserted a run-time check.
83526         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83527         macros.
83528         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83529         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83530         (re_xnrealloc, re_x2nrealloc): New inline functions.
83531         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83532         parse_bracket_exp):
83533         (build_equiv_class, build_charclass): Check for arithmetic overflow
83534         in size expression calculations.
83535         * lib/regex_internal.c (re_string_realloc_buffers):
83536         (build_wcs_upper_buffer, re_node_set_add_intersect):
83537         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83538         (re_dfa_add_node, register_state): Likewise.
83539         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83540         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83541         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83542         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83543
83544 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83545
83546         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83547         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83548
83549 2005-09-02  Bruno Haible  <bruno@clisp.org>
83550
83551         Support for lib vs. lib64 distinction on biarch platforms.
83552         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83553         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83554         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83555
83556 2005-09-02  Bruno Haible  <bruno@clisp.org>
83557
83558         * gnulib-tool (import): In the other first-use case, provide defaults
83559         as well.
83560
83561 2005-09-02  Bruno Haible  <bruno@clisp.org>
83562
83563         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83564         patches not yet found in the latest gettext release.
83565
83566 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83567
83568         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83569         to avoid a collision with bits/local_lim.h in glibc.
83570         All uses changed.  Problem reported by Dmitry V. Levin in
83571         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83572
83573         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83574         bugs in int versus size_t comparisons.
83575         (re_string_context_at): Fix bug where the code assumed that
83576         Idx is signed.
83577
83578         Use bool where appropriate.
83579         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83580         All callers changed.
83581         (calc_eclosure_iter): Likewise, for ROOT arg.
83582         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83583         (build_charclass_op): Likewise, for NON_MATCH arg.
83584         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83585         (re_string_construct_common): Likewise, for ICASE arg.
83586         * lib/regexec.c (re_search_2_stub, re_search_stub):
83587         Likewise, for RET_LEN arg.
83588         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83589         (set_regs): Likewise, for FL_BACKTRACK arg.
83590         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83591         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83592         (calc_eclosure_iter, parse_bracket_exp):
83593         Use bool for internal variables that are booleans.
83594         * lib/regexec.c (re_search_internal, check_matching,
83595         proceed_next_node):
83596         (set_regs, build_sifted_states, sift_states_bkref):
83597         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83598         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83599         (find_collation_sequence_value):
83600         Likewise.
83601         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83602         (re_node_set_compare):
83603         Return bool, not int. All callers changed.
83604         * lib/regexec.c (check_halt_node_context, check_dst_limits):
83605         (build_trtable, check_node_accept): Likewise.
83606         * lib/regex_internal.h: Include stdbool.h.
83607
83608         Fix bugs uncovered when converting to bool.
83609         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
83610         failure instead of charging ahead blindly.
83611         * lib/regex_internal.c (register_state): Likewise.
83612         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
83613         for freeing internal storage.
83614         (group_nodes_into_DFA_states): Use unsigned int, not int, for
83615         bitset pieces used as boolean, to avoid undefined behavior
83616         on hosts that do int overflow checking.
83617
83618 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83619
83620         * config/srclist.txt: Add glibc bugs 1285-1287.
83621
83622 2005-09-01  Jim Meyering  <jim@meyering.net>
83623
83624         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
83625         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
83626         Require gl_STAT_MACROS, too.
83627
83628 2005-09-01  Bruno Haible  <bruno@clisp.org>
83629
83630         * gnulib-tool (import): In the first-use case, provide defaults.
83631
83632 2005-09-01  Bruno Haible  <bruno@clisp.org>
83633
83634         * gnulib-tool (func_import): Remove the .tmp files.
83635
83636 2005-09-01  Bruno Haible  <bruno@clisp.org>
83637
83638         * gnulib-tool (func_import): Fix handling of symbolic links.
83639
83640 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83641
83642         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
83643         old glibc regex code mishandles strings longer than 2**31 bytes.
83644         This patch fixes this when the regex code is used in gnulib
83645         (i.e., outside glibc).
83646
83647         This patch should not affect the use of the regex code inside
83648         glibc.  No doubt this problem also needs to be handled for glibc
83649         as well, but the result will be an incompatible change to the
83650         glibc ABI, and the old ABI will have to be supported too.  That
83651         can be the the subject for another patch.
83652
83653         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
83654         governing whether the rest of this patch is active.  By default,
83655         the macro is disabled and the patch has no effect.
83656         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
83657         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
83658         (struct re_pattern_buffer, re_search, re_search_2, re_match):
83659         (re_match_2, re_set_registers): Use the new types.
83660         * lib/regex_internal.h (Idx, re_hashval_t): New types.
83661         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
83662         New macros.
83663         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
83664         (re_string_context_at, bin_tree_t, re_dfastate_t):
83665         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
83666         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
83667         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
83668         (re_string_char_size_at, re_string_wchar_at):
83669         (re_string_elem_size_at):
83670         Use the new types and macros to port to 64-bit hosts.
83671         Use unsigned types for internal values, so that the code
83672         mostly works even for arrays larger than SSIZE_MAX.
83673         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
83674         (search_duplicated_node, calc_eclosure_iter, fetch_number):
83675         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
83676         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
83677         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
83678         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
83679         (calc_inveclosure, parse_dup_op, build_range_exp):
83680         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
83681         (fetch_number, create_token_tree, mark_opt_subexp):
83682         Likewise.
83683         * lib/regex_internal.c (re_string_construct_common,
83684         create_ci_newstate):
83685         (create_cd_newstate, re_string_allocate, re_string_construct):
83686         (re_string_realloc_buffers, build_wcs_upper_buffer):
83687         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83688         (re_string_reconstruct, re_string_peek_byte_case):
83689         (re_string_fetch_byte_case, re_string_context_at):
83690         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83691         (re_node_set_init_copy, re_node_set_add_intersect):
83692         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83693         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83694         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83695         (re_acquire_state, re_acquire_state_context, register_state):
83696         Likewise.
83697         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
83698         search_cur_bkref_entry):
83699         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
83700         (re_search_internal, re_search_2_stub, re_search_stub)
83701         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
83702         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
83703         (update_cur_sifted_state, check_dst_limits):
83704         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83705         (check_subexp_limits, sift_states_bkref, merge_state_array):
83706         (check_subexp_matching_top, get_subexp, get_subexp_sub):
83707         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
83708         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83709         (expand_bkref_cache, check_node_accept_bytes):
83710         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
83711         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
83712         (acquire_init_state_context, check_halt_node_context):
83713         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
83714         (sift_states_backward, clean_state_log_if_needed):
83715         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
83716         (find_recover_state, transit_state_sb, transit_state_mb):
83717         (transit_state_bkref, build_trtable, match_ctx_clean):
83718         Likewise.
83719         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
83720         to work around an assumption that REG_MISSING is negative.
83721
83722         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
83723         (seek_collating_symbol_entry) [defined _LIBC]:
83724         (lookup_collation_sequence_value) [defined _LIBC]:
83725         (build_range_exp, build_collating_symbol) [defined _LIBC]:
83726         Use prototypes rather than old-style function definitions.
83727         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
83728         (transit_state_sb) [0]:
83729         (find_collation_sequence_value) [defined _LIBC]: Likewise.
83730
83731         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
83732         rm_eo.
83733
83734         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
83735         (optimize_subexps, lower_subexp):
83736         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
83737         since the signed shift might overflow.  Use 1u<<31 instead.
83738         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83739         Likewise.
83740         * lib/regexec.c (check_dst_limits_calc_pos_1,
83741         check_subexp_matching_top): Likewise.
83742
83743         * lib/regcomp.c (optimize_subexps, lower_subexp):
83744         Use CHAR_BIT rather than 8, for clarity.
83745         * lib/regexec.c (check_dst_limits_calc_pos_1):
83746         (check_subexp_matching_top): Likewise.
83747         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
83748         have to worry about portability issues when shifting it left.
83749         Remove no-longer-needed test for table_size > 0.
83750         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
83751         in a word, as the resulting behavior is undefined.
83752         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
83753         in one case, a <= should have been an <, and in another case the
83754         whole test was missing.
83755         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
83756         the standard name CHAR_BIT.
83757         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
83758         this is not true on one's complement and signed-magnitude hosts.
83759
83760         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
83761         next_last_offset.
83762         (struct re_dfa_t): Remove unused member states_alloc.
83763         * lib/regcomp.c (init_dfa): Don't initialize unused members.
83764
83765 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83766
83767         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
83768         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
83769         and large-file glibc and in 32-bit large-file Solaris.
83770
83771 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83772
83773         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
83774         lengths fit in regoff_t; this isn't true if regoff_t is the same
83775         width as size_t.
83776         * lib/regex.c (re_search_internal): 5th arg is LAST_START
83777         (= START + RANGE) instead of RANGE.  This avoids overflow
83778         problems when regoff_t is the same width as size_t.
83779         All callers changed.
83780         (re_search_2_stub): Check for overflow when adding the
83781         sizes of the two strings.
83782         (re_search_stub): Check for overflow when adding START
83783         to RANGE; if it occurs, substitute the extreme value.
83784
83785 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83786
83787         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
83788
83789 2005-08-31  Jim Meyering  <jim@meyering.net>
83790
83791         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
83792         a pointer-to-const.
83793         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
83794         (register_state): Likewise.
83795         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
83796         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83797         (group_nodes_into_DFAstates): Likewise.
83798
83799 2005-08-31  Jim Meyering  <jim@meyering.net>
83800
83801         * check-module: Add a FIXME comment.
83802
83803 2005-08-31  Eric Blake  <ebb9@byu.net>
83804
83805         * modules/unistd-safer (Files): Add unistd--.h.
83806         * modules/stdio-safer (Files): Add stdio--.h.
83807
83808 2005-08-31  Derek Price  <derek@ximbiot.com>
83809
83810         * lib/getdelim.c (getdelim): Return EOF on EOF.
83811         Reported by Larry Jones <lawrence.jones@ugs.com>.
83812
83813 2005-08-31  Bruno Haible  <bruno@clisp.org>
83814
83815         Avoid unnecessary diffs in the generated lib/Makefile.am.
83816         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
83817         the generated files.
83818         (func_import): Don't set cmd.
83819
83820 2005-08-31  Bruno Haible  <bruno@clisp.org>
83821
83822         * lib/strstr.c: Include <stddef.h>, for NULL.
83823         * lib/strcasestr.c: Likewise.
83824         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83825
83826 2005-08-31  Bruno Haible  <bruno@clisp.org>
83827
83828         * gnulib-tool: New option --macro-prefix.
83829         (func_import): Use macro_prefix.
83830         (import): Handle option --macro-prefix.
83831
83832 2005-08-31  Bruno Haible  <bruno@clisp.org>
83833
83834         * gnulib-tool (import): Rename most ac_* variables to cached_*.
83835         Also use new variables cached_lgpl, cached_libtool.
83836
83837 2005-08-31  Bruno Haible  <bruno@clisp.org>
83838
83839         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
83840         always instantiating them.
83841
83842 2005-08-31  Bruno Haible  <bruno@clisp.org>
83843
83844         * gnulib-tool (func_import): Read the previous cached settings
83845         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
83846         earlier added by gnulib but are now dropped. Warn when a gnulib file
83847         overwrites a non-gnulib file.
83848
83849 2005-08-31  Bruno Haible  <bruno@clisp.org>
83850
83851         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
83852         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
83853         projects that don't keep autogenerated files in CVS. Put into
83854         actioncmd only the specified modules, not the transitive closure.
83855
83856 2005-08-31  Bruno Haible  <bruno@clisp.org>
83857
83858         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
83859         Create directories that shall be filled.
83860         (import): Don't look for gl_* macros in configure.ac. Recurse across
83861         all directories containing a gnulib-cache.m4 files, if meaningful.
83862
83863 2005-08-31  Bruno Haible  <bruno@clisp.org>
83864
83865         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
83866         (import): Set seen_libtool when we see gl_LIBTOOL.
83867
83868 2005-08-31  Bruno Haible  <bruno@clisp.org>
83869
83870         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
83871         declaration macro definitions from generated gnulib.m4.
83872
83873 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
83874
83875         * lib/iconvme.h: Add prototype for iconv_alloc.
83876
83877 2005-08-29  Simon Josefsson  <jas@extundo.com>
83878
83879         * lib/iconvme.c: Fix errno.
83880
83881 2005-08-29  Bruno Haible  <bruno@clisp.org>
83882
83883         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
83884         that it works when the directory contains spaces.
83885
83886 2005-08-29  Bruno Haible  <bruno@clisp.org>
83887
83888         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
83889
83890 2005-08-29  Bruno Haible  <bruno@clisp.org>
83891
83892         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
83893         Emit more advice.
83894
83895 2005-08-29  Bruno Haible  <bruno@clisp.org>
83896         and Stepan Kasal  <kasal@ucw.cz>
83897
83898         * check-module: If more parameters are given, check each of them
83899         separately; add more exceptions, as noted by Jim Meyering.
83900         (check_module): New procedure.
83901         (%exempt_header): Now contains all exceptions.
83902
83903 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
83904
83905         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
83906
83907 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83908
83909         * lib/iconvme.c: Split iconv_string into iconv_alloc.
83910
83911 2005-08-28  Bruno Haible  <bruno@clisp.org>
83912
83913         * m4/gnulib-tool.m4: New file.
83914
83915 2005-08-27  Jim Meyering  <jim@meyering.net>
83916
83917         * modules/unistd-safer (Files): Add pipe-safer.c.
83918         * modules/fcntl-safer (Files): Add creat-safer.c.
83919
83920 2005-08-27  Jim Meyering  <jim@meyering.net>
83921
83922         * m4/stdlib-safer.m4: New file.  From coreutils.
83923         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
83924         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
83925         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
83926         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
83927         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
83928
83929 2005-08-27  Jim Meyering  <jim@meyering.net>
83930
83931         * lib/fopen-safer.c: Merge minor changes from coreutils.
83932         * lib/dup-safer.c: Likewise.
83933         * lib/fd-safer.c: Likewise.
83934
83935         Merge from coreutils.
83936         * lib/stdio--.h: New file.
83937         * lib/stdlib--.h: New file.
83938         * lib/mkstemp-safer.c: New file.
83939
83940         GNU tar needs these.
83941         * lib/pipe-safer.c: New file.
83942         * lib/creat-safer.c: New file.
83943         * lib/fcntl--.h (creat): Define to creat_safer.
83944         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
83945         * lib/unistd--.h (pipe): Define to pipe_safer.
83946         * lib/unistd-safer.h: Declare pipe_safer.
83947
83948 2005-08-26  Simon Josefsson  <jas@extundo.com>
83949
83950         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
83951         Haible <bruno@clisp.org>.
83952
83953 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
83954
83955         * lib/regex_internal.h: Remove all references to
83956         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
83957         or better.
83958         (bitset_not, bitset_merge, bitset_not_merge):
83959         (bitset_mask, re_string_allocate, re_string_construct):
83960         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
83961         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
83962         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
83963         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
83964         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83965         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83966         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
83967         (re_acquire_state_context):
83968         Remove unnecessary forward decls.
83969         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
83970         Put __attribute at function definition,
83971         now that the function decl has been removed.
83972         * lib/regex_internal.c (re_string_peek_byte_case):
83973         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
83974         Likewise.
83975
83976 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
83977
83978         * m4/regex.m4: Add AC_PREREQ(2.50).
83979         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
83980
83981 2005-08-25  Simon Josefsson  <jas@extundo.com>
83982
83983         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
83984         __fsetlocking.
83985
83986 2005-08-25  Simon Josefsson  <jas@extundo.com>
83987
83988         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
83989         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
83990         GLIBC specific code.
83991
83992 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83993
83994         Make regex safe for g++.  This fixes one real bug (an "err"
83995         that should have been "*err").  g++ problem reported by
83996         Sam Steingold.
83997         * lib/regex_internal.h (re_calloc): New macro, consistent with
83998         re_malloc etc.  All callers of calloc changed to use re_calloc.
83999         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84000         not int.  All callers changed.
84001         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84002         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84003         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84004         (find_recover_state): Change "err" to "*err"; this fixes what
84005         appears to be a real bug.
84006         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84007         versus int.
84008
84009 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84010
84011         * modules/regex (Depends-on): Add malloc, since the code
84012         assumes that !malloc(0) means failure.
84013
84014 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84015
84016         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84017
84018         alloca modernization/simplification for regex.
84019         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84020         needs to be at the start of the file, and can be moved into
84021         regex_internal.h and simplified.
84022         * lib/regex_internal.h: Include <alloca.h>.
84023         (__libc_use_alloca) [!defined _LIBC]: New macro.
84024         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84025         now works outside glibc.
84026
84027 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84028
84029         * config/srclist.txt: Add glibc bugs 1241, 1245.
84030
84031 2005-08-25  Jim Meyering  <jim@meyering.net>
84032
84033         * lib/open-safer.c: Include <config.h>.
84034         Otherwise, we'd lose LARGEFILE support in any file using
84035         e.g. "fcntl--.h"
84036
84037 2005-08-25  Bruno Haible  <bruno@clisp.org>
84038
84039         * m4/minmax.m4: Require autoconf 2.52.
84040         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84041         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84042         alternatives of translit over the alphabet.
84043         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84044
84045 2005-08-24  Simon Josefsson  <jas@extundo.com>
84046
84047         * tests/test-getpass.c: New file.
84048
84049 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84050
84051         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84052         for GNU regex features.
84053
84054 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84055
84056         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84057         * lib/regex.h (regerror): Likewise.
84058
84059         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84060         requires this.  (The code never needed it.)
84061
84062         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84063         All uses of recently-renamed identifiers changed to use the new,
84064         POSIX-compliant names.  The code will build and run just fine
84065         without these changes, but it's better to eat our own dog food
84066         and use the standard-conforming names.
84067
84068         * lib/regex.h: Fix a multitude of POSIX name space violations.
84069         These changes have an effect only for programs that define
84070         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84071         do not change anything for programs compiled in the normal way.
84072         Also, there is no effect on the ABI.
84073
84074         (_REGEX_SOURCE): New macro.
84075         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84076         defined and _GNU_SOURCE is not; this fixes a name space violation.
84077
84078         Rename the following macros to obey POSIX requirements.
84079         The old names are still visible as macros if _REGEX_SOURCE is defined.
84080         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84081         RE_BACKSLASH_ESCAPE_IN_LISTS.
84082         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84083         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84084         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84085         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84086         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84087         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84088         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84089         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84090         (REG_INTERVALS): renamed from RE_INTERVALS.
84091         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84092         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84093         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84094         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84095         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84096         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84097         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84098         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84099         RE_UNMATCHED_RIGHT_PAREN_ORD.
84100         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84101         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84102         (REG_DEBUG): renamed from RE_DEBUG.
84103         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84104         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84105         unusual, since we can't clash with the POSIX REG_ICASE.
84106         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84107         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84108         (REG_NO_SUB): renamed from RE_NO_SUB.
84109         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84110         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84111         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84112         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84113         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84114         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84115         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84116         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84117         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84118         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84119         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84120         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84121         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84122         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84123         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84124         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84125         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84126         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84127         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84128         (REG_FIXED): Renamed from REGS_FIXED.
84129         (REG_NREGS): Renamed from RE_NREGS.
84130
84131         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84132         of other REG_* macros, since POSIX says the user is allowed to
84133         #undef these macros selectively.
84134
84135         (reg_errcode_t): Update comment stating what other tables need
84136         to be consistent.
84137
84138         Rename the following enum values to obey POSIX requirements.
84139         The old names are still visible as macros.
84140         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84141         is not defined, since GNU is supposed to be a superset of POSIX as
84142         much as possible, and since we want reg_errcode_t to be a signed
84143         type for implementation consistency.
84144         (_REG_NOERROR): Renamed from REG_NOERROR.
84145         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84146         (_REG_BADPAT): Renamed from REG_BADPAT.
84147         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84148         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84149         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84150         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84151         (_REG_EBRACK): Renamed from REG_EBRACK.
84152         (_REG_EPAREN): Renamed from REG_EPAREN.
84153         (_REG_EBRACE): Renamed from REG_EBRACE.
84154         (_REG_BADBR): Renamed from REG_BADBR.
84155         (_REG_ERANGE): Renamed from REG_ERANGE.
84156         (_REG_ESPACE): Renamed from REG_ESPACE.
84157         (_REG_BADRPT): Renamed from REG_BADRPT.
84158         (_REG_EEND): Renamed from REG_EEND.
84159         (_REG_ESIZE): Renamed from REG_ESIZE.
84160         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84161         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84162         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84163         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84164         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84165
84166         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84167         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84168         changed.  But support the old name if the new one is not defined
84169         and if _REGEX_SOURCE.
84170
84171         Change the following member names in struct re_pattern_buffer.
84172         The old names are still supported if !_REGEX_SOURCE.
84173         The new names are always supported, regardless of _REGEX_SOURCE.
84174         (re_buffer): Renamed from buffer.
84175         (re_allocated): Renamed from allocated.
84176         (re_used): Renamed from used.
84177         (re_syntax): Renamed from syntax.
84178         (re_fastmap): Renamed from fastmap.
84179         (re_translate): Renamed from translate.
84180         (re_can_be_null): Renamed from can_be_null.
84181         (re_regs_allocated): Renamed from regs_allocated.
84182         (re_fastmap_accurate): Renamed from fastmap_accurate.
84183         (re_no_sub): Renamed from no_sub.
84184         (re_not_bol): Renamed from not_bol.
84185         (re_not_eol): Renamed from not_eol.
84186         (re_newline_anchor): Renamed from newline_anchor.
84187
84188         Change the following member names in struct re_registers.
84189         The old names are still supported if !_REGEX_SOURCE.
84190         The new names are always supported, regardless of _REGEX_SOURCE.
84191         (rm_num_regs): Renamed from num_regs.
84192         (rm_start): Renamed from start.
84193         (rm_end): Renamed from end.
84194
84195         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84196         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84197         Prepend __ to parameter names.
84198
84199         Undo yesterday's changes.
84200
84201 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84202
84203         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84204         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84205         lib/regex.c.
84206
84207 2005-08-24  Jim Meyering  <jim@meyering.net>
84208
84209         Sync from coreutils.
84210         * m4/fcntl-safer.m4: New file.
84211
84212         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84213         and object files for this module.
84214
84215 2005-08-24  Jim Meyering  <jim@meyering.net>
84216
84217         Sync from coreutils.
84218         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84219
84220 2005-08-24  Jim Meyering  <jim@meyering.net>
84221
84222         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84223         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84224
84225 2005-08-24  Jim Meyering  <jim@meyering.net>
84226
84227         * modules/fcntl-safer: New module.
84228         * modules/fts (Depends-on): Add fcntl-safer.
84229         * MODULES.html.sh (File descriptor based Input/Output):
84230         Add fcntl-safer.
84231
84232 2005-08-24  Bruno Haible  <bruno@clisp.org>
84233
84234         Support for unit test modules.
84235         * modules/README: Mention tests modules.
84236         * modules/TEMPLATE-TESTS: New file.
84237         * gnulib-tool: New options --extract-tests-module, --with-tests and
84238         --tests-base (unused for the moment).
84239         (testsbase, inctests): New variables.
84240         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84241         (func_verify_module): Exclude TEMPLATE-TESTS.
84242         (func_verify_nontests_module, func_verify_tests_module): New functions.
84243         (func_get_dependencies): Add implicit dependency for tests modules.
84244         (func_get_tests_module): New function.
84245         (func_modules_transitive_closure): When --with-tests was specified,
84246         include the unit tests as well, unless explicitly avoided.
84247         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84248         (func_emit_tests_Makefile_am): New function.
84249         (func_create_testdir): When --with-tests was specified, emit a
84250         tests/ directory.
84251         * MODULES.html.sh (Future developments): Update.
84252
84253 2005-08-24  Bruno Haible  <bruno@clisp.org>
84254
84255         * modules/tls-tests: New file.
84256         * tests/test-tls.c: New file, from GNU gettext.
84257
84258 2005-08-24  Bruno Haible  <bruno@clisp.org>
84259
84260         * modules/lock-tests: New file.
84261         * tests/test-lock.c: New file, from GNU gettext.
84262
84263 2005-08-24  Bruno Haible  <bruno@clisp.org>
84264
84265         * lib/lock.h: Add multiple inclusion guard.
84266         * lib/tls.h: Add multiple inclusion guard.
84267
84268 2005-08-24  Bruno Haible  <bruno@clisp.org>
84269
84270         * gnulib-tool: Add support for the --aux-dir option to
84271         --create-testdir, --create-megatestdir, --test, --megatest.
84272         (func_create_testdir, func_create_megatestdir): Optionally emit a
84273         AC_CONFIG_AUX_DIR directive.
84274         (create-testdir, create-megatestdir, test, megatest): Provide a
84275         default value for $auxdir.
84276
84277 2005-08-24  Bruno Haible  <bruno@clisp.org>
84278
84279         * gnulib-tool (import): Use compound statement instead of subshell
84280         where possible.
84281
84282 2005-08-24  Bruno Haible  <bruno@clisp.org>
84283
84284         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84285
84286 2005-08-24  Bruno Haible  <bruno@clisp.org>
84287
84288         * gnulib-tool (func_version): Update.
84289
84290 2005-08-24  Bruno Haible  <bruno@clisp.org>
84291
84292         * gnulib-tool (func_import, func_create_testdir,
84293         func_create_megatestdir): Quote all autoconf macro arguments.
84294
84295 2005-08-24  Bruno Haible  <bruno@clisp.org>
84296
84297         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84298         option --force, because --force causes the aclocal.m4 of each
84299         subdirectory to be newer than the corresponding config.h.in.
84300
84301 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84302
84303         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84304         All contents moved to gl_REGEX.
84305         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84306         assume that it does.
84307
84308 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84309
84310         * lib/regex.h (REG_NOSYS)
84311         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84312         Define, since POSIX requires it as of 2001.
84313         (_REG_ENOSYS)
84314         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84315         New private symbol, used to keep the enum signed in all cases.
84316         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84317         Youngman in
84318         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84319
84320         * lib/regex_internal.c (re_string_skip_chars, register_state):
84321         (calc_state_hash):
84322         Remove forward decls; no longer needed now that we use prototypes.
84323         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84324         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84325         (clean_state_log_if_needed): Likewise.
84326
84327 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84328
84329         * config/srclist.txt: Add glibc bugs 1231-1233.
84330
84331 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84332
84333         Fix problems reported by Sam Steingold in
84334         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84335         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84336         assumed that reg_errcode_t is a signed type, which is not
84337         necessarily true if _XOPEN_SOURCE is not defined.
84338         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84339         since some compilers warn about it otherwise.
84340
84341 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84342
84343         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84344         (init_word_char, create_initial_state, duplicate_node_closure):
84345         (fetch_token, peek_token_bracket, build_range_exp):
84346         (build_collating_symbol): Remove forward decls; no longer needed
84347         now that we use prototypes.
84348
84349         * lib/regcomp.c:
84350         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84351         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84352         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84353         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84354         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84355         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84356         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84357         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84358         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84359         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84360         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84361         (build_charclass, build_charclass_op, fetch_number, create_tree):
84362         (create_token_tree, mark_opt_subexp, duplicate_tree):
84363         Use prototypes rather than old-style definitions.
84364
84365         * lib/regex_internal.c:
84366         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84367         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84368         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84369         (re_string_reconstruct, re_string_peek_byte_case):
84370         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84371         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84372         (re_node_set_init_copy, re_node_set_add_intersect):
84373         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84374         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84375         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84376         (re_acquire_state, re_acquire_state_context, register_state):
84377         (create_ci_newstate, create_cd_newstate, free_state):
84378         Likewise.
84379         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84380         re_search_2):
84381         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84382         (re_search_internal, prune_impossible_nodes):
84383         (acquire_init_state_context, check_matching, static):
84384         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84385         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84386         (update_regs, sift_states_backward, build_sifted_states):
84387         (clean_state_log_if_needed, merge_state_array):
84388         (update_cur_sifted_state, add_epsilon_src_nodes):
84389         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84390         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84391         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84392         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84393         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84394         (check_arrival, check_arrival_add_next_nodes):
84395         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84396         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84397         (check_node_accept_bytes, check_node_accept, extend_buffers):
84398         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84399         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84400         (sift_ctx_init):
84401         Likewise.
84402
84403         * lib/regex_internal.h:
84404         (re_string_allocate, re_string_construct, re_string_reconstruct):
84405         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84406         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84407         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84408         (re_string_context_at, re_string_peek_byte_case):
84409         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84410         is defined, since we now use prototypes always.
84411
84412         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84413         C89 or better.  All uses removed.
84414
84415 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84416
84417         * config/srclist.txt: Add glibc bugs 1220-1227.
84418
84419 2005-08-20  Jim Meyering  <jim@meyering.net>
84420
84421         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84422         of unused local, dfa.
84423
84424 2005-08-20  Bruno Haible  <bruno@clisp.org>
84425
84426         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84427
84428 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84429
84430         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84431         (re_node_set_insert_last, re_dfa_add_node):
84432         Rename local variables to avoid GCC shadowing warnings.
84433
84434 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84435
84436         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84437         [defined lint]: Suppress bogus uninitialized-variable warnings.
84438
84439         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84440         and let the caller return REG_ESPACE if out of space.  This
84441         removes an uninitialied-variable warning with GCC 4.0.1, and also
84442         avoids taking the address of a local variable.  All callers
84443         changed.
84444
84445 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84446
84447         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84448         $LIBCSRC/posix/regexec.c.
84449         Add glibc bug 1217 for regcomp.c.
84450
84451 2005-08-19  Jim Meyering  <jim@meyering.net>
84452
84453         * lib/regexec.c (proceed_next_node): Redo local variables to
84454         avoid GCC shadowing warnings.
84455
84456 2005-08-18  Bruno Haible  <bruno@clisp.org>
84457
84458         * lib/strstr.c (strstr): Fix return value in multibyte case.
84459         * lib/strcasestr.c (strcasestr): Likewise.
84460
84461 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84462
84463         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84464
84465 2005-08-17  Jim Meyering  <jim@meyering.net>
84466
84467         Make the %s format (seconds since the epoch) work for a negative
84468         number and when used with a zero-padded field width, e.g. %015s.
84469
84470         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84471         label so that it precedes the code to set `digits'.  Otherwise,
84472         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84473         print `00-22'.  Now, it prints `-0022', as it should.
84474
84475 2005-08-17  Bruno Haible  <bruno@clisp.org>
84476
84477         * modules/strstr (Files): Add m4/mbrtowc.m4.
84478         (Depends-on): Add mbuiter.
84479
84480 2005-08-17  Bruno Haible  <bruno@clisp.org>
84481
84482         * modules/strcasestr: New file.
84483         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84484         strcasestr.
84485
84486 2005-08-17  Bruno Haible  <bruno@clisp.org>
84487
84488         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84489
84490 2005-08-17  Bruno Haible  <bruno@clisp.org>
84491
84492         * modules/mbuiter: New file.
84493         * MODULES.html.sh (Extended multibyte and wide character utilities):
84494         Add mbuiter.
84495
84496 2005-08-17  Bruno Haible  <bruno@clisp.org>
84497
84498         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84499         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84500
84501 2005-08-17  Bruno Haible  <bruno@clisp.org>
84502
84503         * m4/strcasestr.m4: New file.
84504
84505 2005-08-17  Bruno Haible  <bruno@clisp.org>
84506
84507         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84508         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84509
84510 2005-08-17  Bruno Haible  <bruno@clisp.org>
84511
84512         * lib/strcasestr.h: New file.
84513         * lib/strcasestr.c: New file.
84514
84515 2005-08-17  Bruno Haible  <bruno@clisp.org>
84516
84517         * lib/strcasecmp.c: Use mbuiter.h.
84518
84519 2005-08-17  Bruno Haible  <bruno@clisp.org>
84520
84521         * lib/mbuiter.h: New file.
84522
84523 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84524
84525         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84526         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84527         and gl_GETOPT are both invoked via different paths (as happens
84528         with GNU tar CVS because it uses both argp and getopt), the former
84529         wins.
84530
84531 2005-08-16  Bruno Haible  <bruno@clisp.org>
84532
84533         * modules/tls: New file.
84534         * MODULES.html.sh (Multithreading): Add tls.
84535
84536 2005-08-16  Bruno Haible  <bruno@clisp.org>
84537
84538         * modules/strnlen1: New file.
84539         * MODULES.html.sh (String handling): Add strnlen1.
84540
84541 2005-08-16  Bruno Haible  <bruno@clisp.org>
84542
84543         * modules/strcase (Files): Add m4/mbrtowc.m4.
84544         (Depends-on): Add strnlen1, mbchar.
84545
84546 2005-08-16  Bruno Haible  <bruno@clisp.org>
84547
84548         * modules/mbiter: New file.
84549         * MODULES.html.sh (Extended multibyte and wide character utilities):
84550         Add mbiter.
84551
84552 2005-08-16  Bruno Haible  <bruno@clisp.org>
84553
84554         * modules/mbfile: New file.
84555         * MODULES.html.sh (Extended multibyte and wide character utilities):
84556         Add mbfile.
84557
84558 2005-08-16  Bruno Haible  <bruno@clisp.org>
84559
84560         * modules/mbchar: New file.
84561         * MODULES.html.sh (Extended multibyte and wide character utilities):
84562         New section.
84563
84564 2005-08-16  Bruno Haible  <bruno@clisp.org>
84565
84566         * m4/tls.m4: New file, from GNU gettext.
84567
84568 2005-08-16  Bruno Haible  <bruno@clisp.org>
84569
84570         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84571         always.
84572         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84573
84574 2005-08-16  Bruno Haible  <bruno@clisp.org>
84575
84576         * m4/mbiter.m4: New file.
84577
84578 2005-08-16  Bruno Haible  <bruno@clisp.org>
84579
84580         * m4/mbfile.m4: New file.
84581
84582 2005-08-16  Bruno Haible  <bruno@clisp.org>
84583
84584         * m4/mbchar.m4: New file.
84585
84586 2005-08-16  Bruno Haible  <bruno@clisp.org>
84587
84588         * lib/tls.h: New file, from GNU gettext.
84589         * lib/tls.c: New file, from GNU gettext.
84590
84591 2005-08-16  Bruno Haible  <bruno@clisp.org>
84592
84593         * lib/strnlen1.h: New file.
84594         * lib/strnlen1.c: New file.
84595
84596 2005-08-16  Bruno Haible  <bruno@clisp.org>
84597
84598         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84599         (mbi_init): Update.
84600         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84601         NUL byte, not after it.
84602
84603 2005-08-16  Bruno Haible  <bruno@clisp.org>
84604
84605         * lib/strcase.h (strcasecmp): Add note in comments.
84606         * lib/strncasecmp.c: Use code from strcasecmp.c.
84607         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
84608         (strcasecmp): Work correctly in multibyte locales.
84609
84610 2005-08-16  Bruno Haible  <bruno@clisp.org>
84611
84612         * lib/mbiter.h: New file.
84613
84614 2005-08-16  Bruno Haible  <bruno@clisp.org>
84615
84616         * lib/mbfile.h: New file.
84617
84618 2005-08-16  Bruno Haible  <bruno@clisp.org>
84619
84620         * lib/mbchar.h: New file.
84621         * lib/mbchar.c: New file.
84622
84623 2005-08-16  Bruno Haible  <bruno@clisp.org>
84624
84625         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
84626         the valid ones. Makes the comparison operations transitive:
84627         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
84628         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
84629
84630 2005-08-15  Simon Josefsson  <jas@extundo.com>
84631
84632         * modules/ssize_t (License): Change to 'unlimited'.
84633
84634         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
84635
84636 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84637
84638         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
84639         Add comments for each pending glibc patch.
84640
84641 2005-08-15  Bruno Haible  <bruno@clisp.org>
84642
84643         * lib/regex.h (__restrict_arr): Don't define to __restrict if
84644         __cplusplus is defined.
84645
84646 2005-08-14  Jim Meyering  <jim@meyering.net>
84647
84648         Sync from coreutils.
84649
84650         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
84651         Use the hash-table-based cycle-detection code not just when
84652         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
84653         Reported by James Youngman in
84654         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
84655         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
84656         FTS_TIGHT_CYCLE_CHECK.
84657         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
84658         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
84659         once again.
84660         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
84661         * lib/fts.c (fd_safer): Remove decl.
84662         Include fcntl--.h rather than unistd-safer.h
84663         (fts_safe_changedir): Don't call fd_safer; no longer needed
84664         now that we include fcntl--.h.
84665
84666 2005-08-12  Simon Josefsson  <jas@extundo.com>
84667
84668         * modules/getndelim2: Use ssize_t module.
84669         * modules/getnline: Likewise.
84670         * modules/safe-read: Likewise.
84671         * modules/xreadlink: Likewise.
84672
84673         * modules/ssize_t: New file.
84674
84675 2005-08-12  Simon Josefsson  <jas@extundo.com>
84676
84677         * m4/readline.m4: Look for termcap, curses or ncurses if required.
84678
84679 2005-08-12  Simon Josefsson  <jas@extundo.com>
84680
84681         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84682         ssize_t.
84683
84684 2005-08-12  Simon Josefsson  <jas@extundo.com>
84685
84686         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
84687         readline, getdelim and check_version.
84688         (Support for systems lacking ISO C 99: Sizes of integer types):
84689         Add size_max.
84690
84691 2005-08-12  Bruno Haible  <bruno@clisp.org>
84692
84693         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
84694
84695 2005-08-11  Simon Josefsson  <jas@extundo.com>
84696
84697         * modules/readline: New file.
84698
84699         * modules/strnlen (Files): Add strnlen.h.
84700
84701 2005-08-11  Simon Josefsson  <jas@extundo.com>
84702
84703         * m4/readline.m4: New file.
84704
84705 2005-08-11  Simon Josefsson  <jas@extundo.com>
84706
84707         * lib/readline.h, readline.c: New file.
84708
84709 2005-08-11  Simon Josefsson  <jas@extundo.com>
84710
84711         * doc/gnulib.texi (Initial import, Finishing touches): Mention
84712         gl_AVOID.
84713
84714 2005-08-11  Bruno Haible  <bruno@clisp.org>
84715
84716         * lib/strnlen.h (strnlen): Change parameter name to match comment.
84717
84718 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
84719
84720         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
84721
84722 2005-08-10  Simon Josefsson  <jas@extundo.com>
84723
84724         * tests/test-iconvme.c: New file.
84725
84726 2005-08-10  Simon Josefsson  <jas@extundo.com>
84727
84728         * m4/strnlen.m4: New file.
84729
84730         * m4/strndup.m4: Don't check for strnlen declaration, done in
84731         strnlen.m4.
84732
84733 2005-08-10  Simon Josefsson  <jas@extundo.com>
84734
84735         * lib/strndup.c: Use strnlen.h.
84736
84737         * lib/strnlen.h: New file.
84738
84739 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84740
84741         * README: Typos.
84742
84743 2005-08-02  Simon Josefsson  <jas@extundo.com>
84744
84745         * modules/readline: New file.
84746
84747 2005-08-02  Simon Josefsson  <jas@extundo.com>
84748
84749         * modules/getdelim: New file.
84750
84751         * modules/getline: Rewrite, don't use getndelim2.
84752
84753 2005-08-02  Simon Josefsson  <jas@extundo.com>
84754
84755         * m4/getline.m4: Separate out getdelim stuff into separate module.
84756
84757         * m4/getdelim.m4: New file.
84758
84759 2005-08-02  Simon Josefsson  <jas@extundo.com>
84760
84761         * lib/getline.h, getline.c: Rewrite.
84762
84763         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
84764
84765 2005-07-31  Bruno Haible  <bruno@clisp.org>
84766
84767         * lib/lock.h (gl_lock_initializer): New macro.
84768         (gl_lock_define_initialized): Use it.
84769         (gl_rwlock_initializer): New macro.
84770         (gl_rwlock_define_initialized): Use it.
84771         (gl_recursive_lock_initializer): New macro.
84772         (gl_recursive_lock_define_initialized): Use it.
84773
84774 2005-07-30  Karl Berry  <karl@gnu.org>
84775
84776         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
84777         Report from Ben Pfaff, regarding getopt.
84778
84779 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
84780
84781         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
84782         normal way.
84783         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
84784         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
84785         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
84786         (gl_GETOPT): Use the new macros.  Most of the implementation
84787         is moved to the new macros.  This is for programs like Emacs
84788         that don't want all the functionality of gl_GETOPT.
84789
84790 2005-07-26  Bruno Haible  <bruno@clisp.org>
84791
84792         * m4/lock.m4: Update from GNU gettext.
84793
84794 2005-07-26  Bruno Haible  <bruno@clisp.org>
84795
84796         * lib/lock.h: Update from GNU gettext.
84797         * lib/lock.c: Update from GNU gettext.
84798
84799 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
84800
84801         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
84802         obsolescent AC_TRY_RUN.  Include the default includes files, for
84803         'exit'.
84804
84805 2005-07-24  Bruno Haible  <bruno@clisp.org>
84806
84807         * modules/visibility: New file.
84808         * MODULES.html.sh (Misc): Add visibility.
84809
84810 2005-07-24  Bruno Haible  <bruno@clisp.org>
84811
84812         * m4/visibility.m4: New file.
84813
84814 2005-07-24  Bruno Haible  <bruno@clisp.org>
84815
84816         * doc/visibility.texi: New file.
84817
84818 2005-07-22  Bruno Haible  <bruno@clisp.org>
84819
84820         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
84821         $(ALLOCA_H), redundant through BUILT_SOURCES.
84822         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
84823         redundant through BUILT_SOURCES.
84824         * modules/byteswap (Makefile.am): Remove explicit dependency on
84825         $(BYTESWAP_H), redundant through BUILT_SOURCES.
84826         * modules/fnmatch (Makefile.am): Remove explicit dependency on
84827         $(FNMATCH_H), redundant through BUILT_SOURCES.
84828         * modules/getopt (Makefile.am): Remove explicit dependency on
84829         $(GETOPT_H), redundant through BUILT_SOURCES.
84830         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
84831         redundant through BUILT_SOURCES.
84832         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
84833         redundant through BUILT_SOURCES.
84834         * modules/stdbool (Makefile.am): Remove explicit dependency on
84835         $(STDBOOL_H), redundant through BUILT_SOURCES.
84836         * modules/stdint (Makefile.am): Remove explicit dependency on
84837         $(STDINT_H), redundant through BUILT_SOURCES.
84838         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
84839         Remove explicit dependency on $(SYSEXITS_H).
84840         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
84841
84842 2005-07-18  Simon Josefsson  <jas@extundo.com>
84843
84844         * lib/check-version.c (check_version): Accept identical versions too.
84845
84846 2005-07-18  Bruno Haible  <bruno@clisp.org>
84847
84848         * modules/lock: New file.
84849         * MODULES.html.sh (Multithreading): New section.
84850
84851 2005-07-18  Bruno Haible  <bruno@clisp.org>
84852
84853         * m4/lock.m4: New file, from GNU gettext.
84854
84855 2005-07-18  Bruno Haible  <bruno@clisp.org>
84856
84857         * lib/lock.h: New file, from GNU gettext.
84858         * lib/lock.c: New file, from GNU gettext.
84859
84860 2005-07-18  Bruno Haible  <bruno@clisp.org>
84861
84862         * lib/lock.h (gl_once_t): New type.
84863         (gl_once_define, gl_once): New macros.
84864         * lib/lock.c (fresh_once): New variable.
84865         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
84866         functions.
84867
84868 2005-07-16  Simon Josefsson  <jas@extundo.com>
84869
84870         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
84871         workaround, suggested by Bruno.
84872
84873 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84874
84875         * modules/xalloc (Depends-on): Add xalloc-die.
84876         * modules/xvasprintf (Depends-on): Add xalloc-die.
84877
84878 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84879
84880         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
84881         with a minor change.
84882
84883 2005-07-15  Bruno Haible  <bruno@clisp.org>
84884
84885         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
84886         When using lib/poll.c, define poll as rpl_poll.
84887
84888 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
84889
84890         * modules/argp (Depends-on): Remove unlocked-io.
84891
84892 2005-07-14  Derek Price  <derek@ximbiot.com>
84893
84894         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
84895         for glob symlink bug.
84896
84897 2005-07-14  Bruno Haible  <bruno@clisp.org>
84898
84899         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
84900         Instead, test for *_unlocked function declarations directly.
84901
84902 2005-07-11  Simon Josefsson  <jas@extundo.com>
84903
84904         * modules/size_max: New file.
84905
84906         * modules/xsize: Depend on size_max module for size_max.m4.
84907
84908 2005-07-11  Simon Josefsson  <jas@extundo.com>
84909
84910         * lib/size_max.h: New file.
84911
84912 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
84913
84914         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
84915         copyright symbol and the year.
84916         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
84917         (version_etc_va): Use parameterized copyright notice.
84918         Reword to conform to the current GNU coding standards.
84919
84920 2005-07-11  Karl Berry  <karl@gnu.org>
84921
84922         * doc/gnulib.texi (Quoting): new node.
84923         (Initial import): more info, from Patrice.
84924
84925 2005-07-11  Bruno Haible  <bruno@clisp.org>
84926
84927         * gnulib-tool (func_usage): Document option --avoid.
84928         (Command line options): Handle --avoid.
84929         (func_acceptable): New function.
84930         (func_modules_transitive_closure): Use it.
84931
84932 2005-07-11  Bruno Haible  <bruno@clisp.org>
84933
84934         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
84935         Reported by Jim Meyering.
84936
84937 2005-07-10  Bruno Haible  <bruno@clisp.org>
84938
84939         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
84940         Needed when size_t is smaller than 'unsigned int'.
84941         Reported by Paul Eggert.
84942
84943 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84944
84945         * modules/argp (Depends-on): Add unlocked-io
84946
84947 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84948
84949         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
84950         block of defines.
84951
84952 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
84953
84954         * config/srclist.txt: Comment out regcomp.c, since we have a porting
84955         fix now.
84956
84957 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
84958         and Paul Eggert  <eggert@cs.ucla.edu>
84959
84960         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
84961         in wint_t, not wchar_t.  Remove now-unnecessary cast.
84962
84963 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84964
84965         * modules/regex (Files): Add lib/regex_internal.c,
84966         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
84967         (Depends-on): Add extensions.
84968         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
84969
84970 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84971
84972         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
84973         pathconf.
84974         * m4/same.m4 (gl_SAME): Likewise.
84975         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
84976
84977         * m4/regex.m4: Adjust to new libc regex implementation.
84978         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
84979         all the .c and .h parts of (the new) regex.
84980         Quote the m4 stuff better.
84981         Check for RE_ICASE bug of old gnulib.
84982         Check for REG_STARTEND of recent libc.
84983         Rename local variables from jm_* to gl_*.
84984         Quote operand of "test -f".
84985         Say "recent enough" version of libc, not "version 2".
84986         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
84987         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
84988         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
84989         Remove check for btowc, isascii.
84990         Require AM_LANGINFO_CODESET.
84991
84992 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84993
84994         * lib/regex.c, regex.h: Sync from libc.
84995         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
84996         * lib/regexec.c:
84997         New files, synced from libc, except that regex_internal.h
84998         currently has a small porting fix.
84999
85000 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85001
85002         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85003         regex_internal.c, regexec.c.
85004         Add regex_internal.h too, but as a comment, since the libc version
85005         is currently broken in gnulib mode.
85006
85007 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85008
85009         Support programs like Emacs that use gnulib but not gettext.
85010         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85011         * modules/gettext-h: New file.
85012         * modules/gettext (Files): Remove lib/gettext.h.
85013         (Depends-on): Add gettext-h.
85014         (Makefile.am): Remove lib_SOURCES.
85015         * modules/argmatch, modules/c-stack, modules/closeout:
85016         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85017         * modules/execute, modules/file-type, modules/getaddrinfo:
85018         * modules/getopt, modules/human, modules/javacomp:
85019         * modules/javaexec, modules/mkdir-p, modules/obstack:
85020         * modules/openat, modules/pagealign_alloc, modules/pipe:
85021         * modules/quotearg, modules/regex, modules/rpmatch:
85022         * modules/unicodeio, modules/userspec, modules/version-etc:
85023         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85024         * modules/xsetenv:
85025         Depend on gettext-h, not gettext.
85026
85027 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85028
85029         * gnulib-tool (func_import): Add support for 'public domain' license.
85030         * modules/alloca, modules/atexit, modules/memmove:
85031         Now public domain, not GPL.
85032         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85033         * modules/realloc, modules/strerror, modules/strtod:
85034         Now LGPL, not GPL.
85035
85036 2005-07-05  Bruno Haible  <bruno@clisp.org>
85037
85038         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85039         autoconf CVS. Needed for mingw.
85040
85041 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85042
85043         Remove the dependency of the strftime module on the tzset module.
85044         * modules/strftime (Depends-on): Remove dependency on tzset.
85045
85046 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85047
85048         Remove the dependency of the strftime module on the tzset module.
85049         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85050         gl_FUNC_TZSET_CLOBBER.
85051
85052 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85053
85054         Remove the dependency of the strftime module on the tzset module.
85055         * lib/strftime.c (my_strftime)
85056         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85057         Copy the input structure, to work around some of the bug with
85058         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85059         Solaris releases, you should also use the tzset module, but we won't
85060         require it as a dependency any more since we don't want LGPLed code
85061         to depend on GPLed code.
85062
85063 2005-07-02  Jim Meyering  <jim@meyering.net>
85064
85065         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85066         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85067         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85068         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85069
85070 2005-07-02  Jim Meyering  <jim@meyering.net>
85071
85072         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85073
85074 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85075
85076         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85077         declares only 'struct timespec;' (!).
85078
85079 2005-07-01  Jim Meyering  <jim@meyering.net>
85080
85081         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85082         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85083         * lib/save-cwd.c, tempname.c:
85084         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85085         and don't include <sys/file.h>).
85086
85087 2005-06-29  Jim Meyering  <jim@meyering.net>
85088
85089         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85090         type name.  Use the variable name instead.
85091         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85092         Likewise.
85093
85094 2005-06-28  Simon Josefsson  <jas@extundo.com>
85095
85096         * modules/check-version (Files): Add check-version.m4.
85097
85098 2005-06-28  Simon Josefsson  <jas@extundo.com>
85099
85100         * m4/check-version.m4: New file, suggested by Jim Meyering
85101         <jim@meyering.net>.
85102
85103 2005-06-28  Simon Josefsson  <jas@extundo.com>
85104
85105         * lib/check-version.h, lib/check-version.c: New files.
85106
85107 2005-06-28  Simon Josefsson  <jas@extundo.com>
85108
85109         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85110         collision with global variable.  Better indentation.  Don't
85111         increment buffer pointer beyond buffer end.  Based on comments
85112         from Paul Eggert <eggert@cs.ucla.edu>.
85113
85114         * lib/base64.h: Indent.
85115
85116 2005-06-28  Simon Josefsson  <jas@extundo.com>
85117
85118         * doc/gnulib.texi (Library version handling): New section.
85119
85120 2005-06-28  Jim Meyering  <jim@meyering.net>
85121
85122         * check-module (find_included_lib_files): Hard-code another
85123         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85124         but modules/fts-lgpl (correctly) does not list those files.
85125
85126         * modules/canonicalize (Files): Add lib/pathmax.h.
85127
85128 2005-06-25  Simon Josefsson  <jas@extundo.com>
85129
85130         * modules/check-version: New file.
85131
85132 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85133
85134         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85135         initializer of struct addrinfo, as an indication that we don't
85136         care how many members the structure has.
85137
85138 2005-06-24  Derek Price  <derek@ximbiot.com>
85139         and Bruno Haible  <bruno@clisp.org>
85140
85141         Remove stat module & update lstat.
85142         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85143         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85144         * m4/stat.m4: Remove this file.
85145
85146 2005-06-24  Derek Price  <derek@ximbiot.com>
85147         and Bruno Haible  <bruno@clisp.org>
85148
85149         Remove stat module & update lstat.
85150         * lib/stat.c: Remove this file...
85151         (slash_aware_lstat): ...moving this content and its support...
85152         * lib/lstat.c (rpl_lstat): ...into here.
85153         * lib/lstat.h: New file.
85154
85155 2005-06-24  Derek Price  <derek@ximbiot.com>
85156         and Bruno Haible  <bruno@clisp.org>
85157
85158         Remove stat module & update lstat.
85159         * config/srclist.txt (libc sources): Remove stat.
85160
85161 2005-06-24  Derek Price  <derek@ximbiot.com>
85162         and Bruno Haible  <bruno@clisp.org>
85163
85164         Remove stat module & update lstat.
85165         * MODULES.html.sh (stat): Remove.
85166         * MODULES.html: Regenerated.
85167         * modules/lstat (Description): Correct function name.
85168         (Files): Add "lstat.h".
85169         (Depends-on): Remove stat, add xalloc, stat-macros.
85170         * modules/stat: Remove this file.
85171         (Include): Add "lstat.h", remove <sys/stat.h>.
85172
85173 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85174
85175         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85176         (ranged_convert): Don't save conversion in a temporary struct.
85177         This causes a warning with GCC 4.0.0, and anyway in the typical
85178         case it's not worth the extra 100 bytes or so of code.
85179         (ranged_convert, __mktime_internal): When calling a function via a
85180         pointer P, use P () rather than (*P) (), as we now assume C89 or
85181         better.
85182
85183 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85184
85185         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85186         "who -r" failed to give output.  Problem reported by Tim Waugh.
85187
85188         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85189         (xcalloc): Use it to avoid needless tests.
85190         Problem reported by Jim Meyering.
85191
85192 2005-06-20  Derek Price  <derek@ximbiot.com>
85193
85194         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85195         unnecessary for Autoconfs > 2.59c.
85196
85197 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85198
85199         * lib/argp.h (__option_is_short): Check upper limit of
85200         __key. Isprint() requires its argument to have the value
85201         of an unsigned char or EOF.
85202
85203 2005-06-16  Jim Meyering  <jim@meyering.net>
85204
85205         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85206         when either N or S is zero.
85207
85208 2005-06-16  Derek Price  <derek@ximbiot.com>
85209
85210         * m4/bison.m4: Declare YACC & YFLAGS precious.
85211
85212 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85213
85214         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85215         multibyte string or pattern, fall back on unibyte matching.
85216         Problem reported by James Youngman.
85217
85218 2005-06-08  Bruno Haible  <bruno@clisp.org>
85219
85220         * modules/csharpcomp: New file.
85221         * MODULES.html.sh (C#): Add csharpcomp.
85222
85223 2005-06-08  Bruno Haible  <bruno@clisp.org>
85224
85225         * m4/csharpcomp.m4: New file, from GNU gettext.
85226
85227 2005-06-08  Bruno Haible  <bruno@clisp.org>
85228
85229         * lib/csharpcomp.h: New file, from GNU gettext.
85230         * lib/csharpcomp.c: New file, from GNU gettext.
85231         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85232
85233 2005-06-08  Bruno Haible  <bruno@clisp.org>
85234
85235         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85236         warning on mingw.
85237
85238 2005-06-07  Derek Price  <derek@ximbiot.com>
85239
85240         Sync from CVS.
85241         * lib/glob_.h: Indent nested #ifdef.
85242
85243 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85244
85245         Sync from coreutils.
85246         Use "file name" when talking about file names, instead of "filename"
85247         or "path", as per the GNU coding standards.
85248         * lib/mkdir-p.c: Renamed from makepath.c.
85249         (make_dir_parents): Renamed from make_path.  All callers changed.
85250         * lib/mkdir-p.h: Likewise.  All includers changed.
85251         * lib/filenamecat.c: Renamed from path-concat.c.
85252         (file_name_concat): Renamed from path_concat.  All callers changed.
85253         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85254         * lib/filenamecat.h: Likewise.  All includers changed.
85255         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85256         in comments or local variable names.
85257         * lib/basename.c: Likewise.
85258         * lib/canonicalize.c, canonicalize.h: Likewise.
85259         * lib/dirname.c, dirname.h: Likewise.
85260         * lib/euidaccess.c: Likewise.
85261         * lib/exclude.c: Likewise
85262         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85263         * lib/fsusage.c, fsuage.h: Likewise.
85264         * lib/fts.c, fts_.h: Likewise.
85265         * lib/getcwd.c: Likewise.
85266         * lib/getloadavg.c: Likewise.
85267         * lib/mkstemp.c: Likewise.
85268         * lib/mountlist.c, mountlist.h: Likewise.
85269         * lib/openat.c, openat.h: Likewise.
85270         * lib/readlink-stub.c: Likewise.
85271         * lib/readutmp.c, readutmp.h: Likewise.
85272         * lib/rename.c: Likewise.
85273         * lib/rmdir.c: Likewise.
85274         * lib/same.c: Likewise.
85275         * lib/savedir.c: Likewise.
85276         * lib/stripslash.c: Likewise.
85277         * lib/tempname.c: Likewise.
85278         * lib/xreadlink.c: Likewise.
85279         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85280         All uses changed.
85281         * lib/exclude.h: Likewise.
85282
85283         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85284         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85285         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85286         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85287         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85288         files have been getting away with it for years (MORE/BSD 4.3
85289         is extinct now).
85290         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85291         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85292
85293         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85294         Define to 256, not 255, as per modern POSIX.
85295
85296 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85297
85298         Sync from coreutils.
85299         Use "file name" when talking about file names, instead of "filename"
85300         or "path", as per the GNU coding standards.
85301         * MODULES.html.sh: mkdir-p renamed from makepath.
85302         filenamecat renamed from path-concat.
85303         * modules/filenamecat: Renamed from modules/path-concat.
85304         (Files): filenamecat.h and filenamecat.c renamed from
85305         path-concat.h and path-concat.c.
85306         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85307         (Include): filenamecat.h, not path-concat.h.
85308         * modules/mkdir-p: Renamed from modules/makepath.
85309         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85310         makepath.c.
85311         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85312         (Include): mkdir-p.h, not makepath.h.
85313
85314 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85315
85316         Sync from coreutils.
85317         * m4/mkdir-p.m4: Renamed from makepath.m4.
85318         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85319         Rename files from makepath.c to mkdir-p.c, and from
85320         makepath.h to mkdir-p.h.
85321         * m4/filenamecat.m4: Renamed from path-concat.m4.
85322         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85323         Rename files from path-concat.c to filenamecat.c,
85324         and from path-concat.h to filenamecat.h.
85325         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85326         "file name" in local variables or comments.
85327         * m4/rename.m4: Likewise.
85328
85329 2005-06-01  Bruno Haible  <bruno@clisp.org>
85330
85331         * modules/csharpexec: New file.
85332         * MODULES.html.sh (C#): New section.
85333
85334 2005-06-01  Bruno Haible  <bruno@clisp.org>
85335
85336         * m4/csharp.m4: New file, from GNU gettext.
85337         * m4/csharpexec.m4: New file, from GNU gettext.
85338
85339 2005-06-01  Bruno Haible  <bruno@clisp.org>
85340
85341         * lib/csharpexec.h: New file, from GNU gettext.
85342         * lib/csharpexec.c: New file, from GNU gettext.
85343         * lib/csharpexec.sh.in: New file, from GNU gettext.
85344
85345 2005-05-31  Derek Price  <derek@ximbiot.com>
85346             Paul Eggert  <eggert@cs.ucla.edu>
85347
85348         Sync from cvs.
85349         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85350
85351 2005-05-31  Derek Price  <derek@ximbiot.com>
85352             Paul Eggert  <eggert@cs.ucla.edu>
85353
85354         Sync from cvs.
85355         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85356
85357 2005-05-29  Derek Price  <derek@ximbiot.com>
85358
85359         * config/srclist.txt (glob_.h, glob.c): Add these files.
85360
85361 2005-05-29  Derek Price  <derek@ximbiot.com>
85362
85363         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85364         * modules/glob: New file.
85365         * modules/getlogin_r: Add link to POSIX spec in description.
85366
85367 2005-05-29  Derek Price  <derek@ximbiot.com>
85368             Paul Eggert  <eggert@cs.ucla.edu>
85369
85370         * m4/glob.m4: New file.
85371
85372 2005-05-29  Derek Price  <derek@ximbiot.com>
85373             Paul Eggert  <eggert@cs.ucla.edu>
85374
85375         * lib/glob_.h, lib/glob.c: New files.
85376
85377 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85378
85379         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85380         * modules/fts-lgpl (Depends-on): Remove gettext.
85381
85382 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85383
85384         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85385         and don't require gt_INTTYPES_PRI.
85386
85387 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85388
85389         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85390
85391         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85392         the configuration hassle isn't worth it.
85393         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85394         (LONGEST_MODIFIER, PRIuMAX): Remove.
85395
85396 2005-05-27  Bruno Haible  <bruno@clisp.org>
85397
85398         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85399
85400 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85401
85402         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85403         _POSIX_PTHREAD_SEMANTICS for Solaris.
85404
85405 2005-05-25  Derek Price  <derek@ximbiot.com>
85406
85407         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85408
85409 2005-05-25  Derek Price  <derek@ximbiot.com>
85410             Paul Eggert  <eggert@cs.ucla.edu>
85411
85412         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85413         * lib/getlogin_r.c, getlogin_r.h: New files.
85414
85415 2005-05-25  Bruno Haible  <bruno@clisp.org>
85416             Derek Price  <derek@ximbiot.com>
85417
85418         * lib/getlogin_r.h: Simplify API documentation.
85419
85420 2005-05-23  Derek Price  <derek@ximbiot.com>
85421
85422         * modules/minmax (Files): Add m4/minmax.m4.
85423         (configure.ac): Add gl_MINMAX.
85424
85425 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85426
85427         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85428         so that unistd-safer.h (GPL'ed code) need not be included.
85429
85430 2005-05-22  Bruno Haible  <bruno@clisp.org>
85431
85432         * m4/minmax.m4: New file.
85433         Based on a patch by Derek Price <derek@ximbiot.com>.
85434
85435 2005-05-22  Bruno Haible  <bruno@clisp.org>
85436
85437         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85438         (INT64_MIN): Fix definition.
85439         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85440
85441         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85442         NEED_SIGNED_INT_TYPES.
85443
85444         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85445         HAVE_SYSTEM_INTTYPES.
85446
85447 2005-05-22  Bruno Haible  <bruno@clisp.org>
85448
85449         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85450         Also include <sys/param.h> if it defines MIN, MAX.
85451         Based on a patch by Derek Price <derek@ximbiot.com>.
85452
85453 2005-05-21  Jim Meyering  <jim@meyering.net>
85454
85455         * modules/fts (Files): Add m4/inttypes-pri.m4.
85456         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85457
85458 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85459
85460         New fts module.
85461         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85462         (setup_dir, free_dir): New functions.
85463         (enter_dir, leave_dir): Define trivial
85464         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85465         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85466         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85467         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85468         Move to fts-cycle.c.
85469         (fts_open): Use setup_dir.
85470         (fts_close): Use free_dir.
85471         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85472         This adds a label and some gotos, but the alternatives were messier.
85473         Check for memory allocation failure when entering a dir.
85474         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85475         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85476         (FTS): New member fts_cycle, that is a union that contains the
85477         old active_dir_ht and cycle_state.  All uses changed to mention
85478         fts_cycle.ht and fts_cycle.state.
85479         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85480         fts.c, with the following changes:
85481         (setup_dir, free_dir): New functions.
85482         (enter_dir): Now returns bool.  Return true if successful, false
85483         if memory exhausted.  All callers changed.
85484         Do not bother partly cleaning up on
85485         memory allocation failure; that is free_dir's job.
85486         However, free ad if hash_insert fails, to avoid memory leak.
85487         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85488         fts->fts_options to see which union member to use.
85489
85490 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85491
85492         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85493         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85494
85495 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85496
85497         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85498
85499 2005-05-20  Jim Meyering  <jim@meyering.net>
85500
85501         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85502         Now a macro, to pacify GCC.
85503
85504 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85505
85506         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85507         of -1.
85508
85509 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85510
85511         * lib/chown.c (rpl_chown): Return -1 on failure.
85512
85513 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85514
85515         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85516         Don't check for stddef.h.
85517         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85518         don't use its results.
85519         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85520         since we include them unconditionally.  Don't require
85521         AM_STDBOOL_H, since stdbool is a prerequisite.
85522         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85523         since we assume C89 or better.
85524         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85525         as we don't use their results.
85526         Don't check for fchdir, memmove, memset, strrchr, as we use
85527         them unconditionally.
85528         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85529         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85530
85531 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85532
85533         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85534         Include <stddef.h> unconditionally, since we assume C89 now.
85535         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85536         * lib/fts.c: Include fts_.h first, to check interface.
85537         Do not include intprops.h; no longer needed.
85538         Include cycle-check.h and hash.h, since fts_.h no longer does.
85539         Remove unnecessary casts of closedir to void.
85540         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85541         decide whether to decrement nlinks.
85542         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85543         (FTS): Use struct hash_table * instead of Hash_table, so that
85544         we no longer need to include hash.h here.
85545
85546 2005-05-18  Jim Meyering  <jim@meyering.net>
85547
85548         * modules/dirfd (License): Change to LGPL.  Most of the code
85549         is already in the public domain.
85550
85551 2005-05-18  Jim Meyering  <jim@meyering.net>
85552
85553         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85554         Reported by Yoann Vandoorselaere.
85555
85556 2005-05-17  Jim Meyering  <jim@meyering.net>
85557
85558         * m4/fts.m4: New file, from coreutils.
85559
85560 2005-05-17  Jim Meyering  <jim@meyering.net>
85561
85562         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85563
85564 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85565
85566         Sync from coreutils.
85567         * m4/unlinkdir.m4: New file.
85568
85569 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85570
85571         Sync from coreutils.
85572         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85573         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85574         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85575         White space changes only.
85576         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85577         special.
85578         * lib/yesno.c: Include getline.h, not ctype.h.
85579         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85580         Use getline to remove arbitrary restriction on response length.
85581
85582 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85583
85584         * config/srclist-update: Spell out "Street" in FSF postal
85585         mail address; this is the style the FSF seems to prefer.
85586
85587         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85588         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85589         this updates FSF postal mail address.
85590
85591         Sync from coreutils.
85592         * modules/unlinkdir: New file.
85593         * modules/yesno (Depends-on): Add getline.
85594         * MODULES.html.sh (File system functions): Add unlinkdir.
85595
85596 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85597
85598         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85599         lib/strsep.h:
85600         Change the initial comment to refer to GPL, not LGPL.
85601         gnulib-tool will change it to LGPL as needed.
85602
85603         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
85604         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
85605         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
85606         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
85607         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
85608         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
85609         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
85610         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
85611         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
85612         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
85613         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
85614         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
85615         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
85616         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
85617         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
85618         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
85619         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
85620         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
85621         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
85622         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
85623         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
85624         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
85625         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
85626         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
85627         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
85628         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
85629         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
85630         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
85631         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
85632         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
85633         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
85634         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
85635         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
85636         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
85637         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
85638         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
85639         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
85640         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
85641         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
85642         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
85643         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
85644         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
85645         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
85646         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
85647         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
85648         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
85649         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
85650         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
85651         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
85652         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
85653         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85654         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
85655         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
85656         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
85657         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
85658         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
85659         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
85660         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
85661         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
85662         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
85663         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
85664         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
85665         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
85666         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
85667         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
85668         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
85669         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
85670         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
85671         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
85672         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
85673         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
85674         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
85675         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
85676         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
85677         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
85678         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
85679         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
85680         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
85681         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
85682         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
85683         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
85684         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
85685         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
85686         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
85687         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
85688         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
85689         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
85690         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
85691         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
85692         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
85693         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
85694         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
85695         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
85696         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
85697         lib/yesno.c, lib/yesno.h:
85698         Update FSF postal mail address.
85699
85700 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85701
85702         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
85703         tests/test-memmem.c, tests/test-stpncpy.c:
85704         Update FSF postal mail address.
85705
85706 2005-05-13  Bruno Haible  <bruno@clisp.org>
85707
85708         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
85709         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
85710         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
85711         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
85712         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
85713         Add support for 64-bit integers in the MSVC compiler.
85714
85715 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85716
85717         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
85718
85719 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
85720
85721         * gnulib-tool (func_import): Sort and uniquify recommended includes.
85722
85723 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
85724
85725         * doc/getdate.texi (General date syntax): Don't say that date
85726         date --iso-8601=ns generates acceptable dates; it doesn't yet.
85727         Problem reported by Nic Ferrier.
85728
85729 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85730
85731         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
85732         specified in ai_socktype. Fix invalid ai_protocol
85733         check. ai_protocol is usually set to 0 or depending on
85734         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
85735         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
85736         ai_socktype / ai_protocol in the returned addrinfo structure.
85737
85738 2005-05-10  Simon Josefsson  <jas@extundo.com>
85739
85740         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
85741         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85742
85743 2005-05-10  Karl Berry  <karl@gnu.org>
85744
85745         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
85746         (from http://www.gnu.org/licenses).
85747         * doc/COPYING.LIB: also rename to COPYING.LESSER.
85748         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
85749         fdl.texi suffices.
85750
85751 2005-05-10  Karl Berry  <karl@gnu.org>
85752
85753         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
85754         (COPYING.DOC): remove.
85755
85756         * config/srclist-update: new FSF address.
85757
85758 2005-05-10  Derek Price  <derek@ximbiot.com>
85759
85760         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
85761         possible.
85762
85763 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85764             Bruno Haible  <bruno@clisp.org>
85765
85766         * modules/inet_ntop: New file.
85767         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85768         inet_ntop.
85769
85770 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85771             Bruno Haible  <bruno@clisp.org>
85772
85773         * m4/inet_ntop.m4: New file.
85774
85775 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85776             Bruno Haible  <bruno@clisp.org>
85777
85778         * lib/inet_ntop.h: New file.
85779         * lib/inet_ntop.c: New file, from glibc with modifications.
85780
85781 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
85782
85783         * modules/time_r (License): Change to LGPL.
85784         * modules/extensions (License): Change to LGPL.  Actually,
85785         the license is more permissive than that, but currently gnulib-tool
85786         doesn't know how to handle more-permissive licenses.
85787
85788         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
85789         Problem reported by Dave Love.
85790
85791 2005-05-08  Jim Meyering  <jim@meyering.net>
85792
85793         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
85794         blank.
85795
85796 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85797
85798         * modules/argmatch (Depends-on): Add stdbool.
85799         * modules/backupfile (Depends-on): Likewise.
85800         * modules/chdir-long (Depends-on): Likewise.
85801         * modules/closeout (Depends-on): Likewise.
85802         * modules/cycle-check (Depends-on): Likewise.
85803         * modules/dirname (Depends-on): Likewise.
85804         * modules/fnmatch (Depends-on): Likewise.
85805         * modules/fsusage (Depends-on): Likewise.
85806         * modules/fwriteerror (Depends-on): Likewise.
85807         * modules/getcwd (Depends-on): Likewise.
85808         * modules/getloadavg (Depends-on): Likewise.
85809         * modules/hard-locale (Depends-on): Likewise.
85810         * modules/makepath (Depends-on): Likewise.
85811         * modules/mountlist (Depends-on): Likewise.
85812         * modules/nanosleep (Depends-on): Likewise.
85813         * modules/posixtm (Depends-on): Likewise.
85814         * modules/quotearg (Depends-on): Likewise.
85815         * modules/readtokens (Depends-on): Likewise.
85816         * modules/readtokens0 (Depends-on): Likewise.
85817         * modules/readutmp (Depends-on): Likewise.
85818         * modules/save-cwd (Depends-on): Likewise.
85819         * modules/strftime (Depends-on): Likewise.
85820         * modules/userspec (Depends-on): Likewise.
85821         * modules/utimecmp (Depends-on): Likewise.
85822         * modules/xgetcwd (Depends-on): Likewise.
85823         * modules/xnanosleep (Depends-on): Likewise.
85824         * modules/xstrtod (Depends-on): Likewise.
85825         * modules/yesno (Depends-on): Likewise.
85826
85827 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
85828
85829         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
85830         needless checks.
85831
85832 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85833
85834         Merge from coreutils.  Among other things,
85835         add bulletproofing for cases where stdin, stdout, or stderr are closed.
85836         * lib/fd-safer.c: New file.
85837         * lib/fcntl-safer.h, open-safer.c: Remove.
85838         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
85839         * lib/dup-safer.c: Include unistd-safer.h first.
85840         Don't include errno.h.
85841         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
85842         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
85843         * lib/file-type.c: Rely on file-type.h change.
85844         * lib/getloadavg.c: Include unistd-safer.h.
85845         (getloadavg): Use safer open.
85846         * lib/getusershell.c: Include "stdio-safer.h".
85847         (getusershell): Use safer fopen.
85848         * lib/long-options.c (long_options): Use NULL rather than 0.
85849         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
85850         'free'.
85851         * lib/modechange.c: Likewise.
85852         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
85853         (MODE_DONE): New constant.
85854         (struct mode_change): Remove 'next' member.
85855         (make_node_op_equals): New function; like the old one of the
85856         same name, except it allocates an array.
85857         (mode_compile, mode_create_from_ref): Use it.
85858         (mode_compile): Allocate result as an array, not a linked list.
85859         Parse octal string ourself, so that we catch mistakes like "+0".
85860         (mode_adjust): Arg is an array, not a linked list.
85861         * lib/modechange.c: Include stat-macros.h, xalloc.h.
85862         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
85863         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
85864         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
85865         Remove.  This is now stat-macros.h's job.
85866         (talloc): Remove.  All callers replaced by xalloc, so that
85867         our invokers don't have to worry about reporting memory failures.
85868         (make_node_op_equals): Remove.
85869         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85870         New constants.
85871         (struct mode_change): Moved here from modechange.h.
85872         (mode_append_entry): Remove.
85873         (mode_compile): Remove MASKED_OPS arg, since it encouraged
85874         apps to have incorrect behavior.  Use simpler algorithm for head
85875         and tail.  Don't futz with umask; that's now the job of mode_adjust.
85876         Detect more invalid usages rather than having somewhat-random behavior.
85877         Don't insert an "a=" action, as that leads to incorrect behavior.
85878         (mode_compile, mode_create_from_ref): Return NULL on error instead
85879         of an enum, since now there's only one way to have an error.  All
85880         callers changed.
85881         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
85882         at the correct time.  Simplify calculation of "+u" and its ilk.
85883         Don't mishandle "+X".
85884         (mode_free): Remove "register" and localize decls.
85885         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85886         (struct mode_change): Move to modechange.c; callers don't
85887         need to see this stuff.
85888         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
85889         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
85890         (mode_change, mode_adjust): Reflect the new signatures noted above.
85891         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
85892         that might redefine system include files.
85893         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
85894         (my_usleep): Use NULL rather than (void *) 0.
85895         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
85896         Use siginterrupt to specify that system calls should be interrupted.
85897         (rpl_nanosleep): Move initialization of suspended closer to call of
85898         my_usleep.
85899         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
85900         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
85901         (desirable_utmp_entry): New function.
85902         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
85903         using x2nrealloc, to simplify logic.
85904         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
85905         size calculation.  Do not assume utmp file is a regular file.
85906         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
85907         (READ_UTMP_CHECK_PIDS): New constant.
85908         * lib/save-cwd.c: Include unistd-safer.h.
85909         (save_cwd): Use fd_safer.
85910         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
85911         [!_LIBC] Include "stat-macros.h" instead.
85912         * lib/unistd-safer.h (fd_safer): New decl.
85913
85914 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85915
85916         * modules/getloadavg (Depends-on): Add unistd-safer.
85917         * modules/getusershell (Depends-on): Add stdio-safer.
85918         * modules/lstat (Depends-on): Remove xalloc.
85919         * modules/mkstemp (Depends-on): Add stat-macros.
85920         * modules/modechange (Depends-on): Remove xstrtol.
85921         Add stat-macros, xalloc.
85922         * modules/save-cwd (Depends-on): Add unistd-safer.
85923         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
85924         * modules/unistd-safer (Files): Add lib/fd-safer.c
85925         (Makefile.am): Remove lib_SOURCES.
85926
85927         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
85928         Remove fcntl-safer; unistd-safer supersedes it.
85929
85930 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85931
85932         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
85933         AC_HEADER_STAT.
85934         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
85935         (gl_PREREQ_CHOWN): Remove.
85936         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
85937         it.  Don't require AC_HEADER_STAT.
85938         (gl_PREREQ_LSTAT): Remove.
85939         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
85940         Don't require AC_HEADER_STAT.
85941         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
85942         (gl_PREREQ_RMDIR): Remove.
85943         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
85944         mention stat-macros.h or AC_HEADER_STAT, since we'll make
85945         the stat-macros module a prerequisite.
85946         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
85947         * m4/filemode.m4 (gl_FILEMODE): Likewise.
85948         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
85949         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
85950         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
85951         variable names.
85952         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
85953         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
85954         variable prefixes.
85955         * m4/fcntl-safer.m4: Remove.
85956         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
85957         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
85958         Invoke gl_PREREQ_FD_SAFER.
85959         (gl_PREREQ_FD_SAFER): New macro.
85960         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
85961         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
85962         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
85963         Remove duplicate call to AC_LIBOBJ(readutmp).
85964         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
85965
85966         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
85967         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
85968
85969 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85970
85971         * MODULES.html.sh (Misc): Add byteswap.
85972
85973 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85974
85975         * modules/getcwd (Depends-on): Add extensions.
85976         * modules/openat (Depends-on): Likewise.
85977
85978 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85979
85980         * modules/byteswap: New file.
85981
85982 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85983
85984         * m4/byteswap.m4: New file.
85985
85986 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85987
85988         * lib/byteswap_.h: New file.
85989
85990 2005-04-25  Karl Berry  <karl@gnu.org>
85991
85992         * m4/gettext.m4: Update from GNU gettext 0.14.4.
85993
85994 2005-04-25  Albert Chin  <china@thewrittenword.com>
85995
85996         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
85997         Toolkit C bug.
85998
85999 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86000
86001         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86002         (func_ln_if_changed): Remove forcibly for no error message
86003         in case file does not exist.
86004
86005 2005-04-19  Simon Josefsson  <jas@extundo.com>
86006
86007         * gnulib-tool (Options): Make --symlink mean --symbolic.
86008
86009 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86010
86011         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86012
86013 2005-04-16  Simon Josefsson  <jas@extundo.com>
86014
86015         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86016
86017 2005-04-15  Simon Josefsson  <jas@extundo.com>
86018
86019         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86020
86021 2005-04-15  Simon Josefsson  <jas@extundo.com>
86022
86023         * gnulib-tool: Rename --symlink to --symbolic.
86024
86025 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86026
86027         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86028         symbolic links to files instead of copying/moving.  Add --aux-dir,
86029         specifying directory relative --dir where auxiliary build tools
86030         are placed.
86031
86032 2005-04-14  Bruno Haible  <bruno@clisp.org>
86033
86034         * modules/allocsa (License): Change to LGPL.
86035         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86036
86037 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86038
86039         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86040         that "UTC +1 second" continues to work.  Problem reported
86041         by Dmitry V. Levin.
86042         (relunit_snumber): New rule.
86043         (relunit): Use it.
86044
86045 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86046
86047         * lib/getdate.y (universal_time_zone_table): New constant.
86048         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86049         universal_time_zone_table.
86050         (lookup_zone): Prefer universal_time_zone_table to
86051         local_time_zone_table, so that "GMT" time stamps are allowed in
86052         London during the summer.  Problem reported by Ian Abbott.
86053
86054 2005-04-12  Jim Meyering  <jim@meyering.net>
86055
86056         * lib/human.c (humblock): Set *options even when returning due to
86057         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86058         warning from gcc-4.
86059
86060 2005-04-09  Jim Meyering  <jim@meyering.net>
86061
86062         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86063         -Wuninitialized: initialize tm0.tm_year.
86064
86065 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86066
86067         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86068         count, since there's no maximum.  All uses changed.
86069         Add member dsts_seen.
86070         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86071         not being INT_MAX.
86072         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86073         Use pc_rels_seen to decide whether a date is absolute.
86074
86075         * lib/getdate.y (number): Don't overwrite year.
86076         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86077         check.
86078
86079 2005-04-02  Simon Josefsson  <jas@extundo.com>
86080
86081         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86082         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86083
86084 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86085
86086         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86087         where no absolute path name can be longer than PATH_MAX.
86088
86089 2005-03-27  Jim Meyering  <jim@meyering.net>
86090
86091         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86092
86093 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86094
86095         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86096         "one's complement" -> "ones' complement" in comment, as per Knuth.
86097         "value of type" -> "type or expression" in comment.
86098         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86099
86100 2005-03-26  Jim Meyering  <jim@meyering.net>
86101
86102         Comment nits.
86103         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86104         Correct typos: s/or/of/.
86105
86106 2005-03-26  Jim Meyering  <jim@meyering.net>
86107
86108         * modules/check-include-files: Move to ../ and rename to...
86109         * check-module: ...this.
86110
86111 2005-03-25  Jim Meyering  <jim@meyering.net>
86112
86113         * modules/xvasprintf (Files): Add xalloc.h.
86114
86115 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86116
86117         * modules/gettext (Files): config/config.rpath ->
86118         build-aux/config.rpath
86119         * modules/iconv (Files): Likewise.
86120         Problem reported by Oskar Liljeblad.
86121
86122 2005-03-23  Jim Meyering  <jim@meyering.net>
86123
86124         * modules/check-include-files: New script to check for
86125         missing dependencies, multiple includes, etc.
86126
86127         * modules/c-strtold (Depends-on): Add xalloc.
86128         * modules/c-strtod (Depends-on): Add xalloc.
86129         * modules/hash (Depends-on): Add xalloc.
86130         (Files): Remove lib/xalloc.h.
86131
86132         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86133         * modules/userspec (Files): Add lib/inttostr.h.
86134
86135 2005-03-23  Jim Meyering  <jim@meyering.net>
86136
86137         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86138
86139 2005-03-22  Jim Meyering  <jim@meyering.net>
86140
86141         * modules/stat-macros: New module.
86142         * modules/canonicalize, modules/euidaccess, modules/file-type,
86143         * modules/filemode, modules/lchown, modules/makepath,
86144         * modules/rmdir, modules/stat: Depend on new stat-macros module
86145         rather than listing lib/stat-macros.h manually.
86146         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86147
86148 2005-03-22  Jim Meyering  <jim@meyering.net>
86149
86150         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86151
86152 2005-03-22  Bruno Haible  <bruno@clisp.org>
86153
86154         * config/srclist.txt: Replace target directory 'config' with
86155         'build-aux'.
86156         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86157         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86158         ../build-aux/.
86159
86160 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86161
86162         * modules/chdir-long (Depends-on): Add mempcpy.
86163
86164         * modules/acl, modules/backupfile, modules/c-strtod,
86165         modules/c-strtold, modules/canon-host, modules/canonicalize,
86166         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86167         modules/exclude, modules/exitfail, modules/file-type,
86168         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86169         modules/getdate, modules/getline, modules/getpagesize,
86170         modules/getpass, modules/getugroups, modules/group-member,
86171         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86172         modules/inttostr, modules/long-options, modules/makepath,
86173         modules/md5, modules/memcasecmp, modules/memcoll,
86174         modules/modechange, modules/mountlist, modules/path-concat,
86175         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86176         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86177         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86178         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86179         modules/strftime, modules/strndup, modules/strverscmp,
86180         modules/timespec, modules/unlocked-io, modules/userspec,
86181         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86182         modules/yesno:
86183         Remove lib_SOURCES line from Makefile.am section, as this is now
86184         done automatically by the corresponding Autoconf macro.
86185
86186 2005-03-21  Jim Meyering  <jim@meyering.net>
86187
86188         Changes imported from coreutils.
86189
86190         * lib/cycle-check.c: Don't include xalloc.h.
86191
86192         * lib/path-concat.c: Don't include assert.h.
86193         (path_concat): Remove assertion that would have triggered
86194         for ABASE starting with more than one slash.
86195         Reported by Andreas Schwab.
86196
86197         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86198         properly when ABASE is an absolute file name.
86199         Correct the description of this function.
86200         Include <assert.h>.
86201         Add an assertion and a test driver.
86202         This fixes a bug introduced on 2004-07-02.
86203         Andreas Schwab reported the resulting failure of cp --parents:
86204         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86205
86206 2005-03-21  Jim Meyering  <jim@meyering.net>
86207
86208         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86209         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86210
86211 2005-03-21  Jim Meyering  <jim@meyering.net>
86212         and  Paul Eggert  <eggert@cs.ucla.edu>
86213
86214         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86215         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86216         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86217         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86218         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86219         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86220         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86221         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86222         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86223         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86224         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86225         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86226         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86227         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86228         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86229         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86230         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86231         for these modules.
86232
86233 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86234
86235         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86236         (which shouldn't happen), generate nothing instead of returning 0
86237         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86238
86239 2005-03-16  Bruno Haible  <bruno@clisp.org>
86240
86241         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86242         HAVE_LONGLONG_64BIT.
86243
86244 2005-03-16  Bruno Haible  <bruno@clisp.org>
86245
86246         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86247         HAVE_LONGLONG_64BIT.
86248
86249 2005-03-16  Bruno Haible  <bruno@clisp.org>
86250
86251         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86252         HAVE_LONGLONG_64BIT.
86253
86254 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86255
86256         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86257         reliably distinguish strftime failure from empty output on POSIX
86258         hosts.
86259
86260 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86261
86262         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86263         (iconv_string): Don't guess a size-zero buffer, as that might cause
86264         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86265         result would be 'too large', where 'too large' is (heuristically)
86266         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86267         overflow concerns.  This will prevent some unwanted malloc failures
86268         when the inputs are very large.
86269
86270 2005-03-15  Karl Berry  <karl@gnu.org>
86271
86272         * config/srclist.txt (config.rpath): from gettext.
86273         * config/config.rpath: update.
86274
86275 2005-03-15  Bruno Haible  <bruno@clisp.org>
86276
86277         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86278         to 'negate'.
86279
86280         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86281         variable.
86282
86283         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86284         results.
86285
86286 2005-03-14  Simon Josefsson  <jas@extundo.com>
86287
86288         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86289         <fx@gnu.org>.
86290
86291 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86292
86293         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86294         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86295         intprops.h.
86296         * lib/strtol.c: Likewise.
86297
86298 2005-03-14  Jim Meyering  <jim@meyering.net>
86299
86300         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86301         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86302         to be nonzero so that we (and caller) can detect the difference
86303         between a valid zero-length expansion and an error return, even
86304         when the underlying strftime fails before writing anything into
86305         that location.
86306
86307 2005-03-14  Bruno Haible  <bruno@clisp.org>
86308
86309         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86310         Update from GNU gettext 0.14.3.
86311
86312 2005-03-10  Jim Meyering  <jim@meyering.net>
86313
86314         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86315
86316 2005-03-10  Jim Meyering  <jim@meyering.net>
86317
86318         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86319         so that this module works on systems without fchdir.
86320
86321 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86322
86323         Factor int-properties macros into a single file, except for
86324         glibc-related files.
86325         * lib/intprops.h: New file.
86326         * lib/getloadavg.c: Include it instead of limits.h.
86327         (INT_STRLEN_BOUND): Remove.
86328         * lib/human.c: Include intprops.h.
86329         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86330         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86331         302/1000.
86332         * lib/inttostr.h: Include intprops.h instead of limits.h.
86333         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86334         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86335         for consistency with intprops.h.
86336         (time_t_is_integer, twos_complement_arithmetic): Use them.
86337         * lib/sig2str.h: Include <signal.h>, intprops.h.
86338         (INT_STRLEN_BOUND): Remove.
86339         * lib/strftime.c (TYPE_SIGNED): Remove.
86340         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86341         * lib/strtol.c: Adjust comments to match intprops.h.
86342         * lib/userspec.c: Include intprops.h.
86343         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86344         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86345         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86346         instead of rolling our own expressions.
86347         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86348
86349         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86350         instead of int.
86351         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86352         the right thing even if adding 1900 would overflow.  Similarly
86353         for tm_mon + 1 and tm_yday + 1.
86354         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86355         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86356         (DO_SIGNED_NUMBER): New macro.
86357         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86358
86359 2005-03-07  Bruno Haible  <bruno@clisp.org>
86360
86361         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86362
86363 2005-03-07  Bruno Haible  <bruno@clisp.org>
86364
86365         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86366
86367 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86368
86369         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86370         (func_import): Only replace files via --import when they have actually
86371         changed.
86372
86373 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86374
86375         * m4/mmap-anon.m4: New file.
86376         * m4/pagealign_alloc.m4: New file.
86377
86378 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86379             Bruno Haible  <bruno@clisp.org>
86380
86381         * modules/pagealign_alloc: New file.
86382         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86383
86384 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86385             Bruno Haible  <bruno@clisp.org>
86386
86387         * lib/pagealign_alloc.h: New file.
86388         * lib/pagealign_alloc.c: New file.
86389
86390 2005-03-03  Bruno Haible  <bruno@clisp.org>
86391
86392         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86393         Use an all-permissive copyright notice, recommended by RMS.
86394
86395 2005-03-02  Bruno Haible  <bruno@clisp.org>
86396
86397         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86398         of AIX, the replacement has to be done only after <string.h> is
86399         included, therefore not in config.h. stpncpy.h does the replacement,
86400         and stpncpy.c uses it.
86401
86402 2005-03-02  Bruno Haible  <bruno@clisp.org>
86403
86404         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86405         stpncpy.c uses it.
86406
86407 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86408
86409         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86410         The workaround isn't strictly needed for POSIX conformance, and
86411         it's too much of a pain to configure and maintain.  We'll ask
86412         people to fix their kernels instead.
86413         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86414         (NANOSLEEP_BUG_WORKAROUND): Remove.
86415         (xnanosleep): Remove the workaround.
86416
86417 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86418
86419         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86420         Reported by Derek Price.
86421         (Include): Add "timespec.h".
86422
86423         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86424
86425 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86426
86427         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86428         to detect nanosleep bug.
86429
86430 2005-03-01  Bruno Haible  <bruno@clisp.org>
86431
86432         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86433
86434 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86435
86436         * modules/gethrxtime: New file.
86437         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86438         (Depends-on): Add gethrxtime.
86439         (configure.ac): Add gl_XNANOSLEEP.
86440         (Makefile.am): Remove lib_SOURCES line.
86441
86442 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86443
86444         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86445         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86446
86447 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86448
86449         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86450         * lib/timespec.h (gettime): Return void, since it always
86451         succeeds now.  All uses changed.
86452         * lib/gettime.c (gettime): Likewise.
86453         [HAVE_NANOTIME]: Prefer nanotime.
86454         Assume gettimeofday succeeds, as POSIX requires.
86455         Assime time () succeeds, since other code already does.
86456         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86457         (timespec_subtract): Remove.
86458         (NANOSLEEP_BUG_WORKAROUND): New constant.
86459         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86460         things considerably.  Use it only on GNU/Linux hosts, since the
86461         workaround shouldn't be needed elsewhere.
86462
86463 2005-02-24  Bruno Haible  <bruno@clisp.org>
86464
86465         * modules/gettext (Files): Add m4/glibc2.m4.
86466
86467 2005-02-24  Bruno Haible  <bruno@clisp.org>
86468
86469         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86470         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86471         * m4/progtest.m4:
86472         Update from GNU gettext 0.14.2.
86473         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86474
86475 2005-02-24  Bruno Haible  <bruno@clisp.org>
86476
86477         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86478         * lib/config.charset: Update from GNU gettext 0.14.2.
86479
86480 2005-02-24  Bruno Haible  <bruno@clisp.org>
86481
86482         * lib/gettext.h: Update from GNU gettext 0.14.2.
86483
86484 2005-02-23  Simon Josefsson  <jas@extundo.com>
86485
86486         * m4/iconvme.m4: New file.
86487
86488 2005-02-23  Jim Meyering  <jim@meyering.net>
86489
86490         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86491         change.
86492         Thanks to Bruno Haible for catching it.
86493
86494 2005-02-22  Simon Josefsson  <jas@extundo.com>
86495
86496         * modules/iconvme: New file.
86497
86498         * MODULES.html.sh: Add iconvme.
86499
86500 2005-02-22  Simon Josefsson  <jas@extundo.com>
86501
86502         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86503
86504 2005-02-22  Simon Josefsson  <jas@extundo.com>
86505
86506         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86507
86508 2005-02-22  Jim Meyering  <jim@meyering.net>
86509
86510         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86511         s/ifndef/ifdef/.
86512
86513 2005-02-20  Neil Conway  <neilc@samurai.com>
86514
86515         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86516         returned by OSX/Darwin if the specified buffer is not large
86517         enough for the hostname.
86518
86519 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86520
86521         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86522         pass it to _help, otherwise the latter coredumps trying to
86523         dereference state.root_argp.
86524
86525 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86526
86527         * modules/chdir-long (Depends-on): Add memrchr.
86528         * modules/memrchr (Files): Add lib/memrchr.h.
86529         (Include): "memrchr.h".
86530
86531 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86532
86533         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86534
86535 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86536
86537         * lib/memrchr.h: New file.
86538         * lib/chdir-long.c: Include it.
86539         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86540         Don't bother including stddef.h.
86541
86542 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86543
86544         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86545         inclusion.
86546         Include <sys/types.h>, for dev_t.
86547         (ME_DUMMY, ME_REMOTE): Move from here....
86548         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86549         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86550         Dmitry V. Levin.
86551         Include mountlist.h first, to test the interface.
86552
86553 2005-01-29  Bruno Haible  <bruno@clisp.org>
86554
86555         * lib/progname.c (program_name): Initialize.
86556         Needed when linking statically on MacOS X.
86557
86558 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86559
86560         Sync from coreutils.
86561         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86562         (Depends-on): Add c-strtod.
86563         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86564
86565 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86566
86567         Sync from coreutils.
86568         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86569
86570         Remove files that are specific to coreutils.
86571         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86572
86573 2005-01-28  Bruno Haible  <bruno@clisp.org>
86574
86575         * modules/javacomp: New file.
86576         * MODULES.html.sh (Java): Add javacomp.
86577
86578 2005-01-28  Bruno Haible  <bruno@clisp.org>
86579
86580         * m4/javacomp.m4: New file, from GNU gettext.
86581
86582 2005-01-28  Bruno Haible  <bruno@clisp.org>
86583
86584         * lib/javacomp.sh.in: New file, from GNU gettext.
86585         * lib/javacomp.h: New file, from GNU gettext.
86586         * lib/javacomp.c: New file, from GNU gettext.
86587
86588 2005-01-26  Simon Josefsson  <jas@extundo.com>
86589
86590         * lib/gai_strerror.c: Use GPL in header.
86591
86592 2005-01-26  Bruno Haible  <bruno@clisp.org>
86593
86594         * modules/javaexec: New file.
86595         * MODULES.html.sh (Java): Add javaexec.
86596
86597 2005-01-26  Bruno Haible  <bruno@clisp.org>
86598
86599         * m4/javaexec.m4: New file, from GNU gettext.
86600
86601 2005-01-26  Bruno Haible  <bruno@clisp.org>
86602
86603         * lib/javaexec.sh.in: New file, from GNU gettext.
86604         * lib/javaexec.h: New file, from GNU gettext.
86605         * lib/javaexec.c: New file, from GNU gettext.
86606
86607 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86608
86609         * modules/lchown (Depends-on): Remove lchown.h
86610
86611 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86612
86613         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
86614         must be defined if the header file was not found, in order
86615         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
86616
86617 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86618
86619         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
86620         initializers for struct pentry_state.
86621         (__argp_error): Check return value of __asprintf
86622         (__argp_failure): Translate error message
86623
86624         * lib/argp-parse.c: Removed braces around the expansion of N_()
86625
86626 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86627
86628         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
86629         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
86630         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
86631         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
86632         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
86633         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
86634         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
86635         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
86636         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
86637         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
86638         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
86639         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
86640         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
86641         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
86642         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
86643         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
86644         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
86645         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
86646         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
86647         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
86648         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
86649         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
86650         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
86651         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
86652         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
86653         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
86654         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
86655         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
86656         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
86657         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
86658         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
86659         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
86660         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
86661         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
86662         xstrtol.m4, xstrtoumax.m4, yesno.m4:
86663         Use an all-permissive copyright notice, recommended by RMS.
86664
86665 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
86666
86667         * modules/chdir-long (Depends-on): Remove mempcpy.
86668
86669 2005-01-21  Jim Meyering  <jim@meyering.net>
86670
86671         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
86672         same value as for Solaris 9.
86673
86674         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
86675         component length.  This included changing the parameter to be
86676         of type `char *' rather than `char const *'.
86677         * lib/chdir-long.h (chdir_long): Update prototype.
86678
86679         * lib/openat.c (fdopendir, fstatat): New functions.
86680         * lib/openat.h: Include headers required for use of DIR and struct
86681         stat.
86682         [AT_SYMLINK_NOFOLLOW]: Define.
86683         (fdopendir, fstatat): Add prototypes.
86684
86685 2005-01-21  Bruno Haible  <bruno@clisp.org>
86686
86687         * modules/classpath: New file.
86688         * MODULES.html.sh (Java): Add classpath.
86689
86690 2005-01-21  Bruno Haible  <bruno@clisp.org>
86691
86692         * lib/classpath.h: New file, from GNU gettext.
86693         * lib/classpath.c: New file, from GNU gettext.
86694
86695 2005-01-20  Simon Josefsson  <jas@extundo.com>
86696
86697         * modules/version-etc-fsf: New file.
86698
86699 2005-01-20  Simon Josefsson  <jas@extundo.com>
86700
86701         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
86702         * lib/version-etc.c: Remove version_etc_copyright.
86703         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
86704         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
86705
86706 2005-01-20  Simon Josefsson  <jas@extundo.com>
86707
86708         * lib/base64.h (isbase64): Add.
86709
86710         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
86711         using a unsigned prototype, don't inline.
86712         (base64_decode): Use it.
86713
86714 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86715
86716         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
86717         it.
86718
86719 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86720
86721         * lib/save-cwd.c (save_cwd): Remove code to support the case
86722         where fchdir is missing or flaky.
86723
86724 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86725
86726         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
86727
86728 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86729
86730         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
86731         AC_LIBSOURCES now does this.
86732         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
86733         with new ullong_max module.
86734
86735 2005-01-19  Bruno Haible  <bruno@clisp.org>
86736
86737         * modules/sh-quote: New file.
86738         * MODULES.html.sh (Executing programs): Add sh-quote.
86739
86740 2005-01-19  Bruno Haible  <bruno@clisp.org>
86741
86742         * lib/sh-quote.h: New file, from GNU gettext.
86743         * lib/sh-quote.c: New file, from GNU gettext.
86744
86745 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86746
86747         Merge from coreutils.
86748         * m4/ullong_max.m4: New file.
86749         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
86750         (gl_MACROS): Assume localeconv exists.
86751
86752 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86753
86754         Merge changes from coreutils, as described below in several
86755         changelogs dated today.
86756
86757         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
86758         (O_DIRECTORY): Remove; not needed here, since "." must be
86759         a directory.  All uses removed.
86760         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
86761         universal on Suns, and we also need to test for IRIX.
86762         Revamp code to use 'if' rather than '#if'.
86763         Avoid unnecessary comparison of cwd->desc to 0.
86764
86765         * lib/utimens.c (futimens): Robustify the previous patch, by checking
86766         for known valid error numbers rather than observed invalid ones.
86767
86768 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86769
86770         * modules/ullong_max: New file.
86771
86772         * modules/chdir-long, modules/openat: New files.
86773         * modules/save-cwd (Depends-on): Depend on chdir-long.
86774         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
86775
86776 2005-01-18  Jim Meyering  <jim@meyering.net>
86777
86778         Merge from coreutils.
86779         * m4/chdir-long.m4, m4/openat.m4: New files.
86780         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
86781         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
86782         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
86783         is sane and DOES follow symlinks.  Besides, testing 20 different
86784         systems found no broken chown implementations.
86785         Prompted by a change in rsync's copy of this macro.
86786         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
86787
86788         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
86789
86790         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
86791         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
86792         NULL-means-set-to-current-time semantics.
86793         Remove temporary file immediately, rather than waiting
86794         for configure's at-exit trap code to do it.
86795
86796 2005-01-18  Jim Meyering  <jim@meyering.net>
86797
86798         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86799
86800         * lib/utimens.c (futimens): Account for the fact that futimes
86801         can also fail with errno == ENOSYS or errno == ENOENT.
86802         Patch from Dmitry V. Levin.
86803
86804         Change the name of the robust chdir function from chdir to chdir_long.
86805         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
86806         (restore_cwd): Use chdir_long, not chdir.
86807         * lib/chdir-long.c: Renamed from chdir.c.
86808         * lib/chdir-long.h: Renamed from chdir.h.
86809         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
86810         Hurd.
86811
86812 2005-01-18  Bruno Haible  <bruno@clisp.org>
86813
86814         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
86815         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
86816         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
86817         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
86818         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
86819         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
86820         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
86821         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
86822         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
86823         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
86824         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
86825         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
86826         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
86827         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
86828         Use an all-permissive copyright notice, recommended by RMS.
86829
86830 2005-01-18  Bob Proulx  <bob@proulx.com>
86831
86832         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
86833         simplify offsetof() macro construct to avoid compile failure with
86834         native HP-UX 11.0 ANSI C compiler.
86835
86836 2005-01-17  Bruno Haible  <bruno@clisp.org>
86837
86838         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
86839         redundant because stpncpy.m4 takes care of it.
86840
86841 2005-01-17  Bruno Haible  <bruno@clisp.org>
86842
86843         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
86844
86845 2005-01-17  Bruno Haible  <bruno@clisp.org>
86846
86847         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
86848         used.
86849
86850 2005-01-17  Bruno Haible  <bruno@clisp.org>
86851
86852         * lib/fwriteerror.h (fwriteerror): Change specification to include
86853         fclose.
86854         * lib/fwriteerror.c: Include <stdbool.h>.
86855         (fwriteerror): At the end, close the file stream. Record whether
86856         stdout was already closed.
86857
86858 2005-01-17  Bruno Haible  <bruno@clisp.org>
86859
86860         * lib/execute.c (environ): Declare if needed.
86861         * lib/pipe.c (environ): Likewise.
86862         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
86863
86864 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86865
86866         * modules/argp: Depend on vsnprintf
86867
86868 2005-01-10  Jim Meyering  <jim@meyering.net>
86869
86870         * modules/closeout (Depends-on): Add atexit.
86871
86872 2005-01-06  Bruno Haible  <bruno@clisp.org>
86873
86874         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
86875
86876 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86877
86878         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
86879         definitions to be after all include files, to avoid collisions.
86880         Problem reported by Bob Proulx.
86881
86882 2005-01-04  Jim Meyering  <jim@meyering.net>
86883
86884         Changes imported from coreutils.
86885         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
86886         as the mkstemp template, use a temporary directory and an
86887         8.3-friendly template to avoid trouble on systems like DJGPP.
86888         Reported by Juan M. Guerrero via Stepan Kasal.
86889         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
86890         close. Remove the temporary directory right away, rather than waiting
86891         for configure's at-exit trap code to do it.
86892         Suggestion from Stepan Kasal.
86893
86894 2005-01-01  Simon Josefsson  <jas@extundo.com>
86895
86896         * gnulib-tool: Print #include directives when --import'ing.
86897
86898 2004-12-28  Simon Josefsson  <jas@extundo.com>
86899
86900         * tests/test-base64.c: Include required header files.  Remove
86901         unused variables.
86902
86903 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86904
86905         * modules/error (Depends-on): Remove gettext.
86906
86907 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86908
86909         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
86910         not needed.  This removes a dependency on the gettext module.
86911         [defined _LIBC]: Do not include <libintl.h>; not needed.
86912
86913 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86914
86915         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
86916         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
86917
86918 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86919
86920         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
86921         HAVE_DECL_STRTOLD.
86922
86923 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86924
86925         * modules/getdate (Depends-on): Remove alloca-opt.
86926
86927 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86928
86929         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
86930
86931 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86932
86933         * lib/argp-parse.c: Include <stddef.h>.
86934         (alignof, alignto): New macros.
86935         (parser_init): Don't assume that void * is aligned sufficiently
86936         for struct option.
86937
86938         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
86939         need to extend the stack.
86940         (YYINITDEPTH): New macro, so that the initial stack isn't overly
86941         large.
86942
86943 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86944
86945         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
86946
86947 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86948
86949         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
86950         (2004-10-24) change.  Apparently this was a false alarm.
86951
86952         * modules/getdate: Depend on alloca-opt, not alloca.
86953
86954 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86955
86956         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
86957         Remove now-obsolete comment about AIX.
86958         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
86959         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
86960         (YYMAXDEPTH): New macro.
86961
86962 2004-12-18  Simon Josefsson  <jas@extundo.com>
86963
86964         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
86965
86966 2004-12-18  Bruno Haible  <bruno@clisp.org>
86967
86968         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
86969
86970 2004-12-18  Bruno Haible  <bruno@clisp.org>
86971
86972         * lib/fatal-signal.c (fatal_signals): Make non-const.
86973         (init_fatal_signals): New function.
86974         (uninstall_handlers, install_handlers): Ignore signals that were set to
86975         SIG_IGN.
86976         (at_fatal_signal): Call init_fatal_signals.
86977         (init_fatal_signal_set): Likewise. Ignore signals that were set to
86978         SIG_IGN.
86979         Reported by Paul Eggert.
86980
86981 2004-12-18  Bruno Haible  <bruno@clisp.org>
86982
86983         * doc/alloca.texi: New file.
86984         * doc/alloca-opt.texi: New file.
86985
86986 2004-12-17  Jim Meyering  <jim@meyering.net>
86987
86988         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
86989         Otherwise, install-sh could exit with improper exit status when
86990         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
86991
86992 2004-12-16  Simon Josefsson  <jas@extundo.com>
86993
86994         * tests/test-base64.c: Add license.
86995
86996 2004-12-15  Stepan Kasal  <address@hidden>
86997
86998         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
86999
87000 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87001
87002         * modules/getcwd (Files): Add m4/d-ino.m4.
87003         Suggested by Mark D. Baushke.
87004
87005 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87006
87007         * lib/getdate.y (textint): New member "negative".
87008         (time_zone_hhmm): New function.
87009         Expect 14 shift-reduce conflicts, not 13.
87010         (o_colon_minutes): New rule.
87011         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87012         (yylex): Set the "negative" member of signed numbers.
87013
87014 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87015
87016         * doc/getdate.texi (Time of day items, Time zone items):
87017         Describe new formats +00:00, UTC+00:00.
87018
87019 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87020
87021         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87022         spurious "-l"s.  Problem reported by Stepan Kasal.
87023
87024 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87025
87026         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87027         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87028
87029 2004-12-04  Simon Josefsson  <jas@extundo.com>
87030
87031         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87032         Vandoorselaere <yoann@prelude-ids.org>.
87033
87034 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87035
87036         Changes imported from coreutils.
87037         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87038         exist.
87039         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87040
87041 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87042
87043         Changes imported from coreutils.
87044         * lib/hard-locale.c: Assume <locale.h> exists.
87045         Include "strdup.h".
87046         (GLIBC_VERSION): New macro.
87047         (hard_locale): Assume setlocale exists.
87048         Rewrite to avoid #ifdef.
87049         Use strdup rather than malloc + strcpy.
87050         * lib/human.c: Assume <locale.h> exists.
87051         (human_readable): Assume localeconv exists.
87052
87053 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87054
87055         * modules/hard-locale (Depends-on): Add strdup.
87056
87057 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87058
87059         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87060         convert T2, not T.  (Imported from libc.)
87061
87062 2004-11-30  Simon Josefsson  <jas@extundo.com>
87063
87064         * modules/restrict (License): Change to LGPL.
87065
87066 2004-11-30  Simon Josefsson  <jas@extundo.com>
87067
87068         * m4/restrict.m4: Add copyright and copying conditions.
87069
87070 2004-11-30  Simon Josefsson  <jas@extundo.com>
87071
87072         * m4/base64.m4: New file.
87073
87074 2004-11-30  Simon Josefsson  <jas@extundo.com>
87075
87076         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87077         base64.
87078
87079         * tests/test-base64.c: New file.
87080
87081         * modules/base64: New file.
87082
87083 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87084
87085         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87086         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87087
87088         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87089
87090 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87091
87092         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87093         (__getcwd.c): Don't restore errno; glibc doesn't.
87094         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87095         first, falling back to our code only if its results look suspicious.
87096         Ensure that the resulting buffer is only as large as necessary.
87097
87098         * lib/readutmp.c: Include readutmp.h first.
87099         Include <errno.h>, since readutmp.h no longer does that.
87100         * lib/readutmp.h: Don't include <errno.h>,
87101         <sys/param.h>, <time.h>; not needed to establish interface.
87102         (errno): Remove decl.
87103         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87104         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87105         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87106
87107 2004-11-28  Simon Josefsson  <jas@extundo.com>
87108
87109         * lib/base64.h, base64.c: New file.
87110
87111 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87112
87113         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87114
87115 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87116
87117         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87118         (Depends-on): Remove pathmax, same.  Add mempcpy.
87119         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87120         (Makefile.am): Append getcwd.h to lib_SOURCES.
87121         (Include): Add getcwd.h.
87122         (Maintainer): Change from Jim Meyering to "all, glibc",
87123         since getdate now uses intended-for-glibc code.
87124         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87125         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87126
87127 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87128
87129         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87130         HP's ANSI C compiler.
87131         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87132         Declaring int functions causes warnings on some modern systems and
87133         shouldn't be needed to compile on ancient ones.
87134         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87135         defined.
87136
87137         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87138         with the following changes.
87139         (__set_errno): Parenthesize properly.
87140         Include <stdbool.h>.
87141         (MIN, MAX, MATCHING_INO): New macros.
87142         (__getcwd): Define with prototype, not K&R form.
87143         Use heuristics to allocate default buffer on stack if possible.
87144         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87145         behavior, and to avoid the PATH_MAX limit when computing
87146         ../../../../...
87147         Use MATCHING_INO to compare inode number to file.
87148         Check for arithmetic overflow in size calculations.
87149         Fix bug in reallocation of dot array that caused getcwd to fail
87150         on directories nested deeper than 75.
87151         Be more careful about saving errno on error.
87152         Do not use realloc; use only free+malloc, as this is a bit
87153         more flexible and avoids a needless copy operation.
87154         Do not inspect st_dev and st_ino for symbolic links; POSIX
87155         doesn't specify the latter.
87156         Check for closedir errors.
87157         Avoid needless casts.
87158         Use "#ifdef weak_alias" around weak_alias, to be like other
87159         glibc code.
87160         The following changes to getcwd.c have effect only when used in
87161         gnulib; they have no effect inside glibc proper.
87162         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87163         as alloca isn't used.
87164         (alloca, __alloca): Likewise.
87165         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87166         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87167         unconditionally, as gnulib assumes C89 or better.
87168         Do not include <sys/param.h>.
87169         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87170         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87171         better.
87172         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87173         Include <dirent.h> in a way that is compatible with modern Autoconf.
87174         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87175         New macros, if not already defined.
87176         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87177         Use "_LIBC", not "defined _LIBC", for consistency.
87178         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87179         a mempcpy module.
87180         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87181         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87182         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87183         credit only to Jim Meyering and adjust the copyright dates.
87184         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87185         <stdlib.h>, <unistd.h>, "pathmax.h".
87186         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87187         (INITIAL_BUFFER_SIZE): Remove.
87188         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87189
87190 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87191
87192         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87193         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87194         Use the _ONCE methods, for efficiency.
87195         Check for fcntl.h.  In test program, include <errno.h>
87196         and <fcntl.h> if available.  Remove old K&R cruft from
87197         test program.  Check for common errors in GNU/Linux,
87198         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87199         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87200         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87201         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87202         name accordingly.
87203         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87204         accommodate new getcwd.c.
87205         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87206         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87207         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87208         that's all we need now.
87209
87210 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87211
87212         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87213         argp-parse.c depends on getopt internals, that means we should
87214         always use our getopt, to be on the safe side.
87215         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87216         order not to spoil the result of an eventual previous invocation
87217         of gl_GETOPT_SUBSTITUTE.
87218
87219 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87220
87221         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87222         redefinition warnings. To avoid them, include the defines
87223         in `#if !defined __need_getopt ... #endif'. The only place
87224         where __getopt_argv_const is used is in definitions
87225         of getopt_long and getopt_long_only below, which are as well
87226         protected by `#ifndef __need_getopt'.
87227         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87228         __need_getopt after including <stdio.h> and <unistd.h> These
87229         headers might have defined it.
87230
87231 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87232
87233         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87234
87235 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87236
87237         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87238         (futimens): New function, which uses futimes if available.
87239         (futimens, utimens): Support timespec==NULL, with same semantics
87240         as utime and utimens.
87241         * lib/utimens.h (futimens): New decl.
87242
87243 2004-11-23  Jim Meyering  <jim@meyering.net>
87244
87245         * lib/getopt_.h: Remove trailing blanks.
87246
87247 2004-11-23  Jim Meyering  <jim@meyering.net>
87248
87249         * lib/__fpending.c: Add comment.
87250
87251 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87252
87253         * modules/canonicalize (Depends-on): Add xreadlink.
87254         Problem reported by James Youngman.
87255
87256 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87257
87258         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87259         New macros.
87260         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87261         optopt): Use them instead of invoking ## directly; otherwise, the
87262         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87263
87264 2004-11-19  Bruno Haible  <bruno@clisp.org>
87265
87266         * lib/strtok_r.c: Move comments from here...
87267         * lib/strtok_r.h: ... to here.
87268
87269 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87270
87271         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87272         implementations that mishandle size_t overflow.
87273
87274 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87275
87276         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87277         might fail.  Problem reported by Yoann Vandoorselaere.
87278         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87279         implementations that mishandle size_t overflow.
87280
87281 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87282
87283         * modules/canon-host (Depends-on): Add strdup.
87284
87285 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87286
87287         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87288
87289 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87290
87291         * lib/canon-host.c: Include "strdup.h".
87292         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87293         Use strdup instead of malloc/strcpy to duplicate strings.
87294
87295         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87296         (human_space_before_unit): New constant.
87297         * lib/human.c (human_readable): Support it.
87298
87299         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87300         (xgetcwd): Set errno correctly when failing.
87301         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87302         the failure is actually due to a PATH_MAX problem.
87303
87304         Further getopt changes to make it more likely that glibc will
87305         buy the changes back.
87306         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87307         (getopt): Use it, so to preserve glibc semantic
87308         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87309         when compiling for libc.
87310         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87311         (getopt_long, getopt_long_only): Use it.
87312
87313         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87314         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87315         (getopt): Argv is now char * const *, as per standard.
87316         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87317         not char *__getopt_argv_const *.
87318         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87319         _getopt_long_only_r): Likewise.
87320         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87321         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87322         _getopt_long_r, _getopt_long_only_r): Likewise.
87323         * lib/getopt_.h (__getopt_argv_const): Remove.
87324         (getopt): Argv is now char * const *, as per standard.
87325
87326         * lib/getdate.y (tORDINAL): New token.
87327         (day, relunit): Allow it for relative times.
87328         (relative_time_table): Use tORDINAL for ordinals.
87329
87330 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87331
87332         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87333         Document that "second" isn't allowed as an ordinal number.
87334
87335 2004-11-16  Jim Meyering  <jim@meyering.net>
87336
87337         * modules/closeout (Depends-on): Add fpending.
87338
87339 2004-11-15  Jim Meyering  <jim@meyering.net>
87340
87341         * lib/closeout.c: Include "__fpending.h" once again.
87342         Include <stdbool.h>.
87343         (close_stdout): Don't fail just because stdout was closed initially,
87344         since some programs don't write to stdout in the normal course of
87345         operation (other than --version and --help), and we don't want this
87346         function to make e.g. `touch file >&-' fail.
87347         But do fail if it was closed and someone has tried to write to it.
87348         E.g., `printf foo >&-' must fail.
87349
87350 2004-11-13  Jim Meyering  <jim@meyering.net>
87351
87352         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87353
87354 2004-11-12  Simon Josefsson  <jas@extundo.com>
87355
87356         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87357         small doc fix is still pending.
87358
87359 2004-11-11  Simon Josefsson  <jas@extundo.com>
87360
87361         * modules/strtok_r: New file.
87362
87363         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87364         strtok_r.
87365
87366 2004-11-11  Simon Josefsson  <jas@extundo.com>
87367
87368         * m4/strtok_r.m4: New file.
87369
87370         * m4/getopt.m4: Replace opterr.
87371
87372 2004-11-11  Simon Josefsson  <jas@extundo.com>
87373
87374         * lib/strtok_r.h, strtok_r.c: New file.
87375
87376 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87377
87378         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87379         of replacing opterr, getopt, etc.  This should handle the
87380         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87381
87382 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87383
87384         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87385         we can stop lying to compilers about the constness of argv when we
87386         are compiled outside glibc.
87387         (getopt, getopt_long, getopt_long_only): Use it.
87388         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87389         _getopt_internal, getopt): Likewise.
87390         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87391         _getopt_long_only_r): Likewise.
87392         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87393         _getopt_long_r, _getopt_long_only_r): Likewise.
87394
87395         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87396         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87397         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87398         the other external symbols.
87399         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87400         declaration, since the above renaming now works around collisions.
87401
87402 2004-11-11  Jim Meyering  <jim@meyering.net>
87403
87404         * lib/linebreak.c: Remove trailing blanks.
87405         * lib/alloca_.h: Likewise.
87406         * lib/acosl.c: Likewise.
87407         * lib/euidaccess.c: Likewise.
87408         * lib/allocsa.h: Likewise.
87409
87410 2004-11-10  Simon Josefsson  <jas@extundo.com>
87411
87412         * m4/getaddrinfo.m4: New file.
87413
87414 2004-11-10  Simon Josefsson  <jas@extundo.com>
87415
87416         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87417
87418 2004-11-10  Simon Josefsson  <jas@extundo.com>
87419
87420         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87421         getaddrinfo.
87422
87423         * modules/getaddrinfo: New file.
87424
87425 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87426
87427         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87428
87429 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87430
87431         * lib/mktime.c (SHR): New macro, which is a portable
87432         substitute for >> that should work even on Crays.
87433         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87434         Problem reported by Mark D. Baushke in
87435         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87436         * lib/getdate.y (SHR): Likewise.
87437         (tm_diff): Use it.
87438         * lib/strftime.c (SHR): Likewise.
87439         (tm_diff): Use it.
87440         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87441         quote_these_too, so that right shifts are well defined.  All uses
87442         changed.
87443
87444 2004-11-10  Jim Meyering  <jim@meyering.net>
87445
87446         Ensure that no close failure goes unreported.
87447         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87448         return early when it seems there's nothing to flush.
87449         Don't include __fpending.h.
87450
87451 2004-11-10  Jim Meyering  <jim@meyering.net>
87452
87453         * modules/closeout (Depends-on): Remove fpending.
87454
87455 2004-11-10  Jim Meyering  <jim@meyering.net>
87456
87457         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87458
87459 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87460
87461         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87462         gl_FUNC_STRFTIME.
87463         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87464         and AC_REQUIRE when possible, to avoid duplicate checks.
87465         Check for <wchar.h>.
87466
87467 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87468
87469         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87470
87471 2004-11-09  Bruno Haible  <bruno@clisp.org>
87472
87473         * m4/sockpfaf.m4: New file.
87474
87475 2004-11-05  Bruno Haible  <bruno@clisp.org>
87476
87477         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87478         Reported by Mark D. Baushke <mdb@cvshome.org>.
87479
87480 2004-11-04  Bruno Haible  <bruno@clisp.org>
87481
87482         2004-09-11  Bruno Haible  <bruno@clisp.org>
87483                 * allocsa.valgrind: New file.
87484         2004-02-06  Bruno Haible  <bruno@clisp.org>
87485                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87486                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87487                 Reported by Christopher Seip <chris.seip@hp.com>.
87488
87489 2004-11-04  Bruno Haible  <bruno@clisp.org>
87490
87491         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87492         (Makefile.am): Distribute it.
87493
87494 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87495
87496         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87497         with errno == ERANGE if the buffer is too small.
87498         Problem reported by Mark D. Baushke.
87499
87500 2004-11-03  Albert Chin  <china@thewrittenword.com>
87501             Paul Eggert  <eggert@cs.ucla.edu>
87502
87503         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87504         equivalent, substitute $ac_type for equivalent type rather than
87505         blindly using uint32_t *always* which won't work if uint32_t is not
87506         available.  Define _UINT32_T to work around typedef of uint32_t if
87507         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87508         2.5.1.
87509
87510 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87511
87512         * m4/jm-macros.m4: Sync from coreutils.
87513         (gl_MACROS): Check for mbrlen, for pathchk.
87514         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87515
87516 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87517
87518         * lib/xreadlink.c (MAXSIZE): New macro.
87519         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87520         size does not exceed MAXSIZE.  Avoid cast.
87521         As suggested by Mark D. Baushke in
87522         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87523         if readlink fails with buffer size just under MAXSIZE, try again
87524         with MAXSIZE.
87525
87526 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87527
87528         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87529
87530 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87531         and  Paul Eggert  <eggert@cs.ucla.edu>
87532
87533         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87534         (get_date): Overparenthesize to avoid GCC warning.
87535
87536 2004-11-02  Bruno Haible  <bruno@clisp.org>
87537
87538         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87539         returns void.
87540
87541 2004-11-02  Bruno Haible  <bruno@clisp.org>
87542
87543         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87544         function returns void.
87545
87546 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87547
87548         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87549         fflush_unlocked, flockfile, funlockfile, funlockfile,
87550         fputs_unlocked, putc_unlocked.
87551
87552 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87553
87554         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87555         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87556         already declared.
87557
87558 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87559
87560         * modules/getdate (Files): Add doc/getdate.texi.
87561         (Depends-on): Add setenv, xalloc.
87562
87563 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87564
87565         * lib/getdate.y: Add support for TZ="foo" within a date string.
87566         Fix some bugs near time_t boundaries.  Reject dates with
87567         out-of-range components, e.g., "Sept 31".
87568         Include <stdlib.h>, "setenv.h", "xalloc.h".
87569         (ISDIGIT_LOCALE): Remove; unused.
87570         Note that the TZ and time functions used here are not reentrant.
87571         (mktime_ok, get_tz): New functions.
87572         (TZBUFSIZE): New constant.
87573         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87574         This requires that we sometimes generate our own TZ="XXX..." setting.
87575
87576 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87577
87578         * doc/getdate.texi: New file, from coreutils with modifications for
87579         the new TZ parsing.
87580
87581 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87582
87583         * lib/mktime.c (not_equal_tm): Remove redundant check.
87584
87585 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87586
87587         * modules/regex (lib_SOURCES): Add regex.c.
87588         Reported by James Youngman in
87589         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87590
87591 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87592
87593         * lib/getdate.y: Use Bison 1.875 features, and some minor
87594         code cleanups.  This change does not affect semantics.
87595         Don't include <stdlib.h>; no longer needed.
87596         Don't include unlocked-io.h; only the "#if TEST" code uses
87597         stdio, and performance isn't crucial there.
87598         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87599         Bison 1.875 features as described below.
87600         All uses of "PC." replaced by "pc->".
87601         (YYSTYPE): Add a forward declaration.
87602         (yylex, yyerror): Use full prototypes in forward decls.
87603         Use "%pure-parser" rather than obsolescent "%pure_parser".
87604         Use %parse-param and %lex-param instead of obsolescent
87605         YYPARSE_PARAM and YYLEX_PARAM.
87606         (meridian_table, month_and_day_table, time_units_table,
87607         relative_time_table, time_zone_table, military_table,
87608         lookup_zone, lookup_word, get_date):
87609         Use NULL instead of 0 where appropriate.
87610         (to_hour): Avoid abort (), to avoid a dependency on
87611         stdlib.h.
87612         (yyerror, yylex): Now accepts parser_control * arg.
87613         (main) [TEST]: Use '\0' rather than 0 for char.
87614
87615 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87616
87617         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
87618
87619 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87620
87621         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
87622         It's now the caller's responsibility to handle the case where
87623         !HAVE_GETPAGESIZE && !defined getpagesize.
87624
87625         * lib/mktime.c (leapyear): Arg is long int, not int.
87626
87627 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
87628
87629         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
87630
87631 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87632
87633         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
87634         missing.  Problem reported by James Youngman.
87635
87636 2004-10-16  Simon Josefsson  <jas@extundo.com>
87637
87638         * gnulib-tool: Fix comments.  Fix parse problem.
87639         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
87640
87641 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
87642
87643         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
87644         implementation of getopt_long.  Problem reported by Alexander Taler in:
87645         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
87646
87647 2004-10-15  Bruno Haible  <bruno@clisp.org>
87648
87649         * gnulib-tool: Untabify. Initialize supplied_libname.
87650         (func_usage): More homogenous output.
87651         (func_modules_transitive_closure, func_modules_to_filelist,
87652         func_emit_lib_Makefile_am): New functions.
87653         (func_import): New function, extracted from big case statement. Use
87654         func_get_license, func_modules_transitive_closure,
87655         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
87656         opt_lgpl. Don't use test -a, as it's not portable.
87657         (func_create_testdir): Use func_modules_transitive_closure,
87658         func_modules_to_filelist, func_emit_lib_Makefile_am.
87659
87660 2004-10-15  Bruno Haible  <bruno@clisp.org>
87661
87662         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
87663
87664 2004-10-15  Bruno Haible  <bruno@clisp.org>
87665
87666         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
87667         the portions belonging to each module.
87668         Suggested by Derek Robert Price <derek@ximbiot.com>.
87669
87670 2004-10-12  Simon Josefsson  <jas@extundo.com>
87671
87672         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87673         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
87674         to real functions.
87675
87676 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87677
87678         * modules/vsnprintf: New file.
87679
87680 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87681
87682         * m4/vsnprintf.m4: New file.
87683
87684 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87685
87686         * lib/vsnprintf.h: New file.
87687         * lib/vsnprintf.c: New file.
87688
87689 2004-10-11  Bruno Haible  <bruno@clisp.org>
87690
87691         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
87692         vsnprintf.
87693
87694 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87695
87696         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
87697
87698 2004-10-07  Bruno Haible  <bruno@clisp.org>
87699
87700         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
87701         fits into the provided buffer.
87702
87703 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87704
87705         * lib/diacrit.c, diacrit.h: Add GPL notice.
87706
87707         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
87708         notice.
87709         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
87710         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
87711         This avoids a potential constant-folding bug.
87712
87713 2004-10-05  Bruno Haible  <bruno@clisp.org>
87714
87715         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
87716         for the declaration of strsep.
87717
87718 2004-10-05  Bruno Haible  <bruno@clisp.org>
87719
87720         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
87721
87722 2004-10-04  Simon Josefsson  <jas@extundo.com>
87723
87724         * modules/memmem: New file.
87725         * tests/test-memmem.c: New file.
87726         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
87727
87728 2004-10-04  Simon Josefsson  <jas@extundo.com>
87729
87730         * m4/memmem.m4: New file.
87731
87732 2004-10-04  Simon Josefsson  <jas@extundo.com>
87733
87734         * lib/memmem.h: New file.
87735         * lib/memmem.c: New file, taken from glibc.
87736
87737 2004-10-04  Simon Josefsson  <jas@extundo.com>
87738
87739         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
87740         '#ifdef USE_UNLOCKED_IO'.
87741
87742 2004-10-04  Simon Josefsson  <jas@extundo.com>
87743
87744         * config/srclist.txt: Add memmem from glibc.
87745
87746 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87747
87748         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
87749
87750         * modules/argmatch, modules/argp, modules/closeout, modules/error,
87751         modules/exclude, modules/getdate, modules/getline,
87752         modules/getndelim2, modules/getpass, modules/getpass-gnu,
87753         modules/getusershell, modules/linebuffer, modules/md5,
87754         modules/mountlist, modules/posixtm, modules/readtokens,
87755         modules/readutmp, modules/regex, modules/sha1,
87756         modules/version-etc, modules/yesno:
87757         Remove dependency on unlocked-io.
87758
87759 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87760
87761         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
87762
87763         * m4/unlocked-io.m4: Add copyright notice.
87764         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
87765
87766 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87767
87768         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
87769         * lib/xmalloc.c (xmemdup): Likewise.
87770         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
87771         XFREE): Remove these long-obsolescent macros.
87772         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
87773         * lib/xstrdup.c: Remove.
87774
87775         * lib/regex.c (re_comp): Cast gettext return value to char *,
87776         Problem reported by Martin Neitzel via Mark D. Baushke.
87777
87778 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87779
87780         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
87781         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
87782         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
87783         regex.c, sha1.c, version-etc.c, yesno.c:
87784         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
87785         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
87786         the includer's responsibility.
87787
87788         Sync from coreutils.
87789
87790         * lib/modechange.c (mode_compile): Don't decrement a pointer that
87791         points to the start of a string, as the C Standard says the
87792         resulting behavior is undefined.
87793
87794         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
87795         simple -> simple_backups, numbered_existing ->
87796         numbered_existing_backups, numbered -> numbered_backups
87797         to avoid shadowing problems.  All uses changed.
87798         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
87799         * lib/backupfile.c (check_extension, numbered_backup):
87800         Rename locals to avoid shadowing 'basename'.
87801         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
87802         once.
87803
87804         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
87805         * lib/.cvsignore: Add getopt.h.
87806
87807 2004-10-04  Bruno Haible  <bruno@clisp.org>
87808
87809         * modules/README: New file.
87810         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
87811         not a module.
87812
87813 2004-10-02  Jim Meyering  <jim@meyering.net>
87814
87815         * lib/dirfd.h, getpagesize.h: Add copyright notice.
87816
87817 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87818
87819         * modules/strsep: New file.
87820
87821 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87822
87823         * m4/strsep.m4: New file.
87824
87825 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87826
87827         * lib/strsep.h: New file.
87828         * lib/strsep.c: New file.
87829
87830 2004-10-01  Simon Josefsson  <jas@extundo.com>
87831
87832         * lib/snprintf.c (snprintf): Handle size==0.
87833
87834 2004-10-01  Simon Josefsson  <jas@extundo.com>
87835             Bruno Haible  <bruno@clisp.org>
87836
87837         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
87838         (snprintf): Declare 'args'.
87839
87840 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
87841
87842         * lib/snprintf.c: Remove comments as to why each header is needed.
87843
87844 2004-10-01  Bruno Haible  <bruno@clisp.org>
87845
87846         * MODULES.html.sh: Add strsep.
87847
87848 2004-09-30  Simon Josefsson  <jas@extundo.com>
87849
87850         * modules/snprintf: New file.
87851
87852 2004-09-30  Simon Josefsson  <jas@extundo.com>
87853
87854         * m4/snprintf.m4: New file.
87855
87856 2004-09-30  Simon Josefsson  <jas@extundo.com>
87857
87858         * lib/snprintf.h, lib/snprintf.c: New files.
87859
87860 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87861
87862         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
87863         (hol_entry_help): Never translate an empty string.
87864         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
87865         * lib/argp.h (OPTION_NO_TRANS): New option.
87866
87867 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87868
87869         * modules/argp (Maintainer): Replace Simon Josefsson
87870         by Sergey Poznyakoff.
87871
87872 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87873
87874         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
87875         changes merged back into glibc.
87876
87877 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87878
87879         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
87880
87881 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
87882
87883         * lib/xvasprintf.c: Include xalloc.h.
87884         (xvasprintf): Use xalloc_die, not xmalloc_die.
87885
87886 2004-09-29  Bruno Haible  <bruno@clisp.org>
87887
87888         * modules/alloca-opt: New file, derived from modules/alloca.
87889         * modules/allocsa: Depend on alloca-opt instead of alloca.
87890         * modules/setenv: Likewise.
87891         * modules/vasnprintf: Likewise.
87892         * MODULES.html.sh: Add alloca-opt.
87893
87894 2004-09-28  Simon Josefsson  <jas@extundo.com>
87895
87896         * gnulib-tool: New parameter --lgpl, to asseert that modules are
87897         LGPL, and to replace license template from GPL to LGPL.
87898
87899 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87900
87901         * modules/dummy: Change license to LGPL.
87902
87903 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87904
87905         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
87906
87907 2004-09-24  Simon Josefsson  <jas@extundo.com>
87908
87909         * modules/minmax (License): Change from GPL to LGPL.
87910
87911 2004-09-23  Simon Josefsson  <jas@extundo.com>
87912
87913         * gnulib-tool (--import): Typo.
87914
87915 2004-09-23  Simon Josefsson  <jas@extundo.com>
87916
87917         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
87918
87919 2004-09-22  Bruno Haible  <bruno@clisp.org>
87920
87921         * modules/*: Add 'License' field.
87922         * gnulib-tool: Accept --extract-license option.
87923         (func_get_license): New function.
87924
87925 2004-09-21  Bruno Haible  <bruno@clisp.org>
87926
87927         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
87928         Reported by Simon Josefsson.
87929
87930 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87931
87932         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
87933         gl_AC_TYPE_LONG_LONG.
87934
87935 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87936
87937         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
87938
87939 2004-09-18  Simon Josefsson  <jas@extundo.com>
87940         and  Paul Eggert  <eggert@cs.ucla.edu>
87941
87942         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
87943         calls with autoreconf.  Define GL_LIB.
87944
87945 2004-09-14  Karl Berry  <karl@gnu.org>
87946
87947         * config/srclist.txt: unsync setenv.c, sigh.
87948
87949 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87950
87951         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
87952         Problem reported by Bruno Haible in:
87953         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
87954
87955 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87956
87957         * config/srclist.txt: Comment out argp-pvh.c.
87958
87959 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
87960
87961         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
87962         in case some system header has #define'd it.  Problem reported by
87963         Soeren D. Schulze in
87964         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
87965
87966 2004-09-09  Karl Berry  <karl@gnu.org>
87967
87968         * regex.[ch]: delete from the root.  These were supposed to be
87969                 synced with emacs cvs, but this has not happened for about
87970                 a year, and anyway nothing else uses emacs regex.[ch].
87971                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
87972                 lib/regex[.ch] is untouched.
87973
87974 2004-09-09  Bruno Haible  <bruno@clisp.org>
87975
87976         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
87977
87978 2004-09-09  Bruno Haible  <bruno@clisp.org>
87979
87980         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
87981         modifications.
87982         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
87983
87984 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87985
87986         * modules/xvasprintf: New file.
87987         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
87988
87989 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87990
87991         * lib/xvasprintf.h: New file.
87992         * lib/xvasprintf.c: New file.
87993         * lib/xasprintf.c: New file.
87994
87995 2004-09-08  Bruno Haible  <bruno@clisp.org>
87996
87997         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
87998
87999 2004-09-08  Bruno Haible  <bruno@clisp.org>
88000
88001         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88002         length is > INT_MAX.
88003         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88004         more.
88005
88006 2004-09-08  Bruno Haible  <bruno@clisp.org>
88007
88008         * lib/stdint_.h: New file, taken from GNU clisp.
88009
88010 2004-09-08  Bruno Haible  <bruno@clisp.org>
88011             Oskar Liljeblad  <oskar@osk.mine.nu>
88012
88013         * modules/stdint: New file.
88014         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88015
88016 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88017
88018         Import from coreutils.
88019         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88020         strings on unbounded length.  alloca's performance benefits aren't
88021         that important here.
88022         (V_STRDUP): Remove.
88023         (parse_with_separator): New function, with most of the internals
88024         of the old parse_user_spec.  Allow user to omit both user and group,
88025         for compatibility with FreeBSD.
88026         Clone only the user name, not the entire spec.
88027         Do not set *uid, *gid unless entirely successful.
88028         Avoid memory leak in some failing cases.
88029         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88030         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88031         (parse_user_spec): Rewrite to use parse_with_separator.
88032
88033 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88034
88035         * modules/userspec: Don't depend on alloca.
88036
88037 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88038
88039         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88040
88041 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88042
88043         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88044         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88045         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88046
88047 2004-08-16  Simon Josefsson  <jas@extundo.com>
88048
88049         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88050         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88051         Add --dry-run for --import.
88052         Let user provided command line parameters override configure.ac
88053         settings.
88054
88055 2004-08-12  Simon Josefsson  <jas@extundo.com>
88056
88057         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88058         as discussed with Paul Eggert in threads rooted at
88059         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88060         and
88061         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88062         Before, the test was empty, and relied on ELIDE_CODE in source
88063         code.)
88064         (gl_PREREQ_GETOPT): New macro.
88065         (gl_GETOPT): Use them.
88066
88067 2004-08-12  Simon Josefsson  <jas@extundo.com>
88068
88069         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88070         * lib/getopt_.h: Renamed from getopt.h.
88071
88072 2004-08-12  Simon Josefsson  <jas@extundo.com>
88073
88074         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88075         Change default library name from libfoo to libgnu.
88076         Now, if you have a configure.ac that says:
88077                 gl_SOURCE_BASE(gl)
88078                 gl_M4_BASE(gl/m4)
88079                 gl_MODULES(error getopt etcetera)
88080                 gl_INIT
88081         you can import all you need by running:
88082                 ../gnulib/gnulib-tool --import
88083
88084         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88085         (Makefile.am): Rewrite, use logic from argz.
88086         (Include): Use <getopt.h> instead of "getopt.h".
88087
88088 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88089
88090         * modules/argp (Files): Add m4/unlocked-io.m4.
88091         (Depends-on): Add extensions.
88092
88093 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88094
88095         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88096         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88097         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88098         Check for program_invocation_name, program_invocation_short_name,
88099         flockfile, funlockfile, features.h, _getopt_long_only_r.
88100
88101 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88102
88103         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88104         its complicated substitute.
88105         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88106         and program_invocation_name.
88107         (__argp_basename) [!_LIBC]: Remove; the only use was
88108         replaced by its body.
88109         (__argp_short_program_name): Change condition from
88110         !defined __argp_short_program_name to
88111         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88112         to match argp-namefrob.h.
88113         (__argp_failure): Don't assume strerror_r returns char *.
88114         * lib/argp-parse.c (N_): Define unconditionally.
88115         (argp_default_options): Fill out initializers with 0 to avoid
88116         gcc warnings.
88117
88118 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88119
88120         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88121         getopt1.c.
88122
88123 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88124
88125         Merge from coreutils.
88126
88127         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88128
88129         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88130         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88131
88132 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88133
88134         Merge from coreutils.
88135
88136         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88137         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88138         for Reliant Unix 5.43.
88139
88140         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88141         (union fooround): Use uintmax_t, not long int.
88142         The rest is a merge from libc:
88143         [defined _LIBC]: Include <shlib-compat.h>.
88144         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88145
88146         * lib/settime.c (settime): Recode to avoid warning with
88147         Sun Forte C 6U2.
88148
88149         * lib/strverscmp.c: Convert to UTF-8.
88150
88151 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88152
88153         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88154         m4/uintmax_t.m4.
88155
88156 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88157
88158         * modules/xalloc-die: New file.
88159         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88160
88161         * modules/md5 (Files): Add m4/uint32_t.m4.
88162         * modules/sha1: Renamed from modules/sha.
88163         (Files):
88164         Rename lib/sha.h to lib/sha1.h.
88165         Rename lib/sha.c to lib/sha1.c.
88166         Rename m4/sha.m4 to m4/sha1.m4.
88167         (lib_SOURCES): Likewise.
88168         (configure.ac): Rename gl_SHA to gl_SHA1.
88169         (Include): sha.h -> sha1.h.
88170
88171 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88172
88173         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88174         * m4/sha1.m4: Renamed from sha.m4.
88175         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88176
88177 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88178
88179         * lib/obstack.h (obstack_empty_p):
88180         Don't assume that chunk->contents is suitably aligned.
88181         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88182         Likewise. Problem reported by Benno in
88183         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88184
88185         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88186         readable.  This could be improved further but it'd take some work.
88187
88188 2004-08-08  Simon Josefsson  <jas@extundo.com>
88189
88190         * modules/xgethostname (Depends-on): Remove exit and error (not
88191         used).
88192
88193         * modules/getpass-gnu: Add getpass.h.
88194         (Depends-on): Add stdbool.
88195         * modules/getpass: Add getpass.h.
88196
88197 2004-08-08  Simon Josefsson  <jas@extundo.com>
88198
88199         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88200         Check getpass declaration.
88201
88202 2004-08-08  Simon Josefsson  <jas@extundo.com>
88203
88204         * lib/xgethostname.c: Don't include error.h (not used).
88205
88206         * lib/getpass.h: Add.
88207         * lib/getpass.c: Include getpass.h first.
88208
88209 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88210
88211         * lib/xalloc-die.c: New file.
88212         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88213         All uses removed.
88214         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88215         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88216         xalloc-die.c.
88217         (_, N_, xalloc_die): Move to xalloc-die.c.
88218         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88219         so that we needn't mess with xalloc_msg_memory_exhausted.
88220
88221         * lib/sha1.h: Renamed from sha.h.
88222         (SHA1_H): Renamed from _SHA_H.
88223         (sha1_ctx): Renamed from sha_ctx.
88224         (sha1_init_ctx): Renamed from sha_init_ctx.
88225         (sha1_process_block): Renamed from sha_process_block.
88226         (sha1_process_bytes): Renamed from sha_process_bytes.
88227         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88228         (sha1_read_ctx): Renamed from sha_read_ctx.
88229         (sha1_stream): Renamed from sha_stream.
88230         (sha1_buffer): Renamed from sha_buffer.
88231         * lib/sha1.c: Likewise; renamed from sha.c.
88232         Do not include <sys/types.h>.
88233         Include <stddef.h> rather than <stdlib.h>.
88234
88235 2004-08-08  Bruno Haible  <bruno@clisp.org>
88236
88237         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88238         FILESYSTEM_PREFIX_LEN.
88239         * lib/progreloc.c: Likewise.
88240         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88241
88242 2004-08-06  Simon Josefsson  <jas@extundo.com>
88243
88244         * modules/progname (Depends-on): Don't depend on stdbool.
88245
88246 2004-08-06  Simon Josefsson  <jas@extundo.com>
88247
88248         * modules/getsubopt: New file.
88249         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88250         getsubopt.
88251
88252 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88253
88254         More merge from coreutils.
88255
88256         * m4/utimens.m4, m4/utimecmp.m4: New files.
88257         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88258         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88259         prereq.m4, sha.m4: Import changes from coreutils.
88260
88261 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88262
88263         More merge from coreutils.
88264         * modules/raise, modules/readtokens0, modules/utimens:
88265         * modules/utimecmp, module/xnanosleep: New files.
88266         * modules/strftime: Add lib/strftime.h.
88267         Change include from <time.h> to "strftime.h".
88268         * modules/yesno: Add lib/yesno.h.
88269         * modules/backupfile: Remove lib/addext.c.
88270         * modules/euidaccess: Add stat-macros.h.
88271         * modules/canonicalize, modules/euidaccess,
88272         modules/filemode, modules/lchown, modules/makepath,
88273         modules/rmdir, modules/stat: Likewise.
88274
88275 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88276
88277         Merge from tar.
88278         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88279         SIZE_MAX is a valid preprocessor constant.
88280         (__argp_basename): Change from "#ifndef _LIBC"
88281         to "#ifndef __argp_short_program_name", so that
88282         we don't compile these functions for tar.
88283
88284         More merges from coreutils.
88285         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88286         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88287         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88288         * lib/addext.c: Remove; no longer needed.
88289         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88290         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88291         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88292         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88293         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88294         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88295         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88296         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88297         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88298         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88299         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88300         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88301         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88302         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88303         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88304         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88305         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88306         Import changes from coreutils.
88307
88308 2004-08-05  Simon Josefsson  <jas@extundo.com>
88309
88310         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88311
88312 2004-08-05  Simon Josefsson  <jas@extundo.com>
88313
88314         * m4/getsubopt.m4: New file.
88315
88316 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88317
88318         Merge from coreutils.
88319
88320         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88321         * m4/getcwd-path-max.m4: New files.
88322
88323         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88324         FILESYSTEM_PREFIX_LEN ->
88325         FILE_SYSTEM_PREFIX_LEN.
88326         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88327         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88328         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88329         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88330
88331         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88332         prerequisite modules now handle the DOS stuff.
88333         Don't check for unistd.h.
88334
88335 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88336
88337         Merge from coreutils.
88338
88339         * lib/.gdb-history: Remove; this doesn't belong here.
88340
88341         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88342         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88343         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88344         * lib/getcwd.c: New files.
88345
88346         * lib/dirname.h: Include <stdbool.h>.
88347         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88348         for consistency with POSIX terminology.  All uses changed.
88349         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88350         (strip_trailing_slashes): Use bool for booleans.
88351         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88352
88353         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88354         sometimes returns a positive errno value even when it succeeds.
88355         (print_errno_message) [!LIBC]: Fall back on strerror if
88356         __strerror_r fails.
88357
88358         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88359         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88360         (longest_relative_suffix): New function.
88361         (path_concat): Use it.  Assume first argument is not NULL.
88362         Port to DOS.  Omit redundant separators.
88363         Report an error instead of returning NULL.
88364         Use mempcpy instead of memcpy.
88365         (xpath_concat): Remove: not declared or used.
88366
88367         * lib/same.h: Include <stdbool.h>
88368         (same_name): Return bool, not int.
88369         * lib/same.c (same_name): Likewise.
88370         (errno): Don't declare; we assume C89 or better now.
88371
88372         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88373         if not already defined.
88374
88375         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88376         * lib/dup-safer.c (errno): Likewise.
88377
88378 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88379
88380         Merge from coreutils.
88381         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88382         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88383         * modules/path-concat: Don't depend on strdup.
88384
88385 2004-08-03  Simon Josefsson  <jas@extundo.com>
88386
88387         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88388         * lib/progname.h: Don't include stdbool.h.
88389
88390 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88391
88392         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88393         * MODULES.html.sh (func_all_modules): Remove fatal.
88394
88395 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88396
88397         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88398
88399 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88400
88401         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88402         working.
88403
88404 2004-08-02  Simon Josefsson  <jas@extundo.com>
88405
88406         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88407         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88408         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88409
88410 2004-08-01  Simon Josefsson  <jas@extundo.com>
88411
88412         * lib/xgetdomainname.c: Include stdlib.h, for free().
88413
88414 2004-07-19  Bruno Haible  <bruno@clisp.org>
88415
88416         * MODULES.html.sh (func_all_modules): Add dummy.
88417
88418 2004-07-16  Simon Josefsson  <jas@extundo.com>
88419
88420         * modules/dummy: New file.
88421
88422 2004-07-16  Simon Josefsson  <jas@extundo.com>
88423
88424         * lib/dummy.c: New file.
88425
88426 2004-07-16  Bruno Haible  <bruno@clisp.org>
88427
88428         * lib/backupfile.h: Add extern "C" for C++.
88429         * lib/closeout.h: Likewise.
88430         * lib/copy-file.h: Likewise.
88431         * lib/findprog.h: Likewise.
88432         * lib/full-write.h: Likewise.
88433         * lib/pathname.h: Likewise.
88434         * lib/progname.h: Likewise.
88435         * lib/stpcpy.h: Likewise.
88436         * lib/stpncpy.h: Likewise.
88437         * lib/strcase.h: Likewise.
88438         * lib/strstr.h: Likewise.
88439         * lib/xalloc.h: Likewise.
88440
88441         * lib/mbswidth.h: Add extern "C" for C++.
88442         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88443
88444 2004-07-13  Robert Millan  <robertmh@gnu.org>
88445
88446         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88447
88448 2004-07-09  Simon Josefsson  <jas@extundo.com>
88449
88450         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88451         failed without this.)
88452
88453 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88454
88455         * modules/chown (Files): Add lib/fchown-stub.c, since
88456         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88457
88458 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88459
88460         * lib/fchown-stub.c: New file.
88461
88462 2004-06-24  Jim Meyering  <jim@meyering.net>
88463
88464         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88465
88466 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88467
88468         * modules/argz: Omit "#include".
88469
88470         * MODULES.html.sh (func_all_modules): Add calloc, to match
88471         2004-06-01 addition of calloc module.
88472
88473 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88474
88475         * m4/argz.m4: New file, which is autoupdated from libtool.
88476
88477 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88478
88479         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88480         libtool.
88481
88482 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88483
88484         * config/srclist-update: Don't insist on "USA." before the
88485         close-comment, as libtool omits the period and puts the */ on a
88486         separate line.
88487         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88488         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88489
88490 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88491
88492         * modules/argz: New file.
88493         * MODULES.html.sh (func_all_modules): Add argz.
88494
88495 2004-06-12  Jim Meyering  <jim@meyering.net>
88496         and  Paul Eggert  <eggert@cs.ucla.edu>
88497
88498         * modules/hash (Files): Add lib/xalloc.h.
88499         * modules/pipe (Depends-on): Add wait-process.
88500         * modules/stat (Depends-on): Add xalloc.
88501         * modules/userspec (Files): Add lib/userspec.h.
88502         * modules/xstrto
88503
88504         Upgrade from gettext-0.13.
88505         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88506         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88507         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88508
88509 2004-06-10  Jim Meyering  <jim@meyering.net>
88510
88511         * lib/calloc.c: New file.
88512
88513 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88514
88515         * lib/getdate.y (yylex): Allow space between sign and number.
88516         Problem reported by Dan Jacobson.
88517
88518 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88519
88520         Merge from coreutils CVS.
88521
88522         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88523         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88524         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88525         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88526         xstrtol.m4: Fix copyright date and/or serial number.
88527
88528         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88529         See if we need an fchown replacement.
88530         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88531         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88532         and use the replacement function if we detect either defect.
88533
88534         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88535         gl_UTIMECMP.
88536
88537 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88538         and  Jim Meyering  <jim@meyering.net>
88539
88540         Merge from coreutils CVS.
88541
88542         * lib/stat-macros.h: New file, with contents from file-type.h
88543         and coreutils' system.h.
88544         * lib/file-type.c: Include "stat-macros.h".
88545         * lib/file-type.h (file_type): Move all macro definitions to new file,
88546         stat-macros.h.
88547
88548         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88549         Wrap old code with this conditional.
88550         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88551         function that does not dereference symlinks.
88552         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88553
88554         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88555         dependency problems.
88556         (xreadlink): Accept new arg SIZE, for efficiency.
88557         All decls and uses changed.
88558         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88559
88560         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88561         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88562
88563         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88564         sysexits.h.
88565
88566 2004-06-01  Jim Meyering  <jim@meyering.net>
88567
88568         * m4/calloc.m4: New file.
88569
88570 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88571
88572         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88573         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88574         Also, fix a typo in a diagnostic.
88575
88576 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88577
88578         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88579         or AC_FUNC_REALLOC.
88580
88581 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88582
88583         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88584         macros to be defined.
88585         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88586         the allocator returns NULL because the requested size is zero.
88587
88588 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88589
88590         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88591         var.  Add comment explaining why libc still defines it.  This
88592         merges the following patch from glibc:
88593         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88594
88595 2004-05-20  Andreas Schwab  <schwab@suse.de>
88596
88597         * m4/free.m4: Replace free if it not known to work, not the other
88598         way round.
88599
88600 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88601
88602         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
88603         present in glibc since revision 1.1 of this file.
88604         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
88605         obstack_alignment_mask, obstack_alloc, obstack_base,
88606         obstack_blank, obstack_blank_fast, obstack_chunk_size,
88607         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
88608         obstack_grow0, obstack_init, obstack_int_grow,
88609         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
88610         obstack_next_free, obstack_object_size, obstack_ptr_grow,
88611         obstack_ptr_grow_fast, obstack_room): Remove declarations of
88612         nonexistent functions.
88613
88614 2004-05-18  Karl Berry  <karl@gnu.org>
88615
88616         * config/srclist.txt: break link for vasnprintf.c.
88617
88618 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88619
88620         Port obstack to the AS/400, where pointers are 16 bytes wide and
88621         you cannot cast an integer to a valid pointer.  This patch is
88622         currently waiting to be integrated into glibc; see
88623         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
88624
88625         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
88626         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
88627         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
88628         (struct obstack): temp member is now a union of a pointer and
88629         an integer, instead of an integer.  All integer uses changed.
88630         This does not affect the physical layout of struct obstack,
88631         except on hosts (like the AS/400) where the size or alignment of
88632         void * is greater than that of ptrdiff_t.
88633         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
88634         __STDC__)]: Store temporary in pointer member of union, not
88635         integer member.
88636         * lib/obstack.c: Include <stddef.h>, for offsetof.
88637         (struct fooalign): Remove; it doesn't need a name.
88638         (union fooround): Change double to long double, and add void *.
88639         (DEFAULT_ALIGNMENT): Use offsetof to compute.
88640         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
88641         not a macro.  Hence the values are always int; so remove all
88642         casts-to-int in uses.
88643
88644 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88645
88646         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
88647         we can get this patch merged into glibc.
88648
88649 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88650             Paul Eggert  <eggert@cs.ucla.edu>
88651
88652         * m4/argp: Depend on alloca.
88653
88654 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88655             Paul Eggert  <eggert@cs.ucla.edu>
88656
88657         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
88658         freecoding.
88659
88660 2004-05-17  Bruno Haible  <bruno@clisp.org>
88661
88662         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
88663         precision that consists of a '.' followed by an empty digit string.
88664         Patch by Tor Lillqvist <tml@iki.fi>.
88665
88666 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88667
88668         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
88669         for backward compatibility with older code.  We need our own
88670         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
88671         it under some other name, and our alloca.h will define it.
88672
88673 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88674             Derek Price  <derek@ximbiot.com>
88675
88676         * lib/alloca.c: Include <alloca.h>, to get our interface.
88677         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
88678         include <alloca.h> first.  Use C89 prototype for alloca; this
88679         requires including <stddef.h> for size_t.  Use extern "C" if C++.
88680         Use #elif for simplicity, since we can assume C89 now.
88681         Don't try to source the system alloca.h since it will not be found
88682         and to prevent recursively including its replacement.
88683         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
88684         * lib/regex.c: Likewise.
88685
88686 2004-05-16  Derek Price  <derek@ximbiot.com>
88687             Paul Eggert  <eggert@cs.ucla.edu>
88688
88689         getline cleanup.  This changes the getndelim2 API: both order of
88690         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
88691         no delimiter).
88692
88693         * lib/getline.c: Don't include stddef.h or stdio.h, since our
88694         interface does that.
88695         (getline): Always use getdelim, so that we don't have two
88696         copies of this code.
88697         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
88698         if available.
88699         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
88700         (GETNDELIM2_MAXIMUM): New macro.
88701         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
88702         instead of the old practice of delim2==0.  All callers changed.
88703         Return -1 on overflow, instead of returning junk.
88704         Do not set *linesize unless allocation succeeds.
88705         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
88706         that we include sys/types.h.
88707         * lib/getnline.h: Likewise.
88708         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
88709         (getndelim2): Reorder arguments.
88710         * lib/getnline.c (getnline, getndelim):
88711         Don't discard the NMAX argument.
88712         (getnline): Invoke getndelim, to avoid code duplication.
88713         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
88714         of (size_t) -1 by callers of the getnline family.
88715
88716 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88717
88718         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
88719         Check for gettimeofday.
88720         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
88721         Check for settimeofday, stime.
88722
88723 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88724
88725         * lib/nanosleep.c (suspended): Change its type from int to
88726         sig_atomic_t volatile.
88727         (first_call): Make it private to rpl_nanosleep, and have it
88728         be zero initially as that's a bit faster.
88729         (my_usleep): Round up fractional times instead of truncating them,
88730         as this is the usual meaning for 'sleep'.
88731
88732         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
88733         doesn't work.
88734         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
88735         (ENOSYS): Define if not defined.
88736         (settime): Fall back on stime if it exists and settimeofday fails.
88737         But don't bother with fallbacks if a method fails with errno == EPERM.
88738
88739 2004-05-11  Jim Meyering  <jim@meyering.net>
88740
88741         Prior to this change, the save_cwd caller required read access to the
88742         current directory on most systems (ones with the fchdir function).
88743
88744         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
88745         fails, try write-only, and finally, resort to using xgetcwd.
88746
88747 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88748
88749         * lib/obstack.c, obstack.h: Import changes from libc.
88750
88751 2004-04-28  Bruno Haible  <bruno@clisp.org>
88752
88753         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
88754         also implicitly appends .exe to executables.
88755         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
88756         accepts Windows pathnames.
88757         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88758         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88759         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88760         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88761         Reported by Derek Robert Price <derek@ximbiot.com>.
88762
88763 2004-04-21  Karl Berry  <karl@gnu.org>
88764
88765         * config/srclist.txt (localcharset.c): break sync.
88766
88767 2004-04-20  Paul Eggert  <eggert@twinsun.com>
88768
88769         * m4/host-os.m4: Add a copyright notice.
88770
88771 2004-04-20  Jim Meyering  <jim@meyering.net>
88772
88773         Change UTILS_ to gl_ in AC_DEFINE'd names.
88774         Change utils_- and jm_-prefixed variables, too.
88775         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
88776         UTILS_FUNC_MKDIR_TRAILING_SLASH.
88777         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
88778
88779         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
88780         Don't emit trailing blanks.
88781         Also rename jm_-prefixed variables to have gl_ prefix.
88782
88783         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
88784         Also rename jm_-prefixed variables to have gl_ prefix.
88785
88786         * m4/jm-macros.m4: Reflect the renamings.
88787         * m4/prereq.m4: Likewise.
88788
88789 2004-04-20  Jim Meyering  <jim@meyering.net>
88790
88791         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
88792         memory.
88793
88794 2004-04-20  Jim Meyering  <jim@meyering.net>
88795             Bruno Haible  <bruno@clisp.org>
88796
88797         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
88798         memory when realloc fails.
88799
88800 2004-04-19  Jim Meyering  <jim@meyering.net>
88801
88802         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
88803         now that readutmp.c may call `free (0)'.
88804
88805 2004-04-19  Bruno Haible  <bruno@clisp.org>
88806
88807         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
88808         * m4/inttypes_h.m4: Likewise.
88809         * m4/stdint_h.m4: Likewise.
88810         * m4/intmax_t.m4: Likewise.
88811         * m4/uintmax_t.m4: Likewise.
88812
88813 2004-04-18  Jim Meyering  <jim@meyering.net>
88814
88815         * m4/prereq.m4: Don't forbid jm_ prefix.
88816
88817         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
88818         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
88819         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
88820         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
88821         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
88822         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
88823         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
88824         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
88825         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
88826         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
88827         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
88828         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
88829         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
88830         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
88831         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
88832         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
88833         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
88834         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
88835         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
88836
88837 2004-04-18  Jim Meyering  <jim@meyering.net>
88838
88839         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
88840         failure, don't leak memory and do call END_UTMP_ENT.
88841
88842 2004-04-16  Jim Meyering  <jim@meyering.net>
88843
88844         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
88845         coreutils' stat program.
88846         (gl_PREREQ): Don't require jm_PREREQ_STAT.
88847
88848 2004-04-11  Paul Eggert  <eggert@twinsun.com>
88849
88850         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
88851         C89.
88852         (CHAR_BIT): Remove, since we assume C89.
88853         Include <stdint.h> if available, as per current Autoconf CVS advice.
88854
88855 2004-03-31  Jim Meyering  <jim@meyering.net>
88856
88857         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
88858         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
88859         * m4/xalloc.m4: Likewise.
88860
88861 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88862
88863         Merge from coreutils.
88864
88865         * m4/inttostr.m4: New file.
88866         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
88867         Require AM_STDBOOL_H and gl_TIMESPEC instead.
88868         Require gl_CLOCK_TIME.
88869         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
88870
88871 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88872
88873         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
88874         not bool, to be more consistent with Unix conventions.
88875         Suggested by Bruno Haible.
88876
88877         Merge from coreutils.
88878
88879         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
88880         * lib/umaxtostr.c: New files.
88881
88882         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
88883         the usual <time.h> dance.
88884         (get_date): Change signature to support fractional time stamps.
88885         All callers changed.
88886         * lib/getdate.y: Include "getdate.h" first, as we can now
88887         assume C89 and don't need to worry about 'const'.
88888         Similarly, include "unlocked-io.h" near start, not in middle.
88889         Include <limits.h>.
88890         (textint.value): Use long int rather than int.
88891         (textint.digits): Use size_t rather than int.
88892         (BILLION, LOG10_BILLION): New constants.
88893         (parser_control): New member rel_ns.  Members day_ordinal,
88894         time_zone, month, day, hour, minutes, rel_year, rel_month,
88895         rel_day, rel_hour, rel_minutes, rel_seconds
88896         are now long int, not int.  Member seconds is now struct timespec,
88897         not int.  New member timespec_seen.  Members dates_seen, days_seen,
88898         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
88899         not int.
88900         (%union.intval): Now long int, not int.
88901         New member timespec.
88902         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
88903         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
88904         (spec): Now is a timespec or an item list.
88905         (timespec, items): New nonterminals.
88906         (time, rel, relunit, number, get_date):
88907         Add support for fractional seconds.
88908         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
88909         (gmtime, localtime, mktime): Remove decls; not needed with C89.
88910         (to_hour): First arg is now long int, not int.
88911         (to_year): Returns long int, not int.
88912         Don't treat year -70 like 70.
88913         (tm_diff): Returns long int, not int.
88914         (lookup_word): Use bool instead of int when appropriate.
88915         (yylex): Use size_t for count, not int.
88916         Detect overflow when parsing large integer constants.
88917         Add support for fractions.
88918         (get_date): Make pointers 'const' if possible.
88919         Use more-portable code to detect integer overflow.
88920         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
88921         Don't use ctime; it's not reliable if the year has >4 digits.
88922
88923         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
88924         This is for compatibility with BSD.
88925
88926         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
88927         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
88928         From coreutils' system.h.
88929
88930         * lib/userspec.c: Don't include "posixver.h".
88931         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
88932         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
88933         compatible extension.  Simplify code by removing a boolean int
88934         that was always nonzero if a string was nonnull.
88935
88936 2004-03-30  Jim Meyering  <jim@meyering.net>
88937
88938         Merge from coreutils.
88939
88940         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
88941         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
88942         on some systems one must include <grp.h> before it.
88943         Reported by Christian Krackowizer.
88944
88945 2004-03-30  Jim Meyering  <jim@meyering.net>
88946
88947         Merge from coreutils.
88948
88949         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
88950
88951         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
88952         an empty input stream.
88953
88954         * lib/readtokens.c: Include <stdbool.h>.
88955         (readtoken): Use `size_t' rather than int/long.
88956         All callers adjusted.
88957         Use `bool' rather than `int' where appropriate.
88958         Use memset rather than an explicit loop.
88959         Use x2nrealloc rather than xrealloc.
88960         Allow the use of `\0' as a delimiter.
88961         (readtokens): Likewise.
88962         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
88963
88964 2004-03-30  Jim Meyering  <jim@meyering.net>
88965
88966         * m4/realloc.m4: Remove file, since now it does no more than
88967         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
88968         the `configure.ac' section of module/realloc.
88969         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
88970
88971 2004-03-30  Bruno Haible  <bruno@clisp.org>
88972
88973         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
88974         nonnull.
88975
88976 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88977
88978         Merge changes to getloadavg.c from coreutils and Emacs.
88979
88980         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
88981         Define to an expression, not to the empty string.
88982         Include cloexec.h and xalloc.h.
88983         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
88984         Use set_cloexec_flag rather than rolling our own.
88985         * lib/cloexec.c, lib/cloexec.h: New files.
88986
88987 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88988
88989         * m4/cloexec.m4: New file.
88990
88991 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88992
88993         * lib/getopt.h: Sync with libc CVS.
88994
88995 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88996             Bruno Haible  <bruno@clisp.org>
88997
88998         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
88999         mbswidth.
89000
89001 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89002             Bruno Haible  <bruno@clisp.org>
89003
89004         * lib/mbswidth.h: Include <wchar.h> only if
89005         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89006         <wchar.h>.
89007         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89008
89009 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89010
89011         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89012         Sync with libc CVS.
89013         * lib/getopt_int.h: New file, also synced from libc.
89014
89015 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89016
89017         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89018         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89019         Bring back getopt.c, getopt.h, getopt1.c.
89020
89021 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89022
89023         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89024         All uses changed.  Check for sa_sigaction member; this fixes
89025         a bug first reported by Jason Andrade in
89026         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89027
89028 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89029
89030         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89031         '#if' expressions.  Unlike the code it replaces, it does not
89032         depend on (defined _SC_PAGESIZE).  However, it does depend on
89033         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89034         first reported by Jason Andrade in
89035         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89036
89037 2004-02-25  Simon Josefsson  <jas@extundo.com>
89038
89039         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89040
89041 2004-02-25  Simon Josefsson  <jas@extundo.com>
89042
89043         * lib/strdup.h: New file.
89044         * lib/strdup.c: Include it.
89045         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89046         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89047
89048 2004-02-23  Karl Berry  <karl@gnu.org>
89049
89050         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89051         (from fencepost.gnu.org:/gd/gnuorg).
89052
89053 2004-02-23  Karl Berry  <karl@gnu.org>
89054
89055         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89056         * config/srclist.txt: add maintain/standards documents.
89057
89058 2004-02-18  Bruno Haible  <bruno@clisp.org>
89059
89060         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89061         Reported by Derek Robert Price <derek@ximbiot.com>.
89062
89063 2004-02-16  Karl Berry  <karl@gnu.org>
89064
89065         * config/mkinstalldirs, install-sh: update from automake.
89066
89067 2004-02-06  Karl Berry  <karl@gnu.org>
89068
89069         * m4/po.m4: update from gettext 0.14.1.
89070
89071 2004-02-06  Karl Berry  <karl@gnu.org>
89072
89073         * lib/config.charset: update from gettext 0.14.1.
89074
89075 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89076
89077         Add comments and code, prompted by suggestions from Bruno Haible
89078         for sh-quote.
89079         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89080         describing the enum quoting_style values.
89081         * lib/quotearg.c (quotearg_alloc): New function.
89082         (quotearg_buffer_restyled): Treat lone { and } as special.
89083         Treat = as special.  Work around bug with older shells
89084         that "see" a '\' that is really the 2nd byte of a multibyte char.
89085         Quote empty string with shell_quoting_style.
89086
89087 2004-02-03  Bruno Haible  <bruno@clisp.org>
89088
89089         * m4/pipe.m4: New file, from GNU gettext.
89090
89091 2004-02-03  Bruno Haible  <bruno@clisp.org>
89092
89093         * lib/pipe.h: New file, from GNU gettext.
89094         * lib/pipe.c: New file, from GNU gettext.
89095
89096 2004-01-27  Bruno Haible  <bruno@clisp.org>
89097
89098         * m4/execute.m4: New file, from GNU gettext.
89099
89100 2004-01-27  Bruno Haible  <bruno@clisp.org>
89101
89102         * lib/execute.h: New file, from GNU gettext.
89103         * lib/execute.c: New file, from GNU gettext.
89104         * lib/w32spawn.h: New file, from GNU gettext.
89105
89106 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89107
89108         Merge from diffutils.
89109
89110         * lib/file-type.c (file_type): Add typed memory objects.
89111         * lib/file-type.h (S_TYPEISTMO): New macro.
89112
89113         * lib/c-stack.h (c_stack_action): Remove argv argument.
89114         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89115         (die): Don't calculate message unless segv_action returns.
89116         (get_stack_location, min_address_from_argv, max_address_from_argv,
89117         volatile stack_base, volatile_stack_size): Remove.
89118         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89119         that every segmentation violation is a stack overflow.  (Ouch!)
89120         See Debian bug 136249 (still outstanding) for more info about why
89121         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89122
89123 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89124
89125         Exit-status fix from coreutils.
89126
89127         Use exit_failure consistently in place of EXIT_FAILURE,
89128         so that program exit statuses are consistent on failure.
89129
89130         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89131         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89132         * lib/argmatch.h: Comment fix to match the above.
89133         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89134         Now a macro referring to exit_failure, instead of a separate
89135         variable.  Include "exitfail.h" to get it.
89136         * lib/xstrtol.h: Include "exitfail.h".
89137         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89138
89139         * lib/long-options.c (parse_long_options): Use prototype
89140         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89141         for clarity.
89142
89143 2004-01-21  Jim Meyering  <jim@meyering.net>
89144
89145         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89146         so as not to conflict with a different-sized __mktime_internal
89147         function in GNU libc.
89148         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89149         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89150
89151 2004-01-20  Karl Berry  <karl@gnu.org>
89152
89153         * config/config.guess: update from config.
89154
89155         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89156
89157 2004-01-20  Bruno Haible  <bruno@clisp.org>
89158
89159         Safer stack allocation.
89160         * lib/setenv.c: Include allocsa.h.
89161         (alloca): Remove fallback definition.
89162         (freea): Remove macro.
89163         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89164         instead of freea.
89165
89166 2004-01-20  Bruno Haible  <bruno@clisp.org>
89167
89168         * m4/eealloc.m4: New file, from GNU gettext.
89169
89170 2004-01-20  Bruno Haible  <bruno@clisp.org>
89171
89172         * m4/allocsa.m4: New file, from GNU gettext.
89173
89174 2004-01-20  Bruno Haible  <bruno@clisp.org>
89175
89176         * lib/xallocsa.h: New file, from GNU gettext.
89177         * lib/xallocsa.c: New file, from GNU gettext.
89178
89179 2004-01-20  Bruno Haible  <bruno@clisp.org>
89180
89181         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89182
89183 2004-01-20  Bruno Haible  <bruno@clisp.org>
89184
89185         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89186         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89187         specially.
89188
89189 2004-01-20  Bruno Haible  <bruno@clisp.org>
89190
89191         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89192         patch.
89193
89194 2004-01-20  Bruno Haible  <bruno@clisp.org>
89195
89196         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89197
89198 2004-01-20  Bruno Haible  <bruno@clisp.org>
89199
89200         * lib/eealloc.h: New file.
89201
89202 2004-01-20  Bruno Haible  <bruno@clisp.org>
89203
89204         * lib/binary-io.h: Avoid warnings on Cygwin.
89205
89206 2004-01-20  Bruno Haible  <bruno@clisp.org>
89207
89208         * lib/allocsa.h: New file, from GNU gettext.
89209         * lib/allocsa.c: New file, from GNU gettext.
89210
89211 2004-01-18  Karl Berry  <karl@gnu.org>
89212
89213         * doc/gpl.texi, doc/lgpl.texi: new files.
89214
89215 2004-01-18  Karl Berry  <karl@gnu.org>
89216
89217         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89218         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89219
89220 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89221
89222         Merge from coreutils.
89223
89224         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89225         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89226         (gl_DEFAULT_POSIX2_VERSION): Move
89227         the documentation from 'configure' into 'config.hin',
89228         so that 'configure --help' isn't burdened by it and
89229         we don't have to worry about its formatting there.
89230         Reword the documentation so that it's more succinct
89231         and can be run together into a single paragraph.
89232         * m4/same.m4 (gl_SAME): Check for pathconf.
89233
89234 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89235
89236         Merge from coreutils.
89237
89238         * lib/posixver.c: Include posixver.h.
89239
89240         * lib/same.c: Include <stdbool.h>, <limits.h>.
89241         (_POSIX_NAME_MAX): Define if not defined.
89242         (MIN): New macro.
89243         (same_name): If file names are silently truncated, report
89244         that the file names are the same if they are the same after
89245         the silent truncation.
89246
89247         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89248         conversion function.
89249         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89250         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89251         longer needed.
89252
89253 2004-01-15  Jim Meyering  <jim@meyering.net>
89254
89255         Merge from coreutils.
89256
89257         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89258         if no library is required.
89259         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89260         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89261         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89262         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89263         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89264         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89265         value, $ac_cv_search_crypt, if it's "none required".
89266         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89267         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89268         not gl_FUNC_GETLOADAVG.
89269         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89270         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89271
89272 2004-01-15  Jim Meyering  <jim@meyering.net>
89273
89274         Merge from coreutils.
89275
89276         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89277         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89278         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89279
89280         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89281         optional configure-time default.
89282
89283         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89284
89285         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89286
89287 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89288
89289         Merge from coreutils.
89290
89291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89292         value, $ac_cv_search_nanosleep, if it's "none required".
89293
89294 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89295
89296         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89297         with like-named macro in fnmatch.c.
89298         (EXT): Use an internal constant instead.
89299
89300         Merge fnmatch patches from glibc.
89301         * lib/fnmatch.c (mbsinit): Remove define.
89302         Add libc_hidden_ver (__fnmatch, fnmatch).
89303         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89304         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89305
89306 2004-01-14  Karl Berry  <karl@gnu.org>
89307
89308         * config/install-sh: update from automake.
89309
89310 2004-01-13  Karl Berry  <karl@gnu.org>
89311
89312         * config/install-sh: update from automake.
89313
89314 2004-01-09  Karl Berry  <karl@gnu.org>
89315
89316         * config/install-sh: update from automake.
89317
89318 2004-01-05  Karl Berry  <karl@gnu.org>
89319
89320         * config/config.{sub,guess}: update from config.
89321
89322 2003-12-31  Karl Berry  <karl@gnu.org>
89323
89324         * config/depcomp: update from automake.
89325
89326 2003-12-14  Karl Berry  <karl@gnu.org>
89327
89328         * lib/config.charset: update from gettext-runtime.
89329
89330 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89331
89332         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89333         Bug reported by Alfred M. Szmidt.
89334
89335 2003-12-03  Bruno Haible  <bruno@clisp.org>
89336
89337         * m4/gettext.m4: Upgrade from gettext-0.13.
89338         * m4/po.m4: Upgrade from gettext-0.13.
89339         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89340         * m4/intmax.m4: New file, from gettext-0.13.
89341         * m4/printf-posix.m4: New file, from gettext-0.13.
89342
89343 2003-11-29  Karl Berry  <karl@gnu.org>
89344
89345         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89346
89347 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89348             Bruno Haible  <bruno@clisp.org>
89349
89350         * lib/printf-parse.h: Don't include sys/types.h.
89351         (ARG_NONE): New macro.
89352         (char_directive): Change type of *arg_index fields to size_t.
89353         * lib/printf-parse.c: Don't include sys/types.h.
89354         (SSIZE_MAX): Remove macro.
89355         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89356         Remove unnecessary overflow check.
89357         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89358         fields.
89359
89360 2003-11-25  Bruno Haible  <bruno@clisp.org>
89361
89362         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89363
89364 2003-11-25  Bruno Haible  <bruno@clisp.org>
89365
89366         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89367         gt_TYPE_SSIZE_T.
89368
89369 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89370
89371         * modules/alloca: Remove dependency on xalloc.
89372
89373 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89374
89375         * lib/alloca.c: Remove dependency on xalloc module.
89376         (xalloc_die): Remove.
89377         (memory_full) [!defined emacs]: New macro.
89378         [!defined emacs]: Don't include xalloc.h.
89379         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89380         address arithmetic overflows.  Change datatypes a bit to avoid
89381         unnecessary casts.
89382
89383 2003-11-22  Jim Meyering  <jim@meyering.net>
89384
89385         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89386         s/size/size_t/.
89387
89388 2003-11-21  Karl Berry  <karl@gnu.org>
89389
89390         * config/config.{sub,guess}: update from config.
89391
89392 2003-11-18  Karl Berry  <karl@gnu.org>
89393
89394         * config/config.{sub,guess}: update from config.
89395
89396         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89397
89398 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89399
89400         * README: Mention that S+T cannot overflow if S is the size of
89401         an existing object and T is sufficiently small.
89402
89403 2003-11-17  Jim Meyering  <jim@meyering.net>
89404
89405         On systems without utime and without a utimes function capable of
89406         dealing with a NULL struct utimbuf* argument, this utime replacement
89407         could -- in unusual circumstances -- leak a file descriptor.
89408         * lib/utime.c: Include <unistd.h> and <errno.h>.
89409         (utime_null): Be sure to close `fd' and to preserve errno.
89410         Reported by Geoff Collyer via Arnold Robbins.
89411
89412 2003-11-17  Bruno Haible  <bruno@clisp.org>
89413
89414         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89415         (Depends-on): Add xsize.
89416
89417 2003-11-17  Bruno Haible  <bruno@clisp.org>
89418
89419         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89420
89421 2003-11-17  Bruno Haible  <bruno@clisp.org>
89422
89423         * lib/vasnprintf.c (alloca): Remove fallback definition.
89424         (freea): Remove definition.
89425         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89426         Reported by Paul Eggert.
89427
89428 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89429             Bruno Haible  <bruno@clisp.org>
89430
89431         Protect against address arithmetic overflow.
89432         * lib/printf-args.h: Include stddef.h.
89433         (arguments): Change type of field 'count' to size_t.
89434         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89435         'unsigned int' where appropriate.
89436         * lib/printf-parse.h: Include sys/types.h.
89437         (char_directive): Change type of *arg_index fields to ssize_t.
89438         (char_directives): Change type of fields 'count', max_*_length to
89439         size_t.
89440         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89441         (SSIZE_MAX): Define fallback value.
89442         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89443         instead of 'int' where appropriate. Check a_allocated, d_allocated
89444         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89445         * lib/vasnprintf.c: Include xsize.h.
89446         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89447         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89448         overflow. Avoid wraparound when converting a width or precision from
89449         decimal to binary.
89450
89451 2003-11-16  Bruno Haible  <bruno@clisp.org>
89452
89453         Update from GNU gettext.
89454         * lib/printf-parse.c: Generalize to it can be compiled for wide
89455         strings.
89456         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89457         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89458         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89459         SNPRINTF): New macros.
89460         Don't include <alloca.h> if the file is used inside libintl.
89461         (local_wcslen): New function, for Solaris 2.5.1.
89462         (VASNPRINTF): Use it instead of wcslen.
89463
89464 2003-11-16  Bruno Haible  <bruno@clisp.org>
89465
89466         * lib/xsize.h (xmax): New function.
89467         (xsum, xsum3, xsum4): Declare as "pure" functions.
89468
89469 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89470
89471         * modules/xalloc (Files): Undo latest change, since xalloc.h
89472         no longer needs SIZE_MAX or PTRDIFF_MAX.
89473
89474 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89475
89476         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89477         gl_PTRDIFF_MAX.
89478
89479 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89480
89481         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89482         "return", to pacify some unknown compiler.  Problem reported
89483         by Joerg Schilling.
89484
89485 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89486
89487         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89488         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89489         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89490         heuristic is just as accurate as far as we know, and it removes a
89491         dependency on size_max.m4 and ptrdiff_max.m4.
89492
89493 2003-11-11  Bruno Haible  <bruno@clisp.org>
89494
89495         * modules/xsize (Files): Add m4/size_max.m4.
89496         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89497
89498 2003-11-11  Bruno Haible  <bruno@clisp.org>
89499
89500         * m4/size_max.m4: New file.
89501         * m4/ptrdiff_max.m4: New file.
89502         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89503         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89504         (gl_XALLOC): Invoke it.
89505
89506 2003-11-11  Bruno Haible  <bruno@clisp.org>
89507
89508         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89509         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89510         defined.
89511
89512 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89513
89514         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89515         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89516         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89517         From Bruno Haible.
89518         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89519         not (size_t) -1, since it's defined here.
89520
89521 2003-11-09  Karl Berry  <karl@gnu.org>
89522
89523         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89524
89525 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89526
89527         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89528         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89529         Reject sizes of exactly SIZE_MAX bytes.
89530         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89531         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89532
89533 2003-11-05  Bruno Haible  <bruno@clisp.org>
89534
89535         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89536         SIZE_MAX defined in <limits.h> on Solaris.
89537
89538 2003-11-04  Jim Meyering  <jim@meyering.net>
89539
89540         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89541         variable names, rather than @VAR@.
89542         * modules/poll: Likewise.
89543
89544 2003-11-04  Bruno Haible  <bruno@clisp.org>
89545
89546         * modules/xsize: New file.
89547         * modules/linebreak: Depend on xsize.
89548         * MODULES.html.sh (func_all_modules): Add xsize.
89549
89550 2003-11-04  Bruno Haible  <bruno@clisp.org>
89551
89552         * m4/xsize.m4: New file.
89553
89554 2003-11-04  Bruno Haible  <bruno@clisp.org>
89555
89556         * lib/xsize.h: New file.
89557         * lib/linebreak.c: Include xsize.h.
89558         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89559         argument for overflow.
89560         Suggested by Paul Eggert.
89561
89562 2003-11-03  Karl Berry  <karl@gnu.org>
89563
89564         * config/config.{guess,sub}: update from config.
89565
89566 2003-11-03  Jim Meyering  <jim@meyering.net>
89567
89568         * modules/userspec (lib_SOURCES): Add userspec.h.
89569         (Include): Add "userspec.h".
89570         Improve description.
89571
89572 2003-11-03  Jim Meyering  <jim@meyering.net>
89573
89574         * lib/userspec.c: Include "userspec.h".
89575         * lib/userspec.h: New file.
89576
89577 2003-11-03  Bruno Haible  <bruno@clisp.org>
89578
89579         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89580
89581 2003-11-03  Bruno Haible  <bruno@clisp.org>
89582
89583         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89584         available, to avoid (extremely rare) race condition.
89585         Suggested by Paul Eggert.
89586
89587 2003-11-02  Karl Berry  <karl@gnu.org>
89588
89589         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89590
89591 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89592
89593         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89594         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89595         (read_filesystem_list): Set and use me_type_malloced.
89596         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89597         whatever the type happens to be), for brevity and consistency.
89598         Check for size calculation overflow on Alphas running OSF/1.
89599
89600 2003-10-31  Jim Meyering  <jim@meyering.net>
89601
89602         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
89603
89604         * lib/linebuffer.c: Include <string.h> for declaration of memset.
89605
89606 2003-10-30  Paul Eggert  <eggert@twinsun.com>
89607             Bruno Haible  <bruno@clisp.org>
89608
89609         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
89610         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
89611
89612 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
89613
89614         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
89615         netbsd*-gnu*.  Suggested by Robert Millan.
89616
89617 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89618
89619         * modules/group-member: Depend on stdbool.
89620
89621 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89622
89623         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
89624
89625 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89626
89627         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
89628         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
89629         after the 'gnu' in these cases.  This fixes some bugs in the
89630         previous change, and is based on suggestions by Robert Millan.
89631
89632 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89633
89634         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
89635         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
89636         no longer needed.
89637         * lib/quotearg.c (quotearg_n_options): Use it.
89638         * lib/group-member.c: Include <stdbool.h>.
89639         (free_group_info): Arg is now const *; don't free arg.
89640         (get_group_info): Now returns bool and accepts struct group_info *,
89641         rather than returning a malloc'ed struct group_info *.
89642         All uses changed.  Check for overflow in internal size calculation.
89643
89644         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
89645         rather than xmalloc/xrealloc.
89646         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
89647         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
89648         conformance bug: the old code used a pointer after freeing the
89649         storage that it addressed.
89650         * lib/hash.c (hash_initialize): Simplify the code by using
89651         xalloc_oversized rather than doing it by hand.
89652         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
89653         the buffer preserved.  Use free and xmalloc instead.
89654         * lib/quotearg.c (quotearg_n_options): Likewise.
89655         Use a simpler test for size overflow.  Don't use xalloc_oversized
89656         because unsigned int might be wider than size_t (!); this suggests
89657         that we should switch from unsigned int to size_t for slot numbers.
89658
89659 2003-10-28  Paul Eggert  <eggert@twinsun.com>
89660
89661         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
89662         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
89663         NetBSD kernels.  Requested by Richard Stallman.
89664
89665 2003-10-27  Paul Eggert  <eggert@twinsun.com>
89666
89667         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
89668         to allocate the returned structure.  Do not allocate a subarray,
89669         as x2nrealloc will do that.
89670         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
89671         instead of xnrealloc.
89672         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
89673
89674 2003-10-27  Bruno Haible  <bruno@clisp.org>
89675
89676         * lib/stdbool_.h: Better support for BeOS.
89677
89678 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89679
89680         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
89681         now uses inline.
89682
89683 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89684
89685         * lib/xalloc.h (xalloc_oversized): New static inline function, for
89686         callers that want to do their own size-overflow checking.  Include
89687         <stdbool.h>, since xalloc_oversized returns bool.
89688         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
89689         to use xalloc_oversized.
89690
89691         Add two functions x2realloc, x2nrealloc, for programs that grow
89692         arrays dynamically by doubling their sizes.
89693         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
89694         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
89695         New functions.
89696
89697         Port to C99 semantics for 'inline' of external functions.
89698         Bug reported by Bruno Haible.
89699         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
89700         with the old contents of xnmalloc.
89701         (xnmalloc, xmalloc): Use it.
89702         (xnrealloc_inline): New static inline function,
89703         with the old contents of xnrealloc.
89704         (xnrealloc, xrealloc): Use it.
89705
89706         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
89707         that.
89708
89709 2003-10-26  Karl Berry  <karl@gnu.org>
89710
89711         * config/srclist.txt (COPYING.DOC): no longer available from
89712         /gd/gnuorg; don't know where the ultimate source is.
89713
89714 2003-10-25  Paul Eggert  <eggert@twinsun.com>
89715
89716         Fix several address-calculation bugs in the hash modules,
89717         plus some minor code cleanup.
89718
89719         * lib/hash.h: Include <stdbool.h>, for bool.
89720         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
89721         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
89722         hash_get_n_entries, hash_get_max_bucket_length,
89723         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
89724         hash_rehash): Use size_t rather than unsigned.
89725         * lib/hash.c (struct hash_table, hash_get_n_buckets,
89726         hash_get_n_buckets_used, hash_get_n_entries,
89727         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
89728         hash_get_entries, hash_do_for_each, hash_string, is_prime,
89729         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
89730         Likewise.
89731         (SIZE_MAX): Define if not defined.
89732         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
89733         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
89734         hash_print):
89735         Use const * when possible.
89736         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
89737         (check_tuning): Fix bug: if tuning parameters were very close to
89738         0 or 1, rounding errors could have caused subscript violations.
89739         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
89740         (hash_initialize): Add 'fail:' label
89741         to free table and return NULL, and use it to simplify code.
89742         Use calloc rather than clearing the storage ourself.
89743         (hash_initialize, hash_rehash): Check for arithmetic overflow in
89744         buffer size calculations.
89745         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
89746         Include <stddef.h>, for size_t.
89747         * lib/hash-pjw.c (hash_pjw): Likewise.
89748         Switch to method described by Bruno Haible.
89749         Include <limits.h>, for CHAR_BIT.
89750         (SIZE_BITS): New macro.
89751
89752 2003-10-23  Paul Eggert  <eggert@twinsun.com>
89753
89754         * m4/getline.m4 (AM_FUNC_GETLINE):
89755         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
89756         hosts.  Problem reported by Derek Robert Price in
89757         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
89758         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
89759         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
89760
89761 2003-10-21  Paul Eggert  <eggert@twinsun.com>
89762
89763         * lib/getndelim2.c (getndelim2): When size calculation overflows,
89764         ceiling the allocation at NMAX bytes rather than silently
89765         discarding input bytes before NMAX is reached.  This makes
89766         a difference only if NMAX exceeds SIZE_MAX / 2.
89767
89768         * lib/obstack.c: Merge from glibc.
89769         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
89770         Add libc_hidden_def (_obstack_newchunk).
89771         (_obstack_free) [! defined _LIBC]: Remove.
89772         [defined _LIBC]: Make a strong alias from obstack_free, rather than
89773         a clone of the function body.
89774         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
89775         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
89776
89777         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
89778         glibc.
89779         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
89780         arg to memcpy.
89781
89782         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
89783         (obstack_ptr_grow_fast, obstack_int_grow_fast):
89784         Don't use lvalue casts, as GCC plans to remove support for them
89785         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
89786         was also present in the non-GCC version, indicating that this
89787         code had always been buggy and had never been widely used.
89788         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
89789         Use the fast variant of each macro, rather than copying the
89790         definiens of the fast variant; that way, we'll be more likely to
89791         catch future bugs in the fast variants.
89792
89793 2003-10-20  Bruno Haible  <bruno@clisp.org>
89794
89795         * modules/wait-process: New file.
89796         * MODULES.html.sh (func_all_modules): Add wait-process.
89797
89798 2003-10-20  Bruno Haible  <bruno@clisp.org>
89799
89800         * m4/wait-process.m4: New file.
89801
89802 2003-10-20  Bruno Haible  <bruno@clisp.org>
89803
89804         * lib/wait-process.h: New file, from GNU gettext.
89805         * lib/wait-process.c: New file, from GNU gettext.
89806
89807 2003-10-19  Jim Meyering  <jim@meyering.net>
89808
89809         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
89810         HPUX 10.20.
89811
89812 2003-10-18  Karl Berry  <karl@gnu.org>
89813
89814         * config/config.guess: update from config.
89815
89816 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89817
89818         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
89819         (getgroups): First arg is int, not size_t.
89820         Don't let 'free' mangle errno.
89821
89822 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89823
89824         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
89825
89826 2003-10-16  Karl Berry  <karl@gnu.org>
89827
89828         * config/config.{guess,sub}: update from config.
89829
89830 2003-10-16  Jim Meyering  <jim@meyering.net>
89831
89832         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
89833         memcpy.
89834
89835 2003-10-15  Paul Eggert  <eggert@twinsun.com>
89836
89837         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
89838         (SIZE_MAX): Remove.
89839         (new_exclude, add_exclude_file): Initial size no longer needs to
89840         be a power of 2.
89841         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
89842         our own address arithmetic overflow checking.
89843
89844         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
89845         (fnmatch): Do not alloca more than 2000 wide characters;
89846         instead, use malloc for large buffers.
89847         Check for address arithmetic overflow, and return -1
89848         with errno set to ENOMEM in that case.
89849         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
89850         (NEW_PATTERN): Do not alloca more than 8000 bytes;
89851         instead, return -1.  Check for address arithmetic overflow.
89852
89853 2003-10-14  Paul Eggert  <eggert@twinsun.com>
89854
89855         Handle invalid suffixes and overflow independently, so that
89856         callers can treat them independently as needed.  Fix some bugs in
89857         suffix handling, e.g., "100k@" was not diagnosed as an invalid
89858         suffix for a human-readable blocksize.  The major caller-visible
89859         change is the addition of a new
89860         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
89861         that both overflow and suffix chars were found.
89862
89863         * lib/human.c (humblock): Don't check separately for invalid suffix
89864         char; that is xstrtoumax's job (now that its bug is fixed).
89865         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
89866         INTMAX_MAX]: New macros.
89867         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
89868         TYPE_MAXIMUM): New macros.
89869         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
89870         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
89871         if overflow occurs, as it's what __strtol does and it's more useful
89872         in practice.
89873         (__xstrtol): If __strtol reports some error other than ERANGE,
89874         reflect it to the caller as LONGINT_INVALID.  If it reports
89875         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
89876         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
89877         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
89878         value.
89879         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
89880         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
89881         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
89882         [defined UINTMAX_MAX]: New macros.
89883
89884 2003-10-14  Bruno Haible  <bruno@clisp.org>
89885
89886         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
89887
89888 2003-10-14  Bruno Haible  <bruno@clisp.org>
89889
89890         * m4/sig_atomic_t: New file, from GNU gettext.
89891         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
89892
89893 2003-10-14  Bruno Haible  <bruno@clisp.org>
89894
89895         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
89896         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
89897         Also use volatile where needed.
89898
89899 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89900
89901         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
89902         Change maintainer from Bruno Haible to 'all'.
89903
89904 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89905
89906         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
89907
89908 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89909
89910         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
89911         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
89912         and define in terms of the other primitives.
89913         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
89914         (SIZE_MAX): Define if not already defined.
89915         (array_size_overflow): New function.
89916         (xalloc_die): Abort instead of exiting if 'error' returns.
89917         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
89918         (xmalloc, xrealloc): Use them.
89919         (xcalloc): Check for address arithmetic overflow.
89920         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
89921         a bit faster than strcpy.
89922
89923 2003-10-10  Simon Josefsson  <jas@extundo.com>
89924
89925         * modules/argp (Depends-on): Add restrict and strcase.
89926
89927 2003-10-10  Simon Josefsson  <jas@extundo.com>
89928
89929         * m4/argp.m4: Add AC_C_INLINE.
89930
89931 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89932
89933         Merge getpass from libc, plus a few fixes.
89934
89935         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
89936         Include <stdbool.h>.
89937         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
89938         __fsetlocking to empty.
89939         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
89940         do include <bits/libc-lock.h>.
89941         Do not include <fcntl.h>; not needed.
89942         [_LIBC]: Include <wchar.h>.
89943         (NOTCANCEL_MODE): New macro.
89944         (flockfile, funlockfile) [_LIBC]: New macros.
89945         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
89946         [!_LIBC]: New macros.
89947         (call_fclose): New function.
89948         (getpass): Use it.  Save tty stream separately; this simplifies the
89949         code and makes it more reliable if stdin happens to equal stdout.
89950         Invoke __fsetlocking on tty.
89951         Handle thread cancellation if needed.
89952         Namespace cleanup (use __tcgetattr, __getline).
89953         Use bool for Booleans.
89954         [USE_IN_LIBIO]: Handle wide streams.
89955         [!_LIBC]: Unconditionally do the fseek, since we don't know what
89956         stream might go where.
89957
89958         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
89959         doesn't have to include <stdio.h> before us.
89960         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
89961         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
89962         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
89963         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
89964         if not declared, so that we can use getpass.c code from libc without
89965         rewriting it.
89966         (flockfile, ftrylockfile, funlockfile): New macros.
89967
89968 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89969
89970         * modules/getpass: Depend on stdbool.
89971
89972 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89973
89974         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
89975
89976 2003-10-07  Karl Berry  <karl@gnu.org>
89977
89978         * config/config.{guess,sub}: update from config.
89979
89980 2003-10-06  Jim Meyering  <jim@meyering.net>
89981             Bruno Haible  <bruno@clisp.org>
89982
89983         This lets translators provide better translations for the
89984         "Written by ..." part of --version output.
89985         * lib/version-etc.h: Include stdarg.h.
89986         (version_etc_copyright): Declare as readonly.
89987         (version_etc): Make this function variadic with a NULL-terminated list
89988         of author name strings.
89989         (version_etc_va): New declaration.
89990         * lib/version-etc.c: Include stdarg.h, stdlib.h.
89991         (version_etc_copyright): Declare as readonly.
89992         (version_etc_va): New function. Provide a different translatable string
89993         for each possible number of authors < 10. Abbreviate when there are 10
89994         authors or more.
89995         (version_etc): Make this function variadic. Call version_etc_va.
89996         Suggestion from Gary V. Vaughan.
89997
89998         * lib/long-options.h (parse_long_options): Change prototype: the
89999         authors string is moved to the end and becomes variadic.
90000         * lib/long-options.c: Include stdarg.h.
90001         (parse_long_options): Make this function variadic, too.
90002         Call version_etc_va, not version_etc.
90003
90004 2003-10-06  Bruno Haible  <bruno@clisp.org>
90005
90006         * modules/version-etc-2: Remove file.
90007         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90008
90009 2003-10-06  Bruno Haible  <bruno@clisp.org>
90010
90011         * modules/fatal-signal: New file.
90012         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90013
90014 2003-10-06  Bruno Haible  <bruno@clisp.org>
90015
90016         * m4/fatal-signal.m4: New file.
90017         * m4/signalblocking.m4: New file, from GNU gettext.
90018
90019 2003-10-06  Bruno Haible  <bruno@clisp.org>
90020
90021         * lib/version-etc-2.h: Remove file.
90022         * lib/version-etc-2.c: Remove file.
90023
90024 2003-10-06  Bruno Haible  <bruno@clisp.org>
90025
90026         * lib/fatal-signal.h: New file, from GNU gettext.
90027         * lib/fatal-signal.c: New file, from GNU gettext.
90028
90029 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90030
90031         * README: Rework advice for preventing empty .o files.
90032         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90033         not <sys/types.h>.
90034
90035 2003-10-04  Karl Berry  <karl@gnu.org>
90036
90037         * lib/argp*: update from libc.
90038
90039 2003-10-04  Karl Berry  <karl@gnu.org>
90040
90041         * config/config.{guess,sub}: update from config.
90042
90043 2003-10-02  Bruno Haible  <bruno@clisp.org>
90044
90045         * modules/lchown (Include): Add lchown.h.
90046         * modules/time_r (Include): Use "..." syntax.
90047         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90048
90049 2003-10-01  Simon Josefsson  <jas@extundo.com>
90050
90051         * MODULES.html.sh (func_all_modules): Move gethostname from section
90052         'based on' to section 'lacking' POSIX:2001.
90053
90054 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90055
90056         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90057         to output mode on the same stream.
90058
90059 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90060
90061         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90062         Fix arg typo in previous patch.
90063
90064 2003-09-28  Jim Meyering  <jim@meyering.net>
90065
90066         * lib/error.c: Correct cpp indentation.
90067
90068 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90069
90070         * modules/free: New file.
90071
90072 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90073
90074         * m4/free.m4: New file.
90075
90076 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90077
90078         * lib/minmax.h (MIN, MAX)
90079         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90080         Omit the special code that used __typeof__, since we worry that
90081         it could be more trouble than it's worth.  See:
90082         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90083         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90084
90085         * lib/free.c: New file.
90086
90087 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90088
90089         Trivial fixes to Makefile.am parts of module listings.
90090         * modules/strstr: Append strstr.h to lib_SOURCES.
90091         * modules/strcase: Likewise, for strcase.h.
90092
90093 2003-09-27  Karl Berry  <karl@gnu.org>
90094
90095         * config/mkinstalldirs: update from automake.
90096
90097 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90098
90099         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90100         (error_tail): Do not loop, reallocating temporary buffer, since
90101         the output cannot contain more wide characters than the input
90102         contains bytes, the size must be big enough already.  This avoids
90103         one potential size overflow calculation.  Check for size overflow
90104         when calculating temporary buffer size.  Free temporary buffer
90105         when done, if it was allocated with malloc; this plugs a memory
90106         leak.  Remove casts from void * to pointers, that are no longer
90107         needed now that we're assuming C89 or better.
90108
90109         Merge error changes from glibc.
90110
90111         * lib/error.c, error.h: Update copyright notice header to match glibc.
90112         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90113         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90114         Disable cancellation while printing error.
90115         * lib/error.h: Prepend __ to parameter names.
90116
90117 2003-09-26  Jim Meyering  <jim@meyering.net>
90118
90119         * lib/error.c (error_tail): Move some declarations
90120         into inner scope where the local variables are used.
90121
90122 2003-09-26  Bruno Haible  <bruno@clisp.org>
90123
90124         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90125         stpncpy().
90126         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90127
90128 2003-09-26  Bruno Haible  <bruno@clisp.org>
90129
90130         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90131         (stpncpy): Define as alias for gnu_stpncpy.
90132         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90133
90134 2003-09-25  Simon Josefsson  <jas@extundo.com>
90135
90136         * lib/xgetdomainname.h: New file.
90137         * lib/xgetdomainname.c: New file.
90138
90139 2003-09-25  Simon Josefsson  <jas@extundo.com>
90140             Bruno Haible  <bruno@clisp.org>
90141
90142         * modules/getdomainname: New file.
90143         * modules/xgetdomainname: New file.
90144         * MODULES.html.sh (func_all_modules): Add getdomainname,
90145         xgetdomainname.
90146
90147 2003-09-25  Simon Josefsson  <jas@extundo.com>
90148             Bruno Haible  <bruno@clisp.org>
90149
90150         * m4/getdomainname.m4: New file.
90151
90152 2003-09-25  Simon Josefsson  <jas@extundo.com>
90153             Bruno Haible  <bruno@clisp.org>
90154
90155         * lib/getdomainname.h: New file.
90156         * lib/getdomainname.c: New file.
90157
90158 2003-09-25  Karl Berry  <karl@gnu.org>
90159
90160         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90161
90162 2003-09-25  Karl Berry  <karl@gnu.org>
90163
90164         * config/install-sh: update from automake.
90165
90166 2003-09-25  Bruno Haible  <bruno@clisp.org>
90167
90168         * modules/version-etc-2: New file, from modules/version-etc with
90169         modifications.
90170         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90171
90172 2003-09-25  Bruno Haible  <bruno@clisp.org>
90173
90174         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90175         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90176
90177 2003-09-24  Simon Josefsson  <jas@extundo.com>
90178
90179         * modules/xgethostname: Add xgethostname.h.
90180
90181 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90182
90183         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90184         the buffer associated with the argument.  Bug reported by
90185         Simon Josefsson.
90186
90187 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90188
90189         * README: Document assumptions that 'int' is at least 32 bits
90190         wide, that integer arithmetic is 2's complement without overflow,
90191         that there are no holes in integer values, that adding sizes of
90192         two nonoverlapping objects can't overflow, and that all-bits-zero
90193         yields scalar zero.  Fix spelling and capitalization typos.
90194
90195 2003-09-19  Karl Berry  <karl@gnu.org>
90196
90197         * lib/argp.h: update from libc.
90198
90199 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90200
90201         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90202         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90203         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90204
90205 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90206
90207         * gnulib-tool: Use "test -h", not "test -L", for portability
90208         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90209         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90210         (sed_extract_prog): Issue s commands one-by-one, rather than
90211         using \| in one s command.
90212
90213 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90214
90215         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90216         input error, instead of returning NULL the next time we are called
90217         (and therefore losing track of errno).
90218
90219 2003-09-16  Bruno Haible  <bruno@clisp.org>
90220
90221         * gnulib-tool (func_create_testdir): Warn about duplicated
90222         dependencies.
90223
90224 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90225
90226         * modules/argmatch, modules/fatal, modules/obstack,
90227         modules/xalloc, modules/xgethostname: Sort dependencies by
90228         importance, not alphabetically.
90229
90230 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90231
90232         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90233         fails, so that the caller gets the proper errno.
90234
90235         * lib/readutmp.c (read_utmp): Likewise.
90236         Check for fstat error.  Close stream and free storage
90237         when failing.
90238
90239 2003-09-14  Karl Berry  <karl@gnu.org>
90240
90241         * config/srclist.txt (strdup.c): disable for c89 changes.
90242
90243 2003-09-14  Jim Meyering  <jim@meyering.net>
90244
90245         * lib/getloadavg.c: Correct cpp indentation.
90246         * lib/strdup.c: Likewise.
90247         * lib/vasnprintf.c: Likewise.
90248
90249 2003-09-14  Bruno Haible  <bruno@clisp.org>
90250
90251         * modules/fwriteerror: New file.
90252         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90253
90254 2003-09-14  Bruno Haible  <bruno@clisp.org>
90255
90256         * lib/fwriteerror.h: New file.
90257         * lib/fwriteerror.c: New file.
90258
90259 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90260
90261         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90262         modules/xgethostname, modules/xalloc: Depend on exit.
90263
90264 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90265
90266         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90267
90268         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90269         and AC_MINIX, too, so that their extensions are available.
90270
90271         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90272         This macro has been superseded by gl_BACKUPFILE.
90273
90274         More patches to assume C89 or better.
90275
90276         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90277
90278         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90279         unconditionally.
90280         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90281         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90282         Include <string.h>, <stdlib.h> unconditionally.
90283         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90284         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90285         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90286         headers or for string.h.
90287         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90288         or strtoul.
90289
90290         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90291         headers.
90292         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90293         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90294         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90295         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90296         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90297         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90298         memcpy, memset.
90299         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90300         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90301         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90302         strtol.
90303         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90304         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90305         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90306         strtoul.
90307
90308 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90309
90310         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90311         * lib/obstack.c [!defined _LIBC]: Likewise.
90312         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90313         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90314         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90315
90316         More changes to assume C89 or better.
90317
90318         * lib/error.c (error_tail): Assume vprintf.
90319
90320         * lib/argmatch.c (getenv): Remove decl.
90321         * lib/progreloc.c (get_full_program_name): Define via prototype.
90322         * lib/setenv.c (clearenv): Likewise.
90323         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90324         needed.
90325         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90326         (malloc, memcpy): Remove decls.
90327         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90328         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90329         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90330         (memcpy): Remove macro.
90331         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90332         (__P): Remove.  All uses removed.
90333         (PTR): Remove.  All uses changed to void *.
90334         (CHAR_BIT, NULL): Remove.
90335         (spaces, zeros, memset_space, memset_zero)
90336         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90337         Remove.
90338         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90339         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90340         Define with prototype.
90341         Remove now-unnecessary prototype decl.
90342         (extra_args_spec): Assume ANSI C.  All uses changed.
90343         (extra_args_spec_iso): Remove.
90344         (my_strftime, emacs_strftimeu): Define via prototype.
90345         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90346         unconditionally.
90347         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90348         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90349         (strtoul, strtol): Remove decls.
90350         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90351         LONG_MAX): Remove.
90352         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90353         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90354         (LOCALE_PARAM_PROTO): New macro.
90355         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90356         (INTERNAL (strtol), strtol): Define with a prototype.
90357         (PARAMS): Remove.  All uses removed.
90358         * lib/tempname.c: Include <string.h> unconditionally.
90359         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90360         * lib/xgethostname.c (main): Define with a prototype.
90361         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90362         Include <stdlib.h> unconditionally.
90363         (calloc, malloc, realloc, free): Remove decls.
90364         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90365         Include <stdlib.h> unconditionally.  Sort include file names.
90366         (strtod): Remove.
90367         (xstrtod): Define with a prototype.
90368         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90369         (strtol, strtoul): Remove decls.
90370
90371 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90372
90373         More patches to assume C89 or better.
90374         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90375         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90376         string.h, memchr, STDC_HEADERS.
90377
90378 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90379
90380         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90381         Include <stdlib.h>, <string.h> unconditionally.
90382         Remove now-unnecessary cast to char *.
90383         * lib/strnlen.c: Include <string.h> unconditionally.
90384         * lib/yesno.c (yesno): Define with a prototype.
90385
90386 2003-09-11  Bruno Haible  <bruno@clisp.org>
90387
90388         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90389
90390 2003-09-10  Jim Meyering  <jim@meyering.net>
90391
90392         * lib/error.c: Correct indentation of cpp directives.
90393
90394 2003-09-10  Bruno Haible  <bruno@clisp.org>
90395
90396         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90397         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90398         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90399         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90400         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90401         <stdlib.h> and <string.h> checks.
90402         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90403         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90404
90405 2003-09-10  Bruno Haible  <bruno@clisp.org>
90406
90407         * lib/strcspn.c: Include <string.h> unconditionally.
90408         * lib/strpbrk.c: Include <string.h> unconditionally.
90409         * lib/strstr.c: Include <string.h> unconditionally.
90410         * lib/unicodeio.c: Include <string.h> unconditionally.
90411         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90412         * lib/unsetenv.c: Likewise.
90413         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90414         * lib/yesno.c: Include <stdlib.h> unconditionally.
90415         (rpmatch): Add prototype.
90416
90417 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90418
90419         More patches to assume C89 or better.
90420         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90421         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90422         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90423         or for string.h.
90424         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90425         stdlib.h.
90426         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90427         C headers.
90428         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90429         string.h.
90430         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90431         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90432         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90433         or for string.h.
90434         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90435         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90436         C headers.
90437         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90438         memcpy.
90439         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90440         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90441         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90442         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90443         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90444         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90445         string.h, free.
90446         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90447         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90448         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90449         C headers, or for string.h.
90450         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90451         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90452         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90453         headers, memory.h, stdlib.h, string.h, strings.h.
90454         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90455         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90456         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90457         strchr.
90458         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90459         headers, memory.h, string.h.
90460         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90461         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90462         free.
90463         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90464         headers.
90465         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90466         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90467         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90468         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90469         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90470
90471 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90472
90473         More K&R removal.
90474
90475         * lib/acosl.c (main): Use a prototype.
90476         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90477         tanl.c: Likewise.
90478
90479         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90480
90481         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90482         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90483         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90484         with a prototype.
90485         * lib/getopt.c (const): Remove macro.
90486         Include <string.h> unconditionally.
90487         (my_index): Remove; all uses changed to strchr.
90488         (strlen): Remove decl.
90489         (exchange): Remove forward decl; no longer needed.
90490         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90491         Define with prototype.
90492         * lib/getopt1.c (const): Remove macro.
90493         (getopt_long, getopt_long_only, main): Define with prototype.
90494
90495         * lib/getugroups.c: Include <string.h> unconditionally.
90496
90497         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90498         (getusershell, setusershell, endusershell, readname, main):
90499         Define with prototypes.
90500
90501         * lib/group-member.c: Include group-member.h first.
90502         Include <stdlib.h> unconditionally.
90503
90504         * lib/hard-locale.c: Include hard-locale.h first.
90505         Include <stdlib.h>, <string.h> unconditionally.
90506
90507         * lib/hash.c (free, malloc): Remove decls.
90508         Include <stdlib.h> unconditionally.
90509
90510         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90511         (getenv): Do not declare.
90512
90513         * lib/idcache.c: Include <string.h> unconditionally.
90514
90515         * lib/long-options.c: Include long-options.h first, to test interface.
90516         Include <stdlib.h> unconditionally.
90517
90518         * lib/makepath.c: Include makepath.h first, to test interface.
90519         Include <stdlib.h> and <string.h> unconditionally.
90520
90521         * lib/linebuffer.c: Include <stdlib.h>.
90522         (free): Remove decl.
90523
90524         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90525         stddef.h. rpl_malloc returns void *, not char *.
90526         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90527         prototype.
90528
90529         * lib/md5.h: Include <limits.h> unconditionally.
90530         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90531         (__P): Remove; all uses removed.
90532         * lib/md5.c: Include "md5.h" first.
90533         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90534         md5_buffer, md5_process_bytes, md5_process_block):
90535         Define with prototypes.
90536         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90537         * lib/sha.c: Include "sha.h" first.
90538         Include <stdlib.h>, <string.h> unconditionally.
90539
90540         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90541         * lib/memcmp.c (__ptr_t): Likewise.
90542         * lib/memrchr.c (__ptr_t): Likewise.
90543         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90544         Include <string.h> unconditionally.
90545         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90546         * lib/memchr.c: Include <stdlib.h> unconditionally.
90547         * lib/memchr.c (LONG_MAX): Remove.
90548         * lib/memrchr.c (LONG_MAX): Likewise.
90549         * lib/memchr.c (__memchr): Define via a prototype.
90550         * lib/memrchr.c (__memrchr): Likewise.
90551         * lib/memcmp.c (__P): Remove, and remove all uses.
90552         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90553         Remove forward decls; no longer needed.
90554         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90555         Use types required by C89 in prototype.
90556
90557         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90558         * lib/savedir.c: Likewise.
90559         * lib/mkdir.c (free): Remove decl.
90560         * lib/rmdir.c (rmdir): Define with a prototype.
90561         * lib/savedir.c: Include savedir.h first, to test interface.
90562
90563         * lib/mktime.c (STDC_HEADERS): Remove.
90564         Include <stdlib.h>, <string.h> unconditionally.
90565
90566         * lib/modechange.c: Include <stdlib.h> unconditionally.
90567         (malloc): Remove decl.
90568
90569         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90570         (free): Remove decl.
90571
90572         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90573         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90574         (This type really should be intptr_t, but that's a C99ism.)
90575         (_obstack_memcpy): Remove: all uses changed to memcpy.
90576         Include <string.h> unconditionally.
90577         (struct obstack): Assume __STDC__ for types of members
90578         chunkfun, freefun, extra_arg.
90579         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90580         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90581         obstack_begin, obstack_specify_allocation,
90582         obstack_specify_allocation_with_arg, obstack_chunkfun,
90583         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90584         Remove unprototyped decls and the macros that use them.
90585         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90586         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90587         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90588         (defined __STDC__ && __STDC__)]:
90589         Remove nonprototyped code.
90590         Include <stdlib.h> unconditionally.
90591         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90592         _obstack_allocated_p, _obstack_free, obstack_free,
90593         _obstack_memory_used, print_and_abort):
90594         Define using prototypes.
90595         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90596         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90597         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90598         obstack_next_free, obstack_object_size, obstack_room) [0]:
90599         Remove unused, unprototyped code.
90600
90601         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90602
90603         * lib/physmem.c (physmem_total, physmem_available, main): Define
90604         with prototypes.
90605
90606         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
90607         (main): Define with a prototype.
90608
90609         * lib/posixver.c (getenv): Remove decl.
90610
90611         * lib/putenv.c (malloc): Returns void *, not char *.
90612         Include <string.h> unconditionally.
90613         (strchr, memcpy, NULL): Do not define.
90614
90615         * lib/readtokens.c: Include readtokens.h first, to test interface.
90616         Include <stdlib.h>, <string.h> unconditionally.
90617         (init_tokenbuffer): Define with a prototype.
90618
90619         * lib/regex.c (PARAMS): Remove.  All uses removed.
90620         All uses of _RE_ARGS removed, too.
90621         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90622         unconditionally.
90623         (bzero): Assume memset exists.
90624         (memcmp, memcpy, NULL): Remove.
90625         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
90626         char, or assignments to local vars of type signed char.
90627         (init_syntax_once, PREFIX(extract_number_and_incr),
90628         PREFIX(print_partial_compiled_pattern),
90629         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
90630         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
90631         PREFIX(regex_grow_registers), PREFIX(regex_compile),
90632         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
90633         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
90634         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
90635         wcs_compile_range, byte_compile_range, truncate_wchar,
90636         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
90637         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
90638         count_mbs_length, wcs_re_match_2_internal,
90639         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
90640         PREFIX(alt_match_null_string_p),
90641         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
90642         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
90643         regfree, PREFIX(extract_number)): Define with prototype.  Remove
90644         now-unnecessary declaration, if any.
90645         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
90646         regcomp, regexec):
90647         Remove now-unnecessary casts among pointer types.
90648         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
90649
90650         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
90651         (free): Remove decl.
90652
90653         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
90654
90655         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
90656         (free): Remove decl.
90657
90658         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
90659         * lib/xgetcwd.c: Likewise.
90660
90661         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
90662         (free): Remove decl.
90663
90664         * lib/strchrnul.c (strchrnul): Define with a prototype.
90665         Fix bug: c_in was not converted to char before searching.
90666
90667         The following changes are not K&R related:
90668
90669         * lib/group-member.h: Include <sys/types.h>, so that this file is
90670         self-contained.
90671         * lib/makepath.h: Likewise.
90672
90673         * lib/getusershell.c (readname, default_index, line_size, readname):
90674         Use size_t, not int, for sizes.
90675         (readname): If the size overflows, report an error instead of
90676         looping forever.
90677
90678 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90679
90680         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
90681         libc.
90682
90683 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90684
90685         * README: New section: portability guidelines.
90686
90687 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90688
90689         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
90690         C89 spec.
90691
90692 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90693
90694         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
90695
90696 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90697
90698         Assume C89 or better; remove K&R cruft.
90699         A few of these changes were first proposed by Derek Robert Price
90700         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
90701
90702         * lib/addext.c: Include <string.h> unconditionally.
90703         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
90704         Don't declare getenv or malloc.
90705
90706         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
90707         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
90708         (NULL): Remove.
90709         (find_stack_direction, alloca): Use prototypes.
90710
90711         * lib/atexit.c (atexit): Define using a prototype.
90712
90713         * lib/basename.c, dirname.c, stripslash.c:
90714         Include <string.h> unconditionally.
90715
90716         * lib/bcopy.c: Include <stddef.h>.
90717         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
90718
90719         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
90720
90721         * lib/error.h (error, error_at_line, error_print_progname)
90722         [! (defined (__STDC__) && __STDC__)]: Remove decls.
90723         * lib/error.c: Include error.h first, to check interface.
90724         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90725         (VA_START): Remove; all uses changeed to va_start.
90726         (exit, strerror): Remove decls.
90727         (error_print_progname): Prototype uncondionally.
90728         Don't include <errno.h>; no longer needed.
90729         (private_strerror): Remove.
90730         (error_tail): Always define.
90731         (error, error_at_line): Assume C89 or better; always use prototypes.
90732         * lib/fatal.c: Include "fatal.h" first, to test interface.
90733         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90734         (VA_START): Remove; all uses changed to va_start.
90735         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
90736         this case.
90737         (exit): Remove decl.
90738         (fatal): Prototype unconditionally.  Assume va_start works.
90739         Abort at end, to pacify gcc.
90740
90741         * lib/euidaccess.c (main): Define with a prototype.
90742
90743         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
90744
90745         * lib/exitfail.c: Include <stdlib.h> unconditionally.
90746
90747         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
90748         prototypes.
90749         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
90750         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
90751         (getenv): Remove decl.
90752         (fnmatch): Define using a prototype.
90753         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
90754         (FCT): Define using a prototype.
90755
90756         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
90757
90758         * lib/gethostname.c: Include <stddef.h>.
90759         (gethostname): Define with prototype.  Length is size_t, not int.
90760
90761 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90762
90763         Assume C89 or better; remove K&R cruft.
90764         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
90765         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
90766         string.h, getenv, malloc.
90767         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
90768         headers.
90769         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
90770         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
90771         do not check for strerror.
90772         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
90773         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
90774         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
90775         do not check for doprnt or vprintf.
90776         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
90777         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
90778
90779 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90780
90781         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
90782         getversion.c should have been removed then, but was accidentally
90783         preserved.
90784
90785         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
90786         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
90787
90788 2003-09-08  Karl Berry  <karl@gnu.org>
90789
90790         * config/config.sub, config.guess, srclistvars.sh: update from savannah
90791                 config, forget about prep.
90792
90793         * config/depcomp, missing: update from automake.
90794
90795 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90796
90797         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
90798         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90799
90800 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90801
90802         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
90803         copy_tm_result.  Bug reported by Simon Josefsson in
90804         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90805
90806 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90807
90808         * m4/time_r.m4: New file.
90809         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
90810         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
90811         is. Check for timegm declaration.
90812         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
90813         Do not check for gmtime_r.
90814         Replace mktime if __mktime_internal does not exist and if mktime
90815         hasn't been replaced already.
90816
90817 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90818
90819         * lib/time_r.c, lib/time_r.h: New files.
90820
90821         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
90822         __localtime_r.
90823         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
90824         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
90825
90826         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
90827         __gmtime_r.
90828         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
90829         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
90830         Include <time_r.h>.
90831
90832         * lib/timegm.c: Switch to glibc implementation, with the following
90833         changes:
90834         [defined HAVE_CONFIG_H]: Include <config.h>.
90835         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
90836         (__mktime_internal) [!defined _LIBC]: New decl.
90837         (__gmtime_r) [!defined _LIBC]: New macro and function.
90838         (timegm): Use a prototype, since gnulib assumes C89.
90839         Do not bother declaring tmp to be const, as it's not really usefu.
90840         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
90841         (timegm): Declare only if HAVE_DECL_TIMEGM.
90842
90843 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90844
90845         * MODULES.html.sh (func_all_modules): Add time_r.
90846         * modules/time_r: New file.
90847         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
90848         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
90849
90850 2003-09-03  Paul Eggert  <eggert@twinsun.com>
90851
90852         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
90853         Bug reported by Lute Kamstra in
90854         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
90855
90856         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
90857         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
90858         course with correspondingly smaller numbers for tomorrow and
90859         yesterday.  From Tadayoshi Funaba.  Originally installed into
90860         sh-utils on 1999-08-07, but the patch got lost (I guess during the
90861         coreutils merge?).
90862
90863 2003-08-31  Simon Josefsson  <jas@extundo.com>
90864
90865         * modules/timegm: New file.
90866         * MODULES.html.sh (func_all_modules): Add timegm.
90867
90868 2003-08-31  Simon Josefsson  <jas@extundo.com>
90869
90870         * m4/timegm.m4: New file.
90871
90872 2003-08-31  Simon Josefsson  <jas@extundo.com>
90873
90874         * lib/timegm.h: New file.
90875         * lib/timegm.c: New file.  Based on
90876         wget-1.8.2/src/http.c:mktime_from_utc.
90877
90878 2003-08-31  Karl Berry  <karl@gnu.org>
90879
90880         * lib/argp.h: update from libc.
90881
90882 2003-08-28  Bruno Haible  <bruno@clisp.org>
90883
90884         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
90885         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
90886         followed by '#define fnmatch fnmatch_posix' gives an error.
90887
90888 2003-08-28  Bruno Haible  <bruno@clisp.org>
90889
90890         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
90891         warning on QNX, which defines O_BINARY to 000000.
90892
90893 2003-08-27  Jim Meyering  <jim@meyering.net>
90894
90895         * m4/mkstemp.m4: Require that the system mkstemp be able to create
90896         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
90897         would fail after 32.  Reported by Danny Levinson.  Details here:
90898         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
90899
90900 2003-08-24  Bruno Haible  <bruno@clisp.org>
90901
90902         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
90903         MSVC7 <stdio.h> is included later.
90904
90905 2003-08-22  Simon Josefsson  <jas@extundo.com>
90906
90907         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
90908
90909 2003-08-20  Karl Berry  <karl@gnu.org>
90910
90911         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
90912
90913 2003-08-20  Bruno Haible  <bruno@clisp.org>
90914
90915         * modules/progname: New file.
90916         * MODULES.html.sh (func_all_modules): Add progname.
90917
90918 2003-08-20  Bruno Haible  <bruno@clisp.org>
90919
90920         * lib/progname.h: New file, from GNU gettext.
90921         * lib/progname.c: New file, from GNU gettext.
90922         * lib/progreloc.c: New file, from GNU gettext.
90923
90924 2003-08-19  Jim Meyering  <jim@meyering.net>
90925
90926         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
90927         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
90928
90929 2003-08-19  Bruno Haible  <bruno@clisp.org>
90930
90931         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
90932         more.
90933
90934 2003-08-19  Bruno Haible  <bruno@clisp.org>
90935
90936         * lib/xstrdup.c: Assume <string.h> exists.
90937
90938 2003-08-18  Paul Eggert  <eggert@twinsun.com>
90939
90940         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
90941         in makefile rules.
90942
90943 2003-08-18  Jim Meyering  <jim@meyering.net>
90944
90945         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
90946         * m4/lib-ld.m4: Likewise.
90947
90948 2003-08-18  Jim Meyering  <jim@meyering.net>
90949
90950         * lib/setenv.h: Indent nested cpp directive.
90951         * lib/vasnprintf.c: Remove trailing blanks.
90952
90953 2003-08-17  Simon Josefsson  <jas@extundo.com>
90954
90955         * modules/xstrndup: New file.
90956         * MODULES.html.sh (func_all_modules): Add xstrndup.
90957
90958 2003-08-17  Simon Josefsson  <jas@extundo.com>
90959
90960         * modules/argp: Fix autoconf macro name. Add more dependencies.
90961
90962 2003-08-17  Simon Josefsson  <jas@extundo.com>
90963
90964         * m4/xstrndup.m4: New file.
90965
90966 2003-08-17  Simon Josefsson  <jas@extundo.com>
90967
90968         * m4/argp.m4: New file.
90969
90970 2003-08-17  Simon Josefsson  <jas@extundo.com>
90971             Bruno Haible  <bruno@clisp.org>
90972
90973         * lib/xstrndup.h: New file.
90974         * lib/xstrndup.c: New file.
90975
90976 2003-08-17  Bruno Haible  <bruno@clisp.org>
90977
90978         * modules/strndup (Files, Include): Add lib/strndup.h.
90979
90980 2003-08-17  Bruno Haible  <bruno@clisp.org>
90981
90982         * modules/euidaccess (Files): Add lib/euidaccess.h.
90983
90984 2003-08-17  Bruno Haible  <bruno@clisp.org>
90985
90986         * lib/strndup.h: New file.
90987
90988 2003-08-17  Bruno Haible  <bruno@clisp.org>
90989
90990         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
90991         like AC_GNU_SOURCE.
90992         * modules/extensions (configure.ac): Comment out the invocation of
90993         gl_USE_SYSTEM_EXTENSIONS.
90994
90995 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90996
90997         Merges from coreutils, etc.
90998         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
90999         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91000         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91001         fixing a typo.
91002         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91003         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91004
91005 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91006
91007         Document merge from coreutils.
91008         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91009         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91010         * modules/utime: Add m4/utimes-null.m4.
91011
91012 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91013
91014         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91015         space, undoing this 2003-08-12 change:
91016         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91017
91018 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91019
91020         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91021         strtoul.c from libc, undoing this 2003-08-12 change:
91022         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91023
91024 2003-08-16  Jim Meyering  <jim@meyering.net>
91025
91026         Merges from coreutils.
91027         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91028         prefix.  Adjust cache variables similarly.  Create 500 rather than
91029         just 300 files, to exercise bug on Darwin6.5, too.
91030         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91031         $missing_dir.
91032         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91033         AM_SYS_POSIX_TERMIOS.
91034         Reported by mkc@mathdogs.com.
91035         Also change use of $am_cv_sys_posix_termios
91036         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91037         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91038         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91039         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91040         in /proc/mounts until it finds one with matching device number.  This
91041         is unnecessary when the FILE argument *is* a mount point.  No stat call
91042         is necessary in that case.  So, disable the statvfs-testing code on
91043         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91044         as RedHat bug# 84846.
91045         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91046         to 1MB, so as not to render systems with no stack size limit (e.g.,
91047         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91048         Include <unistd.h>.  On some systems,
91049         it is required for the definition of _SC_PAGESIZE.
91050
91051 2003-08-16  Jim Meyering  <jim@meyering.net>
91052
91053         Merge from coreutils.
91054         * lib/xstrtoimax.c: #else #if -> #elif.
91055         * lib/xstrtoumax.c: Likewise.
91056
91057 2003-08-16  Jim Meyering  <jim@meyering.net>
91058
91059         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91060         * m4/utimes.m4: Removed.
91061         * m4/utimes-null.m4: Renamed from utimes.m4.
91062
91063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91064         to 1MB, so as not to render systems with no stack size limit (e.g.,
91065         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91066         Include <unistd.h>.  On some systems,
91067         it is required for the definition of _SC_PAGESIZE.
91068
91069 2003-08-16  Jim Meyering  <jim@meyering.net>
91070         and Paul Eggert  <eggert@cs.ucla.edu>
91071
91072         Merges from coreutils, etc.
91073
91074         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91075         using the latest version from cvs.  This avoids problems with #line
91076         directives using a vendor (Sun) compiler.
91077         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91078         Don't set GETGROUPS_LIB here; now it's
91079         done via getgroups.m4's wrapper function.
91080         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91081         rather than just in sh-util/configure.in, so that the
91082         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91083         same.
91084         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91085         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91086         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91087         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91088         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91089         Remove code that is now done by the newly-required macros.
91090         Append $(EXEEXT) to DF_PROG.
91091         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91092         Do not invoke or require the following here,
91093         since prereq.m4 or some gnulib .m4 now does this for us:
91094         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91095         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91096         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91097         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91098         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91099         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91100         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91101         AC_FUNC_OBSTACK.
91102         Do not replace the following functions, as this is now the job
91103         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91104         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91105         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91106         atexit getpass, strdup, getpagesize.
91107         Replace 'raise'.
91108         Do not check for the following functions, as this is now the job
91109         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91110         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91111         setregid.
91112         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91113         Check for sys/sysctl.h.
91114         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91115         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91116         of checking for ssize_t ourselves.
91117
91118         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91119         Require every macro that gnulib/modules/* suggests for us.
91120         (jm_PREREQ_ADDEXT): New macro.
91121         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91122         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91123
91124         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91125         (gl_PHYSMEM): Use it.
91126         Also check for `table' function.
91127         Check for new headers and functions.
91128         Add check for sys/sysmp.h.
91129         With suggestions from Kaveh Ghazi.
91130         Ignore headers that are present but cannot be compiled.  This
91131         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91132         C 5.4.
91133
91134 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91135
91136         Document merge from coreutils.
91137         * modules/userspec: Depend on posixver.
91138         * modules/strftime: Depend on tzset.
91139
91140 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91141
91142         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91143         rather than tab, after '#' in shell-script copyright notices.
91144         Suggested by Bruno Haible.
91145
91146 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91147
91148         * config/srclist-update: Use three spaces, rather than tab, after '#'
91149         in shell-script copyright notices.  Suggested by Bruno Haible.
91150         Remove unnecessary parenthesization in regular expression.
91151
91152 2003-08-15  Jim Meyering  <jim@meyering.net>
91153
91154         Merge from coreutils.
91155         * lib/xgethostname.c: Include <stdlib.h>.
91156         (xghostname): Don't exit for anything other than memory-related
91157         failure; just return NULL.
91158         * lib/userspec.c: Include "posixver.h".
91159         (parse_user_spec): Accept `.' as a separator only
91160         in pre-POSIX-200112 mode.
91161         * lib/strtoimax.c: Use #elif rather than #else #if.
91162         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91163         Remove function, now that we can rely on a working tzset function.
91164         [!_LIBC]: Ensure that the required autoconf test has been run.
91165         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91166         Use underlying_strftime for %r.
91167         * lib/sha.c: Merge in some clean-up and optimization changes from
91168         glibc.
91169         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91170         Ensure that it is a multiple of 64.
91171         Rearrange loop exit tests so as to avoid performing an
91172         additional fread after encountering an error or EOF.
91173         * lib/realloc.c: Update copyright date.
91174
91175 2003-08-15  Jim Meyering  <jim@meyering.net>
91176         and Paul Eggert  <eggert@twinsun.com>
91177
91178         Merge from coreutils.
91179         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91180         member but strut utmpx does not.  Needed for AIX 4.3.3.
91181         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91182
91183 2003-08-15  Jim Meyering  <jim@meyering.net>
91184         and Paul Eggert  <eggert@cs.ucla.edu>
91185
91186         Merges from coreutils, etc.
91187         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91188         Require gl_FUNC_TZSET_CLOBBER.
91189         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91190         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91191         members.
91192
91193 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91194
91195         Help the merge from coreutils.
91196         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91197         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91198         * m4/tzset.m4: Use it too.
91199
91200 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91201
91202         * modules/tzset: New file.
91203
91204 2003-08-14  Jim Meyering  <jim@meyering.net>
91205
91206         Merges from coreutils.
91207         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91208         variable names, rather than @FNMATCH_H@.
91209         * modules/alloca: Likewise for $(ALLOCA_H).
91210
91211         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91212         the three copies of the literal target, `fnmatch.h'.
91213         * modules/alloca (alloca.h): Likewise.
91214
91215 2003-08-14  Jim Meyering  <jim@meyering.net>
91216
91217         Merge from coreutils.
91218         * m4/tzset.m4: New file.
91219         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91220         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91221         otherwise, AIX 5.1 systems would end up using the latter.
91222         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91223         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91224         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91225         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91226
91227 2003-08-14  Jim Meyering  <jim@meyering.net>
91228
91229         Merge from coreutils.
91230         * lib/obstack.h: Whitespace changes.
91231         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91232         and xcalloc return values.
91233         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91234         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91235         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91236         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91237         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91238         error from mntctl.
91239         Use mntctl's return value to drive the entry-processing loop, since
91240         we can't rely on the value of the vmt_length member in the last
91241         entry.  On some systems doing so could result in exhausting
91242         virtual memory.  Based in part on a patch from Mike Jetzer.
91243
91244 2003-08-14  Jim Meyering  <jim@meyering.net>
91245         and Paul Eggert  <eggert@twinsun.com>
91246
91247         Merges from coreutils, plus other fixes.
91248         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91249         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91250         for credits and details.  Thanks to Kaveh Ghazi for helping
91251         to keep these files in sync.
91252         (ARRAY_SIZE): Define it.
91253         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91254         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91255         (memcasecmp): Don't assume size_t fits in unsigned int.
91256         Remove casts and duplicate code.
91257         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91258         (memcpy): Remove definition.
91259         Merge in some clean-up and optimization changes from glibc.
91260         [BLOCKSIZE]: Move definition to top of file.
91261         Ensure that it is a multiple of 64.
91262         Rearrange loop exit tests so as to avoid performing an
91263         additional fread after encountering an error or EOF.
91264         * lib/md5.h (md5_uintptr): Define.
91265         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91266         return to the initial working directory.  Preserve errno
91267         for caller.
91268         * lib/idcache.c: Include "xalloc.h".
91269         (xmalloc, xrealloc): Remove decls.
91270         (getuser): Remove casts no longer required in C89.
91271         * lib/human.c: Include stdio.h, for sprintf.
91272         * lib/group-member.c: Include "xalloc.h".
91273         (xmalloc, xrealloc): Remove decls.
91274         (get_group_info): Remove casts no longer required in C89.
91275         * lib/getusershell.c (readname): Remove casts no longer required in
91276         C89.
91277         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91278         * lib/getline.c: Whitespace fix, from coreutils.
91279
91280 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91281
91282         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91283         Check for isascii.
91284
91285         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91286         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91287         Undo previous (whitespace-only) change.
91288
91289 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91290
91291         * lib/exclude.c: Include <ctype.h>
91292         (IN_CTYPE_DOMAIN): New macro.
91293         (is_space): New fn.
91294         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91295         and empty lines.
91296
91297         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91298         Undo previous (whitespace-only) change.
91299
91300 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91301
91302         * config/srclist-update: Change update back to the old behavior,
91303         leaving whitespace alone.  Use one 'sed' command rather than a
91304         pipeline.
91305         (fixlicense): Now a variable, not a function.
91306         (remove_trailing_blanks): Remove.
91307         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91308         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91309         Undo previous (whitespace-only) change.
91310
91311 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91312
91313         Merge from coreutils.
91314         * modules/euidaccess: Add lib_SOURCES, include for new
91315         file euidaccess.h
91316
91317 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91318
91319         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91320         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91321         Normalize leading white space and remove trailing white space.
91322
91323         Merge from coreutils
91324         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91325
91326         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91327         0.12.1.  These files are now being upgraded automatically by
91328         ../config/srclist-update.
91329
91330 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91331
91332         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91333         Normalize leading white space and remove trailing white space.
91334         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91335         notice, as per ../config/srclist-update.
91336
91337         Merge from coreutils.
91338         * lib/euidaccess.h: New file.
91339         * lib/euidaccess.c: Include it.
91340         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91341         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91342         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91343
91344 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91345
91346         * config/srclist-update: Add copyright notice.
91347         (remove_id_lines, remove_trailing_blanks): New constants.
91348         (fixfile): Use them to normalize spacing a bit in copied files.
91349         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91350         Normalize leading white space and remove trailing white space.
91351
91352         * config/texinfo.tex: Sync with texinfo.
91353
91354         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91355         strtoul.c from libc, to merge coreutils whitespace changes.
91356
91357         * config/srclist.txt: Get the following m4 files from gettext:
91358         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91359         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91360         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91361         wint_t.m4.
91362
91363 2003-08-12  Karl Berry  <karl@gnu.org>
91364
91365         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91366         been made.
91367
91368 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91369
91370         * modules/gnu-source, m4/gnu-source.m4:
91371         Remove; we're assuming Autoconf 2.54 or later now.
91372         Suggested by Bruno Haible.
91373         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91374
91375 2003-08-11  Bruno Haible  <bruno@clisp.org>
91376
91377         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91378
91379 2003-08-11  Bruno Haible  <bruno@clisp.org>
91380
91381         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91382         (vasnprintf): Use it instead of wcslen.
91383
91384 2003-08-11  Bruno Haible  <bruno@clisp.org>
91385
91386         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91387         value to ensure that _Bool promotes to int. Use #define for _Bool when
91388         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91389
91390 2003-08-10  Karl Berry  <karl@gnu.org>
91391
91392         * lib/regex.h: update from libc (whitespace fix).
91393
91394 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91395
91396         Merge some files from coreutils.  These changes were
91397         originally made by Jim Meyering.
91398         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91399         many older Unixes require this.
91400         * lib/alloca.c (alloca): Remove cast to argument of free;
91401         no longer needed in C89.
91402         * lib/alloca_.h, regex.h: Fix white space to match
91403         what GNU indent does.
91404
91405 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91406
91407         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91408         apparently Emacs's Unicode mode got confused before my 2003-08-05
91409         checkin.
91410
91411 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91412
91413         * m4/extensions.m4: New file.
91414         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91415         Require gl_USE_SYSTEM_EXTENSIONS.
91416         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91417         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91418
91419 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91420
91421         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91422         * modules/extensions, modules/gnu-source: New files.
91423         * modules/timespec, modules/unlocked-io: Depend on extensions.
91424
91425 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91426
91427         * modules/restrict: New file.
91428         * MODULES.html.sh (func_all_modules): Add restrict.
91429         * modules/regex: Depend on restrict.
91430
91431 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91432
91433         * m4/restrict.m4: New file.
91434         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91435
91436 2003-08-07  Bruno Haible  <bruno@clisp.org>
91437
91438         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91439         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91440
91441 2003-08-07  Bruno Haible  <bruno@clisp.org>
91442
91443         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91444         makes the module 'getndelim2' compatible with the module 'getline'.
91445
91446 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91447
91448         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91449         byte with "\201" to avoid glitches when editing that source file
91450         with multi-gnome-terminal.
91451
91452 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91453
91454         * lib/bumpalloc.h: Remove.
91455
91456 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91457
91458         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91459         * modules/bumpalloc: Remove.
91460
91461 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91462
91463         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91464         GNU coding style.
91465
91466         Merge from coreutils.
91467         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91468         1. From glibc.
91469         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91470         from Karl Berry, implemented by Jim Meyering.
91471         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91472         from Dmitry V. Levin.
91473         Remove anachronistic cast of xrealloc.
91474         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91475         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91476         type. Otherwise, it wouldn't compile with at least /bin/cc on
91477         ymp-cray-unicos9.0.2.X.
91478         Combine two mostly-identical uses of alloca into one.
91479         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91480
91481 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91482
91483         [From Emacs.]
91484
91485         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91486         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91487         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91488         obsolete NLIST_NAME_UNION.
91489         [__GNU__]: Undef BSD and FSCALE.
91490         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91491
91492 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91493
91494         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91495         an enum type, so that it's guaranteed to promote to int.  See:
91496         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91497
91498 2003-08-03  Karl Berry  <karl@gnu.org>
91499
91500         * config/depcomp: update from automake.
91501
91502 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91503
91504         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91505         (strerror): Don't assume that a printable int fits in 14 bytes.
91506
91507 2003-07-31  Bruno Haible  <bruno@clisp.org>
91508
91509         * modules/getpass-gnu: New file.
91510         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91511
91512 2003-07-31  Bruno Haible  <bruno@clisp.org>
91513
91514         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91515
91516 2003-07-24  Karl Berry  <karl@gnu.org>
91517
91518         * config/missing: update from automake.
91519
91520 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91521             Bruno Haible  <bruno@clisp.org>
91522
91523         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91524         * lib/getline.c (getline, getdelim): Likewise.
91525         Remove _GNU_SOURCE define; now it's defined in config.h through
91526         m4/getline.m4.
91527
91528 2003-07-23  Karl Berry  <karl@gnu.org>
91529
91530         * config/config.sub: update from prep.
91531
91532 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91533
91534         * modules/xalloc (Depends-on): Add exitfail.
91535         * modules/xmemcoll: Likewise.
91536
91537 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91538
91539         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91540         over-parenthesization in macros.
91541
91542         Sync with coreutils.
91543
91544         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91545         required by C99.
91546
91547         Use `exit_failure' for xalloc and xmemcoll instead of their own
91548         private exit-failure variables.
91549         * lib/xalloc.h (xalloc_exit_failure): Remove.
91550         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91551         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91552         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91553         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91554         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91555
91556 2003-07-20  Jim Meyering  <jim@meyering.net>
91557
91558         * modules/closeout (Depends-on): Add exitfail.
91559         Suggestion from Bruno Haible.
91560
91561 2003-07-19  Karl Berry  <karl@gnu.org>
91562
91563         * config/config.sub: update from prep.
91564
91565 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91566
91567         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91568         Remove.
91569         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91570         to test that it can stand by itself.  Include "exitfail.h".
91571         Clients should set exit_failure instead.
91572         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91573
91574 2003-07-18  Bruno Haible  <bruno@clisp.org>
91575
91576         * modules/getndelim2: New file.
91577         * modules/getline: Share files with module getndelim2.
91578         * modules/getnline: Depend on getndelim2 instead of sharing files with
91579         it. Add getnline.c to lib_SOURCES.
91580         * MODULES.html.sh (func_all_modules): Add getndelim2.
91581
91582 2003-07-18  Bruno Haible  <bruno@clisp.org>
91583
91584         * m4/getndelim2.m4: New file.
91585         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91586         invoke gl_PREREQ_GETNDELIM2.
91587         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91588         gl_PREREQ_GETNDELIM2.
91589         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91590         gl_GETNDELIM2.
91591
91592 2003-07-18  Bruno Haible  <bruno@clisp.org>
91593
91594         * lib/getndelim2.h: New file.
91595         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91596         getndelim2.h.
91597         (getndelim2): Make non-static. Change return type to ssize_t.
91598         * lib/getline.h: Change argument names.
91599         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91600         * lib/getnline.c: Include getndelim2.h.
91601
91602 2003-07-18  Andreas Schwab  <schwab@suse.de>
91603
91604         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
91605
91606 2003-07-17  Karl Berry  <karl@gnu.org>
91607
91608         * config/config.sub: update from prep.
91609
91610 2003-07-17  Bruno Haible  <bruno@clisp.org>
91611
91612         * modules/getnline: New file.
91613         * modules/getline: Add lib/getndelim2.c to source file list.
91614         * MODULES.html.sh (func_all_modules): Add getnline.
91615
91616 2003-07-17  Bruno Haible  <bruno@clisp.org>
91617
91618         * m4/getnline.m4: New file.
91619
91620 2003-07-17  Bruno Haible  <bruno@clisp.org>
91621
91622         * m4/Makefile.am.in: Remove file.
91623         * m4/Makefile.am: Remove file.
91624         * m4/Makefile.in: Remove file.
91625
91626 2003-07-17  Bruno Haible  <bruno@clisp.org>
91627
91628         * lib/getnline.h: New file.
91629         * lib/getnline.c: New file.
91630         * lib/getndelim2.c: New file, extracted from getline.c.
91631         (getndelim2): Renamed from getdelim2, with added nmax argument.
91632         * lib/getline.c: Include getndelim2.c.
91633         (getdelim2): Moved out to getndelim2.c.
91634         (getline, getdelim): Update.
91635
91636 2003-07-17  Bruno Haible  <bruno@clisp.org>
91637
91638         * lib/Makefile.am: Remove file.
91639         * lib/Makefile.in: Remove file.
91640
91641 2003-07-17  Bruno Haible  <bruno@clisp.org>
91642
91643         * configure.in: Remove file.
91644         * Makefile.in: Remove file.
91645
91646 2003-07-17  Bruno Haible  <bruno@clisp.org>
91647
91648         * MODULES.html.sh: Put the </BODY> right before </HTML>.
91649
91650 2003-07-16  Karl Berry  <karl@gnu.org>
91651
91652         * config/srclist-update: was running fixlicense twice, which caused
91653                 texinfo.tex to be nullified for some reason.  Simplify,
91654                 $gplsrc is no longer needed as far as I can see?
91655
91656 2003-07-16  Jim Meyering  <jim@meyering.net>
91657
91658         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
91659
91660 2003-07-15  Paul Eggert  <eggert@twinsun.com>
91661
91662         * config/srclist.txt: Get the following files from gettext-runtime/intl
91663         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
91664         ref-del.sin.  From Bruno Haible.
91665         * config/srclist-update (fixfile): Change grep pattern again, since the
91666         previous fix didn't work (there was another trailing $).  Use
91667         '[$]' to escape the $s.
91668
91669 2003-07-15  Karl Berry  <karl@gnu.org>
91670
91671         * lib/vasnprintf.c: update from gettext.
91672
91673 2003-07-15  Karl Berry  <karl@gnu.org>
91674
91675         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
91676         gets expanded when surrounded by '$'.
91677
91678 2003-07-15  Jim Meyering  <jim@meyering.net>
91679
91680         * modules/save-cwd: Don't depend on error.  From Derek Price.
91681
91682 2003-07-15  Jim Meyering  <jim@meyering.net>
91683
91684         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
91685
91686 2003-07-14  Simon Josefsson  <jas@extundo.com>
91687
91688         * modules/mempcpy: New file.
91689         * MODULES.html.sh (func_all_modules): Add mempcpy.
91690
91691 2003-07-14  Simon Josefsson  <jas@extundo.com>
91692
91693         * m4/mempcpy.m4: New file.
91694
91695 2003-07-14  Simon Josefsson  <jas@extundo.com>
91696
91697         * lib/mempcpy.h: New file.
91698         * lib/mempcpy.c: New file.
91699
91700 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91701
91702         * modules/getdate, modules/posixtm: Depend on mktime.
91703
91704 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91705
91706         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
91707         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
91708         unicodeio.c, unicodeio.h, unlocked-io.h:
91709         Switch from LGPL to GPL.
91710
91711 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91712
91713         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
91714         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
91715         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
91716         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
91717         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
91718         updated automatically by ../config/srclist-update.  This changes
91719         their license from LPGL to GPL.
91720
91721 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91722
91723         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
91724         assumed to refer to the root of the most recent stable gettext version.
91725         * config/srclistvars.sh: Add defaults for eggert.
91726         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
91727         Match "This program" as well as "The program".  This is needed
91728         for gettext.
91729
91730 2003-07-14  Jim Meyering  <jim@meyering.net>
91731
91732         Don't emit diagnostics.  Let callers do that.
91733         * lib/save-cwd.c: Don't include "error.h".
91734         (save_cwd): Don't call error.  Ensure that errno is valid
91735         when returning nonzero.
91736
91737         * lib/save-cwd.h (restore_cwd): Update prototype.
91738         * lib/save-cwd.c (restore_cwd): Remove two parameters.
91739         Simplify.  Don't call error upon failure.  Let callers do that.
91740         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
91741         when auditing is enabled.  But don't bother updating the #if.
91742
91743 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91744
91745         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
91746         it breaks C++ compilation.
91747         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
91748
91749 2003-07-10  Simon Josefsson  <jas@extundo.com>
91750
91751         * modules/strchrnul (Makefile.am): Add strchrnul.h.
91752
91753 2003-07-10  Jim Meyering  <jim@meyering.net>
91754
91755         * m4/clock_time.m4: Remove trailing blank.
91756         * m4/intmax_t.m4: Likewise.
91757
91758 2003-07-10  Jim Meyering  <jim@meyering.net>
91759
91760         * lib/vasnprintf.c: Remove trailing blanks.
91761         Make cpp indentation consistent.
91762
91763 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91764
91765         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
91766         posixver.c, strftime.c, strnlen.c, strverscmp.c:
91767         Switch from LGPL to GPL.
91768
91769 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91770
91771         * config/srclist.txt: Sort sublists.  Add
91772         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
91773         that differ from gnulib for one reason or another; we'd like this list
91774         to be smaller but for now let's document what we have.
91775
91776 2003-07-08  Paul Eggert  <eggert@twinsun.com>
91777
91778         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
91779         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
91780         and sweeter "eval x=$x".
91781         * config/srclist.txt: Get lib/argp* from glibc.
91782
91783 2003-07-07  Paul Eggert  <eggert@twinsun.com>
91784
91785         * lib/mktime.c: Fix some boundary cases and remove need for floating
91786         point.
91787
91788         Issue a compile-time diagnostic if time_t is floating point, or if
91789         two's complement arithmetic is not in effect, or if arithmetic
91790         right shift does not propagate the sign.  These assumptions were
91791         all in the original code but they weren't checked.
91792
91793         (TIME_T_MIDPOINT, verify): New macros.
91794         (__isleap): Remove; it has integer overflow problems.
91795         (leapyear): New function, without those problems.
91796         (ydhms_tm_diff): Remove; splitting into two parts.
91797         (ydhms_diff): New function, containing the arithmetic part of
91798         the old ydhms_tm_diff function.  Issue a compile-time
91799         diagnostic if we are not using C99 integer division.
91800         Avoid casts when possible.
91801         (guess_time_tm): New function, containing the checking part of
91802         the old ydhms_tm_diff function.  Return the new value, rather than
91803         the difference between it and the old.  Accept a new argument T
91804         so that *T specifies the old value.  Check for overflow in the result.
91805
91806         (__mktime_internal): Use a time_t offset, not a long int offset.
91807         This undoes the 2003-06-04 change, which is no longer needed now
91808         that we have better overflow checking.
91809         (localtime_offset): Likewise.
91810
91811         (__mktime_internal): Avoid harmful overflow on hosts where time_t
91812         and long are 64-bit but int is only 32-bit.
91813         (ydhms_diff): Use long int to store year1 and yday1.
91814         Issue a compile-time diagnostic if long int is not wide enough.
91815
91816         (__mktime_internal): Use long int to store adjusted year and yday.
91817         Use plain C rather than preprocessor commands, if that doesn't
91818         affect efficiency.
91819         Check for overflow (and try to repair) after each probe
91820         rather than checking only at the very end.  This avoids some bugs
91821         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
91822         does not equal GMT offset at maximum time).
91823         Use integer to check for overflow rather than floating point; this
91824         is more portable to non-IEEE hosts, and is a tad faster.
91825         When we detect that we are oscillating between two values,
91826         don't check whether tm_isdst has the requested value, since
91827         we already know the answer.  When tm_isdst has the wrong value,
91828         use a different heuristic to find the right one, based on the
91829         extreme values actually observed in practice in tz2003a,
91830         rather than the (overly optimistic) "previous 3 calendar quarters".
91831
91832         (not_equal_tm, print_tm, check_result): Use "const T" rather than
91833         "T const" to accommodate glibc style.
91834         (check_result): Use less-confusing report format.  "long" -> "long int.
91835         (main): Likewise.
91836         Don't loop if the iteration overflows time_t.
91837         Allow a negative step in the iteration.
91838
91839 2003-07-06  Karl Berry  <karl@gnu.org>
91840
91841         * config/depcomp: update from automake.
91842         * config/config.sub: update from prep.
91843
91844 2003-07-03  Karl Berry  <karl@gnu.org>
91845
91846         * config/config.guess: update from prep.
91847
91848 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91849
91850         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
91851         xreadlink.c now includes it unconditionally.
91852
91853 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91854
91855         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
91856         having it depend on HAVE_SYS_TYPES_H.
91857
91858 2003-07-01  Bruno Haible  <bruno@clisp.org>
91859
91860         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
91861         <sys/types.h> should be sufficient.
91862         Reported by Paul Eggert.
91863
91864 2003-06-26  Karl Berry  <karl@gnu.org>
91865
91866         * config/depcomp: update from automake.
91867
91868 2003-06-26  Bruno Haible  <bruno@clisp.org>
91869
91870         * modules/human: Depend on module stdbool.
91871
91872 2003-06-25  Bruno Haible  <bruno@clisp.org>
91873
91874         * modules/readlink: New file.
91875         * modules/xreadlink: Depend on it.
91876         * MODULES.html.sh (func_all_modules): Add readlink.
91877
91878 2003-06-25  Bruno Haible  <bruno@clisp.org>
91879
91880         * m4/readlink.m4: New file.
91881
91882 2003-06-25  Bruno Haible  <bruno@clisp.org>
91883
91884         * lib/readlink.c: New file.
91885
91886 2003-06-22  Karl Berry  <karl@gnu.org>
91887
91888         * config/srclist.txt: update mkinstalldirs from automake.
91889         * config/mkinstalldirs: update.
91890
91891 2003-06-22  Bruno Haible  <bruno@clisp.org>
91892
91893         Portability to mingw32.
91894         * m4/ssize_t.m4: New file, from GNU gettext.
91895         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
91896         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
91897
91898 2003-06-22  Bruno Haible  <bruno@clisp.org>
91899
91900         * modules/safe-read: Add m4/ssize_t.m4.
91901         * modules/xreadlink: Add m4/ssize_t.m4.
91902
91903 2003-06-20  Bruno Haible  <bruno@clisp.org>
91904
91905         Assume C89, so PARAMS isn't needed.
91906         * lib/unicodeio.h (PARAMS): Remove.
91907         * lib/unicodeio.c: Don't use PARAMS.
91908
91909 2003-06-18  Karl Berry  <karl@gnu.org>
91910
91911         * config/config.{guess,sub}: update from prep.
91912
91913 2003-06-18  Jim Meyering  <jim@meyering.net>
91914
91915         Merge changes from coreutils.
91916         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
91917         Remove explicit declarations of xmalloc and realloc.
91918         Include xalloc.h.
91919         (read_utmp): Remove anachronistic cast of xmalloc.
91920
91921 2003-06-17  Paul Eggert  <eggert@twinsun.com>
91922
91923         Assume C89, so PARAMS isn't needed.
91924         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
91925         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
91926         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
91927         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
91928         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
91929         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
91930         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
91931         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
91932         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
91933         lib/xstrtod.h, lib/xstrtol.h: Likewise.
91934         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
91935         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
91936         no longer needed. Anyway, config.h should always be included before any
91937         other file.
91938
91939 2003-06-11  Simon Josefsson  <jas@extundo.com>
91940
91941         * modules/sysexits: New file.
91942         * MODULES.html.sh (func_all_modules): Add sysexits.
91943
91944 2003-06-11  Simon Josefsson  <jas@extundo.com>
91945
91946         * lib/sysexit_.h: New file.
91947
91948 2003-06-11  Derek Price  <derek@ximbiot.com>
91949
91950         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
91951         necessary.
91952
91953 2003-06-11  Bruno Haible  <bruno@clisp.org>
91954
91955         * m4/sysexits.m4: New file.
91956
91957 2003-06-10  Simon Josefsson  <jas@extundo.com>
91958
91959         * lib/argp.h: New file, from glibc.
91960         * lib/argp-ba.c: New file, from glibc.
91961         * lib/argp-eexst.c: New file, from glibc.
91962         * lib/argp-fmtstream.c: New file, from glibc.
91963         * lib/argp-fmtstream.h: New file, from glibc.
91964         * lib/argp-fs-xinl.c: New file, from glibc.
91965         * lib/argp-help.c: New file, from glibc.
91966         * lib/argp-namefrob.h: New file, from glibc.
91967         * lib/argp-parse.c: New file, from glibc.
91968         * lib/argp-pv.c: New file, from glibc.
91969         * lib/argp-pvh.c: New file, from glibc.
91970         * lib/argp-xinl.c: New file, from glibc.
91971
91972 2003-06-10  Simon Josefsson  <jas@extundo.com>
91973
91974         * modules/strchrnul: New file.
91975
91976 2003-06-10  Simon Josefsson  <jas@extundo.com>
91977
91978         * modules/argp: New file.
91979
91980 2003-06-10  Simon Josefsson  <jas@extundo.com>
91981
91982         * m4/strchrnul.m4: New file.
91983
91984 2003-06-10  Simon Josefsson  <jas@extundo.com>
91985
91986         * lib/strchrnul.h: New file.
91987         * lib/strchrnul.c: New file.
91988
91989 2003-06-10  Bruno Haible  <bruno@clisp.org>
91990
91991         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
91992
91993 2003-06-07  Karl Berry  <karl@gnu.org>
91994
91995         * config/config.{guess,sub}: update from prep.
91996
91997 2003-06-07  Jim Meyering  <jim@meyering.net>
91998
91999         * modules/strtod: Use $(...) notation, not @...@ for
92000         AC_REPLACE'd variables.
92001         * modules/localcharset: Likewise.
92002
92003 2003-06-07  Jim Meyering  <jim@meyering.net>
92004
92005         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92006         in place of my name in the copyright comment.
92007         Remove definition and uses of __P.
92008
92009         From coreutils.
92010         * lib/stat.c: Don't declare xmalloc explicitly.
92011         Instead, include "xalloc.h".
92012         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92013         xrealloc, and xcalloc return values.
92014         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92015         Improve comment.
92016         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92017
92018 2003-06-07  Bruno Haible  <bruno@clisp.org>
92019
92020         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92021         avoid AC_CONFIG_LINKS.
92022         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92023         fnmatch.h, to avoid AC_CONFIG_LINKS.
92024         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92025
92026 2003-06-07  Bruno Haible  <bruno@clisp.org>
92027
92028         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92029         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92030         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92031         directory.
92032         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92033         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92034         directory.
92035
92036 2003-06-06  Jim Meyering  <jim@meyering.net>
92037
92038         Merge from coreutils.
92039         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92040         Consolidate declarations and initializations of *_base* locals.
92041
92042         Merge from coreutils.
92043         This avoids a core dump on systems without GNU putenv,
92044         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92045         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92046         (unsetenv): New static function, from GNU libc.
92047         (rpl_putenv): Use it.
92048
92049         * lib/modechange.c: Remove trailing blanks.
92050
92051         Merge from coreutils.
92052         * lib/fsusage.c: Remove declaration of statfs.
92053         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92054
92055         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92056
92057 2003-06-06  Jim Meyering  <jim@meyering.net>
92058
92059         * lib/stdbool_.h: Renamed from stdbool.h.in.
92060
92061 2003-06-06  Jim Meyering  <jim@meyering.net>
92062             Bruno Haible  <bruno@clisp.org>
92063
92064         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92065         Adjust Makefile.am snippet not to redirect directly to target.
92066         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92067
92068 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92069
92070         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92071         mismatch, look in future quarters as well as past.  This fixes a
92072         bug when processing fall-backwards gaps immediately after a long
92073         period of daylight-saving time.
92074
92075         * lib/mktime.c: Assume freestanding C89 or better.
92076         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92077         (__P): Remove; not used.
92078         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92079         (mktime, not_equal_tm, print_tm, check_result,
92080         main): Use prototypes.  Use const * where appropriate.
92081         (main): Fix typo in testing code that uncovered by above changes.
92082         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92083
92084 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92085
92086         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92087         locale.h, localeconv.  This merges changes from coreutils.
92088
92089         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92090         It can be removed after the next Autoconf is released.
92091         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92092         needed.
92093
92094 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92095
92096         * lib/mktime.c: Fix Debian bug 177940
92097         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92098         (localtime_offset): Now long int, not time_t, because we want it
92099         to be guaranteed to be signed.  All uses changed.
92100         (__mktime_internal): If overflow would occur when adding offset,
92101         don't add it.
92102
92103         Merge 'human' changes from coreutils.  Rewrite to support
92104         locale-specific notations like thousands separators.
92105         * lib/human.c: Simplify authorship notice.
92106         Include human.h immediately after config.h.
92107         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92108         <limits.h>: Do not include, since human.h does.
92109         (SIZE_MAX, UINTMAX_MAX): New macros.
92110         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92111         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92112         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92113         (power_letter): Renamed from suffixes.
92114         (generate_suffix_backwards): Remove.
92115         (adjust_value): Now takes int style (because of human.h changes)
92116         and long double value (for greater precision on some platforms).
92117         (group_number): New function.
92118         (human_readable): Use it.  Use integer options, not enum.
92119         Put the options before the sizes in the arg list.
92120         Support all the new options.
92121         The old human_readable function has been removed;
92122         use inttostr.h instead.
92123         (human_readable, default_block_size, humblock):
92124         Use uintmax_t, not int, for block sizes.
92125         (human_readable_inexact, block_size_types): Remove.
92126         (block_size_opts): New constant.
92127         (human_options): Renamed from human_block_size, with new signature
92128         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92129         * lib/human.h: Add copyright and authorship notice.
92130         Include <limits.h> and <stdbool.h> unconditionally.
92131         (PARAMS): Remove.  All uses removed.
92132         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92133         (enum human_inexact_style): Remove tag; now a nameless enum.
92134         (human_floor, human_ceiling, human_round_to_even): Now have
92135         values 2, 0, 1 rather than -1, 1, 0.
92136         (human_group_digits, human_suppress_point_zero, human_autoscale,
92137         human_base_1024, human_SI, human_B): New constants.
92138         (human_readable_inexact, human_block_size): Remove.
92139         (human_readable): Size args are now uintmax_t, not int.
92140         (human_options): New decl.
92141
92142         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92143         unnecessary now that we assume C89 or better.  This change
92144         imported from coreutils.
92145
92146         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92147         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92148         in the 2003-05-30 sync from glibc.
92149
92150         .h files should stand alone, but we shouldn't include <sys/types.h>
92151         if we can get away with just <stddef.h>.
92152
92153         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92154         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92155         rather than <sys/types.h>, as we merely need size_t.
92156         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92157         to get size_t.
92158         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92159         Include <stdio.h>, to get FILE.
92160         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92161         memcasecmp.h has included <stddef.h> and all we need is size_t.
92162         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92163         our interface, instead of including <sys/types.h>
92164
92165 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92166
92167         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92168         now, as glibc mktime is buggy on non-glibc systems.
92169
92170 2003-06-03  Karl Berry  <karl@gnu.org>
92171
92172         * config/config.sub: update from prep.
92173
92174 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92175
92176         [from coreutils]
92177         Fix some minor time-related bugs with POSIX time arguments.
92178         Some valid time stamps were being rejected (notably -1, and
92179         time stamps before 1900 on 64-bit hosts).  And some invalid
92180         time stamps were being accepted, e.g. September 31.
92181
92182         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92183         that we can return (time_t) -1 successfully.
92184         * lib/posixtm.c: Likewise.
92185         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92186         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92187         (t): Remove static var.
92188         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92189         of static var.  All uses changed.
92190         (year): Do not reject years before 1900; they can occur with
92191         64-bit time_t.
92192         (posix_time_parse): Do not check for out-of-range components;
92193         that is now the caller's responsibility, since our checks were
92194         only approximations.
92195         (posixtime): Use mktime to check for out-of-range components,
92196         since it knows them exactly.
92197         If mktime returns (time_t) -1, check whether an error actually occurred
92198         by invoking localtime on -1.
92199         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92200         posixtime failures better.
92201         Improve the test data (in comments only).
92202
92203 2003-06-02  Karl Berry  <karl@gnu.org>
92204
92205         * config/mkinstalldirs (version): new variable.
92206         (--version): new option.
92207         (usage): improve message.
92208
92209 2003-05-30  Karl Berry  <karl@gnu.org>
92210
92211         * lib/mktime.c: update from libc.
92212
92213 2003-05-30  Bruno Haible  <bruno@clisp.org>
92214
92215         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92216         * config/config.rpath: Upgrade to gettext-0.12.1.
92217
92218 2003-05-30  Bruno Haible  <bruno@clisp.org>
92219
92220         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92221         * m4/nls.m4: New file, from gettext-0.12.1.
92222         * m4/po.m4: New file, from gettext-0.12.1.
92223         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92224
92225 2003-05-30  Bruno Haible  <bruno@clisp.org>
92226
92227         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92228         * lib/localcharset.h: Likewise.
92229         * lib/localcharset.c: Likewise.
92230
92231 2003-05-29  Karl Berry  <karl@gnu.org>
92232
92233         * config/config.rpath: update from gettext.
92234
92235 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92236
92237         Assume the headers required for C89 freestanding compilers.
92238         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92239         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92240         * m4/human.m4 (gl_HUMAN): Likewise.
92241         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92242         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92243         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92244         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92245         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92246         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92247
92248 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92249
92250         Assume the headers required for C89 freestanding compilers.
92251         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92252         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92253         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92254         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92255         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92256         define, since <limits.h> is guaranteed to do that.
92257         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92258         * lib/exclude.c: Include <stdbool.h> unconditionally.
92259         * lib/tempname.c: Include <stddef.h> unconditionally.
92260         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92261         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92262         <stddef.h> does that.
92263         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92264         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92265         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92266         needed.
92267         * lib/xstrtol.c: Likewise.
92268         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92269         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92270
92271         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92272         warnings on some platforms.
92273
92274         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92275         arbitrarily.
92276
92277 2003-05-26  Jim Meyering  <jim@meyering.net>
92278
92279         Merge in a change from coreutils:
92280         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92281         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92282         that condition, rather than `-1' which is slightly misleading.
92283         Change the name of the cache variable to have the gl_ prefix.
92284         Prompted by a patch from Richard Dawe for DJGPP.
92285
92286 2003-05-24  Karl Berry  <karl@gnu.org>
92287
92288         * config/config.guess: update from prep.
92289
92290 2003-05-22  Karl Berry  <karl@gnu.org>
92291
92292         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92293
92294 2003-05-20  Karl Berry  <karl@gnu.org>
92295
92296         * config/config.guess: update from prep.
92297
92298 2003-05-18  Karl Berry  <karl@gnu.org>
92299
92300         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92301         might actually be set by the user.
92302
92303         * config/depcomp, install-sh, mdate-sh: update from automake.
92304
92305 2003-05-17  Bruno Haible  <bruno@clisp.org>
92306
92307         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92308         invalid expansion for AC_EGREP_CPP.
92309         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92310         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92311         Suggested by Akim Demaille <akim@epita.fr> in
92312         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92313
92314 2003-05-12  Jim Meyering  <jim@meyering.net>
92315
92316         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92317         the space-padded-by-default conversion specifiers, %e, %k, %l.
92318
92319 2003-05-12  Bruno Haible  <bruno@clisp.org>
92320
92321         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92322         the string is longer than 4 KB.
92323
92324 2003-05-11  Karl Berry  <karl@gnu.org>
92325
92326         * config/config.{guess,sub}: update from prep.
92327
92328 2003-05-09  Bruno Haible  <bruno@clisp.org>
92329
92330         * modules/error: Add m4/strerror_r.m4 to file list.
92331
92332 2003-05-03  Bruno Haible  <bruno@clisp.org>
92333
92334         Upgrade to Unicode-4.0.
92335         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92336         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92337         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92338         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92339         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92340         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92341         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92342         Change width of U+E0100..U+E01EF from 1 to 0.
92343
92344 2003-04-25  Jim Meyering  <jim@meyering.net>
92345
92346         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92347         of type size_t, not int.
92348
92349 2003-04-25  Bruno Haible  <bruno@clisp.org>
92350
92351         * lib/copy-file.c: Include <stddef.h>, for size_t.
92352
92353 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92354
92355         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92356         code which expansion is under static control.  Patch imported from
92357         Akim Demaille's patch to Bison; see
92358         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92359
92360 2003-04-14  Bruno Haible  <bruno@clisp.org>
92361
92362         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92363
92364 2003-04-11  Jim Meyering  <jim@meyering.net>
92365
92366         Merge changes from Coreutils.
92367
92368         2003-03-22  Jim Meyering  <jim@meyering.net>
92369
92370         * lib/strftime.c (widen): Cast alloca return value to proper type.
92371
92372         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92373
92374         From GNU libc.
92375         * lib/strftime.c (my_strftime): Handle very large width
92376         specifications for numeric values correctly.  Improve checks for
92377         overflow.
92378
92379         2003-01-19  Jim Meyering  <jim@meyering.net>
92380
92381         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92382         definitions.
92383         (nl_get_alt_digit) [! defined my_strftime]: Define.
92384         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92385         _nl_get_alt_digit and _nl_get_walt_digit.
92386
92387         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92388         libc. These changes have no effect outside of _LIBC.
92389
92390 2003-04-10  Bruno Haible  <bruno@clisp.org>
92391
92392         * modules/findprog: New file.
92393         * MODULES.html.sh (func_all_modules): Add it.
92394
92395 2003-04-10  Bruno Haible  <bruno@clisp.org>
92396
92397         * m4/findprog.m4: New file.
92398         * m4/eaccess.m4: New file.
92399
92400 2003-04-10  Bruno Haible  <bruno@clisp.org>
92401
92402         * lib/findprog.h: New file, from GNU gettext.
92403         * lib/findprog.c: New file, from GNU gettext.
92404
92405 2003-04-05  Jim Meyering  <jim@meyering.net>
92406
92407         Merge changes from Coreutils.
92408
92409         * lib/exclude.h (PARAMS): Remove definition and uses.
92410         * lib/exclude.c: Remove uses of `PARAMS'.
92411
92412         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92413         Add test-cases for DOS filenames. Declare program_name.
92414         (main): Set up program_name.  Patch by Rich Dawe.
92415
92416         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92417         error from mntctl.
92418         Use mntctl's return value to drive the entry-processing loop, since
92419         we can't rely on the value of the vmt_length member in the last
92420         entry.  On some systems doing so could result in exhausting
92421         virtual memory.  Based in part on a patch from Mike Jetzer.
92422
92423 2003-04-04  Bruno Haible  <bruno@clisp.org>
92424
92425         * modules/linebreak: New file.
92426         * MODULES.html.sh (func_all_modules): Add it.
92427
92428 2003-04-04  Bruno Haible  <bruno@clisp.org>
92429
92430         * m4/linebreak.m4: New file.
92431
92432 2003-04-04  Bruno Haible  <bruno@clisp.org>
92433
92434         * lib/linebreak.h: New file, from GNU gettext.
92435         * lib/linebreak.c: New file, from GNU gettext with slight
92436         modifications.
92437         * lib/lbrkprop.h: New file, from GNU gettext.
92438
92439 2003-04-03  Bruno Haible  <bruno@clisp.org>
92440
92441         * modules/utf8-ucs4: New file.
92442         * modules/utf16-ucs4: New file.
92443         * modules/ucs4-utf8: New file.
92444         * modules/ucs4-utf16: New file.
92445         * MODULES.html.sh (func_all_modules): Add them.
92446
92447 2003-04-03  Bruno Haible  <bruno@clisp.org>
92448
92449         * m4/utf-ucs4.m4: New file.
92450         * m4/ucs4-utf.m4: New file.
92451
92452 2003-04-03  Bruno Haible  <bruno@clisp.org>
92453
92454         * lib/utf8-ucs4.h: New file, from GNU gettext.
92455         * lib/utf16-ucs4.h: New file, from GNU gettext.
92456         * lib/ucs4-utf8.h: New file, from GNU gettext.
92457         * lib/ucs4-utf16.h: New file, from GNU gettext.
92458
92459 2003-04-02  Bruno Haible  <bruno@clisp.org>
92460
92461         * modules/binary-io: New file.
92462         * MODULES.html.sh (func_all_modules): Add it.
92463
92464 2003-04-02  Bruno Haible  <bruno@clisp.org>
92465
92466         * lib/binary-io.h: New file, from GNU gettext.
92467
92468 2003-04-01  Bruno Haible  <bruno@clisp.org>
92469
92470         * modules/pathname: New file.
92471         * MODULES.html.sh (func_all_modules): Add it.
92472
92473 2003-04-01  Bruno Haible  <bruno@clisp.org>
92474
92475         * lib/pathname.h: New file, from GNU gettext.
92476         * lib/concatpath.c: New file, from GNU gettext.
92477
92478 2003-03-30  Bruno Haible  <bruno@clisp.org>
92479
92480         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92481
92482 2003-03-30  Bruno Haible  <bruno@clisp.org>
92483
92484         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92485         function chown() doesn't exist.
92486
92487 2003-03-28  Bruno Haible  <bruno@clisp.org>
92488
92489         * modules/copy-file: New file.
92490         * MODULES.html.sh (func_all_modules): Add it.
92491
92492 2003-03-28  Bruno Haible  <bruno@clisp.org>
92493
92494         * m4/copy-file.m4: New file.
92495
92496 2003-03-28  Bruno Haible  <bruno@clisp.org>
92497
92498         * lib/copy-file.h: New file, from GNU gettext.
92499         * lib/copy-file.c: New file, from GNU gettext.
92500
92501 2003-03-18  Jim Meyering  <jim@meyering.net>
92502
92503         * lib/quote.c (quote_n): Fix typo in comment.
92504
92505 2003-03-18  Bruno Haible  <bruno@clisp.org>
92506
92507         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92508         checking.
92509         * m4/onceonly_2_57.m4: Likewise.
92510
92511 2003-03-17  Bruno Haible  <bruno@clisp.org>
92512
92513         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92514         (m4_quote): Remove macro.
92515         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92516
92517 2003-03-14  Jim Meyering  <jim@meyering.net>
92518
92519         Merge changes from Coreutils.
92520         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92521         to be const, in order to avoid warnings.
92522         (obstack_room): Likewise.
92523         (obstack_empty_p): Likewise.
92524
92525 2003-03-14  Bruno Haible  <bruno@clisp.org>
92526
92527         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92528         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92529
92530 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92531
92532         Merge changes from Bison.
92533         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92534         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92535         when compiling Bison 1.875's `bitset bset = obstack_alloc
92536         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92537         * lib/hash.c: Include <stdbool.h> unconditionally.
92538
92539 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92540
92541         * m4/onceonly.m4 (m4_quote): New macro.
92542         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92543         Quote AC_FOREACH variable-expansions properly.
92544
92545 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92546
92547         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92548
92549 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92550
92551         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92552         Reported by Bruce Becker; see:
92553         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92554
92555 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92556             Bruno Haible  <bruno@clisp.org>
92557
92558         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92559         Reported by John Hughes, see
92560         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92561
92562 2003-02-20  Bruno Haible  <bruno@clisp.org>
92563
92564         * MODULES.html.sh (func_all_modules): Add poll.
92565
92566 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92567
92568         * modules/poll: New file.
92569
92570 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92571
92572         * lib/poll_.h: New file.
92573         * lib/poll.c: New file.
92574
92575 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92576
92577         * m4/poll.m4: New file.
92578
92579 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92580
92581         * modules/mathl: New file.
92582
92583 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92584
92585         * lib/mathl.h: New file.
92586         * lib/acosl.c: New file.
92587         * lib/asinl.c: New file.
92588         * lib/atanl.c: New file.
92589         * lib/ceill.c: New file.
92590         * lib/cosl.c: New file.
92591         * lib/expl.c: New file.
92592         * lib/floorl.c: New file.
92593         * lib/frexpl.c: New file.
92594         * lib/ldexpl.c: New file.
92595         * lib/logl.c: New file.
92596         * lib/sincosl.c: New file.
92597         * lib/sinl.c: New file.
92598         * lib/sqrtl.c: New file.
92599         * lib/tanl.c: New file.
92600         * lib/trigl.c: New file.
92601         * lib/trigl.h: New file.
92602
92603 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92604
92605         * m4/mathl.m4: New file.
92606
92607 2003-02-18  Bruno Haible  <bruno@clisp.org>
92608
92609         * MODULES.html.sh (func_all_modules): Add mathl.
92610
92611 2003-02-17  Bruno Haible  <bruno@clisp.org>
92612
92613         * modules/mkdtemp: New module.
92614         * MODULES.html.sh (func_all_modules): Add it.
92615
92616 2003-02-17  Bruno Haible  <bruno@clisp.org>
92617
92618         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
92619
92620 2003-02-17  Bruno Haible  <bruno@clisp.org>
92621
92622         * lib/mkdtemp.h: New file, from GNU gettext.
92623         * lib/mkdtemp.c: New file, from GNU gettext.
92624
92625 2003-02-02  Jim Meyering  <jim@meyering.net>
92626
92627         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
92628         e.g. glibc-2.2.93.
92629
92630 2003-01-31  Bruno Haible  <bruno@clisp.org>
92631
92632         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
92633         'rpl_rename'.
92634         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
92635         'rpl_strnlen'.
92636         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
92637         'rpl_strtod'.
92638         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
92639         'rpl_utime'.
92640
92641 2003-01-31  Bruno Haible  <bruno@clisp.org>
92642
92643         * lib/rename.c: #undef rename before defining rpl_rename.
92644         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
92645
92646 2003-01-30  Bruno Haible  <bruno@clisp.org>
92647
92648         * modules/vasnprintf, modules/vasprintf: New modules.
92649         * MODULES.html.sh (func_all_modules): Add them.
92650
92651 2003-01-30  Bruno Haible  <bruno@clisp.org>
92652
92653         * m4/signed.m4: New file, from GNU gettext.
92654         * m4/longdouble.m4: New file, from GNU gettext.
92655         * m4/wchar_t.m4: New file, from GNU gettext.
92656         * m4/wint_t.m4: New file, from GNU gettext.
92657         * m4/vasnprintf.m4: New file.
92658         * m4/vasprintf.m4: New file.
92659
92660 2003-01-30  Bruno Haible  <bruno@clisp.org>
92661
92662         * lib/printf-args.h: New file, from GNU gettext.
92663         * lib/printf-args.c: New file, from GNU gettext.
92664         * lib/printf-parse.h: New file, from GNU gettext.
92665         * lib/printf-parse.c: New file, from GNU gettext.
92666         * lib/vasnprintf.h: New file, from GNU gettext.
92667         * lib/vasnprintf.c: New file, from GNU gettext.
92668         * lib/asnprintf.c: New file, from GNU gettext.
92669         * lib/vasprintf.h: New file, from GNU gettext with modifications.
92670         * lib/vasprintf.c: New file, from GNU gettext.
92671         * lib/asprintf.c: New file, from GNU gettext.
92672
92673 2003-01-29  Bruno Haible  <bruno@clisp.org>
92674
92675         * modules/stpncpy: New module.
92676         * MODULES.html.sh (func_all_modules): Add it.
92677
92678 2003-01-29  Bruno Haible  <bruno@clisp.org>
92679
92680         * m4/stpncpy.m4: New file.
92681
92682 2003-01-29  Bruno Haible  <bruno@clisp.org>
92683
92684         * lib/stpncpy.h: New file, from GNU gettext with modifications.
92685         * lib/stpncpy.c: New file, from GNU gettext with modifications.
92686
92687 2003-01-28  Bruno Haible  <bruno@clisp.org>
92688
92689         * modules/c-ctype: New module.
92690         * MODULES.html.sh (func_all_modules): Add it.
92691
92692 2003-01-28  Bruno Haible  <bruno@clisp.org>
92693
92694         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
92695         Paul Eggert.
92696         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
92697         Paul Eggert.
92698
92699 2003-01-27  Bruno Haible  <bruno@clisp.org>
92700
92701         * modules/xsetenv: New module.
92702         * MODULES.html.sh (func_all_modules): Add it.
92703
92704 2003-01-27  Bruno Haible  <bruno@clisp.org>
92705
92706         * lib/xsetenv.h: New file, from GNU gettext.
92707         * lib/xsetenv.c: New file, from GNU gettext.
92708
92709 2003-01-23  Jim Meyering  <jim@meyering.net>
92710
92711         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
92712         from working on systems without dirfd (at least Irix and OSF1/Tru64).
92713
92714 2003-01-23  Bruno Haible  <bruno@clisp.org>
92715
92716         * modules/minmax: New module.
92717         * MODULES.html.sh (func_all_modules): Add it.
92718
92719 2003-01-23  Bruno Haible  <bruno@clisp.org>
92720
92721         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
92722         Eggert.
92723
92724 2003-01-22  Bruno Haible  <bruno@clisp.org>
92725
92726         * modules/exit: New module.
92727         * MODULES.html.sh (func_all_modules): Add it.
92728
92729 2003-01-22  Bruno Haible  <bruno@clisp.org>
92730
92731         * lib/exit.h: New file, from GNU gettext.
92732
92733 2003-01-19  Bruno Haible  <bruno@clisp.org>
92734
92735         * gnulib-tool: Recognize option --extract-maintainer.
92736         (func_get_maintainer): New function.
92737         * modules/*: Add Maintainer entry.
92738
92739 2003-01-16  Jim Meyering  <jim@meyering.net>
92740
92741         * m4/regex.m4: The `regex' struct is both input and output.
92742         Initialize it before each use.  Patch by Tim Waugh.
92743
92744 2003-01-16  Bruno Haible  <bruno@clisp.org>
92745
92746         * MODULES.html.sh: Add a table of contents. Add the module name as
92747         leftmost column. Add hyperlinks.
92748
92749 2003-01-15  Bruno Haible  <bruno@clisp.org>
92750
92751         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
92752
92753 2003-01-15  Bruno Haible  <bruno@clisp.org>
92754
92755         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
92756         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
92757         suffix.
92758
92759 2003-01-15  Bruno Haible  <bruno@clisp.org>
92760
92761         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
92762
92763 2003-01-15  Bruno Haible  <bruno@clisp.org>
92764
92765         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
92766         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
92767
92768 2003-01-14  Jim Meyering  <jim@meyering.net>
92769
92770         * lib/same.c (same_name): Tweak a comment.
92771
92772 2003-01-14  Bruno Haible  <bruno@clisp.org>
92773
92774         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
92775         when a string comparison is sufficient.
92776
92777 2003-01-14  Bruno Haible  <bruno@clisp.org>
92778
92779         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
92780         'unsigned int'.
92781
92782 2003-01-14  Bruno Haible  <bruno@clisp.org>
92783
92784         * lib/hash-pjw.c: Add comment about low quality of this function.
92785
92786 2003-01-13  Bruno Haible  <bruno@clisp.org>
92787
92788         * modules/stpcpy: Distribute lib/stpcpy.h.
92789         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
92790
92791 2003-01-13  Bruno Haible  <bruno@clisp.org>
92792
92793         * modules/*: Add a description.
92794         * modules/strpbrk: Fix Makefile.am snippet.
92795         * modules/strtoimax: Fix dependencies.
92796         * modules/strtoumax: Likewise.
92797
92798 2003-01-13  Bruno Haible  <bruno@clisp.org>
92799
92800         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
92801         * modules/alloca (Makefile.am): All object files depend on alloca.h.
92802         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
92803
92804 2003-01-13  Bruno Haible  <bruno@clisp.org>
92805
92806         * gnulib-tool (func_create_testdir): Store config/* files in the main
92807         directory.
92808         * config.rpath: Move to ...
92809         * config/config.rpath: ... here.
92810         * modules/gettext: Contains config/config.rpath, not config.rpath.
92811         * modules/iconv: Likewise.
92812
92813 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92814
92815         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92816         to avoid collisions with libcurses and libreadline.
92817
92818         * m4/getstr.m4: Remove.
92819         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
92820
92821 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92822
92823         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92824         to avoid collisions with libcurses and libreadline.
92825
92826         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
92827         * lib/getstr.h, getstr.c: Remove.
92828         * lib/getline.c: Include "getline.h", to check interface.
92829         Move body of old getstr.c here: this defines MIN_CHUNK and
92830         declares getdelim2, which is renamed from getstr.
92831         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
92832
92833         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
92834         All uses changed.
92835         * lib/linebuffer.h: Likewise.
92836         (readline): Remove backward-compatibility macro.
92837
92838 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92839
92840         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92841         to avoid collisions with libcurses and libreadline.
92842         * getstr: Remove.
92843         * MODULES.html.sh: Remove getstr.
92844         * modules/getline: Depend on unlocked-io, not getstr.
92845
92846 2003-01-12  Jim Meyering  <jim@meyering.net>
92847
92848         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
92849
92850 2003-01-10  Bruno Haible  <bruno@clisp.org>
92851
92852         * modules/alloca: Change Makefile.am requirements. Simplify Include
92853         requirements. Add lib/alloca_.h to file list.
92854
92855 2003-01-10  Bruno Haible  <bruno@clisp.org>
92856
92857         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
92858
92859 2003-01-10  Bruno Haible  <bruno@clisp.org>
92860
92861         * lib/alloca_.h: New file.
92862         * lib/getdate.y: Unconditionally include alloca.h.
92863         * lib/makepath.c: Likewise.
92864         * lib/setenv.c: Likewise.
92865         * lib/userspec.c: Likewise.
92866
92867 2003-01-09  Karl Berry  <karl@gnu.org>
92868
92869         * MODULES.html.sh: include `dirname $0` in PATH, to find
92870         gnulib-tool.
92871
92872 2003-01-09  Bruno Haible  <bruno@clisp.org>
92873
92874         * modules/stdbool: Change configure.ac, Makefile.am requirements.
92875         Simplify Include requirements. Add lib/stdbool.h.in to file list.
92876
92877 2003-01-09  Bruno Haible  <bruno@clisp.org>
92878
92879         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
92880
92881 2003-01-09  Bruno Haible  <bruno@clisp.org>
92882
92883         * lib/stdbool.h.in: New file.
92884
92885 2003-01-09  Bruno Haible  <bruno@clisp.org>
92886
92887         * gnulib-tool (func_all_modules): Ignore files ending in ~.
92888         * MODULES.html.sh: Likewise.
92889
92890 2003-01-08  Jim Meyering  <jim@meyering.net>
92891
92892         * lib/full-write.c: Undefine and define-away `const' after inclusion
92893         of errno.h, not before.  Suggestion from Bruno Haible.
92894
92895 2003-01-08  Bruno Haible  <bruno@clisp.org>
92896
92897         * modules/full-read: Depend on full-write.
92898
92899 2003-01-08  Bruno Haible  <bruno@clisp.org>
92900
92901         * lib/safe-read.c: Include specification header first, to ensure its
92902         selfcontainedness.
92903         * lib/full-write.c: Likewise.
92904
92905 2003-01-07  Jim Meyering  <jim@meyering.net>
92906
92907         * lib/full-write.c: Rework so that it may serve to define full_read,
92908         too.
92909         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
92910
92911 2003-01-07  Bruno Haible  <bruno@clisp.org>
92912
92913         * lib/strtoimax.c: Include <stdint.h> as an alternative to
92914         <inttypes.h>.
92915         * lib/xstrtol.h: Likewise.
92916         * lib/xstrtoimax.c: Likewise.
92917         * lib/xstrtoumax.c: Likewise.
92918         * lib/human.h: Likewise.
92919
92920         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
92921         on systems that have <inttypes.h> but not <stdint.h>.
92922
92923 2003-01-07  Bruno Haible  <bruno@clisp.org>
92924
92925         * MODULES.html.sh: Add copyright notice.
92926         (missed_files): Omit CVS directory entries.
92927         (func_module): Make it work with sed-3.02.
92928         * MODULES.txt: Remove file.
92929
92930 2003-01-06  Jim Meyering  <jim@meyering.net>
92931
92932         * lib/version-etc.c: Update year in translatable copyright string.
92933
92934 2003-01-03  Karl Berry  <karl@gnu.org>
92935
92936         * config/config.{guess,sub}: update from prep.
92937
92938 2003-01-02  Karl Berry  <karl@gnu.org>
92939
92940         * doc/COPYING.DOC: belatedly updated to 1.2.
92941
92942 2003-01-01  Karl Berry  <karl@gnu.org>
92943
92944         * gnulib-tool (func_verify_module): report module name $module in
92945         error message, not $1.
92946         * gnulib-tool (create-testdir): don't complain if destdir couldn't
92947         be created, only if it doesn't exist.
92948         * gnulib-tool (last_checkin_date): don't expand the $Date here.
92949
92950 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92951
92952         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
92953
92954 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92955
92956         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
92957         memcmp if strcoll doesn't work.
92958
92959 2002-12-31  Bruno Haible  <bruno@clisp.org>
92960
92961         * lib/utime.c (utime_null): No need to call ftruncate if the file was
92962         nonempty.
92963
92964 2002-12-31  Bruno Haible  <bruno@clisp.org>
92965
92966         * lib/memcoll.c (STRCOLL): New macro.
92967         (memcoll): Use it.
92968
92969 2002-12-31  Bruno Haible  <bruno@clisp.org>
92970
92971         * lib/localcharset.h: New file.
92972         * lib/localcharset.c: Include it.
92973         * lib/unicodeio.c: Likewise.
92974
92975 2002-12-31  Bruno Haible  <bruno@clisp.org>
92976
92977         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
92978         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
92979
92980 2002-12-31  Bruno Haible  <bruno@clisp.org>
92981
92982         * lib/getline.h: Include <stddef.h>, for size_t.
92983
92984         * lib/unicodeio.h: Include <stddef.h>, for size_t.
92985         * lib/unicodeio.c: Don't include <stddef.h>.
92986
92987 2002-12-31  Bruno Haible  <bruno@clisp.org>
92988
92989         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
92990         HAVE_TM_ZONE.
92991
92992 2002-12-24  Karl Berry  <karl@gnu.org>
92993
92994         * config/config.guess: update from prep.
92995
92996 2002-12-24  Bruno Haible  <bruno@clisp.org>
92997
92998         General infrasructure.
92999         * m4/README: Rewritten.
93000         * m4/onceonly.m4: New file.
93001         * m4/onceonly_2_57.m4: New file.
93002
93003         Module atexit.
93004         * m4/atexit.m4: New file.
93005
93006         Module strtod.
93007         * m4/strtod.m4: New file.
93008
93009         Module strtol.
93010         * m4/strtol.m4: New file.
93011
93012         Module strtoul.
93013         * m4/strtoul.m4: New file.
93014
93015         Module memchr.
93016         * m4/memchr.m4: New file.
93017
93018         Module memcmp.
93019         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93020         (jm_FUNC_MEMCMP): Invoke it.
93021
93022         Module memcpy.
93023         * m4/memcpy.m4: New file.
93024
93025         Module memmove.
93026         * m4/memmove.m4: New file.
93027
93028         Module memset.
93029         * m4/memset.m4: New file.
93030
93031         Module strcspn.
93032         * m4/strcspn.m4: New file.
93033
93034         Module strpbrk.
93035         * m4/strpbrk.m4: New file.
93036
93037         Module strstr.
93038         * m4/strstr.m4: New file.
93039
93040         Module strerror.
93041         * m4/strerror.m4: New file.
93042
93043         Module mktime.
93044         * m4/mktime.m4: Renamed from jm-mktime.m4.
93045         (gl_PREREQ_MKTIME): New macro.
93046         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93047
93048         Module malloc.
93049         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93050         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93051         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93052
93053         Module realloc.
93054         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93055         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93056         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93057
93058         Module strftime.
93059         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93060         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93061         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93062         gl_TM_GMTOFF.
93063         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93064
93065         Module xalloc.
93066         * m4/xalloc.m4: New file.
93067
93068         Module alloca.
93069         * m4/alloca.m4: New file.
93070
93071         Module putenv.
93072         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93073         (jm_FUNC_PUTENV): Invoke it.
93074
93075         Module setenv.
93076         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93077         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93078         when invoked twice.
93079         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93080         gt_FUNC_SETENV.
93081
93082         Module memrchr.
93083         * m4/memrchr.m4: New file.
93084
93085         Module stpcpy.
93086         * m4/stpcpy.m4: New file.
93087
93088         Module strcase.
93089         * m4/strcase.m4: New file.
93090
93091         Module strdup.
93092         * m4/strdup.m4: New file.
93093
93094         Module strnlen.
93095         * m4/strnlen.m4: New file.
93096
93097         Module strndup.
93098         * m4/strndup.m4: New file.
93099
93100         Module xstrtod.
93101         * m4/xstrtod.m4: New file.
93102
93103         Module xstrtol.
93104         * m4/xstrtol.m4: New file.
93105
93106         Module getdate.
93107         * m4/getdate.m4: New file.
93108
93109         Module unlocked-io.
93110         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93111         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93112         * m4/jm-glibc-io.m4n: Remove file.
93113
93114         Module long-options.
93115         * m4/long-options.m4: New file.
93116
93117         Module md5.
93118         * m4/md5.m4: New file.
93119
93120         Module sha.
93121         * m4/sha.m4: New file.
93122
93123         Module getstr.
93124         * m4/getstr.m4: New file.
93125
93126         Module getline.
93127         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93128         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93129         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93130         simply getline. Infoke gl_PREREQ_GETLINE.
93131
93132         Module obstack.
93133         * m4/obstack.m4: New file.
93134
93135         Module hash.
93136         * m4/hash.m4: New file.
93137
93138         Module readtokens.
93139         * m4/readtokens.m4: New file.
93140
93141         Module strverscmp.
93142         * m4/strverscmp.m4: New file.
93143
93144         Module stdbool.
93145         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93146         OSF/1.
93147
93148         Module strtoll.
93149         * m4/strtoll.m4: New file.
93150
93151         Module strtoull.
93152         * m4/strtoull.m4: New file.
93153
93154         Module strtoimax.
93155         * m4/strtoimax.m4: New file.
93156
93157         Module strtoumax.
93158         * m4/strtoumax.m4: New file.
93159
93160         Module xstrtoimax.
93161         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93162         jm_AC_PREREQ_XSTRTOIMAX.
93163         Moved the strtol prerequisites to strtol.m4.
93164         Moved the strtoll prerequisites to strtoll.m4.
93165         Moved the strtoimax prerequisites to strtoimax.m4.
93166
93167         Module xstrtoumax.
93168         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93169         jm_AC_PREREQ_XSTRTOUMAX.
93170         Moved the strtoul prerequisites to strtoul.m4.
93171         Moved the strtoull prerequisites to strtoull.m4.
93172         Moved the strtoumax prerequisites to strtoumax.m4.
93173
93174         Module chown.
93175         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93176         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93177
93178         Module dup2.
93179         * m4/dup2.m4: New file.
93180
93181         Module ftruncate.
93182         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93183         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93184
93185         Module getgroups.
93186         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93187         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93188
93189         Module gettimeofday.
93190         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93191         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93192         gl_PREREQ_GETTIMEOFDAY.
93193
93194         Module mkdir.
93195         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93196         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93197
93198         Module mkstemp.
93199         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93200         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93201         jm_AC_TYPE_UINTMAX_T.
93202         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93203
93204         Module stat.
93205         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93206         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93207
93208         Module lstat.
93209         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93210         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93211
93212         Module timespec.
93213         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93214         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93215         * m4/st_mtim.m4: Indentation.
93216
93217         Module nanosleep.
93218         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93219         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93220         gl_PREREQ_NANOSLEEP.
93221
93222         Module regex.
93223         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93224         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93225         (gl_REGEX): New macro.
93226
93227         Module rename.
93228         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93229         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93230
93231         Module rmdir.
93232         * m4/rmdir.m4: New file.
93233
93234         Module utime.
93235         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93236         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93237         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93238
93239         Module dirname.
93240         * m4/dirname.m4: New file.
93241
93242         Module getopt.
93243         * m4/getopt.m4: New file.
93244
93245         Module unistd-safer.
93246         * m4/unistd-safer.m4: New file.
93247
93248         Module fnmatch.
93249         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93250         declaration.
93251         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93252         (gl_FUNC_FNMATCH_POSIX): New macro.
93253         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93254         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93255         simply fnmatch.
93256
93257         Module exclude.
93258         * m4/exclude.m4: New file.
93259
93260         Module human.
93261         * m4/human.m4: New file.
93262
93263         Module acl.
93264         * m4/acl.m4: Nop.
93265
93266         Module backupfile.
93267         * m4/backupfile.m4: New file.
93268         * m4/d-ino.m4: Indentation.
93269
93270         Module fsusage.
93271         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93272         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93273         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93274
93275         Module dirfd.
93276         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93277         requirements.
93278
93279         Module euidaccess.
93280         * m4/euidaccess.m4: New file.
93281
93282         Module file-type.
93283         * m4/file-type.m4: New file.
93284
93285         Module fileblocks.
93286         * m4/fileblocks.m4: New file.
93287
93288         Module filemode.
93289         * m4/filemode.m4: New file.
93290
93291         Module isdir.
93292         * m4/isdir.m4: New file.
93293
93294         Module lchown.
93295         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93296         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93297
93298         Module makepath.
93299         * m4/makepath.m4: New file.
93300
93301         Module modechange.
93302         * m4/modechange.m4: New file.
93303
93304         Module mountlist.
93305         * m4/mountlist.m4: New file.
93306         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93307         Indentation.
93308
93309         Module path-concat.
93310         * m4/path-concat.m4: New file.
93311
93312         Module pathmax.
93313         * m4/pathmax.m4: New file.
93314
93315         Module same.
93316         * m4/same.m4: New file.
93317
93318         Module save-cwd.
93319         * m4/save-cwd.m4: New file.
93320
93321         Module savedir.
93322         * m4/savedir.m4: New file.
93323
93324         Module xgetcwd.
93325         * m4/xgetcwd.m4: New file.
93326         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93327
93328         Module xreadlink.
93329         * m4/xreadlink.m4: New file.
93330
93331         Module safe-read.
93332         * m4/safe-read.m4: New file.
93333
93334         Module safe-write.
93335         * m4/safe-write.m4: New file.
93336
93337         Module closeout.
93338         * m4/closeout.m4: New file.
93339
93340         Module stdio-safer.
93341         * m4/stdio-safer.m4: New file.
93342
93343         Module getpass.
93344         * m4/getpass.m4: New file.
93345
93346         Module getugroups.
93347         * m4/getugroups.m4: New file.
93348
93349         Module group-member.
93350         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93351         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93352
93353         Module idcache.
93354         * m4/idcache.m4: New file.
93355
93356         Module userspec.
93357         * m4/userspec.m4: New file.
93358
93359         Module gettime.
93360         * m4/clock_time.m4: New file.
93361         * m4/gettime.m4: New file.
93362
93363         Module settime.
93364         * m4/settime.m4: New file.
93365
93366         Module posixtm.
93367         * m4/posixtm.m4: New file.
93368
93369         Module gethostname.
93370         * m4/gethostname.m4: New file.
93371
93372         Module canon-host.
93373         * m4/canon-host.m4: New file.
93374
93375         Module gettext.
93376         * m4/codeset.m4: New file, from gettext-0.11.5.
93377         * m4/gettext.m4: New file, from gettext-0.11.5.
93378         * m4/glibc21.m4: New file, from gettext-0.11.5.
93379         * m4/iconv.m4: New file, from gettext-0.11.5.
93380         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93381         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93382         * m4/inttypes.m4: New file, from gettext-0.11.5.
93383         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93384         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93385         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93386         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93387         * m4/lib-link.m4: New file, from gettext-0.11.5.
93388         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93389         * m4/progtest.m4: New file, from gettext-0.11.5.
93390         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93391         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93392         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93393
93394         Module localcharset.
93395         * m4/localcharset.m4: New file.
93396
93397         Module hard-locale.
93398         * m4/hard-locale.m4: New file.
93399
93400         Module mbswidth.
93401         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93402         onceonly macros.
93403         * m4/mbrtowc.m4: Add comment.
93404
93405         Module memcasecmp.
93406         * m4/memcasecmp.m4: New file.
93407
93408         Module memcoll.
93409         * m4/memcoll.m4: New file.
93410
93411         Module unicodeio.
93412         * m4/unicodeio.m4: New file.
93413
93414         Module rpmatch.
93415         * m4/rpmatch.m4: New file.
93416
93417         Module yesno.
93418         * m4/yesno.m4: New file.
93419
93420         Module exitfail.
93421         * m4/exitfail.m4: New file.
93422
93423         Module c-stack.
93424         * m4/c-stack.m4 (gl_C_STACK): New macro.
93425         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93426
93427         Module error.
93428         * m4/error.m4 (gl_ERROR): New macro.
93429         (jm_PREREQ_ERROR): Use onceonly macros.
93430
93431         Module fatal.
93432         * m4/fatal.m4: New file.
93433
93434         Module getloadavg.
93435         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93436         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93437
93438         Module getpagesize.
93439         * m4/getpagesize.m4: New file.
93440
93441         Module getusershell.
93442         * m4/getusershell.m4: New file.
93443
93444         Module physmem.
93445         * m4/physmem.m4: New file.
93446
93447         Module posixver.
93448         * m4/posixver.m4: New file.
93449
93450         Module quotearg.
93451         * m4/quotearg.m4: New file.
93452
93453         Module quote.
93454         * m4/quote.m4: New file.
93455
93456         Module readutmp.
93457         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93458
93459         Module sig2str.
93460         * m4/sig2str.m4: New file.
93461
93462         Other.
93463         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93464         ulonglong.m4.
93465         * m4/intmax_t.m4: New file.
93466         * m4/d-type.m4: Indentation.
93467         * m4/jm-macros.m4: Update.
93468         * m4/prereq.m4 (jm_PREREQ): Update.
93469         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93470         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93471         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93472         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93473         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93474         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93475         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93476         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93477         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93478         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93479         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93480         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93481         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93482         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93483         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93484         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93485         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93486         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93487         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93488
93489 2002-12-24  Bruno Haible  <bruno@clisp.org>
93490
93491         * MODULES.txt: Update according to m4/ changes.
93492
93493         Module gettext.
93494         * config.rpath: New file, from gettext-0.11.5.
93495
93496         * modules/*: New module descriptions.
93497         * gnulib-tool: New file.
93498         * MODULES.html.sh: New file.
93499
93500 2002-12-21  Karl Berry  <karl@gnu.org>
93501
93502         * doc/fdl.texi: update to version 1.2.
93503
93504 2002-12-19  Karl Berry  <karl@gnu.org>
93505
93506         * config/config.guess: update from prep.
93507
93508 2002-12-18  Bruno Haible  <bruno@clisp.org>
93509
93510         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93511         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93512
93513 2002-12-17  Bruno Haible  <bruno@clisp.org>
93514
93515         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93516         stdlib.h, string.h.
93517
93518 2002-12-17  Bruno Haible  <bruno@clisp.org>
93519
93520         * lib/canon-host.c (strdup): Remove unused declaration.
93521
93522         * lib/fsusage.c: Include full_read.h.
93523         (get_fs_usage): Use full_read instead of safe_read.
93524
93525         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93526
93527 2002-12-12  Karl Berry  <karl@gnu.org>
93528
93529         * config/config.guess: update from prep.
93530
93531 2002-12-11  Bruno Haible  <bruno@clisp.org>
93532
93533         * m4/setenv.m4: New file, from gettext-0.11.5.
93534
93535 2002-12-11  Bruno Haible  <bruno@clisp.org>
93536
93537         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93538         not unsetenv().
93539         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93540         modifications:
93541
93542         2002-12-11  Bruno Haible  <bruno@clisp.org>
93543
93544                 * setenv.c (alloca): Fall back to malloc.
93545                 (freea): New macro.
93546                 (setenv): Use freea() to free memory allocated with alloca().
93547
93548         2002-11-13  Bruno Haible  <bruno@clisp.org>
93549
93550                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93551                 function declarations.
93552                 * unsetenv.c (unsetenv): Likewise.
93553
93554         2002-03-04  Bruno Haible  <bruno@clisp.org>
93555
93556                 Portability to AIX 4.3.3.
93557                 * unsetenv.c: New file, extracted from setenv.c.
93558                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93559
93560         2001-12-20  Bruno Haible  <bruno@clisp.org>
93561
93562                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93563                 use malloc instead. For SunOS 4.
93564
93565         2001-12-11  Bruno Haible  <bruno@clisp.org>
93566
93567                 * setenv.c: Declare alloca.
93568                 (compar_fn_t): New typedef.
93569                 (KNOWN_VALUE, STORE_VALUE): Use it.
93570
93571         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93572         setenv.h.
93573
93574 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93575
93576         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93577         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93578         Choose values that are less likely to collide with system fnmatch
93579         options.
93580         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93581         defined (e.g., a pure POSIX system).
93582         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93583         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93584
93585 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93586
93587         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93588         a pain in practice to deal with generated m4 files.  This change
93589         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93590
93591         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93592         and jm-glibc-io.m4, as they are no longer a special case.
93593         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93594         kludge and the auto-generation stuff.  Check only whether the
93595         functions are declared, not whether they exist, since older hosts
93596         that don't declare the functions can't use the optimization anyway.
93597
93598 2002-12-06  Jim Meyering  <jim@meyering.net>
93599
93600         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93601
93602         Merge in changes from libc's misc/error.c, in preparation
93603         for the merge of gnulib's changes back into libc.
93604
93605         * lib/error.c (_): Define only if not already defined.
93606         Move definition to follow all #include directives.
93607         Include unlocked-io.h only if !_LIBC.
93608         [_LIBC]: Include <libio/libioP.h>.
93609         [USE_IN_LIBIO]: Include <libio/iolibio.h>
93610         (fflush): Tweak definition to use INTUSE.
93611         (putc): Define.
93612
93613 2002-12-05  Paul Eggert  <eggert@twinsun.com>
93614
93615         * lib/alloca.c [defined emacs]: Include "lisp.h".
93616         (xalloc_die) [defined emacs]: New macro.
93617         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
93618         [! defined emacs]: Include <xalloc.h>.
93619         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
93620         (pointer): Typedef to POINTER_TYPE *.
93621         (malloc): Remove decl; we now always use xmalloc.
93622         (alloca): Use old-style definition, since Emacs needs this.
93623         Check for arithmetic overflow when computing combined size.
93624
93625 2002-12-04  Paul Eggert  <eggert@twinsun.com>
93626
93627         Do not generate unlocked-io.h automatically, since it's easier to
93628         maintain it by hand.
93629
93630         * lib/unlocked-io.h: New file, from GNU diffutils,
93631         but with proper copyright notice and attribution.
93632         * lib/gen-uio: Remove.
93633         * lib/Makefile.am: Add copyright notice.
93634         (libfetish_a_SOURCES): Add unlocked-io.h.
93635         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
93636         (DISTCLEANFILES, io_functions): Remove macros.
93637         (EXTRA_DIST): Remove gen_uio.
93638         (unlocked-io.h): Remove rule.
93639
93640 2002-12-04  Jim Meyering  <jim@meyering.net>
93641
93642         Reflect the fact that stat.c and lstat.c are no longer generated.
93643         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
93644         (DISTCLEANFILES): Likewise.
93645         (EXTRA_DIST): Likewise.
93646         (all_local): Don't depend on stat.c or lstat.c.
93647         (stat.c, lstat.c): Remove rules.
93648         (EXTRA_DIST): Remove xstat.in.
93649
93650         * lib/xstat.in: Remove file.  Contents moved into stat.c.
93651         * lib/stat.c: New file.  Contents mostly from xstat.in.
93652         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
93653         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
93654
93655         * lib/safe-read.c: Rework so that it may serve to define safe_write,
93656         too.
93657         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
93658
93659 2002-12-03  Jim Meyering  <jim@meyering.net>
93660
93661         * lib/safe-read.c, safe-write.c: Change variable names and comments,
93662         but not semantics, to minimize the differences between these two files.
93663         (safe_read): Change comment to mention SAFE_READ_ERROR.
93664
93665         * lib/safe-read.c (IS_EINTR): Define.
93666         (safe_read): Use IS_EINTR in place of in-function cpp directives.
93667
93668 2002-12-02  Jim Meyering  <jim@meyering.net>
93669
93670         * lib/safe-read.c (EINTR): Define.
93671         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93672         (INT_MAX): Provide fallback.
93673         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
93674
93675         * lib/safe-read.h (SAFE_READ_ERROR): Define.
93676
93677 2002-12-02  Bruno Haible  <bruno@clisp.org>
93678
93679         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
93680         Define, taken from safe-read.c.
93681         (INT_MAX): Provide fallback.
93682         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
93683         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
93684
93685         * lib/safe-read.c (EINTR): Remove definition.
93686         (safe_read): Don't use EINTR if it is absent.
93687
93688 2002-12-01  Jim Meyering  <jim@meyering.net>
93689
93690         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
93691         zero.
93692         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
93693
93694 2002-11-27  Paul Eggert  <eggert@twinsun.com>
93695
93696         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
93697         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
93698         with `if (! (value < limit)) abort ();', for readability.
93699
93700 2002-11-26  Karl Berry  <karl@gnu.org>
93701
93702         * lib/strdup.c: copy from libc again, with jim's ok.
93703         * lib/.cppi-disable: re-add strdup.c
93704
93705 2002-11-25  Karl Berry  <karl@gnu.org>
93706
93707         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
93708         instead of "strtol.c".
93709
93710 2002-11-25  Karl Berry  <karl@gnu.org>
93711
93712         * config/install-sh: update from automake for variable quoting, $0 in
93713         error msgs, etc.
93714
93715         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
93716         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
93717         entry.
93718
93719 2002-11-25  Jim Meyering  <jim@meyering.net>
93720
93721         * lib/mktime.c: Sync from libc, now that it has the latest fix.
93722
93723 2002-11-24  Karl Berry  <karl@gnu.org>
93724
93725         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
93726         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
93727
93728 2002-11-24  Jim Meyering  <jim@meyering.net>
93729
93730         Update from coreutils:
93731
93732         * lib/mktime.c: Merge in changes from libc.
93733
93734         Avoid a link-time failure on some Linux systems.
93735         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
93736         (otherwise).
93737         (__mon_yday): Declare with the STATIC attribute.
93738         (__mktime_internal): Likewise.
93739         Based on a report from Greg Schafer.
93740
93741 2002-11-23  Jim Meyering  <jim@meyering.net>
93742
93743         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
93744         Use `unsigned', not `int', as type of index.
93745
93746         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
93747
93748         * lib/fsusage.c: Remove unneeded parentheses around operands of
93749         `defined'.
93750
93751 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93752
93753         * lib/quotearg.h: Allow multiple inclusion by surrounding with
93754         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
93755         so that we can be included first.
93756         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
93757         * lib/quotearg.c: Include quotearg.h immediately after config.h.
93758         No need to include stddef.h or sys/types.h any more.
93759         Surround local include files with "", not "<>".
93760         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
93761         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
93762         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
93763         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
93764         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
93765         (ISPRINT): Remove; no longer needed now that we assume C89.
93766
93767         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
93768         Preserve errno.
93769
93770         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
93771         quotearg_char): Use SIZE_MAX rather than
93772         (size_t) -1 when we are talking about "infinity".
93773
93774         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
93775
93776 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93777
93778         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
93779         hint that one should use `if (! x) abort ();' rather than `assert
93780         (x);', and anyway it's one less thing to worry about configuring.
93781         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
93782         hash_rehash, hash_insert): Use abort rather than assert.
93783
93784 2002-11-22  Bruno Haible  <bruno@clisp.org>
93785
93786         * lib/safe-read.h: Assume C89. Add comments.
93787         (safe_read): Change return type to size_t.
93788         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
93789         byte counts > SSIZE_MAX correctly.
93790         * lib/safe-write.h: New file.
93791         * lib/safe-write.c: New file.
93792         * lib/full-read.h: New file.
93793         * lib/full-read.c: New file.
93794         * lib/full-write.h: Assume C89. Add comments.
93795         * lib/full-write.c: Include safe-write.h.
93796         (full_write): Rewritten to use safe_write.
93797         Suggested by Jim Meyering and Paul Eggert.
93798
93799 2002-11-21  Jim Meyering  <jim@meyering.net>
93800
93801         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
93802
93803         Merge in changes from the coreutils.
93804
93805         2002-09-25  Paul Eggert  <eggert@twinsun.com>
93806         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
93807         <stdint.h>.
93808         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
93809         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
93810         int.  Work more efficiently if X is the same width as uintmax_t.
93811         Do not compare X to -1, to avoid bogus compiler warning.
93812         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
93813         Don't assume that f_frsize and f_bsize are the same type.
93814
93815         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
93816         warning on FreeBSD.
93817
93818         * lib/makepath.c (make_path): Restore umask *before* creating the final
93819         component.
93820         (make_path): Minor reformatting.
93821
93822         * lib/xmalloc.c: Adjust to work with new autoconf macros,
93823         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
93824         HAVE_MALLOC/HAVE_REALLOC.
93825
93826         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
93827         dummy ones.  At least on GNU/Linux systems, `auto' means something
93828         else.
93829         From Michael Stone.
93830
93831 2002-11-21  Bruno Haible  <bruno@clisp.org>
93832
93833         Remove case insensitive option matching.
93834         * lib/argmatch.h (argcasematch): Remove declaration.
93835         (ARGCASEMATCH): Remove macro.
93836         (__xargmatch_internal): Remove case_sensitive argument.
93837         (XARGMATCH): Update.
93838         (XARGCASEMATCH): Remove macro.
93839         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
93840         case_sensitive argument.
93841         (argcasematch): Remove function.
93842         (__xargmatch_internal): Remove case_sensitive argument.
93843         (main): Use XARGMATCH instead of XARGCASEMATCH.
93844
93845         * lib/xmalloc.c: Change compile-time error message. Add comment about
93846         required autoconf version.
93847
93848 2002-11-20  Paul Eggert  <eggert@twinsun.com>
93849
93850         Merge argmatch cleanups from Bison.  Assume C89.
93851
93852         * lib/argmatch.c: Include config.h here, not in argmatch.h.
93853         Include stdlib.h, for EXIT_FAILURE.
93854         Always include <string.h>, since we assume C89.
93855         (EXIT_FAILURE): Remove pre-C89 bug workaround.
93856         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
93857         Include <stddef.h> instead, since it's all we need for size_t.
93858         (PARAMS): Remove.  All uses removed.
93859         (ARRAY_CARDINALITY): Do not bother to #undef.
93860         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
93861         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93862         Remove unnecessary parentheses.
93863         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93864         Insert necessary parentheses.
93865         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
93866         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
93867
93868 2002-11-19  Bruno Haible  <bruno@clisp.org>
93869
93870         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
93871         * lib/mbswidth.h: Include <stddef.h>, for size_t.
93872
93873         * lib/mbswidth.h (PARAMS): Remove macro.
93874         (mbswidth, mbsnwidth): Use ANSI C function declarations.
93875         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
93876
93877         * lib/gcd.h (PARAMS): Remove macro.
93878         (gcd): Use ANSI C function declarations.
93879         * lib/gcd.c (gcd): Likewise.
93880
93881 2002-11-15  Bruno Haible  <bruno@clisp.org>
93882
93883         * lib/strcspn.c: Include <stddef.h>.
93884         (strcspn): Use ANSI C function declaration. Change return type to
93885         size_t. Use NULL.
93886         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
93887         (strpbrk): Use NULL.
93888         * lib/strpbrk.h (PARAMS): Remove macro.
93889         (strpbrk): Use ANSI C function declaration.
93890         * lib/strstr.c: Don't include <sys/types.h>.
93891         * lib/strstr.h (PARAMS): Remove macro.
93892         (strstr): Use ANSI C function declarations.
93893
93894 2002-11-14  Karl Berry  <karl@gnu.org>
93895
93896         * config/mkinstalldirs: `do' on separate line, instead of
93897         `for var; do'.
93898
93899 2002-11-06  Bruno Haible  <bruno@clisp.org>
93900
93901         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
93902         * lib/gcd.c (gcd): Likewise.
93903
93904 2002-11-05  Bruno Haible  <bruno@clisp.org>
93905
93906         * lib/gcd.h: New file, from gettext-0.11.5.
93907         * lib/gcd.c: New file, from gettext-0.11.5.
93908
93909 2002-11-05  Bruno Haible  <bruno@clisp.org>
93910
93911         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93912         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93913         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93914         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93915
93916         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
93917         <libintl.h>.
93918         * lib/makepath.c: Include gettext.h instead of <locale.h> and
93919         <libintl.h>.
93920
93921         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
93922         * lib/human.c: Include gettext.h instead of <libintl.h>.
93923         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
93924         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
93925         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
93926         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
93927         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
93928         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
93929         (textdomain): Remove definition.
93930         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
93931
93932         * lib/long-options.c: Remove include of <libintl.h> and definition of
93933         _.
93934         * lib/same.c: Remove include of <libintl.h> and definition of _.
93935
93936 2002-11-04  Owen Taylor  <otaylor@redhat.com>
93937
93938         * lib/config.charset: A few additions for Solaris.
93939
93940 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93941
93942         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
93943         * lib/localcharset.c (locale_charset): Declare as extern "C".
93944
93945 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93946
93947         * lib/config.charset: msdos in uk_UA uses CP1125.
93948
93949 2002-11-04  Bruno Haible  <bruno@clisp.org>
93950
93951         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
93952         * lib/strcase.h: New file, from GNU gettext-0.11.5.
93953         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
93954         * lib/strstr.h: New file, from GNU gettext-0.11.5.
93955         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
93956
93957 2002-11-04  Bruno Haible  <bruno@clisp.org>
93958
93959         * lib/localcharset.c (locale_charset): Don't return an empty string.
93960
93961 2002-11-04  Bruno Haible  <bruno@clisp.org>
93962
93963         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
93964         aliases.
93965
93966 2002-11-04  Bruno Haible  <bruno@clisp.org>
93967
93968         * lib/config.charset: Update for newest glibc. Add canonical names
93969         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
93970
93971 2002-11-04  Bruno Haible  <bruno@clisp.org>
93972
93973         * lib/config.charset: Add support for NetBSD.
93974
93975 2002-11-04  Bruno Haible  <bruno@clisp.org>
93976
93977         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
93978
93979 2002-11-01  Bruno Haible  <bruno@clisp.org>
93980
93981         * configure.in: Add AC_CONFIG_AUX_DIR call.
93982         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
93983         test/Makefile.
93984         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
93985
93986 2002-09-28  Karl Berry  <karl@gnu.org>
93987
93988         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
93989         installed automake until the next release, since changes have been
93990         made.
93991
93992 2002-09-25  Karl Berry  <karl@gnu.org>
93993
93994         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
93995         * lib/getopt*: copy from libc/posix.
93996         * lib/gettext.h: copy from gettext.
93997         * lib/.cppi-disable: add strdup.c, gettext.h.
93998
93999 2002-09-25  Karl Berry  <karl@gnu.org>
94000
94001         * config/srclist.txt: enable gettext.h check.
94002         * config/config.{guess,sub}: update from prep.
94003         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94004                 from automake 1.6.3.
94005         See srclist*.
94006
94007 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94008
94009         * regex.c (PATFETCH): Remove the translating fetch.
94010         (PATFETCH_RAW): Rename to PATFETCH.
94011         (set_image_of_range): New fun.
94012         (SET_RANGE_TABLE_WORK_AREA): Use it.
94013         (regex_compile): Don't translate the pattern chars so eagerly.
94014         Only do it when inserting an `exactn' bytecode or when handling
94015         a char-range.
94016         (mutually_exclusive_p): Avoid empty statement.
94017
94018 2002-07-06  Jim Meyering  <meyering@lucent.com>
94019
94020         * m4/README: Don't mention Makefile.am.in.
94021         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94022
94023 2002-07-01  Jim Meyering  <meyering@lucent.com>
94024
94025         * lib/c-stack.c: Include sys/time.h.
94026         From Volker Borchert.
94027
94028 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94029
94030         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94031
94032 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94033
94034         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94035         New macro.  Use it uniformly instead of
94036         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94037         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94038         reported by Vin Shelton.
94039
94040 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94041
94042         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94043         Do not assume SA_SIGINFO behavior.
94044         Bug reported by Jim Meyering on NetBSD 1.5.2.
94045
94046 2002-06-22  Jim Meyering  <meyering@lucent.com>
94047
94048         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94049         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94050
94051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94052         now that configure.ac uses AC_GNU_SOURCE.
94053         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94054         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94055
94056         Update to latest tools.  Suggestions from Paul Eggert.
94057         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94058         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94059         * m4/fnmatch.m4: Likewise.
94060         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94061         to AC_HEADER_STDBOOL
94062
94063 2002-06-22  Jim Meyering  <meyering@lucent.com>
94064
94065         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94066         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94067
94068 2002-06-22  Jim Meyering  <meyering@lucent.com>
94069
94070         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94071
94072         * lib/exitfail.c, exitfail.h: Likewise.
94073         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94074
94075         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94076         of fnmatch.h.
94077         (EXTRA_DIST): Add fnmatch_loop.c.
94078         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94079
94080         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94081         * lib/fnmatch.c: Update from diffutils-2.8.2.
94082         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94083         * lib/fnmatch.h: Remove file.
94084
94085 2002-06-21  Jim Meyering  <meyering@lucent.com>
94086
94087         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94088         * m4/mbrtowc.m4: Likewise.
94089
94090         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94091         * m4/mbswidth.m4: Reflect name change:
94092         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94093         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94094
94095         * m4/lib-link.m4: Update from gettext-0.11.2.
94096         * m4/gettext.m4: Likewise.
94097
94098         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94099         From Alfred M. Szmidt.
94100
94101 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94102
94103         * lib/file-type.h: Report an error if neither S_ISREG nor
94104         S_IFREG is defined, instead of using a test specific to glibc
94105         2.2.  This should be safe, since POSIX requires S_ISREG and
94106         Unix Version 7 had S_IFREG.  We don't need to check for
94107         <sys/types.h> since we don't use any symbols that it defines.
94108
94109 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94110
94111         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94112         $@-t, so that each temporary file name is unique and valid in the first
94113         8 characters, for operation under DOS.
94114
94115 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94116
94117         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94118
94119 2002-06-15  Jim Meyering  <meyering@lucent.com>
94120
94121         Work even with DJGPP 2.03, which lacks support for symlinks.
94122         From Richard Dawe.
94123         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94124         is defined.
94125         * lib/lchown.c (S_ISLNK): Likewise.
94126
94127 2002-06-15  Jim Meyering  <meyering@lucent.com>
94128
94129         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94130         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94131         have been included before this file.
94132
94133 2002-06-14  Jim Meyering  <meyering@lucent.com>
94134
94135         * lib/file-type.h: Use the version from diffutils-2.8.2.
94136         * lib/file-type.c: Likewise.
94137
94138 2002-06-07  Jim Meyering  <meyering@lucent.com>
94139
94140         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94141         They're needed at least for NetBSD 1.5.2.
94142         ($statxfs_includes): Include those same headers.
94143         ($statxfs_includes): Include sys/vfs.h if available.
94144         ($statxfs_includes): Likewise for sys/statvfs.h.
94145         Check for the following members in both structs statfs and statvfs:
94146         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94147
94148 2002-06-01  Jim Meyering  <meyering@lucent.com>
94149
94150         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94151         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94152
94153 2002-05-28  Jim Meyering  <meyering@lucent.com>
94154
94155         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94156         Reported by Volker Borchert.
94157
94158 2002-05-27  Jim Meyering  <meyering@lucent.com>
94159
94160         Fix a problem seen only on nonconforming systems whereby ls.c's
94161         use of localtime, and then of gettimeofday would cause trouble:
94162         the localtime call used to initialize rpl_gettimeofday's save
94163         mechanism would clobber ls's current local time information so
94164         that in any long listing the first file would always be listed
94165         with date 1970-01-01.  Analysis by Volker Borchert.
94166
94167         * lib/gettimeofday.c (localtime): Undefine.
94168         (rpl_localtime): New function.
94169
94170 2002-05-27  Jim Meyering  <meyering@lucent.com>
94171
94172         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94173         localtime.
94174
94175         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94176         use the replacement function; it wouldn't resolve at link time.
94177         Reported by Volker Borchert.
94178
94179 2002-05-22  Jim Meyering  <meyering@lucent.com>
94180
94181         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94182         file-type.h.
94183         * lib/file-type.h: New file.
94184         * lib/file-type.c (file_type): New file/function.  Extracted from
94185         diffutils.
94186
94187 2002-04-30  Jim Meyering  <meyering@lucent.com>
94188
94189         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94190
94191 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94192
94193         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94194
94195 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94196
94197         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94198         Do not check for alloca.h (no longer used) or stdbool.h (was never
94199         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94200
94201 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94202
94203         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94204
94205 2002-04-29  Jim Meyering  <meyering@lucent.com>
94206
94207         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94208         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94209         Use AC_FUNC_STRNLEN here instead.
94210
94211         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94212         With autoconf-2.53a, it's part of AC_PROG_CC.
94213
94214 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94215
94216         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94217         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94218
94219 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94220
94221         * lib/sig2str.h, lib/sig2str.c: New files.
94222         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94223
94224 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94225
94226         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94227         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94228         of 127, since 64 is the largest conceivable number for ancient
94229         nonstandard hosts.
94230         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94231
94232 2002-04-28  Jim Meyering  <meyering@lucent.com>
94233
94234         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94235
94236 2002-04-24  Jim Meyering  <meyering@lucent.com>
94237
94238         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94239         (jm_PREREQ): Use it.
94240
94241         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94242         mach/mach.h fcntl.h.
94243         Check for this function: setlocale.
94244
94245 2002-04-24  Jim Meyering  <meyering@lucent.com>
94246
94247         * lib/gettext.h: New file, from Gettext.
94248         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94249         (libfetish_a_SOURCES): Add gettext.h.
94250
94251 2002-04-16  Jim Meyering  <meyering@lucent.com>
94252
94253         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94254         ut_pid, ut_id, ut_exit.
94255
94256 2002-04-16  Jim Meyering  <meyering@lucent.com>
94257
94258         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94259         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94260         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94261
94262 2002-04-12  Jim Meyering  <meyering@lucent.com>
94263
94264         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94265         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94266         existence of the getmntinfo function.  Needed for Darwin 5.3.
94267
94268         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94269         This is necessary at least on Darwin 5.3.
94270
94271         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94272         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94273         strnlen.o in the library, and that makes some versions of ranlib
94274         object.
94275
94276 2002-04-12  Jim Meyering  <meyering@lucent.com>
94277
94278         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94279
94280 2002-04-09  Jim Meyering  <meyering@lucent.com>
94281
94282         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94283         to be more precise.  Rather than saying we're checking whether the
94284         function `works', say what we're testing.
94285         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94286         Reported by Bruno Haible.
94287
94288 2002-03-10  Jim Meyering  <meyering@lucent.com>
94289
94290         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94291         Suggestion from Santiago Vila.
94292
94293 2002-03-08  Jim Meyering  <meyering@lucent.com>
94294
94295         * lib/rename.c: Mention that this wrapper is needed also on
94296         mips-dec-ultrix4.4 systems.
94297
94298 2002-03-02  Jim Meyering  <meyering@lucent.com>
94299
94300         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94301         not HAVE_CLOCK_SETTIME.
94302
94303 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94304
94305         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94306         Check for clock_settime.
94307
94308 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94309
94310         * lib/nanosleep.h: Rename to....
94311         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94312
94313         * lib/gettime.c: New file.
94314         * lib/settime.c: New file.
94315         * lib/stime.c: Remove.
94316
94317         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94318         timespec.h.  Remove nanosleep.h.
94319
94320 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94321
94322         * m4/acl.m4: New file.
94323         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94324         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94325
94326 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94327
94328         * lib/acl.c, lib/acl.h: New files.
94329         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94330
94331 2002-02-24  Jim Meyering  <meyering@lucent.com>
94332
94333         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94334         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94335         cause trouble.  Reported by Nelson Beebe.
94336
94337 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94338
94339         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94340         compilers that don't know that xalloc_die never returns.
94341
94342 2002-02-20  Jim Meyering  <meyering@lucent.com>
94343
94344         * lib/getdate.c: Regenerate using bison-1.33.
94345
94346 2002-02-17  Jim Meyering  <meyering@lucent.com>
94347
94348         * config/config.guess (main): Don't use `head -1'; it's no longer
94349         portable. Use `sed 1q' instead.
94350
94351 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94352
94353         * m4/codeset.m4: Upgrade to gettext-0.11.
94354         * m4/gettext.m4: Upgrade to gettext-0.11.
94355         * m4/glibc21.m4: Upgrade to gettext-0.11.
94356         * m4/iconv.m4: Upgrade to gettext-0.11.
94357         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94358         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94359         * m4/lib-ld.m4: New file, from gettext-0.11.
94360         * m4/lib-link.m4: New file, from gettext-0.11.
94361         * m4/lib-prefix.m4: New file, from gettext-0.11.
94362         * m4/progtest.m4: Upgrade to gettext-0.11.
94363
94364 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94365
94366         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94367         (jm_PREREQ): Use it.
94368
94369 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94370
94371         * lib/posixver.c, lib/posixver.h: New files.
94372         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94373
94374 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94375             Bruno Haible  <bruno@clisp.org>
94376
94377         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94378         (fwrite_success_callback): New declaration.
94379         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94380         print_unicode_char. Call failure callback instead of error.
94381         (fwrite_success_callback): New function.
94382         (exit_failure_callback): New function.
94383         (fallback_failure_callback): New function.
94384         (print_unicode_char): Call unicode_to_mb.
94385
94386 2002-01-26  Jim Meyering  <meyering@lucent.com>
94387
94388         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94389         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94390
94391 2002-01-26  Jim Meyering  <meyering@lucent.com>
94392
94393         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94394
94395 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94396
94397         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94398
94399 2002-01-22  Jim Meyering  <meyering@lucent.com>
94400
94401         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94402         Otherwise, some versions of automake would omit the rule that makes
94403         Makefile from Makefile.in.
94404
94405 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94406
94407         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94408         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94409         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94410         (memcoll): Set errno to zero if there is no error.
94411
94412         * lib/quotearg.c (quotearg_buffer_restyled):
94413         Fix bug with quoting buffers containing NUL when backslashing escapes.
94414         This bug was exposed by the other changes in this patch.
94415         (quotearg_n_options): New arg ARGSIZE.
94416         All callers changed.
94417         (quoting_options_from_style): New function.
94418         (quotearg_n_style): Use it.
94419         (quotearg_n_style_mem): New function.
94420
94421         * lib/quotearg.h (quotearg_n_style_mem): New function.
94422
94423 2002-01-19  Jim Meyering  <meyering@lucent.com>
94424
94425         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94426         Remove useless quotes: DF_PROG="df".
94427         * m4/strnlen.m4: New file.
94428
94429 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94430
94431         * lib/backupfile.c (ISDIGIT): Comment fix.
94432         * lib/getdate.y (ISDIGIT): Likewise.
94433         * lib/posixtm.c (ISDIGIT, year): Likewise.
94434         * lib/strverscmp.c (ISDIGIT): Likewise.
94435         * lib/userspec.c (ISDIGIT): Likewise.
94436
94437 2002-01-16  Jim Meyering  <meyering@lucent.com>
94438
94439         * lib/getdate.y: Add three semicolons, each just before a closing
94440         brace. Bison (as of version 1.31) no longer papers over that mistake.
94441
94442 2002-01-05  Jim Meyering  <meyering@lucent.com>
94443
94444         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94445
94446 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94447
94448         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94449         not silently exit merely because the output buffer happens to
94450         have nothing pending.
94451
94452 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94453
94454         See the big note in ../ChangeLog.
94455         * lib/human.c (suffixes): Prefer K to k for 1024.
94456         (generate_suffix_backwards): New function.
94457         (human_readable_inexact): Use it.
94458         * lib/xstrtol.c (__xstrtol): If there is no number but there
94459         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94460         Accept 'K' as well as 'k'.
94461
94462 2001-12-15  Jim Meyering  <meyering@lucent.com>
94463
94464         * lib/regex.h (__restrict_arr): Update from libc.
94465
94466         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94467         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94468         (STREQ): Define.
94469
94470 2001-12-14  Jim Meyering  <meyering@lucent.com>
94471
94472         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94473         Suggestion from Bruno Haible.
94474
94475 2001-12-10  Jim Meyering  <meyering@lucent.com>
94476
94477         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94478         xrealloc, Instead, include "xalloc.h".
94479         (initbuffer): Don't cast xmalloc return value to char*.
94480         (readline): Reword comment.
94481         Don't cast xrealloc return value to char*
94482         Return NULL, not 0.
94483
94484 2001-12-09  Jim Meyering  <meyering@lucent.com>
94485
94486         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94487         about `signed and unsigned type in conditional expression'.
94488         * lib/posixtm.c (posix_time_parse): Likewise.
94489
94490         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94491
94492         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94493         to avoid a pedantic warning.
94494
94495         * lib/getstr.c: Don't include assert.h.
94496         (getstr): Remove warning-evoking assertions.
94497         Return -1 if offset parameter is out of bounds.
94498         Change the type of a local from int to size_t.
94499
94500         * lib/strftime.c (my_strftime_localtime_r): Include this function
94501         definition in the `#if ! HAVE_TM_GMTOFF' block.
94502
94503         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94504         Include xalloc.h instead.
94505
94506 2001-12-02  Jim Meyering  <meyering@lucent.com>
94507
94508         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94509         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94510         included.
94511
94512         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94513         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94514
94515 2001-11-30  Akim Demaille  <akim@epita.fr>
94516
94517         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94518         before being defined.
94519
94520 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94521
94522         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94523         First arg is int, not unsigned.
94524         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94525         (SIZE_MAX, UINT_MAX): New macros.
94526         (quotearg_n_options): Abort if N is negative.
94527         Avoid overflow check on hosts where size_t is 64 bits and int
94528         is 32 bits, as overflow is impossible there.
94529         Fix off-by-one typo that caused unnecessary reallocation.
94530
94531 2001-11-27  Jim Meyering  <meyering@lucent.com>
94532
94533         * lib/tempname.c: Merge with version from libc.
94534         * lib/regex.c: Likewise.
94535
94536         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94537         systems for which STDC_HEADERS is 0, it was not included, resulting in
94538         a warning about an integer-to-pointer conversion problem with getenv.
94539         Reported by Volker Borchert.
94540
94541 2001-11-26  Jim Meyering  <meyering@lucent.com>
94542
94543         * lib/gtod.h: Remove file.
94544         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94545         * lib/gettimeofday.c: Don't include gtod.h.
94546         (GTOD_init): Remove function.
94547         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94548         Suggestion from Volker Borchert.
94549
94550 2001-11-23  Jim Meyering  <meyering@lucent.com>
94551
94552         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94553         it.
94554         * lib/hash.c (struct hash_table): Define it here instead.
94555
94556 2001-11-22  Jim Meyering  <meyering@lucent.com>
94557
94558         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94559
94560 2001-11-20  Jim Meyering  <meyering@lucent.com>
94561
94562         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94563         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94564
94565 2001-11-19  Jim Meyering  <meyering@lucent.com>
94566
94567         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94568         directory.  Use "conftestXXXXXX" as the template.
94569         Suggestion from Paul Eggert.
94570
94571         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94572         immediately, so the test doesn't mistakenly hit the max-open-files
94573         limit.
94574
94575 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94576
94577         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94578         (TEMPORARIES): New macro.
94579         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94580         removes an artificial limitation (e.g. HP-UX 10.20, where
94581         TMP_MAX is 17576).
94582
94583 2001-11-18  Jim Meyering  <meyering@lucent.com>
94584
94585         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94586
94587 2001-11-18  Jim Meyering  <meyering@lucent.com>
94588
94589         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94590         on SunOS 4.
94591
94592         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94593         files will be created before anything else.
94594
94595 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94596
94597         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94598         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94599
94600 2001-11-17  Jim Meyering  <meyering@lucent.com>
94601
94602         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
94603         Prompted by a report from Bob Proulx.
94604
94605         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
94606         Instead, require UTILS_FUNC_MKSTEMP.
94607
94608 2001-11-17  Jim Meyering  <meyering@lucent.com>
94609
94610         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
94611         Now, that's done as part of AC_FUNC_STRTOD.
94612
94613 2001-11-17  Jim Meyering  <meyering@lucent.com>
94614
94615         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
94616         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
94617         rather than group writable.  Patch by Juan F. Codagnone.
94618
94619         * lib/readtokens.c: Remove explicit declarations of xmalloc and
94620         xrealloc, Instead, include "xalloc.h".
94621
94622         * lib/mountlist.c: Include unlocked-io.h after all system headers.
94623         Remove explicit declarations of xmalloc, xrealloc,
94624         and xstrdup.  Instead, include "xalloc.h".
94625
94626         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
94627         unlocked-io.h.
94628         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
94629         Likewise.
94630         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
94631
94632         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
94633         Reported by Padraig Brady.
94634
94635         * lib/mkstemp.c: #undef mkstemp.
94636         Include config.h.
94637         (rpl_mkstemp): Rename from mkstemp.
94638         Protoize.
94639
94640 2001-11-16  Jim Meyering  <meyering@lucent.com>
94641
94642         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
94643         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
94644         determine the amount of total physical memory, use pstat_getstatic.
94645         HPUX-11 doesn't define _SC_PHYS_PAGES.
94646         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
94647         If sysconf couldn't be used to determine the amount of available
94648         physical memory, use both pstat_getstatic and pstat_getdynamic.
94649         Based on a patch from Bob Proulx.
94650
94651 2001-11-10  Jim Meyering  <meyering@lucent.com>
94652
94653         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
94654         (jm_PREREQ): Use it.
94655
94656 2001-11-09  Jim Meyering  <meyering@lucent.com>
94657
94658         * m4/jm-macros.m4: Require autoconf-2.52f.
94659         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
94660         Use these AC_-prefixed names, not the AM_-prefixed ones.
94661
94662         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
94663
94664 2001-11-05  Jim Meyering  <meyering@lucent.com>
94665
94666         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
94667
94668 2001-11-04  Jim Meyering  <meyering@lucent.com>
94669
94670         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
94671         $DEFS.
94672
94673 2001-11-03  Jim Meyering  <meyering@lucent.com>
94674
94675         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
94676         of AC_DEFUN.
94677
94678         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
94679         know the name of the variable in the macro definition.
94680
94681 2001-11-03  Jim Meyering  <meyering@lucent.com>
94682
94683         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
94684         in argmatch_to_argument call.
94685
94686         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
94687         argument.
94688
94689         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
94690         e.g., a fault due to an attempt to free a NULL pointer.
94691
94692 2001-11-01  Jim Meyering  <meyering@lucent.com>
94693
94694         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
94695         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
94696
94697 2001-11-01  Jim Meyering  <meyering@lucent.com>
94698
94699         * lib/dirfd.c, lib/dirfd.h: New files.
94700         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
94701
94702         * lib/hash.c (hash_print) [TESTING]: Clean up.
94703
94704 2001-10-22  Paul Eggert  <eggert@twinsun.com>
94705
94706         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
94707         to avoid a warning if -Wall.
94708
94709 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
94710
94711         * README: New file
94712         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
94713         (per RMS's instructions, this is now the canonical source)
94714         * lgpl/, gpl/: New directories.
94715
94716 2001-10-21  Paul Eggert  <eggert@twinsun.com>
94717
94718         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
94719
94720 2001-10-21  Jim Meyering  <meyering@lucent.com>
94721
94722         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
94723         this code would end up calling gettext even in packages built
94724         with --disable-nls.
94725         * lib/getopt.c (_): Likewise.
94726         * lib/regex.c (_): Likewise.
94727
94728 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94729
94730         * m4/error.m4 (jm_PREREQ_ERROR):
94731         Do not invoke AC_CHECK_FUNCS with strerror_r, as
94732         AC_FUNC_STRERROR_R does that.
94733         Check for strerror declaration.
94734
94735         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
94736         are supposed to have them these days.
94737         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
94738         Merge changes from latest Autoconf CVS.
94739         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
94740         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
94741         POSIX decided to standardize on the int flavor of strerror_r.
94742
94743 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94744
94745         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
94746         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
94747         Use strerror_r that is only a macro, even if it is not a function.
94748         (strerror): Check for HAVE_DECL_STRERROR before declaring.
94749         (private_strerror): Use prototypes, not old-style function definition.
94750         (print_errno_message): New function.
94751         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
94752         char*-flavored one.
94753         (error_tail, error, error_at_line): Use it.
94754
94755 2001-10-11  Jim Meyering  <meyering@lucent.com>
94756
94757         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
94758         and quote_n (1, ... to avoid clobbering a buffer.
94759
94760 2001-10-05  Jim Meyering  <meyering@lucent.com>
94761
94762         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
94763         hash-pjw.h.
94764         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
94765         * lib/hash-pjw.h: New file.
94766
94767 2001-09-30  Jim Meyering  <meyering@lucent.com>
94768
94769         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
94770         `struct fsstat' has the `f_fstypename' member.
94771         Use that to define FS_TYPE, which is now used to make
94772         the getfsstat link test tighter.
94773
94774 2001-09-30  Jim Meyering  <meyering@lucent.com>
94775
94776         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
94777         Include <sys/ucred.h>, for Apple Darwin.
94778         Include sys/mount.h and sys/fs_types.h only if available.
94779         (FS_TYPE): Define.
94780         (read_filesystem_list): Use FS_TYPE.
94781
94782 2001-09-29  Paul Eggert  <eggert@twinsun.com>
94783
94784         * lib/exclude.c (excluded_filename): 0 -> false, since it's
94785         a boolean context.
94786
94787 2001-09-29  Jim Meyering  <meyering@lucent.com>
94788
94789         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94790         [one-argument getmntent function]): Include stdio.h before mntent.h.
94791         SunOS 4.1.x needs it for the declaration of `FILE'.
94792         Patch by Volker Borchert.
94793
94794         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94795         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
94796         sys/fs_types.h, and make the link-test for getfsstat guard #include
94797         directives with appropriate #if HAVE_*_H tests so that we can
94798         detect getfsstat on Apple Darwin1.3.7 systems.
94799         Reported by Nelson Beebe.
94800         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
94801
94802 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94803
94804         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94805         #defines strtoimax.  Also treat the other strto* functions
94806         like strtoimax.
94807
94808         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94809         Check for strtoul and strtoumax,
94810         as those declarations are made even in the signed case.
94811         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
94812         Likewise, for strtol and strtoimax.
94813
94814 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94815
94816         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94817         #defines strtoimax.  Also treat the other strto* functions
94818         like strtoimax.
94819
94820         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
94821         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
94822         (strtoimax, strtoumax): Do not declare if already defined as a macro.
94823
94824 2001-09-26  Jim Meyering  <meyering@lucent.com>
94825
94826         Most macros in unlocked-io.h had the wrong number of arguments.
94827         * lib/gen-uio: New script.
94828         (USE_UNLOCKED_IO): Define to 1 if not already defined.
94829         * lib/unlocked-io.hin: Remove file.
94830         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
94831         rather than trying to embed it here.
94832         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
94833         Reported by Padraig Brady.
94834
94835 2001-09-25  Volker Borchert  <bt@teknon.de>
94836
94837         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
94838         `result'.
94839
94840 2001-09-24  Jim Meyering  <meyering@lucent.com>
94841
94842         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
94843
94844 2001-09-23  Jim Meyering  <meyering@lucent.com>
94845
94846         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
94847         instead of the mere test for existence of mntent.h.  The latter
94848         would get a false-positive on AIX 3.4 systems.
94849         In the outer getmntent if-block, don't die if neither of the getmntent
94850         tests succeeds.  Instead, just fall through and continue with the
94851         remaining tests.
94852
94853 2001-09-23  Jim Meyering  <meyering@lucent.com>
94854
94855         * lib/mountlist.c: Remove useless parentheses in #if directives.
94856         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
94857         the deprecated MOUNTED symbol is no longer defined in mntent.h.
94858
94859 2001-09-22  Jim Meyering  <meyering@lucent.com>
94860
94861         * m4/gettext.m4: New file.  From gettext.
94862         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
94863         * m4/progtest.m4: Likewise
94864         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
94865         * m4/glibc21.m4: Likewise.
94866
94867         * m4/libintl.m4: Remove.  No longer used.
94868
94869 2001-09-22  Jim Meyering  <meyering@lucent.com>
94870
94871         * lib/localcharset.c: Update from latest gettext.
94872         * lib/config.charset: Likewise.
94873
94874 2001-09-20  Jim Meyering  <meyering@lucent.com>
94875
94876         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
94877         strtoimax.
94878         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
94879         strtoumax.
94880
94881 2001-09-20  Jim Meyering  <meyering@lucent.com>
94882
94883         * lib/xstrtol.c (strtoimax): Guard declaration with
94884         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
94885         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
94886         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
94887         (strtoumax): Likewise, for completeness (it wasn't necessary).
94888
94889 2001-09-17  Paul Eggert  <eggert@twinsun.com>
94890
94891         * lib/strtoimax.c (HAVE_LONG_LONG):
94892         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
94893         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
94894         to work around bug in IBM C compiler.
94895
94896 2001-09-17  Jim Meyering  <meyering@lucent.com>
94897
94898         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
94899         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
94900         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
94901         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
94902         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
94903         whenever the right hand side need not be expanded by the shell.
94904
94905 2001-09-16  Paul Eggert  <eggert@twinsun.com>
94906
94907         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
94908         library.  It's not correct, as some older glibcs are buggy.
94909         fnmatch wasn't fixed until glibc 2.2.
94910
94911         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
94912         special shell magic here.
94913
94914 2001-09-16  Jim Meyering  <meyering@lucent.com>
94915
94916         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
94917         * m4/jm-macros.m4: Require it.
94918
94919 2001-09-16  Jim Meyering  <meyering@lucent.com>
94920
94921         * lib/mkdir.c: New file.
94922
94923 2001-09-15  Jim Meyering  <meyering@lucent.com>
94924
94925         * m4/jm-macros.m4: Check for help2man.
94926
94927 2001-09-11  Jim Meyering  <meyering@lucent.com>
94928
94929         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
94930         The body, by Paul Eggert, was moved here from configure.in.
94931         * m4/jm-macros.m4: Require UTILS_HOST_OS.
94932
94933 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94934
94935         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
94936         (jm_PREREQ): Use it.
94937
94938 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94939
94940         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
94941         Use ssize_t, not int, to store result of readlink.
94942         Check for ssize_t overflow as well as size_t overflow,
94943         as POSIX says the result of readlink is implementation-defined
94944         when ssize_t overflows.
94945         Remove unnecessary cast to char*.
94946         Use free+malloc instead of realloc, as the storage doesn't need
94947         to be preserved and it's clearer and can be more efficient that way.
94948         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
94949         * lib/xreadlink.h (xreadlink): Update prototype.
94950
94951 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94952
94953         * lib/xgetcwd.c: Revert some of the previous change; intead,
94954         fix the HAVE_GETCWD_NULL code to behave more like the
94955         !HAVE_GETCWD_NULL code used to.
94956
94957         Include "xalloc.h".
94958         (xgetcwd): Do not return NULL when memory is exhausted; instead,
94959         invoke xalloc_die.
94960
94961 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94962
94963         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
94964         sys/param.h, as pathmax.h includes them.
94965
94966 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94967
94968         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
94969         (jm_PREREQ_XGETCWD): New macro.
94970
94971         * m4/getcwd.m4: New file.
94972
94973 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94974
94975         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
94976         like the HAVE_GETCWD_NULL code.
94977         Include pathmax.h if not HAVE_GETCWD.
94978         Do not include xalloc.h.
94979         (INITIAL_BUFFER_SIZE): New symbol.
94980         Do not use xmalloc / xrealloc, since the caller is responsible for
94981         handling errors.  Preserve errno around `free' during failure.
94982         Do not overrun buffer when using getwd.
94983
94984 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94985
94986         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
94987         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
94988         getcwd (NULL, 0).
94989
94990 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94991
94992         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
94993         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
94994         spotted by Jim Meyering.
94995
94996 2001-09-03  Jim Meyering  <meyering@lucent.com>
94997
94998         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
94999         failure.
95000
95001 2001-09-02  Jim Meyering  <meyering@lucent.com>
95002
95003         * lib/error.c: Update from GNU libc.
95004
95005 2001-09-01  Jim Meyering  <meyering@lucent.com>
95006
95007         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95008         Used by df.
95009
95010 2001-09-01  Jim Meyering  <meyering@lucent.com>
95011
95012         * lib/xreadlink.c: New file.
95013         * lib/xreadlink.h: New file.
95014         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95015         xreadlink.h.
95016
95017         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95018         doesn't conflict with sparc Solaris 7's definition in
95019         /usr/include/sys/int_types.h.
95020
95021         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95022         files.
95023         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95024         and strncasecmp as r-values.  Unixware didn't have declarations.
95025
95026 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95027
95028         * lib/xstrtol.h: Add copyright notice.
95029         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95030         LONGINT_INVALID_SUFFIX_CHAR.
95031
95032 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95033
95034         * lib/xstrtol.c (strtoimax): New decl.
95035
95036 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95037
95038         * lib/xgetcwd.c: Don't include pathmax.h.
95039         Include stdlib.h and unistd.h if available.
95040         Include xalloc.h.
95041         (xmalloc, xstrdup, free): Remove decls.
95042         (xgetcwd): Don't assume sizes fit in unsigned.
95043         Check for overflow when computing sizes.
95044         Simplify reallocation code.
95045
95046 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95047
95048         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95049         a directory's st_size can have an arbitrary value, so the old
95050         usage could waste an arbitrary amount of memory.  All uses
95051         changed.
95052         * lib/savedir.h: Update prototype.
95053
95054 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95055
95056         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95057
95058         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95059         old strtoimax.c.
95060
95061         Also, make the following further changes to make this file's
95062         configuration more similar to that of strtol.c:
95063         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95064         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95065         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95066         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95067         changed to signed values.
95068
95069         And make the following changes as well:
95070         Fix copyright notice, as 1999 was missing.
95071         (verify): New macro.
95072         (strtoimax): Check sizes at compile-time, not run-time.
95073         Prefer strtol to strtoll if both work.
95074         (main): Remove; it was not that useful and was a pain to maintain.
95075
95076         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95077
95078 2001-08-31  Jim Meyering  <meyering@lucent.com>
95079
95080         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95081         Use an initial, malloc'd, buffer of length 128 rather than
95082         a statically allocated one of length 1024.
95083
95084 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95085
95086         Simplify code, partly by assuming autoconf 2.52 semantics.
95087
95088         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95089
95090         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95091         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95092         All uses removed.
95093         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95094         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95095         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95096         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95097         jm_AC_HEADER_INTTYPES_H.
95098         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95099
95100         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95101
95102         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95103         Quote first arg of AC_DEFUN.
95104         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95105         since they are needed to parse the include file even if we need
95106         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95107         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95108         but with opposite signedness.
95109
95110 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95111
95112         Merge 'exclude' changes from tar 1.13.22.
95113         This fixes one or two unlikely storage allocation overflow bugs,
95114         but doesn't change user-visible behavior otherwise.
95115
95116 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95117
95118         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95119         (jm_PREREQ_EXCLUDE): New macro.
95120
95121 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95122
95123         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95124         tm to be declared.
95125
95126 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95127
95128         * lib/hash.c: Remove '2001' from copyright notice.
95129
95130 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95131
95132         * lib/full-write.h: New file.
95133         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95134         * lib/full-write.c: Correct credits, as cccp.c no longer
95135         exists and anyway it was so heavily changed from the old cccp
95136         code as to be unrecognizable.  Include full-write.h.
95137         (full_write): Return size_t, with short writes meaning failure.
95138         All callers changed.  This fixes a bug with large buffers
95139         on 64-bit hosts.
95140         * lib/utime.c: Include full-write.h.
95141
95142 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95143
95144         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95145         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95146         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95147         Include if available.
95148         (<xalloc.h>): Include
95149         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95150         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95151         collide with FNM macros.
95152         (struct patopts): New struct.
95153         (struct exclude): Use it, as exclude patterns now come with options.
95154         (new_exclude): Support above changes.
95155         (new_exclude, add_exclude_file):
95156         Initial size must now be a power of two to simplify overflow checking.
95157         (free_exclude, fnmatch_no_wildcards): New function.
95158         (excluded_filename): No longer requires options arg, as the options
95159         are determined by add_exclude.  Now returns bool, not int.
95160         (excluded_filename, add_exclude):
95161         Add support for the fancy new exclusion options.
95162         (add_exclude, add_exclude_file): Now takes int options arg.
95163         Check for arithmetic overflow when computing sizes.
95164         (add_exclude_file): xrealloc might modify errno, so don't
95165         realloc until after errno might be used.
95166
95167         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95168         New macros.
95169         (free_exclude): New decl.
95170         (add_exclude, add_exclude_file): Now takes int options arg.
95171         (excluded_filename): No longer requires options arg, as the options
95172         are determined by add_exclude.  Now returns bool, not int.
95173
95174 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95175
95176         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95177
95178 2001-08-27  Jim Meyering  <meyering@lucent.com>
95179
95180         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95181
95182         * lib/version-etc.c (N_): Remove definition.
95183         Revert most of last change.
95184         Instead, simply don't mark the `Copyright...' string for translation.
95185         Based on advice from Paul Eggert.
95186
95187         * lib/strtoxmax.c: Tweak comment.
95188
95189 2001-08-26  Jim Meyering  <meyering@lucent.com>
95190
95191         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95192
95193         * m4/xstrtoimax.m4: New file.
95194         * m4/xstrtoumax.m4: Add comments explaining why we
95195         AC_REPLACE_FUNCS(strtol).
95196
95197 2001-08-26  Jim Meyering  <meyering@lucent.com>
95198
95199         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95200         of copyright with `%s' so translators don't get an untranslated
95201         message in 2002.
95202         (COPYRIGHT_YEAR): Define.
95203         (version_etc): Use fprintf rather than fputs.
95204         Suggestion from Ulrich Drepper.
95205
95206         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95207
95208         * lib/strtoll.c: New file, from GNU libc.
95209         * lib/xstrtoimax.c: New file.
95210
95211         * lib/xstrtol.h: Add xstrtoimax.
95212         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95213         * lib/strtoimax.c: New file.  Likewise, but first define
95214         STRTOUXMAX_SIGNED.
95215
95216         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95217         ...
95218         * lib/strtoxmax.c: ... then renamed to this.
95219
95220 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95221
95222         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95223         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95224         (jm_AC_TYPE_INTMAX_T): New macro.
95225         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95226
95227         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95228
95229         * m4/longlong.m4: Renamed from ulonglong.m4.
95230         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95231         * m4/uintmax_t.m4: Removed.
95232
95233 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95234
95235         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95236         Port to Solaris 8, where 'sed' requires a space after the 'r'
95237         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95238         Redirect output to $tmp just once.
95239
95240 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95241
95242         * lib/addext.c (<errno.h>): Include.
95243         (errno): Declare if not defined.
95244         (addext): Work correctly when pathconf returns -1 and leaves
95245         errno alone because there is no limit.  Also, work even if
95246         pathconf returns a value greater than SIZE_MAX.
95247
95248 2001-08-12  Jim Meyering  <meyering@lucent.com>
95249
95250         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95251         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95252         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95253         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95254         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95255         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95256         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95257         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95258         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95259         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95260         utime.m4, utimes.m4, xstrtoumax.m4:
95261         Quote the first argument in each use of AC_DEFUN.
95262
95263 2001-08-12  Jim Meyering  <meyering@lucent.com>
95264
95265         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95266         Simply `return getcwd (NULL, 0);'.
95267         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95268         Use 1300 as initial value for length, not PATH_MAX.
95269
95270         * lib/pathmax.h: Clean up cpp syntax.
95271
95272 2001-08-12  Jim Meyering  <meyering@lucent.com>
95273
95274         * lib/gettimeofday.c: New file.
95275         * lib/gtod.h: New file.
95276         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95277
95278 2001-08-05  Jim Meyering  <meyering@lucent.com>
95279
95280         * m4/jm-macros.m4: Require autoconf-2.52.
95281
95282 2001-08-04  Jim Meyering  <meyering@lucent.com>
95283
95284         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95285         stmt, to get in sync with glibc.
95286
95287 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95288
95289         The following changes are from gettext 0.10.39 as maintained by
95290         Bruno Haible.
95291
95292         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95293         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95294         with inverted sense.  All uses changed.
95295
95296         * lib/mbswidth.c: Don't include <limits.h>.
95297         Include <stdlib.h> and <string.h> unconditionally.
95298         (iswcntrl, mbsinit, ISCNTRL): New macros.
95299         (mbsnwidth): Use K&R style function declarations.
95300         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95301         can optimize it when MB_CUR_MAX == 1.
95302         The width of control characters is zero, not 1.
95303
95304 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95305
95306         The following changes are from gettext 0.10.39 as maintained by
95307         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95308
95309         * m4/codeset.m4: Upgrade to serial AM1.
95310         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95311         all uses changed.  Quote first arg of AC_DEFUN.
95312         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95313
95314         * m4/iconv.m4: Upgrade to serial AM2.
95315         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95316         Add --with-libconv-prefix.
95317         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95318         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95319         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95320         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95321         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95322
95323         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95324         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95325         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95326         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95327         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95328         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95329         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95330         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95331         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95332
95333         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95334         string.h any more.
95335
95336         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95337         not the default value.
95338
95339         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95340         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95341         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95342         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95343         Also check for iswcntrl, used for wcwidth fallback.
95344         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95345         to Autoconf 2.13.
95346
95347 2001-08-03  Jim Meyering  <meyering@lucent.com>
95348
95349         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95350         as it was in the original.  Reported by Paul Eggert.
95351
95352 2001-07-16  Jim Meyering  <meyering@lucent.com>
95353
95354         * m4/gettimeofday.m4: New file.
95355         Prompted by a report from Bernhard Baehr.
95356
95357 2001-07-15  Jim Meyering  <meyering@lucent.com>
95358
95359         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95360         stuff. Now it's in ../Makefile.cfg.
95361
95362 2001-07-15  Jim Meyering  <meyering@lucent.com>
95363
95364         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95365         (BUILT_SOURCES): Add unlocked-io.h.
95366         (io_functions): Define.
95367         (unlocked-io.h): New rule.
95368         (DISTCLEANFILES): Add unlocked-io.h.
95369         (all-local): Depend on unlocked-io.h, to ensure it is created.
95370
95371         * lib/unlocked-io.hin: New file
95372
95373         * lib/regex.c: Update from glibc.
95374
95375 2001-07-05  Jim Meyering  <meyering@lucent.com>
95376
95377         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95378         recommendation.
95379         (libfetish_a_SOURCES): Put all .h files here instead.
95380         Remove a thus-exposed (better checks in automake) duplicate and
95381         two unnecessary .h files.
95382
95383 2001-07-04  Jim Meyering  <meyering@lucent.com>
95384
95385         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95386         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95387         distcheck failure.
95388
95389 2001-07-02  Jim Meyering  <meyering@lucent.com>
95390
95391         The following changes were prompted by suggestions from Bruno Haible.
95392
95393         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95394         is now generated.
95395         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95396         definition of EXTRA_DIST.
95397         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95398         ensure that the generated file is created/updated whenever the list
95399         of $(unlocked_functions) is changed.
95400         (jm-glibc-io.m4): New rule.
95401         (unlocked-io.h): New rule -- currently unused.
95402
95403 2001-06-24  Jim Meyering  <meyering@lucent.com>
95404
95405         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95406         unmatched right bracket, rather than kludging it with an extra,
95407         falsely-matching quote in a comment.  Patch by Akim Demaille.
95408
95409 2001-06-11  Jim Meyering  <meyering@lucent.com>
95410
95411         * lib/regex.c: Update from GNU libc.
95412
95413 2001-05-27  Jim Meyering  <meyering@lucent.com>
95414
95415         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95416         Check for ut_type in struct utmp.
95417
95418 2001-05-27  Jim Meyering  <meyering@lucent.com>
95419
95420         * lib/readutmp.h (UT_TYPE): Define.
95421
95422 2001-05-24  Jim Meyering  <meyering@lucent.com>
95423
95424         * lib/argmatch.c: Include "quote.h".
95425         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95426         quote function.  Reported by Göran Uddeborg.
95427
95428 2001-05-22  Jim Meyering  <meyering@lucent.com>
95429
95430         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95431         now that we use the package-supplied version unconditionally.
95432         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95433
95434 2001-05-21  Jim Meyering  <meyering@lucent.com>
95435
95436         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95437         shell syntax errors.
95438
95439 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95440
95441         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95442
95443 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95444
95445         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95446         Don't bother to check library strftime, since
95447         we'll be using our own my_strftime function anyway.
95448         Define my_strftime instead of strftime.
95449
95450 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95451
95452         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95453         which is not yet declared.
95454
95455 2001-05-15  Jim Meyering  <meyering@lucent.com>
95456
95457         * m4/regex.m4: Use proper quoting so brackets appear in the test
95458         program.
95459         Reported by, and with help from, Bruno Haible.
95460
95461 2001-05-13  Jim Meyering  <meyering@lucent.com>
95462
95463         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95464         undefined.
95465
95466 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95467
95468         dirname code cleanup.  base_name now behaves more compatibly
95469         with POSIX basename when given file names that have trailing
95470         slashes, and similarly for dir_name.  Add new primitives
95471         base_len and dir_len.  Put the directory-name-related decls
95472         into dirname.h.
95473
95474         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95475         * lib/backupfile.c (base_name): Likewise.
95476         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95477         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95478         * lib/makepath.c (strip_trailing_slashes): Likewise.
95479         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95480         ISSLASH): Likewise.
95481         * lib/rename.c (strip_trailing_slashes): Likewise.
95482         * lib/same.c (base_name): Likewise.
95483         * lib/stripslash.c (ISSLASH): Likewise.
95484
95485         * lib/addext.c: Include <dirname.h> after size_t is defined.
95486         * lib/backupfile.c: Likewise.
95487
95488         * lib/addext.c (addext): Use base_len to trim redundant
95489         trailing slashes instead of doing it ourselves.
95490         But do not trim the last slash if it is not redundant.
95491
95492         * lib/backupfile.c (find_backup_file_name,
95493         max_backup_version): Use base_len instead of rolling it ourselves.
95494         Handle the case of "" and (on DOS) "C:" correctly.
95495
95496         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95497         needed. Include <string.h>, <dirname.h>.
95498         (base_name): Allow file names ending in slashes, other than names
95499         that are all slashes.  In this case, return the basename followed
95500         by the slashes.  This is more general, and can be used in places
95501         where the original base_name purposely had an assertion failure.
95502         (base_len): New function.
95503
95504         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95505         Do not include <assert.h>; no longer needed.
95506         Include xalloc.h.
95507         (memrchr): Remove decl.
95508         (dir_name_r): Remove.
95509         (dir_len): Renamed from dirlen.  All callers changed.
95510         Rewrite in terms of base_name, for simplicity and consistency.
95511         (dir_name): Never return NULL.  All callers changed.
95512         Do not include <stdlib.h> in test program; no longer needed.
95513         return 0; is fine for test program.
95514
95515         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95516         New macros.
95517         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95518
95519         * lib/path-concat.c (path_concat): Use base_len to compute
95520         base length, not strlen; this means we cannot rely on memcpy
95521         to null-terminate.
95522
95523         * lib/same.c (STREQ): Remove.
95524         (same_name): Handle the case where the basename ends in trailing '/'.
95525
95526         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95527         a slash was stripped.  Do not strip the last slash after a
95528         file system prefix.
95529
95530 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95531
95532         * lib/Makefile.am (libfetish_a_SOURCES):
95533         Add strftime.c, since we now compile it on all hosts.
95534
95535         * lib/strftime.c (my_strftime):
95536         Define to nstrftime if emacs, but only if my_strftime is not defined.
95537         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95538         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95539         Add one more extra argument: a nanoseconds value.
95540         All uses changed.
95541         (ns): New macro.
95542         (my_strftime function): Add %N format.
95543         (emacs_strftimeu): Renamed from emacs_strftime,
95544         with extra ut argument.
95545
95546 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95547
95548         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95549
95550 2001-04-21  Jim Meyering  <meyering@lucent.com>
95551
95552         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95553         doesn't interfere.
95554
95555 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95556
95557         * m4/ftruncate.m4: Check for chsize.
95558         Link with ftruncate.o unconditionally if ftruncate is missing.
95559         This was required when cross-compiling to i586-mingw32msvc.
95560
95561 2001-04-08  Jim Meyering  <meyering@lucent.com>
95562
95563         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95564         recomputed; that's necessary when the offset spans a DST transition.
95565         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95566
95567 2001-04-02  Jim Meyering  <meyering@lucent.com>
95568
95569         * lib/regex.h, regex.c: Update from GNU libc.
95570
95571 2001-03-24  Jim Meyering  <meyering@lucent.com>
95572
95573         * m4/jm-macros.m4: Require autoconf-2.49d.
95574
95575 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95576
95577         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95578
95579 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95580
95581         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95582
95583 2001-03-17  Jim Meyering  <meyering@lucent.com>
95584
95585         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95586         now that the version in autoconf is equivalent.
95587         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95588
95589         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95590         Suggestion from Akim Demaille.
95591
95592         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95593         (jm_PREREQ_TEMPNAME): New function.
95594
95595 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95596
95597         * lib/tempname.c (uint64_t): Define to uintmax_t if
95598         not defined, and if UINT64_MAX is not defined.
95599         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95600         Reported by John David Anglin.
95601
95602 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
95603
95604         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
95605         resolve alias if codeset is empty.
95606         * lib/config.charset (BeOS): Use wildcard syntax.
95607
95608 2001-03-13  Jim Meyering  <meyering@lucent.com>
95609
95610         * lib/path-concat.c (path_concat)
95611         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
95612         concatenating e.g., `C:' and `foo'.
95613         From Bruno Haible.
95614
95615 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95616
95617         * lib/localcharset.c (locale_charset): Don't use
95618         setlocale(LC_CTYPE,NULL). Don't return NULL.
95619         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
95620
95621 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95622
95623         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
95624         support for DOS/DJGPP.
95625
95626 2001-03-01  Paul Eggert  <eggert@twinsun.com>
95627
95628         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
95629         lacks mkstemp.  Compile our own tempname.c if we compile our own
95630         mkstemp.c, as mkstemp relies on tempname.
95631
95632 2001-03-01  Jim Meyering  <meyering@lucent.com>
95633
95634         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
95635         AH_VERBATIM really does output its argument verbatim.
95636
95637 2001-02-28  Paul Eggert  <eggert@twinsun.com>
95638
95639         * lib/Makefile.am (libfetish_a_SOURCES):
95640         Add dup-safer.c, fopen-safer.c.
95641         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
95642
95643         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
95644         * lib/unistd-safer.h: New files.
95645
95646 2001-02-25  Paul Eggert  <eggert@twinsun.com>
95647
95648         The mkstemp replacement is taken from glibc 2.2.2, with some
95649         portability fixes for use outside glibc, as follows:
95650
95651         * lib/tempname.c (struct_stat64): New macro.
95652         (direxists, __gen_tempname): Use it.
95653         This avoids a portability problem with Solaris 8.
95654
95655         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
95656         (<stddef.h>, <stdint.h>, <string.h>):
95657         Include only if STDC_HEADERS || _LIBC.
95658         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
95659         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
95660         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
95661         (__set_errno): Define this macro if <errno.h> doesn't.
95662         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
95663         Define these macros if <stdio.h> doesn't.
95664         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
95665         Define these macros if <sys/stat.h>
95666         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
95667         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
95668         __xstat64): Define if not _LIBC.
95669         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
95670         (__gen_tempname): Invoke gettimeofday only if
95671         HAVE_GETTIMEOFDAY || _LIBC;
95672         otherwise, fall back on plain "time".
95673         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
95674
95675         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
95676
95677         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
95678
95679 2001-02-18  Paul Eggert  <eggert@twinsun.com>
95680
95681         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
95682
95683 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95684
95685         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
95686         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
95687         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
95688         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95689
95690 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95691
95692         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
95693         Remove workaround macros for hosts that have mbrtowc but not
95694         mbstate_t, as we now insist on proper declarations for both
95695         before using mbrtowc.
95696
95697 2001-02-17  Jim Meyering  <meyering@lucent.com>
95698
95699         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
95700         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
95701         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
95702         UnixWare 7.1.1.
95703
95704         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
95705         rather than AC_CACHE_VAL.
95706
95707 2001-02-17  Jim Meyering  <meyering@lucent.com>
95708
95709         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
95710         around included file name.
95711
95712         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
95713
95714         * lib/strftime.c: Update from GNU libc (the only changes were to
95715         comments).
95716
95717 2001-02-17  Jim Meyering  <meyering@lucent.com>
95718
95719         * lib/regex.c: Update from libc.
95720
95721 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
95722
95723         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
95724         clash.
95725
95726 2001-02-16  Paul Eggert  <eggert@twinsun.com>
95727
95728         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
95729         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
95730         Reported by Mark Hounschell via Paul Eggert.
95731
95732 2001-02-07  Jim Meyering  <meyering@lucent.com>
95733
95734         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
95735
95736 2001-02-05  Jim Meyering  <meyering@lucent.com>
95737
95738         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
95739         it includes the patch required for `large file' support with at least
95740         HP-UX's 10.20 /bin/cc.
95741
95742 2001-02-03  Jim Meyering  <meyering@lucent.com>
95743
95744         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
95745         AS_IF, now that it works once again (mysteriously).
95746         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95747
95748 2001-01-30  Jim Meyering  <meyering@lucent.com>
95749
95750         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
95751         * m4/chown.m4: Rename conftestchown to conftest.chown.
95752         * m4/rename.m4: s/conftestdir/conftest.d1/ and
95753         s/conftestdir2/conftest.d2/.
95754         * m4/utimes.m4: s/conftestdata/conftest.data/
95755         Inspired by Pavel Roskin's change in autoconf.
95756
95757 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
95758
95759         * lib/config.charset: Update for FreeBSD 4.2.
95760
95761 2001-01-27  Jim Meyering  <meyering@lucent.com>
95762
95763         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
95764         a use of AS_IF.
95765         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95766
95767 2001-01-26  Jim Meyering  <meyering@lucent.com>
95768
95769         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
95770         quotearg.c includes it.
95771
95772 2001-01-26  Jim Meyering  <meyering@lucent.com>
95773
95774         * lib/quotearg.c: Include stddef.h.
95775         * lib/quote.c: Include stddef.h.
95776         Reported by Axel Kittenberger.
95777
95778         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
95779         line in double quotes so that it evokes a better diagnostic.
95780         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
95781         Reported by Axel Kittenberger.
95782
95783 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
95784
95785         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
95786         as if it was a `charset'.
95787
95788 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95789
95790         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
95791         has const.
95792
95793 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95794
95795         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
95796         to avoid a warning.  Add back 'const' to inptr.
95797
95798 2001-01-20  Jim Meyering  <meyering@lucent.com>
95799
95800         Be sure that headers are checked before used in code compiled
95801         for the type checks.
95802         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
95803         In place of that, invoke jm_CHECK_ALL_TYPES.
95804         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
95805         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
95806         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
95807         The check for ssize_t was mistakenly run before the test for unistd.h.
95808
95809         The configure-time check for stdbool.h was missing.
95810         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
95811         (jm_PREREQ_HASH): New function.
95812
95813 2001-01-17  Jim Meyering  <meyering@lucent.com>
95814
95815         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
95816         for autoconf-2.49c.
95817         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
95818
95819 2001-01-16  Jim Meyering  <meyering@lucent.com>
95820
95821         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
95822         From Bruno Haible.
95823
95824 2001-01-14  Jim Meyering  <meyering@lucent.com>
95825
95826         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
95827         foo and bar.  Create conftestdir/ in the script, not in the C code.
95828         Remove directories in the script, not in the C code.
95829         Remove conftestdir{,2} before trying to create the directory.
95830         Make the entire configure script fail if the mkdir fails.
95831
95832 2001-01-14  Jim Meyering  <meyering@lucent.com>
95833
95834         * lib/rename.c: New file.  From Volker Borchert.
95835         Include stdlib.h, string.h or strings.h, and xalloc.h.
95836         Use strip_trailing_slashes rather than open-coding it.
95837
95838 2001-01-03  Paul Eggert  <eggert@twinsun.com>
95839
95840         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
95841
95842 2001-01-03  Jim Meyering  <meyering@lucent.com>
95843
95844         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
95845         of local `inptr' to avoid warning with some system declarations of
95846         iconv.
95847
95848 2001-01-02  Volker Borchert  <bt@teknon.de>
95849
95850         * m4/rename.m4: New file.
95851         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
95852
95853 2001-01-01  Jim Meyering  <meyering@lucent.com>
95854
95855         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
95856         even on systems with utmpx.h.  It's necessary for the declaration of
95857         utmp's ut_user member.  Reported by Andreas Jaeger.
95858
95859         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
95860         available. They are required for the declarations of getgrgid and
95861         getpwuid resp.
95862         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
95863         Reported by Andreas Jaeger.
95864
95865 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
95866
95867         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
95868         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
95869         so `make install' also works in VPATH builds.
95870
95871 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
95872
95873         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
95874         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
95875         can be used in subdirectories.
95876
95877 2000-12-29  Paul Eggert  <eggert@twinsun.com>
95878
95879         * lib/modechange.c: Do not assume that mode_t uses the
95880         traditional octal encoding.  E.g. "chmod 1 FOO" should set
95881         the other-execute bit of FOO even if S_IXOTH != 1.
95882
95883         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
95884         WOTH, XOTH, ALLM): New macros.
95885         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
95886          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
95887         Use them.
95888         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
95889         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
95890         (mode_compile):
95891         No need to use uintmax_t; unsigned long is long enough.
95892         Don't bother to get suffix since we don't use it.
95893
95894 2000-12-26  Jim Meyering  <meyering@lucent.com>
95895
95896         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
95897         better with autoheader.
95898
95899 2000-12-24  Jim Meyering  <meyering@lucent.com>
95900
95901         * lib/hash.c (is_prime): Return explicit boolean values.
95902         (hash_get_first): Return NULL to appease Irix5.6's 89.
95903         Reported by Nelson Beebe.
95904
95905 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
95906
95907         * lib/localcharset.c (locale_charset): Add support for Win32.
95908
95909 2000-12-18  Paul Eggert  <eggert@twinsun.com>
95910
95911         * lib/physmem.h, lib/physmem.c: New files.
95912
95913         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
95914         (noinst_HEADERS): Add physmem.h.
95915
95916         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
95917         't' for compatibility with Solaris 8 sort.
95918
95919 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
95920
95921         * lib/config.charset: Add support for BeOS.
95922
95923 2000-12-17  Jim Meyering  <meyering@lucent.com>
95924
95925         * m4/dos.m4 (jm_AC_DOS): New file and macro.
95926         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
95927
95928 2000-12-16  Jim Meyering  <meyering@lucent.com>
95929
95930         This bug had a serious impact on chown: `chown N:M FILE' (for integer
95931         N and M) would have treated it like `chown N:N FILE'.
95932
95933         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
95934
95935 2000-12-16  Jim Meyering  <meyering@lucent.com>
95936
95937         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
95938         SHELLS_FILE to a file name that's useful on djgpp systems.
95939         Include stdlib.h.
95940         (ADDITIONAL_DEFAULT_SHELLS): Define.
95941         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
95942         Based mostly on a patch from Prashant TR.
95943
95944 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
95945
95946         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
95947         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
95948         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
95949
95950 2000-12-08  Andreas Schwab  <schwab@suse.de>
95951
95952         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
95953         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
95954
95955 2000-12-07  Jim Meyering  <meyering@lucent.com>
95956
95957         * lib/stripslash.c (ISSLASH): Define.
95958         (strip_trailing_slashes): Use ISSLASH rather than comparing against
95959         `/'.
95960         From Prashant TR.
95961
95962         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
95963         (dir_name_r): Declare this function as static.
95964         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
95965         manifest itself on a name containing a mix of slashes and
95966         backslashes.
95967         Make this function work with names starting with a DOS-style
95968         drive letter and colon prefix.
95969         (dir_name): Append `.' if necessary.
95970         Based mostly on patches from Prashant TR and Eli Zaretskii.
95971
95972         * lib/dirname.h (dir_name_r): Remove prototype.
95973
95974 2000-12-06  Paul Eggert  <eggert@twinsun.com>
95975
95976         * m4/off_t-format.m4: Remove this file.
95977         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
95978
95979 2000-12-06  Jim Meyering  <meyering@lucent.com>
95980
95981         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
95982         replacement strtoull, we may well need the replacement strtoul, too.
95983         Check for declarations of strtoul and strtoull.
95984         Check for strtol.  Mainly as a cue to cause automake to include
95985         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
95986         Check for limits.h -- strtol.c needs it.
95987
95988 2000-12-05  Jim Meyering  <meyering@lucent.com>
95989
95990         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
95991
95992 2000-12-04  Jim Meyering  <meyering@lucent.com>
95993
95994         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
95995         Also include memory.h, stdlib.h, unistd.h if appropriate.
95996         Reported by Andreas Jaeger (conflicting declaration of malloc).
95997
95998 2000-12-02  Jim Meyering  <meyering@lucent.com>
95999
96000         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96001         * m4/jm-macros.m4 (jm_MACROS): require it.
96002
96003 2000-12-02  Jim Meyering  <meyering@lucent.com>
96004
96005         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96006
96007 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96008
96009         * lib/memrchr.c: Include <config.h> before any system include file.
96010
96011 2000-11-30  Jim Meyering  <meyering@lucent.com>
96012
96013         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96014
96015 2000-11-30  Jim Meyering  <meyering@lucent.com>
96016
96017         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96018
96019 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96020
96021         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96022
96023 2000-11-26  Jim Meyering  <meyering@lucent.com>
96024
96025         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96026
96027 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96028
96029         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96030         size of (size_t) -1; it's not portable.
96031
96032 2000-11-17  Jim Meyering  <meyering@lucent.com>
96033
96034         * lib/strstr.c: Update from GNU libc.
96035
96036 2000-11-17  Akim Demaille  <akim@epita.fr>
96037
96038         * lib/obstack.h: Formatting changes.
96039         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96040         prevent type checking.
96041         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96042         cast the value to (void *): assigning a `foo *' to a `void *'
96043         variable is valid.
96044         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96045
96046 2000-11-16  Jim Meyering  <meyering@lucent.com>
96047
96048         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96049
96050 2000-11-11  Jim Meyering  <meyering@lucent.com>
96051
96052         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96053
96054 2000-11-10  Jim Meyering  <meyering@lucent.com>
96055
96056         * lib/obstack.h: Update from GNU libc.
96057         * lib/obstack.c: Likewise.
96058
96059 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96060
96061         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96062
96063 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96064
96065         * lib/getusershell.c (setusershell): Use rewind rather than
96066         fseek/fseeko, to avoid configuration hassles with fseeko.
96067         Don't bother opening SHELLS_FILE if shellstream is NULL;
96068         it's not necessary.
96069
96070 2000-11-05  Jim Meyering  <meyering@lucent.com>
96071
96072         * lib/makepath.h (make_dir): Declare.
96073         * lib/makepath.c (make_dir): Remove `static' attribute.
96074         Tweak a comment.
96075
96076 2000-11-04  Jim Meyering  <meyering@lucent.com>
96077
96078         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96079
96080 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96081
96082         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96083         last one in a bucket, advance to the next bucket.
96084
96085 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96086
96087         * lib/fnmatch.c: Do not comment out all the code if we are using
96088         the GNU C library, because in some cases we are replacing buggy
96089         code in the GNU C library itself.
96090
96091 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96092
96093         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96094         (regex_compile): Catch bogus \(\1\).
96095
96096 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96097
96098         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96099         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96100         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96101
96102 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96103
96104         * lib/error.h, getline.h, modechange.h:
96105         Remove "2000" from Copyright line, as the file hasn't been
96106         changed this year other than in the copyright notice.
96107
96108         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96109         was changed this year.
96110
96111 2000-10-29  Jim Meyering  <meyering@lucent.com>
96112
96113         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96114         renaming.
96115         * m4/ls-mntd-fs.m4: Likewise
96116
96117 2000-10-29  Jim Meyering  <meyering@lucent.com>
96118
96119         * lib/xstat.in: Fix grammar in comment.
96120
96121 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96122
96123         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96124         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96125         doesn't define __restrict_arr.
96126
96127 2000-10-28  Jim Meyering  <meyering@lucent.com>
96128
96129         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96130         (jm_PREREQ_MEMCHR): New function.
96131
96132 2000-10-28  Jim Meyering  <meyering@lucent.com>
96133
96134         * lib/memchr.c: Update from libc.
96135         Adjust for portability:
96136         [HAVE_STDLIB_H]: Include stdlib.h.
96137         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96138         Undef __memchr, too.
96139         [!weak_alias]: Define __memchr to memchr.
96140
96141         * lib/regex.c: Update from libc.
96142         * lib/regex.h: Likewise.
96143         * lib/getopt1.c: Likewise.
96144         * lib/memcmp.c: Likewise.
96145
96146         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96147         Avoid using fseek, when possible -- it's broken by design.
96148         Patch by Ulrich Drepper.
96149
96150 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96151
96152         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96153         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96154         Giving in to popular pressure to shut up the compiler with casts.
96155
96156 2000-10-26  Jim Meyering  <meyering@lucent.com>
96157
96158         * lib/strftime.c: Update from libc.
96159
96160 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96161
96162         * regex.c: More `unsigned char' -> `re_char' changes.
96163         Also change several `int' into `re_wchar_t'.
96164         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96165         (PUSH_FAILURE_POINTER): Don't cast any more.
96166         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96167         We want GCC to complain, since this piece of code makes
96168         re_match non-reentrant, which *should* be fixed.
96169         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96170         (EXTEND_BUFFER): Use RETALLOC.
96171         (SET_LIST_BIT): Don't cast.
96172         (re_wchar_t): New type.
96173         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96174         that those two functions will always properly return.
96175         (IMMEDIATE_QUIT_CHECK): Cast to void.
96176         (analyse_first): Use recursion rather than an explicit stack.
96177         (re_compile_fastmap): Can't fail anymore.
96178         (re_search_2): Don't check re_compile_fastmap for failure.
96179         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96180         Now also sets the new value (passed in a new argument).
96181         (re_match_2_internal): Use it.
96182         Also, use a new var `reg' of type size_t when looping through regs
96183         rather than reuse the inappropriate `mcnt'.
96184
96185 2000-10-25  Jim Meyering  <meyering@lucent.com>
96186
96187         * lib/obstack.c: Update from libc.
96188
96189 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96190
96191         * regex.c (regex_compile): Change the way of handling a range from
96192         a char less than 256 to a char not less than 256.
96193
96194 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96195
96196         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96197         NT-Emacs only.
96198         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96199         so that re_search functions only quit when callers expect them to.
96200
96201 2000-10-23  Jim Meyering  <meyering@lucent.com>
96202
96203         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96204         wrong.  That set_locale call must not have any side effects.
96205         From Paul Eggert.
96206
96207 2000-10-22  Jim Meyering  <meyering@lucent.com>
96208
96209         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96210         [CYCLIC]: Remove now-unused definition.
96211
96212         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96213         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96214         Suggestion from Ulrich Drepper.
96215
96216 2000-10-21  Jim Meyering  <meyering@lucent.com>
96217
96218         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96219         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96220         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96221
96222 2000-10-21  Jim Meyering  <meyering@lucent.com>
96223
96224         * lib/dirname.c (memrchr): Declare if necessary.
96225         (dir_name): Remove the restriction that there be no
96226         trailing slashes.  Now, this code skips past them, effectively
96227         ignoring them.
96228         [TEST_DIRNAME] (main): New unit tests.
96229
96230         * lib/memrchr.c: New file from GNU libc.
96231         Undef __memrchr, too.
96232         [!weak_alias]: Define __memrchr to memrchr.
96233         Guard weak_alias use with `#ifdef weak_alias'.
96234
96235 2000-10-21  Jim Meyering  <meyering@lucent.com>
96236
96237         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96238         (dir_name): Use dir_name_r.
96239         * lib/dirname.h (dir_name_r): Declare it.
96240
96241 2000-10-17  Jim Meyering  <meyering@lucent.com>
96242
96243         * lib/quote.h (PARAMS): Define and use.
96244         Reported by Akim Demaille.
96245
96246         * lib/getopt.c: Update from libc.
96247
96248 2000-10-16  Jim Meyering  <meyering@lucent.com>
96249
96250         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96251         setlocale.
96252         From Jan Fedak.
96253
96254 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96255
96256         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96257
96258 2000-09-25  Jim Meyering  <meyering@lucent.com>
96259
96260         * lib/md5.h (rol): Define (from GnuPG).
96261
96262         * lib/sha.c: Give credit (GnuPG) where due.
96263         (M): Use rol rather than open-coding it.
96264         Add a FIXME comment.
96265
96266 2000-09-21  Jim Meyering  <meyering@lucent.com>
96267
96268         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96269         Reported by Michael Stone.
96270
96271 2000-09-20  Jim Meyering  <meyering@lucent.com>
96272
96273         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96274         (noinst_HEADERS): Add sha.h.
96275         Based on code from Scott G. Miller and from GnuPG.
96276
96277 2000-09-18  Jim Meyering  <meyering@lucent.com>
96278
96279         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96280         LIBS. Otherwise, everyone ends up linking with -lelf for some
96281         configurations.
96282         Reported by Mike Stone.
96283
96284 2000-09-15  Jim Meyering  <meyering@lucent.com>
96285
96286         * lib/regex.c: Update from libc.
96287
96288 2000-09-10  Jim Meyering  <meyering@lucent.com>
96289
96290         * lib/getopt.c (_getopt_internal): Update from glibc.
96291
96292 2000-09-09  Jim Meyering  <meyering@lucent.com>
96293
96294         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96295         think it should be used as a general replacement for isascii.
96296         * lib/fnmatch.c: Likewise.
96297         * lib/mbswidth.c: Likewise
96298         * lib/regex.c: Likewise.
96299
96300         Don't use atoi.
96301         * lib/userspec.c: Include sys/param.h and limits.h.
96302         Include xstrtol.h.
96303         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96304         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96305         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96306         UID, GID.  Check range.
96307
96308 2000-09-06  Jim Meyering  <meyering@lucent.com>
96309
96310         * lib/getopt.c (_getopt_internal): Update from glibc.
96311
96312 2000-08-30  Jim Meyering  <meyering@lucent.com>
96313
96314         * lib/strftime.c: Merge in changes from GNU libc.
96315
96316 2000-08-26  Jim Meyering  <meyering@lucent.com>
96317
96318         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96319         * m4/fpending.m4: New file.
96320
96321 2000-08-26  Jim Meyering  <meyering@lucent.com>
96322
96323         * lib/closeout.c: Include "__fpending.h".
96324         (close_stdout_status): Return right away if there's nothing to flush.
96325
96326         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96327         * lib/__fpending.c: New file.
96328         * lib/__fpending.h: New file.
96329
96330 2000-08-20  Jim Meyering  <meyering@lucent.com>
96331
96332         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96333         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96334         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96335
96336 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96337
96338         Improve fileutils installation on systems where running
96339         programs (like install) can't be unlinked.
96340         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96341         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96342
96343 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96344
96345         Standardize on "memory exhausted" instead of "Memory exhausted"
96346         or "virtual memory exhausted".
96347         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96348         "virtual memory exhausted".
96349         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96350         our own message.
96351         * lib/userspec.c (parse_user_spec): Likewise.
96352         * lib/bumpalloc.h: comment fix
96353         * lib/same.c, userspec.c: Include xalloc.h.
96354
96355         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96356         not char *const and pointing to a constant array.
96357         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96358         (xrealloc): Comment fix.
96359
96360         * lib/userspec.c (parse_user_spec):
96361         Don't translate a message until just before returning,
96362         to avoid unnecessary translation.
96363
96364 2000-08-07  Jim Meyering  <meyering@lucent.com>
96365
96366         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96367         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96368         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96369         getgroups.c, gethostname.c, getopt.h, group-member.c,
96370         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96371         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96372         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96373         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96374         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96375         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96376         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96377         yesno.c: Back out Copyright date changes for each file with no change
96378         this year.  This eases coordination with other programs using the same
96379         source code modules.  From Paul Eggert.
96380
96381 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96382
96383         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96384         not char, for compatibility with glibc 2.1.3 strftime.c.
96385
96386 2000-08-03  Greg McGary  <greg@mcgary.org>
96387
96388         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96389         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96390         (EXTEND_BUFFER): Use them.
96391
96392 2000-08-01  Jim Meyering  <meyering@lucent.com>
96393
96394         * lib/dirname.c (ISSLASH): Define.
96395         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96396         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96397         both `\' and `/' may be use as path separators.
96398         Based on a patch from Prashant TR.
96399
96400 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96401
96402         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96403         slot vector a constant, since it might get modified.
96404
96405 2000-07-31  Jim Meyering  <meyering@lucent.com>
96406
96407         * lib/xmalloc.c: Use `virtual memory exhausted', not
96408         `Memory exhausted'.
96409         * lib/obstack.c (print_and_abort): Likewise.
96410
96411 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96412
96413         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96414         buffer, so that the caller can always quote one small
96415         component of a "memory exhausted" message in slot 0.
96416         From a suggestion by Jim Meyering.
96417
96418 2000-07-30  Jim Meyering  <meyering@lucent.com>
96419
96420         * lib/makepath.c (make_path): Quote the other instance, too.
96421
96422         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96423         (STATIC_BUF_SIZE): Define.
96424         (quotearg_n_options): Use only statically allocated storage when
96425         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96426         than STATIC_BUF_SIZE.
96427
96428 2000-07-29  Jim Meyering  <meyering@lucent.com>
96429
96430         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96431         * lib/dirname.c (dir_name): Likewise.
96432
96433         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96434         `/'.
96435
96436         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96437         (dir_name): Assert that there are no trailing slashes.
96438
96439 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96440
96441         * lib/mbswidth.h (mbswidth): Add a flags argument.
96442         (mbswidth): New declaration.
96443         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96444         * lib/mbswidth.c (mbswidth): Add a flags argument.
96445         (mbsnwidth): New function.
96446
96447 2000-07-24  Jim Meyering  <meyering@lucent.com>
96448
96449         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96450
96451 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96452
96453         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96454
96455 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96456
96457         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96458         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96459         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96460         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96461         invoke multibyte primitives.
96462
96463 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96464
96465         * lib/quotearg.c:
96466         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96467         so that mbstate_t is always defined.
96468
96469         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96470         be 1 in at least one GCC installation, and this configuration
96471         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96472         performance on hosts that have mbrtowc but have only unibyte
96473         locales, but I assume these hosts are rare.
96474
96475 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96476
96477         * lib/mbswidth.c (_XOPEN_SOURCE):
96478         Don't define; this causes problems on Solaris 7.
96479         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96480
96481 2000-07-23  Jim Meyering  <meyering@lucent.com>
96482
96483         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96484         too: getgrgid, getpwuid, getuid.
96485
96486 2000-07-23  Jim Meyering  <meyering@lucent.com>
96487
96488         * lib/basename.c (base_name): Add an assertion.
96489
96490 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96491
96492         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96493         shadow its mbsinit function.
96494
96495 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96496
96497         * lib/mbswidth.h: New file.
96498         * lib/mbswidth.c: New file.
96499         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96500         (noinst_HEADERS): Add mbswidth.h.
96501
96502 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96503
96504         * lib/config.charset: Add support for FreeBSD. Improve support for
96505         HP-UX and IRIX 6.
96506
96507 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96508
96509         * m4/mbswidth.m4: New file.
96510         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96511
96512 2000-07-15  Jim Meyering  <meyering@lucent.com>
96513
96514         * lib/makepath.c: Include quote.h.
96515         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96516         corresponding argument in a `quote (...)' call.
96517         Give better diagnostics.
96518
96519         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96520         (noinst_HEADERS): Add quote.h.
96521
96522         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96523         from tar's src/misc.c.
96524         * lib/quote.h: New file.  Prototypes for same.
96525
96526 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96527
96528         From a suggestion by Bruno Haible.
96529         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96530         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96531         to decide whether to define the BeOS workaround macro;
96532         this adjusts to the change to AC_MBSTATE_T.
96533
96534 2000-07-14  Jim Meyering  <meyering@lucent.com>
96535
96536         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96537         jm_AC_TYPE_UINTMAX_T.
96538
96539 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96540
96541         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96542
96543         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96544         quotearg_buffer_restyled): Add support for
96545         clocale_quoting_style.  Undo previous change to
96546         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96547         and "{RIGHT QUOTATION MARK}" msgids.
96548
96549 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96550
96551         From a suggestion by Bruno Haible.
96552         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96553         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96554         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96555         and mbstate_t, to a single-part test that simply defines mbstate_t.
96556         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96557         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96558
96559 2000-07-10  Jim Meyering  <meyering@lucent.com>
96560
96561         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96562
96563         * m4/gnu-source.m4: Output to confdefs.h directly.
96564         Suggestion from Akim Demaille.
96565
96566 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96567
96568         The old behavior of quoting `like this' doesn't look good with
96569         newer, ISO-style fonts.  See:
96570         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96571
96572         Instead, quote "like this" by default.  Let the translator
96573         tailor the locale-specific quoting behavior by providing
96574         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96575
96576         * lib/quotearg.c (N_): New macro.
96577         (gettext_default): New function.
96578         (quotearg_buffer_restyled): Use
96579         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96580         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96581
96582 2000-07-09  Jim Meyering  <meyering@lucent.com>
96583
96584         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96585         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96586
96587         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96588         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96589
96590 2000-07-09  Jim Meyering  <meyering@lucent.com>
96591
96592         * lib/Most files: Update copyright dates to include 2000.
96593
96594 2000-07-08  Jim Meyering  <meyering@lucent.com>
96595
96596         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96597         if not defined.
96598         (xgethostname): Remove now-unnecessary #ifdef.
96599         Move declaration of `err' into loop where it's used.
96600
96601 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96602         and Bruno Haible  <haible@clisp.cons.org>
96603
96604         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
96605         only if the test for an object-type mbstate_t fails.  This
96606         prevents us from mistakenly reporting that mbstate_t is a
96607         system object type after we "#define mbstate_t int" to work
96608         around its lack.
96609
96610 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96611         and Bruno Haible  <haible@clisp.cons.org>
96612
96613         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
96614
96615 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96616
96617         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
96618         to strerror_r.
96619         Include <ctype.h> for use of isalpha.
96620
96621 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96622
96623         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
96624         by allocating a larger buffer. Test the gethostname return value for
96625         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
96626         returns an error and ENAMETOOLONG isn't defined.
96627
96628 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96629
96630         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
96631         dimension.
96632
96633 2000-07-04  Jim Meyering  <meyering@lucent.com>
96634
96635         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
96636         of the deprecated AC_CHECKING.
96637
96638 2000-07-04  Jim Meyering  <meyering@lucent.com>
96639
96640         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
96641         Reported by Bruno Haible.
96642
96643 2000-07-04  Jim Meyering  <meyering@lucent.com>
96644
96645         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
96646         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
96647         lacks mbrtowc.
96648
96649 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96650
96651         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
96652         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
96653
96654 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96655         and Bruno Haible  <haible@clisp.cons.org>
96656
96657         * lib/quotearg.c (mbrtowc):
96658         Assign to *pwc, and return 1 only if result is nonzero.
96659         (iswprint): Use ISPRINT when substituting our own mbrtowc.
96660
96661 2000-07-03  Jim Meyering  <meyering@lucent.com>
96662
96663         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
96664
96665 2000-07-03  Jim Meyering  <meyering@lucent.com>
96666
96667         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
96668         This is necessary to get a definition of e.g., UTMP_FILE on
96669         HP-UX 10.20.
96670         From Bob Proulx.
96671
96672 2000-07-02  Jim Meyering  <meyering@lucent.com>
96673
96674         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
96675
96676         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
96677         AC_LIBOBJ(function_name).
96678         * m4/chown.m4: Likewise.
96679         * m4/fnmatch.m4: Likewise.
96680         * m4/ftruncate.m4: Likewise.
96681         * m4/getgroups.m4: Likewise.
96682         * m4/getline.m4: Likewise.
96683         * m4/group-member.m4: Likewise.
96684         * m4/jm-macros.m4: Likewise.
96685         * m4/lstat.m4: Likewise.
96686         * m4/malloc.m4: Likewise.
96687         * m4/memcmp.m4: Likewise.
96688         * m4/nanosleep.m4: Likewise.
96689         * m4/putenv.m4: Likewise.
96690         * m4/realloc.m4: Likewise.
96691         * m4/regex.m4: Likewise.
96692         * m4/stat.m4: Likewise.
96693         * m4/strftime.m4: Likewise.
96694
96695 2000-07-02  Jim Meyering  <meyering@lucent.com>
96696
96697         * lib/quotearg.c (mbstate_t): Don't define here.
96698
96699 2000-07-02  Jim Meyering  <meyering@lucent.com>
96700
96701         * lib/nanosleep.c (SIGCONT): Define if not already defined.
96702
96703 2000-07-01  Jim Meyering  <meyering@lucent.com>
96704
96705         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
96706
96707 2000-07-01  Jim Meyering  <meyering@lucent.com>
96708
96709         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
96710         problem.
96711
96712 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96713
96714         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
96715         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
96716
96717 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96718
96719         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
96720         per change in ../m4/ls-mntd-fs.m4.
96721         (read_filesystem_list): Ignore symbolic links.
96722
96723 2000-06-29  Jim Meyering  <meyering@lucent.com>
96724
96725         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
96726         for declaration of strcmp.
96727
96728         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
96729
96730         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
96731         Avoid warning by casting result to `char *' to remove `const'.
96732
96733 2000-06-28  Jim Meyering  <meyering@lucent.com>
96734
96735         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
96736         included by quotearg.c, for which we perform this test.  From
96737         Bruno Haible.
96738
96739 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96740
96741         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
96742         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
96743         <utmpx.h> exists, put readutmp.o into LIBOBJS.
96744
96745 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96746
96747         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
96748
96749 2000-06-26  Paul Eggert  <eggert@twinsun.com>
96750
96751         savedir now sets errno on failure and invokes xmalloc to get memory.
96752         Fix a couple of other minor bugs while we're at it.
96753
96754         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
96755         (NAMLEN): Remove macro.
96756         (malloc, realloc): Remove decls.
96757         (stpcpy): Likewise.
96758         ("xalloc.h"): Include.
96759         (NAME_SIZE_DEFAULT): New macro.
96760         (savedir): Use xmalloc / xrealloc to allocate memory.
96761         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
96762         Skip "" directory entries.
96763         Use strlen to calculate directory entry length, since the old method
96764         is rarely used these days and isn't worth supporting.
96765         Don't use a pointer after freeing it.
96766         Check for integer overflow when calculating allocation size.
96767         Use memcpy to copy entries, instead of stpcpy.
96768         Set errno properly when returning NULL.
96769         Check for readdir error.
96770
96771 2000-06-26  Jim Meyering  <meyering@lucent.com>
96772
96773         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
96774
96775 2000-06-25  Jim Meyering  <meyering@lucent.com>
96776
96777         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
96778         Linux header bug when _XOPEN_SOURCE is defined to 500.
96779
96780 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96781
96782         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
96783         deficiency.
96784
96785 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96786
96787         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
96788         Include xalloc.h.
96789         Don't include <stdlib.h>.  Don't declare malloc, realloc.
96790
96791 2000-06-24  Jim Meyering  <meyering@lucent.com>
96792
96793         * m4/strerror_r.m4: Revive this file -- to try out an experimental
96794         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
96795         for which strerror does return char*, but which lacks a conveniently
96796         accessible declaration of the function.  If the compile-test says
96797         strerror_r doesn't work, then resort to a `run'-test that works on
96798         BeOS and segfaults on DEC Unix.
96799
96800 2000-06-24  Jim Meyering  <meyering@lucent.com>
96801
96802         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
96803
96804 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96805
96806         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
96807         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
96808
96809 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96810
96811         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
96812         (mbrtowc, mbstate_t): Define substitutes if
96813         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
96814         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
96815         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
96816
96817 2000-06-23  Jim Meyering  <meyering@lucent.com>
96818
96819         * m4/afs.m4: Add missing AC_MSG_RESULT.
96820         Reported by Bruno Haible.
96821
96822         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
96823         Suggestion from Bruno Haible.
96824
96825 2000-06-23  Jim Meyering  <meyering@lucent.com>
96826
96827         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
96828
96829 2000-06-21  Jim Meyering  <meyering@lucent.com>
96830
96831         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
96832
96833 2000-06-21  Jim Meyering  <meyering@lucent.com>
96834
96835         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
96836         (noinst_HEADERS): Add getstr.h.
96837
96838         * lib/getline.c (getstr): Move into a separate file.
96839         * lib/getstr.c (getstr): New file, extracted from getline.c, with
96840         the following changes: new parameter, delim2; both delim[12]
96841         parameters have type `int', not `char'.  The latter would lose
96842         with 8-bit delimiters.
96843         * lib/getstr.h: New file.
96844
96845 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96846
96847         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
96848         than 1024, return a memory chunk of least possible size, instead
96849         of size PATH_MAX + 2. In the loop, increment the size proportionally.
96850         Use free/xmalloc instead of xrealloc to avoid copying for very long
96851         paths.
96852
96853 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96854
96855         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
96856         the empty string.
96857
96858 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96859
96860         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
96861         address, not strdup.  Include <stdlib.h> and don't declare free().
96862
96863 2000-06-19  Jim Meyering  <meyering@lucent.com>
96864
96865         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
96866
96867 2000-06-18  Jim Meyering  <meyering@lucent.com>
96868
96869         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
96870
96871         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
96872         `checking whether...' message to be consistent with that of the
96873         lstat test.
96874
96875 2000-06-18  Jim Meyering  <meyering@lucent.com>
96876
96877         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
96878         Besides, these days every porting target provides a mkdir function.
96879
96880         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
96881         needed. (this snippet comes from src/system.h).
96882
96883 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
96884
96885         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
96886
96887 2000-06-15  Paul Eggert  <eggert@twinsun.com>
96888
96889         * lib/human.c (adjust_value): New function.
96890         (human_readable_inexact): Apply rounding style even when
96891         printing approximate values.
96892
96893 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96894
96895         * lib/human.c (human_readable_inexact): Allow an input block
96896         size that is not a multiple of the output block size, and vice versa.
96897         Reported by Piergiorgio Sartor.
96898
96899 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96900
96901         * lib/getdate.y (get_date): Apply relative times after time
96902         zone indicator, not before.  Reported by Todd A. Jacobs.
96903
96904 2000-06-13  Jim Meyering  <meyering@lucent.com>
96905
96906         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
96907
96908         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
96909
96910 2000-06-12  Paul Eggert  <eggert@twinsun.com>
96911
96912         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
96913
96914 2000-06-12  Jim Meyering  <meyering@lucent.com>
96915
96916         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
96917         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
96918         optional argument.
96919         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
96920         the optional argument, `lib'.
96921
96922 2000-06-08  Jim Meyering  <meyering@lucent.com>
96923
96924         * m4/largefile.m4: Remove file (now that it's part of autoconf).
96925
96926 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96927
96928         Rewrite largefile configuration so that we don't need to run
96929         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
96930         AC_CANONICAL_HOST in configure.in -- jmm]
96931
96932         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
96933         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
96934         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
96935         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
96936         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
96937         All uses changed.
96938         Instead of inspecting the output of getconf, try to compile the
96939         test program without and with the macro definition.
96940         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
96941         for getconf.  Instead, check for the needed flags by compiling
96942         test programs.
96943
96944 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96945
96946         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
96947
96948 2000-06-04  Jim Meyering  <meyering@lucent.com>
96949
96950         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
96951         SunOS 4.1.4 for which gid_t is an unsigned type.
96952
96953 2000-06-03  Jim Meyering  <meyering@lucent.com>
96954
96955         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
96956         now that autoconf requires that.
96957
96958         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
96959         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
96960         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
96961
96962 2000-06-03  Jim Meyering  <meyering@lucent.com>
96963
96964         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
96965
96966 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96967
96968         * m4/glibc21.m4: New file.
96969         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
96970
96971 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96972
96973         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
96974         newer, don't install charset.alias.
96975         * lib/config.charset: Change the Linux/glibc rules so they become empty
96976         on glibc-2.1 or newer.
96977
96978 2000-06-02  Jim Meyering  <meyering@lucent.com>
96979
96980         * lib/mountlist.c: Back out last change.  Instead, do this...
96981         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
96982         me_dummy member using the same `ignore'-testing code.
96983         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
96984         fs_type strings.
96985         From Mark D. Roth.
96986
96987 2000-05-29  Jim Meyering  <meyering@lucent.com>
96988
96989         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
96990         mounts with the `ignore' attribute.  Based on a patch from
96991         Mark D. Roth.
96992
96993 2000-05-28  Jim Meyering  <meyering@lucent.com>
96994
96995         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
96996         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96997         * m4/stat.m4: Likewise.
96998         * m4/lstat.m4: Likewise.
96999         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97000
97001         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97002         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97003
97004 2000-05-26  Jim Meyering  <meyering@lucent.com>
97005
97006         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97007
97008 2000-05-24  Jim Meyering  <meyering@lucent.com>
97009
97010         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97011         autoconf requires that.
97012         * m4/lib-check.m4: Likewise.
97013         * m4/jm-macros.m4: Likewise.
97014         * m4/strftime.m4: Likewise.
97015
97016         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97017         AC_CHECK_DECLS, now that autoconf requires that.
97018
97019 2000-05-22  Jim Meyering  <meyering@lucent.com>
97020
97021         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97022         * m4/lstat.m4: Likewise.
97023
97024 2000-05-22  Jim Meyering  <meyering@lucent.com>
97025
97026         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97027
97028 2000-05-20  Jim Meyering  <meyering@lucent.com>
97029
97030         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97031         (jm_PREREQ): Use it.
97032
97033 2000-05-18  Jim Meyering  <meyering@lucent.com>
97034
97035         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97036         back, too, since it may have been modified by allocate_entry.
97037         (hash_delete): Rewrite to use neither the assignment operator
97038         nor the comma operator in an if-expression.
97039
97040 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97041
97042         * lib/closeout.c:
97043         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97044         Remove; no longer needed.
97045         "quotearg.h": Add include.
97046         (file_name): Do not bother to explicitly initialize to NULL; it's less
97047         efficient on some hosts.
97048         (close_stdout_status): Remove test as to whether stdout was already
97049         closed; it breaks for the case "echo x | sort >&-".
97050         Quote file name colons.
97051         Do not assume that _("write error") lacks format strings.
97052
97053 2000-05-15  Jim Meyering  <meyering@lucent.com>
97054
97055         * lib/version-etc.c (version_etc_copyright): Update the copyright
97056         string used in all --version output.
97057
97058 2000-05-14  Jim Meyering  <meyering@lucent.com>
97059
97060         * lib/closeout.c (close_stdout_set_file_name): New function.
97061         (close_stdout_status): Use new file-scoped global.
97062         Return right away if fstat says the stdout file descriptor is invalid.
97063         * lib/closeout.h (close_stdout_set_file_name): Declare.
97064
97065 2000-05-10  Jim Meyering  <meyering@lucent.com>
97066
97067         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97068         (close_stdout_set_status): New function.
97069         * lib/closeout.h (close_stdout_set_status): Declare.
97070
97071 2000-05-09  Jim Meyering  <meyering@lucent.com>
97072
97073         * m4/gettext.m4: Rename this...
97074         * m4/libintl.m4: ...to this.
97075
97076 2000-05-08  Jim Meyering  <meyering@lucent.com>
97077
97078         * lib/long-options.c: Don't include closeout.h.
97079         (parse_long_options): Don't call close_stdout for --version.
97080
97081 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97082
97083         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97084         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97085         2.1.3 bug.  This avoids a clash when files like regex.c define
97086         _GNU_SOURCE.
97087
97088 2000-05-06  Jim Meyering  <meyering@lucent.com>
97089
97090         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97091         (AC_REPLACE_FUNCS): Add strnlen.
97092
97093         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97094         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97095
97096         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97097         AC_SEARCH_LIBS call for nanosleep.
97098         (LIB_NANOSLEEP): Set and AC_SUBST.
97099
97100 2000-05-06  Jim Meyering  <meyering@lucent.com>
97101
97102         * lib/strnlen.c: Undefine __strnlen and strnlen.
97103         [!weak_alias]: Define __strnlen to strnlen.
97104
97105         * lib/atexit.c: New file, from libiberty.
97106
97107 2000-05-06  Jim Meyering  <meyering@lucent.com>
97108
97109         * lib/closeout.c (close_stdout_status): Also check for errors on the
97110         stderr stream.
97111
97112 2000-05-05  Jim Meyering  <meyering@lucent.com>
97113
97114         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97115         AC_SEARCH_LIBS call for clock_gettime.
97116         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97117
97118         * m4/search-libs.m4: Update from autoconf.
97119
97120         su doesn't work on Solaris 2.6.
97121         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97122         <shadow.h>.  Reported by Dragos Harabor.
97123
97124 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97125
97126         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97127         memcpy instead of xmalloc, xrealloc, path_concat.
97128         (locale_charset): Treat empty environment variables as absent.
97129         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97130
97131 2000-05-04  Jim Meyering  <meyering@lucent.com>
97132
97133         * lib/getopt.c: Update from glibc.
97134         * lib/obstack.c: Likewise.
97135         * lib/obstack.h: Likewise.
97136         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97137         file
97138
97139         * lib/regex.h: Likewise.
97140         * lib/strndup.c: Likewise.
97141         * lib/strnlen.c: New file, from glibc.
97142
97143 2000-05-03  Jim Meyering  <meyering@lucent.com>
97144
97145         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97146
97147 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97148
97149         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97150         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97151         compile-time test, rather than inspecting host and OS, to
97152         decide whether to define _LARGEFILE_SOURCE.
97153
97154 2000-05-01  Jim Meyering  <meyering@lucent.com>
97155
97156         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97157
97158         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97159         Based on a patch from Bruno Haible.
97160
97161 2000-05-01  Jim Meyering  <meyering@lucent.com>
97162
97163         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97164
97165 2000-04-29  Jim Meyering  <meyering@lucent.com>
97166
97167         * lib/path-concat.c: Declare strdup only if it's not defined.
97168         * lib/canon-host.c: Likewise.
97169
97170 2000-04-28  Jim Meyering  <meyering@lucent.com>
97171
97172         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97173         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97174         is included first, then limits.h is included by locale.h by libintl.h.
97175         From John David Anglin.
97176
97177 2000-04-25  Jim Meyering  <meyering@lucent.com>
97178
97179         * lib/makepath.c (S_IRWXUGO): Define.
97180         (make_path): Always perform explicit chmod if MODE specifies any
97181         of the `special' permission bits.  Prompted by a bug report against
97182         install from Mate Wierdl and Joost van Baal.
97183
97184 2000-04-18  Jim Meyering  <meyering@lucent.com>
97185
97186         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97187         (jm_PREREQ): Use it.
97188
97189 2000-04-18  Jim Meyering  <meyering@lucent.com>
97190
97191         * lib/README: New file.
97192
97193         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97194         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97195
97196 2000-04-17  Jim Meyering  <meyering@lucent.com>
97197
97198         Get it right :-)
97199         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97200         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97201         Suggestion from Akim Demaille.
97202
97203 2000-04-17  Jim Meyering  <meyering@lucent.com>
97204
97205         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97206         the definition of it to rpl_strftime also defined-away the system's
97207         declaration.
97208
97209 2000-04-15  Jim Meyering  <meyering@lucent.com>
97210
97211         Use `C' to denote so-called `contiguous' files, the same way
97212         that tar does.
97213         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97214         (ftypelet): Use S_ISCTG.
97215         From Michael Deutschmann.
97216
97217 2000-04-14  Jim Meyering  <meyering@lucent.com>
97218
97219         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97220         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97221         clobbered.
97222
97223 2000-04-14  Jim Meyering  <meyering@lucent.com>
97224
97225         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97226
97227 2000-04-13  Jim Meyering  <meyering@lucent.com>
97228
97229         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97230         AH_VERBATIM to insert required #ifndef into config.h.in.
97231         Suggestion from Akim Demaille.
97232
97233 2000-04-12  Jim Meyering  <meyering@lucent.com>
97234
97235         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97236         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97237         Christian Krackowizer.
97238
97239         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97240         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97241         (AC_SYS_LARGEFILE): Require.
97242         (AM_C_PROTOTYPES): Require.
97243
97244 2000-04-08  Jim Meyering  <meyering@lucent.com>
97245
97246         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97247         names don't conflict.  Reported by Eli Zaretskii.
97248
97249 2000-04-07  Jim Meyering  <meyering@lucent.com>
97250
97251         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97252         sys/types.h, to work around system header problems on AIX 3.2.5.
97253         From Bruno Haible.
97254
97255 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97256
97257         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97258         bug.  Deal with the different error behavior of Irix iconv.
97259
97260 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97261
97262         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97263         IRIX if the installer said otherwise.
97264
97265 2000-04-05  Jim Meyering  <meyering@lucent.com>
97266
97267         Portability tweaks required for ultrix4.3.
97268         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97269         (jm_CHECK_DECLS): Add getutent to the list of functions.
97270         (_jm_DECL_HEADERS): Add utmpx.h.
97271         From John David Anglin.
97272
97273         * m4/strftime.m4: Back out the 2000-04-02 change.
97274         Instead of that change, simply undefine putenv in the test program.
97275
97276 2000-04-05  Jim Meyering  <meyering@lucent.com>
97277
97278         Portability tweaks required for ultrix4.3.
97279         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97280         getutent.
97281         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97282         * lib/canon-host.c: Declare strdup.
97283         * lib/path-concat.c: Likewise.
97284         From John David Anglin.
97285
97286 2000-04-04  Jim Meyering  <meyering@lucent.com>
97287
97288         Be more DOS 8.3-friendly.
97289         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97290         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97291         * lib/Makefile.am: Reflect renaming.
97292         Reported by Eli Zaretskii.
97293
97294         Use a temporary file name that won't clash with `charset.alias'
97295         in the DOS 8.3 name space.
97296         * lib/Makefile.am (charset_tmp): Define.
97297         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97298         (uninstall-local): Likewise.
97299         Reported by Eli Zaretskii.
97300
97301 2000-04-03  Jim Meyering  <meyering@lucent.com>
97302
97303         * m4/gettext.m4: Fix typo in comment.
97304
97305         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97306         textutils/configure.in).  Suggestion from Paul Eggert.
97307         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97308
97309 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97310
97311         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97312         variable in the shell rather than using putenv, which isn't
97313         portable.  This avoids the configure-time inter-test dependency
97314         on the potentially-renamed putenv function.
97315
97316 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97317
97318         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97319         before checking struct stat.st_blksize, so that
97320         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97321
97322 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97323
97324         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97325         since strftime.c uses HAVE_STRFTIME to decide whether to use
97326         the underlying strftime.
97327
97328 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97329
97330         * lib/time/strftime.c (my_strftime): Make sure we call the system
97331         strftime, not ourselves, when invoking the underlying strftime.
97332
97333 2000-03-24  Jim Meyering  <meyering@lucent.com>
97334
97335         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97336         (charset_alias): Define.
97337         (install-exec-local): Factor out common code.
97338         (uninstall-local): Split lines longer than 80.
97339         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97340         (SUFFIXES): Define.
97341         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97342         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97343
97344 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97345
97346         * lib/config.charset: Output a line containing "Packages using this
97347         file".
97348         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97349         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97350         ref-del.sed): New rules.
97351
97352 2000-03-17  Jim Meyering  <meyering@lucent.com>
97353
97354         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97355         Otherwise, include <strings.h>
97356
97357 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97358
97359         * lib/unicodeio.c (utf8_wctomb): New function.
97360         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97361         format instead of in UCS-4 with platform dependent endianness.
97362
97363 2000-03-10  Jim Meyering  <meyering@lucent.com>
97364
97365         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97366         From Marco Franzen.
97367
97368 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97369
97370         * lib/savedir.c (savedir): Work even if directory size is
97371         negative; this can happen with some screwy NFS configurations.
97372
97373 2000-03-06  Jim Meyering  <meyering@lucent.com>
97374
97375         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97376         if it's NULL (because we ran out of memory).  From Bruno Haible.
97377
97378 2000-03-05  Jim Meyering  <meyering@lucent.com>
97379
97380         * lib/localcharset.c ("path-concat.h"): Include.
97381         (get_charset_aliases): Use path_concat instead of ANSI string
97382         concatenation.
97383
97384         * lib/unicodeio.h (PARAMS): Define.
97385         Use it to guard prototype.
97386
97387 2000-03-04  Jim Meyering  <meyering@lucent.com>
97388
97389         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97390         for lib/localcharset.c.
97391
97392 2000-03-04  Jim Meyering  <meyering@lucent.com>
97393
97394         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97395         installing into it.
97396         (uninstall-local): Uncomment this rule so `make distcheck' works
97397         once again.
97398
97399         * lib/unicodeio.c (<errno.h>): Include it.
97400         (errno): Declare if not defined.
97401
97402         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97403
97404         * lib/config.charset: New version, incorporating remarks from a linux
97405         i18n mailing list.  From Bruno Haible.
97406
97407 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97408
97409         * m4/codeset.m4: New file.
97410         * m4/iconv.m4: New file.
97411         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97412
97413 2000-03-03  Jim Meyering  <meyering@lucent.com>
97414
97415         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97416
97417 2000-03-02  Jim Meyering  <meyering@lucent.com>
97418
97419         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97420         the messages come out on separate lines.
97421
97422         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97423         rather than jm_CHECK_DECLARATIONS.
97424         * m4/decl.m4: Remove now-unused file.
97425
97426         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97427         geteuid.
97428
97429 2000-03-02  Jim Meyering  <meyering@lucent.com>
97430
97431         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97432
97433 2000-03-01  Jim Meyering  <meyering@lucent.com>
97434
97435         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97436         * lib/unicodeio.c: Likewise.
97437
97438 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97439
97440         * lib/config.charset: New file.
97441         * lib/localcharset.c: New file.
97442         * lib/unicodeio.h, lib/unicodeio.c: New files.
97443         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97444         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97445         (noinst_HEADERS): Add unicodeio.h.
97446         (all-local, install-exec-local, charset.alias): New targets.
97447
97448 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97449
97450         * lib/quotearg.c (ALERT_CHAR): New macro.
97451         (quotearg_buffer_restyled): Use it.
97452
97453 2000-02-27  Jim Meyering  <meyering@lucent.com>
97454
97455         * m4/check-decl.m4: Add getenv to the list.
97456
97457 2000-02-27  Jim Meyering  <meyering@lucent.com>
97458
97459         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97460         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97461
97462         * lib/backupfile.c: Guard inclusion of stdlib.h with
97463         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97464         Declare malloc if needed.
97465
97466         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97467         `#ifndef HAVE_DECL..'
97468         now that autoconf always defines the HAVE_DECL_ symbols.
97469         * lib/human.c: Likewise.
97470         * lib/same.c: Likewise.
97471         * lib/strtoumax.c: Likewise.
97472
97473         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97474         declaration check was not run.
97475         * lib/hash.c: Likewise.
97476         * lib/human.c: Likewise.
97477         * lib/same.c: Likewise.
97478         * lib/strtoumax.c: Likewise.
97479
97480         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97481         `.', then first look up the entire `.'-containing string as a login
97482         name.
97483
97484 2000-02-23  Jim Meyering  <meyering@lucent.com>
97485
97486         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97487         in place of my hack.
97488
97489 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97490
97491         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97492         (textint): New typedef.
97493         (parser_control): Member year changed from int to textint.
97494         All uses changed.
97495         (YYSTYPE): Removed; replaced by %union with int and textint members.
97496         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97497         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97498         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97499         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97500         (date, number, to_year): Use width of number in digits, not its value,
97501         to determine whether it's a 2-digit year, or a 2-digit time.
97502         (yylex): Store number of digits of numeric tokens.
97503         Reported by John Kendall.
97504
97505         (parser_control): Changed from struct parser_control to typedef (for
97506         consistency).  All uses changed.
97507
97508         (tID): Removed; not used.
97509         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97510
97511 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97512
97513         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97514         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97515
97516 2000-02-12  Jim Meyering  <meyering@lucent.com>
97517
97518         * lib/userspec.c (ISDIGIT): Define it.
97519         (isdigit): Remove definition.
97520         (is_number): Use ISDIGIT, not isdigit.
97521         <libintl.h>: Include.
97522         (_ and N_): Define.
97523         (parse_user_spec): Mark translatable strings.
97524
97525 2000-02-10  Jim Meyering  <meyering@lucent.com>
97526
97527         With these changes, nanosleep.[ch] are finally enough like the other
97528         lib/* replacement files to compile on a few more losing systems.
97529
97530         * lib/nanosleep.h: Don't include config.h.
97531         Remove prototype from declaration of nanosleep.
97532         (PARAMS): Remove now-unneeded definition.
97533         * lib/nanosleep.c: #undef nanosleep.
97534         (rpl_nanosleep): Rename from nanosleep.
97535
97536 2000-02-10  Jim Meyering  <meyering@lucent.com>
97537
97538         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97539         gnu_nanosleep to rpl_nanosleep.
97540
97541 2000-02-09  Jim Meyering  <meyering@lucent.com>
97542
97543         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97544         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97545
97546 2000-02-08  Akim Demaille  <akim@epita.fr>
97547
97548         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97549         `[' and `]' and remove uses of `changequote'.
97550         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97551         (AC_SYS_LARGEFILE): Likewise.
97552         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97553         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97554         of changequote.
97555         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97556         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97557         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97558         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97559
97560 2000-02-05  Jim Meyering  <meyering@lucent.com>
97561
97562         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97563         Remove explicit use of AC_HEADER_TIME.  It is required by
97564         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97565         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97566         in autoconf whereby the expansion of the latter ended up preceding
97567         the expansion of its prerequisite, AC_HEADER_TIME.
97568         Reported by Volker Borchert.
97569
97570 2000-02-03  Jim Meyering  <meyering@lucent.com>
97571
97572         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97573
97574 2000-02-03  Jim Meyering  <meyering@lucent.com>
97575
97576         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97577         rather than with `#if HAVE_UTMPNAME'.
97578
97579 2000-02-02  Jim Meyering  <meyering@lucent.com>
97580
97581         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97582         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97583         Reported by Eli Zaretskii.
97584
97585 2000-02-01  Jim Meyering  <meyering@lucent.com>
97586
97587         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97588
97589 2000-01-31  Jim Meyering  <meyering@lucent.com>
97590
97591         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97592         functions.  Add the time.h and sys/time.h headers along with the
97593         AC_REQUIRE'ment of AC_HEADER_TIME.
97594
97595 2000-01-31  Jim Meyering  <meyering@lucent.com>
97596
97597         * lib/nanosleep.h (nanosleep): Guard declaration with
97598         `#if ! HAVE_DECL_NANOSLEEP'.
97599         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97600         the declaration in that vendor's sys/timers.h.
97601         Reported by Christian Krackowizer.
97602
97603         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
97604         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
97605         (ISPRINT): Likewise.
97606         Reported by Tom Tromey.
97607
97608 2000-01-30  Jim Meyering  <meyering@lucent.com>
97609
97610         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
97611
97612         * m4/prereq.m4 (utmp_includes): Define.
97613         Check for ut_user and ut_name members in both struct utmpx
97614         and struct utmp.
97615
97616 2000-01-30  Jim Meyering  <meyering@lucent.com>
97617
97618         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
97619         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
97620         header files where only utmpx.ut_user is declared.
97621
97622         * lib/readutmp.h (UT_USER): Define.
97623
97624 2000-01-29  Jim Meyering  <meyering@lucent.com>
97625
97626         * m4/lib-check.m4: New file containing library-related checks from
97627         fileutils and sh-utils (textutils had none).
97628
97629 2000-01-28  Jim Meyering  <meyering@lucent.com>
97630
97631         * m4/perl.m4: Change format of warning message to look more like that
97632         from the missing script.  Suggestion from François Pinard.
97633
97634 2000-01-25  Jim Meyering  <meyering@lucent.com>
97635
97636         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
97637         well as time.h in the compile check.
97638         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
97639         Fix typo in cross-compiling case: s/yes/no/.
97640
97641 2000-01-23  Jim Meyering  <meyering@lucent.com>
97642
97643         * m4/jm-macros.m4: Move df-related tests here from
97644         fileutils/configure.in
97645
97646         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
97647         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
97648
97649         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
97650         s/space/ac_fsusage_space/.
97651         (jm_FILE_SYSTEM_USAGE): Take two parameters.
97652
97653         * m4/ftruncate.m4: New file (derived from part of
97654         fileutils/configure.in).
97655         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
97656         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
97657
97658         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
97659         AC_SUBST these here, rather than just in sh-util/configure.in, so
97660         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
97661         all the same.
97662         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
97663         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
97664         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
97665         (AC_SUBST(POW_LIBM)): Likewise.
97666         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
97667
97668 2000-01-23  Jim Meyering  <meyering@lucent.com>
97669
97670         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
97671         obstack.c.
97672
97673 2000-01-22  Jim Meyering  <meyering@lucent.com>
97674
97675         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
97676
97677         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
97678
97679         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
97680         configure.in
97681         (AC_CHECK_HEADERS): Likewise for sh-utils.
97682         (AC_CHECK_HEADERS): Likewise for textutils.
97683         Merge the three lists of headers.
97684
97685         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
97686         from fileutils' configure.in.
97687
97688         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
97689         code. Moved tests into their own function (_jm_DECL_HEADERS) in
97690         check-decl.m4.
97691
97692         * m4/check-decl.m4: Use #if rather than #ifdef.
97693         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
97694         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
97695         (_jm_DECL_HEADERS): Define new function.
97696         (jm_CHECK_DECLARATIONS): Require it.
97697
97698 2000-01-22  Jim Meyering  <meyering@lucent.com>
97699
97700         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
97701         [! HAVE_DECL_STRTOULL]: Declare strtoull.
97702         Required for some AIX systems.  Reported by Christian Krackowizer.
97703         [TESTING] (main): New function.
97704
97705         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
97706         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
97707         letters.
97708
97709         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
97710         iswprint.
97711
97712         * lib/strverscmp.c (ISDIGIT): Define.
97713         (strverscmp): Use ISDIGIT, not isdigit.
97714
97715 2000-01-19  Jim Meyering  <meyering@lucent.com>
97716
97717         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
97718         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
97719         defines `struct timespec' in <sys/time.h>
97720
97721         * m4/c-bs-a.m4: Remove uses of changequote altogether.
97722         Thanks to Akim for explaining.
97723
97724 2000-01-17  Paul Eggert  <eggert@twinsun.com>
97725
97726         * lib/nanosleep.c (nanosleep):
97727         Don't use SA_INTERRUPT to decide whether to call sigaction, as
97728         POSIX.1 doesn't require SA_INTERRUPT and some systems
97729         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
97730         it's been part of POSIX.1 since day 1 (in 1988).
97731
97732 2000-01-17  Jim Meyering  <meyering@lucent.com>
97733
97734         * lib/interlock: Remove unused file.  Reported by François Pinard.
97735
97736 2000-01-16  Paul Eggert  <eggert@twinsun.com>
97737
97738         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
97739         alert, backslash, formfeed, and vertical tab unnecessarily in
97740         shell quoting style.
97741
97742 2000-01-16  Jim Meyering  <meyering@lucent.com>
97743
97744         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
97745         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
97746         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
97747         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
97748
97749 2000-01-16  Jim Meyering  <meyering@lucent.com>
97750
97751         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
97752         because the latter didn't work.
97753
97754 2000-01-15  Jim Meyering  <meyering@lucent.com>
97755
97756         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
97757         (AC_REPLACE_FUNCS): Add memcpy and memset.
97758         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
97759         Add strpbrk.
97760         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
97761
97762 2000-01-12  Jim Meyering  <meyering@lucent.com>
97763
97764         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
97765         (jm_PREREQ): Use it.
97766         (jm_PREREQ_READUTMP): New macro.
97767         (jm_PREREQ): Use it.
97768
97769 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97770
97771         Quote multibyte characters correctly.
97772         * m4/c-bs-a.m4: New file.
97773         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
97774         (jm_PREREQ): Use it.
97775
97776 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97777
97778         * m4/uintmax_t.m4: Port to autoconf 2.13.
97779
97780 2000-01-08  Jim Meyering  <meyering@ascend.com>
97781
97782         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
97783         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
97784
97785 2000-01-04  Jim Meyering  <meyering@ascend.com>
97786
97787         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
97788         jm_STRUCT_DIRENT_D_TYPE.
97789         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
97790         jm_STRUCT_DIRENT_D_INO.
97791         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
97792         jm_STRUCT_UTIMBUF.
97793         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
97794         renamings.
97795         * m4/utime.m4: Likewise.
97796
97797         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
97798         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
97799
97800 2000-01-03  Paul Eggert  <eggert@twinsun.com>
97801
97802         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
97803         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
97804
97805 2000-01-02  Jim Meyering  <meyering@ascend.com>
97806
97807         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
97808         remember if this is necessary.
97809
97810 1999-12-26  Jim Meyering  <meyering@ascend.com>
97811
97812         * m4/jm-macros.m4: Use it here.
97813         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
97814
97815 1999-12-23  Jim Meyering  <meyering@ascend.com>
97816
97817         * m4/jm-macros.m4: Check for clock_gettime (moved from
97818         fileutils/configure.in)
97819         Check for gettimeofday.
97820
97821 1999-12-20  Jim Meyering  <meyering@ascend.com>
97822
97823         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
97824         autoconf-2.14a-1999-12-20.
97825
97826 1999-12-19  Jim Meyering  <meyering@ascend.com>
97827
97828         * m4/lstat-slash.m4: New file.
97829         * m4/jm-macros.m4: Use the new macro:
97830         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97831
97832 1999-12-07  Jim Meyering  <meyering@ascend.com>
97833
97834         * m4/perl.m4: Require that File::Compare be available, too.
97835         Too many systems seem to lack it.
97836
97837         * m4/strftime.m4: Add checks for most of the cpp macros tested in
97838         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
97839
97840 1999-11-18  Paul Eggert  <eggert@twinsun.com>
97841
97842         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
97843         problem with the QNX 4.25 shell, which doesn't propagate exit
97844         status of failed commands inside shell assignments.
97845
97846 1999-11-17  Jim Meyering  <meyering@ascend.com>
97847
97848         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
97849
97850 1999-11-07  Jim Meyering  <meyering@ascend.com>
97851
97852         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
97853
97854 1999-11-06  Jim Meyering  <meyering@ascend.com>
97855
97856         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
97857         * m4/jm-macros.m4 (jm_MACROS): Use it here.
97858
97859 1999-11-05  Jim Meyering  <meyering@ascend.com>
97860
97861         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
97862         configure.in of textutils, fileutils, and sh-utils into this one
97863         (shared between those packages) file.
97864         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
97865         AC_STRUCT_ST_BLKSIZE.
97866
97867 1999-11-03  Jim Meyering  <meyering@ascend.com>
97868
97869         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
97870         of AC_CHECK_TYPE checks includes unistd.h.
97871         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
97872         Suggestion from Akim Demaille.
97873
97874 1999-10-30  Jim Meyering  <meyering@ascend.com>
97875
97876         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
97877         m4-quoted string.
97878         * m4/ls-mntd-fs.m4: Likewise.
97879         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
97880         * m4/jm-winsz1.m4: Likewise.
97881
97882         * m4/const.m4: Remove file, since the fix made it into the experimental
97883         version of autoconf.
97884         * m4/mktime.m4: Likewise.
97885
97886         * m4/check-type.m4: Remove file, now that the latest version of
97887         AC_CHECK_TYPE takes a third arg to specify additional #includes.
97888
97889         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
97890         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
97891         AC_CHECK_TYPE.
97892
97893 1999-10-04  Jim Meyering  <meyering@ascend.com>
97894
97895         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
97896
97897 1999-09-22  Paul Eggert  <eggert@twinsun.com>
97898
97899         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
97900         2.95.1 bug with HP-UX 10.20.
97901
97902 1999-09-17  Jim Meyering  <meyering@ascend.com>
97903
97904         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
97905         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
97906         due to missing strdup (against sh-utils-2.0).
97907
97908 1999-08-29  Jim Meyering  <meyering@ascend.com>
97909
97910         * m4/jm-macros.m4: Require jm_BISON.
97911         * m4/bison.m4: New file.
97912
97913 1999-08-17  Paul Eggert  <eggert@twinsun.com>
97914
97915         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
97916         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
97917
97918 1999-08-05  Jim Meyering  <meyering@ascend.com>
97919
97920         * m4/getline.m4: Rename test file from conftestdata to conftest.data
97921         to avoid conflicts with `conftest' on 8+3 filesystems.
97922         Suggestion from Eli Zaretskii.
97923
97924 1999-08-04  Jim Meyering  <meyering@ascend.com>
97925
97926         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
97927         fileutils and sh-utils (textutils's getline test was inadequate).
97928         (AM_FUNC_GETLINE): Run this test.
97929         (AC_CHECK_FUNCS): Check for getdelim.
97930         Reported by Bob Proulx.
97931
97932 1999-08-02  Jim Meyering  <meyering@ascend.com>
97933
97934         * m4/jm-macros.m4: Add a comment.
97935
97936 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97937
97938         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
97939         <inttypes.h> defines strtoumax as a macro (and not as a
97940         function).
97941
97942 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97943
97944         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
97945         that we can shift, multiply and divide unsigned long long
97946         values; Ultrix cc can't do it.
97947
97948 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97949
97950         * m4/mktime.m4: New file, which is a preview of what should appear
97951         in the next public autoconf release.
97952
97953 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97954
97955         * m4/lfs.m4: Remove this file.
97956         * m4/largefile.m4: New file.  It contains the old contents of
97957         lfs.m4, except that all names with prefix AC_LFS have been
97958         changed to use the prefix AC_SYS_LARGEFILE instead, to be
97959         compatible with future autoconf versions.  Also, some minor m4
97960         quoting problems have been fixed.
97961
97962 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97963
97964         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
97965         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
97966         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
97967         and simplify the shell code.
97968
97969 1999-08-01  Jim Meyering  <meyering@ascend.com>
97970
97971         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
97972         m4.
97973
97974 1999-07-20  Jim Meyering  <meyering@ascend.com>
97975
97976         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
97977
97978 1999-07-15  Jim Meyering  <meyering@ascend.com>
97979
97980         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
97981
97982 1999-05-22  Jim Meyering  <meyering@ascend.com>
97983
97984         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
97985
97986 1999-05-20  Jim Meyering  <meyering@ascend.com>
97987
97988         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
97989         Add a colon after each `then' in case $4 is empty.
97990
97991 1999-05-16  Jim Meyering  <meyering@ascend.com>
97992
97993         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
97994
97995 1999-05-10  Jim Meyering  <meyering@ascend.com>
97996
97997         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
97998
97999         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98000         AC_FUNC_MKTIME.
98001
98002 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98003
98004         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98005
98006 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98007
98008         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98009         not CPPFLAGS, so that linking works correctly in IRIX.
98010
98011 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98012
98013         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98014
98015 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98016
98017         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98018         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98019         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98020         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98021         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98022
98023         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98024
98025 1999-04-20  Jim Meyering  <meyering@ascend.com>
98026
98027         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98028         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98029         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98030
98031 1999-04-18  Jim Meyering  <meyering@ascend.com>
98032
98033         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98034         * m4/jm-macros.m4: Use it.
98035
98036 1999-04-06  Jim Meyering  <meyering@ascend.com>
98037
98038         * m4/strftime.m4: Remove test for %f.
98039
98040 1999-03-29  Jim Meyering  <meyering@ascend.com>
98041
98042         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98043         superset of the AC_TYPE_* checks in the textutils, fileutils,
98044         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98045         AC_TYPE_PID_T.
98046
98047 1999-03-28  Jim Meyering  <meyering@ascend.com>
98048
98049         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98050         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98051         replaced e.g., in the *.sh files of the sh-utils.
98052
98053 1999-03-20  Jim Meyering  <meyering@ascend.com>
98054
98055         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98056         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98057         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98058
98059 1999-03-19  Jim Meyering  <meyering@ascend.com>
98060
98061         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98062
98063 1999-03-12  Jim Meyering  <meyering@ascend.com>
98064
98065         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98066
98067 1999-03-07  Jim Meyering  <meyering@ascend.com>
98068
98069         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98070         declared.
98071
98072 1999-02-17  Jim Meyering  <meyering@ascend.com>
98073
98074         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98075         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98076
98077 1999-02-07  Jim Meyering  <meyering@ascend.com>
98078
98079         * m4/group-member.m4: New file -- extracted from sh-utils'
98080         configure.in.
98081
98082         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98083         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98084
98085 1999-02-06  Jim Meyering  <meyering@ascend.com>
98086
98087         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98088         * m4/fnmatch.m4: Likewise.
98089         * m4/getgroups.m4: Likewise.
98090         * m4/lstat.m4: Likewise.
98091         * m4/malloc.m4: Likewise.
98092         * m4/putenv.m4: Likewise.
98093         * m4/realloc.m4: Likewise.
98094         * m4/regex.m4: Likewise.
98095         * m4/stat.m4: Likewise.
98096         * m4/strftime.m4: Likewise.
98097         Suggestion from Alain Magloire.
98098
98099         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98100         * m4/fnmatch.m4: Likewise.
98101         * m4/getgroups.m4: Likewise.
98102         * m4/getline.m4: Likewise.
98103         * m4/lstat.m4: Likewise.
98104         * m4/malloc.m4: Likewise.
98105         * m4/memcmp.m4: Likewise.
98106         * m4/putenv.m4: Likewise.
98107         * m4/realloc.m4: Likewise.
98108         * m4/regex.m4: Likewise.
98109         * m4/stat.m4: Likewise.
98110         * m4/strftime.m4: Likewise.
98111         Suggestion from Alain Magloire.
98112
98113         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98114         an argument.
98115
98116         * m4/regex.m4: Add a run-time Test for proper operation of
98117         re_compile_pattern.
98118
98119 1999-01-31  Jim Meyering  <meyering@ascend.com>
98120
98121         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98122
98123 1999-01-30  Jim Meyering  <meyering@ascend.com>
98124
98125         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98126
98127         * m4/jm-mktime.m4: Make this a wrapper around the official
98128         AM_FUNC_MKTIME rather than my private copy, now that the official one
98129         is up to date.
98130         * m4/mktime.m4: Remove file.
98131
98132         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98133         * m4/uptime.m4: Likewise.
98134         * m4/uintmax_t.m4: Likewise.
98135
98136 1999-01-28  Jim Meyering  <meyering@ascend.com>
98137
98138         * m4/jm-macros.m4: Use jm_AFS.
98139         * m4/afs.m4: New file (from fileutils' configure.in).
98140
98141         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98142         * m4/chown.m4: Likewise.
98143         * m4/d-ino.m4: Likewise.
98144         * m4/d-type.m4: Likewise.
98145         * m4/fnmatch.m4: Likewise.
98146         * m4/getgroups.m4: Likewise.
98147         * m4/gettext.m4: Likewise.
98148         * m4/jm-mktime.m4: Likewise.
98149         * m4/jm-winsz2.m4: Likewise.
98150         * m4/lcmessage.m4: Likewise.
98151         * m4/ls-mntd-fs.m4: Likewise.
98152         * m4/malloc.m4: Likewise.
98153         * m4/memcmp.m4: Likewise.
98154         * m4/putenv.m4: Likewise.
98155         * m4/realloc.m4: Likewise.
98156         * m4/st_mtim.m4: Likewise.
98157         * m4/strftime.m4: Likewise.
98158
98159 1999-01-16  Jim Meyering  <meyering@ascend.com>
98160
98161         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98162         (ARGMATCH_DIE_DECL): Define.
98163
98164 1999-01-12  Jim Meyering  <meyering@ascend.com>
98165
98166         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98167         Reported by Lars Hecking.
98168
98169 1999-01-10  Jim Meyering  <meyering@ascend.com>
98170
98171         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98172         gross kludge.
98173         * m4/inttypes_h.m4: Likewise.
98174         * m4/lstat.m4: Likewise.
98175         * m4/malloc.m4: Likewise.
98176         * m4/readdir.m4: Likewise.
98177         * m4/realloc.m4: Likewise.
98178         * m4/st_dm_mode.m4: Likewise.
98179         * m4/stat.m4: Likewise.
98180         * m4/utimbuf.m4: Likewise.
98181         * m4/utimes.m4: Likewise.
98182
98183         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98184         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98185         comments in config.h.in are meaningful.
98186
98187         * m4/jm-macros.m4: Require autoconf-2.13 here.
98188
98189         * m4/regex.m4: By default, don't use the included regex.c on systems
98190         with glibc 2.  Suggestion from Uli Drepper.
98191
98192 1999-01-02  Jim Meyering  <meyering@ascend.com>
98193
98194         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98195
98196 1998-12-18  Jim Meyering  <meyering@ascend.com>
98197
98198         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98199         Based on a suggestion from Lars Hecking.
98200
98201 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98202
98203         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98204
98205 1998-11-16  Jim Meyering  <meyering@ascend.com>
98206
98207         * m4/lfs.m4: Double-quote the `uname...` expression.
98208
98209 1998-11-14  Jim Meyering  <meyering@ascend.com>
98210
98211         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98212         * m4/stat.m4: Likewise.
98213
98214 1998-11-03  Jim Meyering  <meyering@ascend.com>
98215
98216         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98217         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98218
98219 1998-10-18  Jim Meyering  <meyering@ascend.com>
98220
98221         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98222
98223 1998-10-17  Jim Meyering  <meyering@ascend.com>
98224
98225         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98226         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98227         calls for those previously hard-coded headers.  Instead, take a new
98228         parameter.
98229         (jm_CHECK_DECLARATIONS): Reflect interface change.
98230         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98231         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98232
98233         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98234
98235 1998-10-14  Jim Meyering  <meyering@ascend.com>
98236
98237         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98238         instead of "TZ=America/Vancouver".  From Paul Eggert.
98239
98240 1998-10-11  Jim Meyering  <meyering@ascend.com>
98241
98242         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98243         This adds a test for a recently added compatibility fix for mktime.c.
98244         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98245
98246 1998-09-27  Jim Meyering  <meyering@ascend.com>
98247
98248         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98249
98250         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98251         ../configure.in, including a change from Gordon Matzigkeit to allow
98252         cross-compiling for the Hurd.
98253
98254         * m4/glibc.m4: New file/macro to test for the GNU C Library
98255         versions 1 and 2.  From Gordon Matzigkeit.
98256         Indent.
98257
98258 1998-09-21  Jim Meyering  <meyering@ascend.com>
98259
98260         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98261
98262 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98263
98264         Port nanosecond-resolution times to UnixWare 2.1.2 and
98265         pedantic Solaris 2.6.
98266
98267         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98268         AC_STRUCT_ST_MTIM.
98269         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98270         Generate name of ns member, instead of just 1 or undef.
98271         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98272
98273 1998-08-15  Jim Meyering  <meyering@ascend.com>
98274
98275         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98276         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98277         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98278         instead of jm_TYPE_SSIZE_T.
98279
98280 1998-08-12  Jim Meyering  <meyering@ascend.com>
98281
98282         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98283
98284 1998-08-02  Jim Meyering  <meyering@ascend.com>
98285
98286         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98287         in acconfig.h manually.
98288
98289 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98290
98291         * m4/st_mtim.m4: New file.
98292
98293 1998-07-28  Jim Meyering  <meyering@ascend.com>
98294
98295         * m4/utimes.m4: Undef stat.
98296
98297 1998-07-25  Jim Meyering  <meyering@ascend.com>
98298
98299         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98300         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98301
98302 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98303
98304         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98305         uid and gid actually remain unchanged.
98306
98307 1998-07-07  Jim Meyering  <meyering@ascend.com>
98308
98309         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98310
98311 1998-07-04  Jim Meyering  <meyering@ascend.com>
98312
98313         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98314         to prove that this macro can be used in packages without regex.c.
98315
98316 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98317
98318         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98319         is to be used.
98320
98321 1998-07-03  Jim Meyering  <meyering@ascend.com>
98322
98323         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98324
98325         * m4/gettext.m4: New file -- from gettext-0.10.35.
98326         * m4/lcmessage.m4: Likewise.
98327         * m4/progtest.m4: Likewise.
98328
98329         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98330         * m4/jm-macros.m4: Require the new macro.
98331
98332 1998-06-29  Jim Meyering  <meyering@ascend.com>
98333
98334         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98335         for the definition of NGROUPS (used in a system header included
98336         by sys/mount.h).
98337
98338 1998-06-28  Jim Meyering  <meyering@ascend.com>
98339
98340         * m4/ls-mntd-fs.m4: New file.
98341         * m4/fstypename.m4: New file.
98342
98343         * m4/jm-macros.m4: Require the new macro.
98344         * m4/jm-glibc-io.m4: New file.
98345
98346 1998-05-19  Jim Meyering  <meyering@ascend.com>
98347
98348         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98349         * m4/lchown.m4: New file.
98350
98351         * m4/Makefile.am.in: New file.
98352         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98353
98354 1998-05-14  Jim Meyering  <meyering@ascend.com>
98355
98356         * m4/Makefile.am (EXTRA_DIST): Add them.
98357         * m4/jm-macros.m4: New file.
98358         * m4/utimbuf.m4: New file.
98359
98360 1998-05-12  Jim Meyering  <meyering@ascend.com>
98361
98362         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98363
98364 1998-05-11  Jim Meyering  <meyering@ascend.com>
98365
98366         * m4/isc-posix.m4: New file.
98367
98368 1998-05-10  Jim Meyering  <meyering@ascend.com>
98369
98370         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98371
98372 1998-05-09  Jim Meyering  <meyering@ascend.com>
98373
98374         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98375         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98376         with automake.
98377
98378         * m4/ssize_t.m4: New file.
98379         * m4/mktime.m4: Remove file -- the new automake has this now.
98380
98381 1998-04-26  Jim Meyering  <meyering@ascend.com>
98382
98383         * m4/assert.m4: New file.
98384         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98385
98386 1998-04-05  Jim Meyering  <meyering@ascend.com>
98387
98388         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98389         (jm_PREREQ): Use it here.
98390
98391 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98392
98393         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98394         in acconfig.h.
98395
98396 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98397
98398         * m4/prereq.m4: New file.
98399         * m4/error.m4: New file.
98400         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98401
98402 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98403
98404         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98405         cache-check for the same variable -- that defeated the purpose of
98406         the test; the test program was never run.  This was a problem only
98407         on systems with losing getline functions -- HP-UX 10.20 is one.
98408         Reported by Bjorn Helgaas.
98409
98410 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98411
98412         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98413
98414 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98415
98416         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98417
98418         * m4/const.m4: New file.  Use an initializer in this declaration
98419         typedef int charset[2]; const charset x;
98420         Reported by Bob Glickstein.
98421
98422 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98423
98424         * m4/chown.m4: Fix reversed types on -1 args to chown.
98425         From Kaveh Ghazi.
98426
98427 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98428
98429         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98430         Add lseek and memchr.
98431
98432         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98433         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98434         have a 20-character limit on names.
98435
98436 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98437
98438         * m4/inttypes_h.m4: New file.
98439         * m4/uintmax_t.m4: New file.
98440         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98441
98442
98443         -----
98444
98445         Local Variables:
98446         coding: utf-8
98447         End:
98448
98449         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98450
98451         Copying and distribution of this file, with or without
98452         modification, are permitted provided the copyright notice
98453         and this notice are preserved.